Browse Source

1.自提模块提交(未完成)

2.修改bug
dev-warehouse
zhenghaoyu 1 year ago
parent
commit
c0c76d3ccf
  1. 4
      blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataStorageServicesEntity.java
  2. 39
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingAppVO.java
  3. 4
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStorageServicesMapper.xml
  4. 34
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBillLadingAppController.java

4
blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataStorageServicesEntity.java

@ -77,7 +77,7 @@ public class BasicdataStorageServicesEntity extends TenantEntity {
* 服务仓库
*/
@ApiModelProperty(value = "服务仓库ID")
private String serveWarehouseId;
private Long serveWarehouseId;
@ApiModelProperty(value = "服务仓库Name")
private String serveWarehouseName;
@ -86,7 +86,7 @@ public class BasicdataStorageServicesEntity extends TenantEntity {
* 发货仓库 发货仓库客户允许未null
*/
@ApiModelProperty(value = "发货仓库ID")
private String sendWarehouseId;
private Long sendWarehouseId;
@ApiModelProperty(value = "发货仓库Name")
private String sendWarehouseName;

39
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingAppVO.java

@ -0,0 +1,39 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.distribution.vo;
import com.logpm.distribution.entity.DistrilbutionBillLadingEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 提货单 视图实体类
*
* @author cyz
* @since 2023-06-14
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class DistrilbutionBillLadingAppVO extends DistrilbutionBillLadingEntity {
private static final long serialVersionUID = 1L;
private Integer carType;
private String carTypeStr;
// private Integer
}

4
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStorageServicesMapper.xml

@ -9,7 +9,7 @@
<select id="selectBasicdataStorageServicesPage" resultType="com.logpm.basicdata.vo.BasicdataStorageServicesVO">
select
lbss.tenant_id,
lbss.create_user,
lbss.create_time,
@ -34,7 +34,7 @@
<where>
lbss.is_deleted = 0
<if test="param.clientId != null and param.clientId != null"> and lbss.clinet_id = #{param.clientId} </if>
<if test="param.clientId != null and param.clientId != null"> and lbss.client_id = #{param.clientId} </if>
<if test="param.serveWarehouseId != null and param.serveWarehouseId != null"> and lbss.serve_warehouse_id = #{param.serveWarehouseId} </if>
<if test="param.sendWarehouseId != null and param.sendWarehouseId != null"> and lbss.send_warehouse_id = #{param.sendWarehouseId} </if>

34
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBillLadingAppController.java

@ -16,15 +16,29 @@
*/
package com.logpm.distribution.appcontroller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.logpm.distribution.service.IDistrilbutionBillLadingService;
import com.logpm.distribution.vo.DistrilbutionBillLadingVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.system.feign.IDictBizClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
import java.util.Map;
/**
* 备货信息表 app控制器
* 自提列表信息 app控制器
*
* @author zhy
* @since 2023-07-22
@ -33,20 +47,22 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@AllArgsConstructor
@RequestMapping("/app/billLading")
@Api(value = "备货信息表", tags = "备货信息表接口")
@Api(value = "自提", tags = "自提信息表接口")
public class DistributionBillLadingAppController extends BladeController {
private final IDistrilbutionBillLadingService distrilbutionBillLadingService;
private final IDictBizClient dictBizClient;
/**
* 备货信息表 分页列表
*/
// @GetMapping("/pageList")
// @ApiOperationSupport(order = 1)
// @ApiOperation(value = "分页列表", notes = "传入stockupDTO")
// public R<IPage<DistributionStockupListVO>> pageList(StockupDTO stockupDTO) {
// IPage<DistributionStockupListVO> pages = distributionStockupService.selectStockupPage(stockupDTO);
// return R.data(pages);
// }
@GetMapping("/pageList")
@ApiOperationSupport(order = 1)
@ApiOperation(value = "分页列表", notes = "传入stockupDTO")
public R<IPage<DistrilbutionBillLadingVO>> pageList(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillLading, Query query) {
IPage<DistrilbutionBillLadingVO> pages = distrilbutionBillLadingService.pageList(Condition.getPage(query), distrilbutionBillLading);
return R.data(pages);
}

Loading…
Cancel
Save