Commit 6a2804f4 authored by 332784038@qq.com's avatar 332784038@qq.com

Merge branch 'test' into release

parents cbad08f7 b7ee1d20
...@@ -68,6 +68,7 @@ public interface CustomerContactsMapper extends BaseMapperX<CustomerContactsDO> ...@@ -68,6 +68,7 @@ public interface CustomerContactsMapper extends BaseMapperX<CustomerContactsDO>
"c.id as customer_id, ", "c.id as customer_id, ",
"c.name as customer_name, ", "c.name as customer_name, ",
"c.name_en as customer_name_en, ", "c.name_en as customer_name_en, ",
"c.number as customer_number, ",
"c.default_pay as default_pay, ", "c.default_pay as default_pay, ",
"c.no_consignee as no_consignee, ", "c.no_consignee as no_consignee, ",
"cc.* , ", "cc.* , ",
...@@ -110,6 +111,7 @@ public interface CustomerContactsMapper extends BaseMapperX<CustomerContactsDO> ...@@ -110,6 +111,7 @@ public interface CustomerContactsMapper extends BaseMapperX<CustomerContactsDO>
"c.id as customer_id, ", "c.id as customer_id, ",
"c.name as customer_name, ", "c.name as customer_name, ",
"c.name_en as customer_name_en, ", "c.name_en as customer_name_en, ",
"c.number as customer_number, ",
"c.default_pay as default_pay, ", "c.default_pay as default_pay, ",
"c.no_consignee as no_consignee, ", "c.no_consignee as no_consignee, ",
"cc.* , ", "cc.* , ",
......
...@@ -13,6 +13,9 @@ public class CustomerContactsDto { ...@@ -13,6 +13,9 @@ public class CustomerContactsDto {
@ApiModelProperty(value = "客户联系人ID") @ApiModelProperty(value = "客户联系人ID")
private Long customerContactsId; private Long customerContactsId;
@ApiModelProperty(value = "客户编码")
private String customerNumber;
@ApiModelProperty(value = "客户名称", required = true) @ApiModelProperty(value = "客户名称", required = true)
@NotNull(message = "客户名称不能为空") @NotNull(message = "客户名称不能为空")
private String customerName; private String customerName;
......
...@@ -21,8 +21,14 @@ public class WarehouseLineQueryVO { ...@@ -21,8 +21,14 @@ public class WarehouseLineQueryVO {
@ApiModelProperty(value = "运输方式") @ApiModelProperty(value = "运输方式")
private Integer transportType; private Integer transportType;
@ApiModelProperty(value = "目的地城市id")
private List<Long> destCityId;
@ApiModelProperty(value = "目的国家id") @ApiModelProperty(value = "目的国家id")
private Long destCountryId; private List<Long> destCountryId;
@ApiModelProperty(value = "目的仓")
private List<Long> destWarehouseId;
@ApiModelProperty(value = "出货渠道ID,空运才有,海运可以为空") @ApiModelProperty(value = "出货渠道ID,空运才有,海运可以为空")
private Long channelId; private Long channelId;
......
...@@ -123,12 +123,32 @@ ...@@ -123,12 +123,32 @@
</foreach> </foreach>
</if> </if>
<if test="query.transportType != null"> <!--目的地-->
AND line.transport_type = #{query.transportType} <if test="query.destCityId != null and query.destCityId.size()>0 ">
and destwarehouse.`shi` in
<foreach item='destCity' index='index' collection='query.destCityId' open='(' separator=',' close=')'>
#{destCity}
</foreach>
</if>
<!--目的国-->
<if test="query.destCountryId != null and query.destCountryId.size()>0 ">
and destwarehouse.`guojia` in
<foreach item='destCountry' index='index' collection='query.destCountryId' open='(' separator=',' close=')'>
#{destCountry}
</foreach>
</if> </if>
<if test="query.destCountryId != null"> <!--目的仓-->
AND destwarehouse.guojia = #{query.destCountryId} <if test="query.destWarehouseId != null and query.destWarehouseId.size()>0 ">
AND line.dest_warehouse_id IN
<foreach item='destWarehouse' index='index' collection='query.destWarehouseId' open='(' separator=',' close=')'>
#{destWarehouse}
</foreach>
</if>
<if test="query.transportType != null">
AND line.transport_type = #{query.transportType}
</if> </if>
<if test="query.channelId != null"> <if test="query.channelId != null">
......
...@@ -429,4 +429,5 @@ public interface ErrorCodeConstants { ...@@ -429,4 +429,5 @@ public interface ErrorCodeConstants {
// 该订单已经是非海外仓订单 // 该订单已经是非海外仓订单
ErrorCode ORDER_NOT_IS_OVERSEAS_WAREHOUSE_ORDER = new ErrorCode(1004001170, "order.not.is.overseas.warehouse.order"); ErrorCode ORDER_NOT_IS_OVERSEAS_WAREHOUSE_ORDER = new ErrorCode(1004001170, "order.not.is.overseas.warehouse.order");
ErrorCode ORDER_APPROVAL_IS_NOT_EXISTS = new ErrorCode(1004001171, "order.approval.is.not.exists"); ErrorCode ORDER_APPROVAL_IS_NOT_EXISTS = new ErrorCode(1004001171, "order.approval.is.not.exists");
ErrorCode FEE_APPLICATION_NOT_IS_ZERO = new ErrorCode(1004001172, "fee.application.not.is.zero");
} }
...@@ -40,7 +40,6 @@ public enum OrderApprovalTypeEnum { ...@@ -40,7 +40,6 @@ public enum OrderApprovalTypeEnum {
DISCOUNT_APPLY_BATCH(31, "批量优惠申请", Arrays.asList(1, 2, 6, 11, 14, 23, 28, 32)), // 拆单申请/合单申请/订单修改/退仓/撤销拆单审批/优惠申请(当前商品有在途申请)/批量管理折扣申请(当前商品有在途申请)/管理优惠(当前商品有在途申请) DISCOUNT_APPLY_BATCH(31, "批量优惠申请", Arrays.asList(1, 2, 6, 11, 14, 23, 28, 32)), // 拆单申请/合单申请/订单修改/退仓/撤销拆单审批/优惠申请(当前商品有在途申请)/批量管理折扣申请(当前商品有在途申请)/管理优惠(当前商品有在途申请)
ADMIN_DISCOUNT_BATCH(32, "批量管理折扣申请", Arrays.asList(1, 2, 6, 11, 14, 23, 28, 31)), // 拆单申请/合单申请/订单修改/退仓/撤销拆单审批/优惠申请(当前商品有在途申请)/批量优惠申请(当前商品有在途申请)/管理优惠(当前商品有在途申请) ADMIN_DISCOUNT_BATCH(32, "批量管理折扣申请", Arrays.asList(1, 2, 6, 11, 14, 23, 28, 31)), // 拆单申请/合单申请/订单修改/退仓/撤销拆单审批/优惠申请(当前商品有在途申请)/批量优惠申请(当前商品有在途申请)/管理优惠(当前商品有在途申请)
//分拣 //分拣
sorting(50, "分拣审批", Arrays.asList(6, 11, 13, 14, 22, 23, 28)), // 自编号全部申请互斥,跟原本一致,不修改, 自编号下订单除拆单申请/合单申请/调仓申请/订单修改/入仓申请/退仓申请外,其他申请不受限制,允许封柜反审批 sorting(50, "分拣审批", Arrays.asList(6, 11, 13, 14, 22, 23, 28)), // 自编号全部申请互斥,跟原本一致,不修改, 自编号下订单除拆单申请/合单申请/调仓申请/订单修改/入仓申请/退仓申请外,其他申请不受限制,允许封柜反审批
......
...@@ -92,10 +92,6 @@ public class OrderFeeApplicationController { ...@@ -92,10 +92,6 @@ public class OrderFeeApplicationController {
return error(ORDER_FEE_APPLICATION_REPEAT_COMMIT); return error(ORDER_FEE_APPLICATION_REPEAT_COMMIT);
} }
redisHelper.expire(redisKey, 1, TimeUnit.MINUTES); redisHelper.expire(redisKey, 1, TimeUnit.MINUTES);
OrderDO orderDO = orderService.getById(createReqVO.getOrderId());
if (orderDO.getAuditType() != 0) {
throw exception(ORDER_HAS_PROCESSING_APPROVAL, orderDO.getOrderNo());
}
feeApplicationService.createFeeBatchApplication(createReqVO); feeApplicationService.createFeeBatchApplication(createReqVO);
redisHelper.delete(redisKey); redisHelper.delete(redisKey);
return success(true); return success(true);
...@@ -123,13 +119,15 @@ public class OrderFeeApplicationController { ...@@ -123,13 +119,15 @@ public class OrderFeeApplicationController {
@PutMapping("/update") @PutMapping("/update")
@ApiOperation("更新订单费用申请") @ApiOperation("更新订单费用申请")
public CommonResult<Boolean> updateFeeApplication(@Valid @RequestBody OrderFeeApplicationUpdateReqVO updateReqVO) { public CommonResult<Boolean> updateFeeApplication(@Valid @RequestBody OrderFeeApplicationUpdateReqVO updateReqVO) {
if (!Objects.isNull(updateReqVO)) {
OrderDO orderDO = orderService.getById(updateReqVO.getOrderId()); String redisKey = MessageFormat.format(ORDER_FEE_APPLICATION_KEY, updateReqVO.getOrderId().toString());
if (orderDO.getAuditType() != 0) { Long count = redisHelper.incrBy(redisKey, 1);
throw exception(ORDER_HAS_PROCESSING_APPROVAL, orderDO.getOrderNo()); if (count > 1){
} return error(ORDER_FEE_APPLICATION_REPEAT_COMMIT);
} }
redisHelper.expire(redisKey, 1, TimeUnit.MINUTES);
feeApplicationService.updateFeeApplication(updateReqVO); feeApplicationService.updateFeeApplication(updateReqVO);
redisHelper.delete(redisKey);
return success(true); return success(true);
} }
......
...@@ -95,16 +95,18 @@ public class ProductPricePageReqVO extends PageParam { ...@@ -95,16 +95,18 @@ public class ProductPricePageReqVO extends PageParam {
@ApiModelProperty(value = "始发地城市id") @ApiModelProperty(value = "始发地城市id")
private Long startCityId; private Long startCityId;
@ApiModelProperty(value = "目的地城市id") @ApiModelProperty(value = "目的地城市id")
private Long destCityId; private List<Long> destCityId;
@ApiModelProperty(value = "运输方式") @ApiModelProperty(value = "运输方式")
private String transportType; private String transportType;
@ApiModelProperty(value = "国家") @ApiModelProperty(value = "国家")
private Long destCountryId; private List<Long> destCountryId;
@ApiModelProperty(value = "目的仓") @ApiModelProperty(value = "目的仓")
private Long destWarehouseId; private List<Long> destWarehouseId;
@ApiModelProperty(value = "商品编码") @ApiModelProperty(value = "商品编码")
private String productCode; private String productCode;
...@@ -119,4 +121,6 @@ public class ProductPricePageReqVO extends PageParam { ...@@ -119,4 +121,6 @@ public class ProductPricePageReqVO extends PageParam {
private List<String> existTypeList; private List<String> existTypeList;
} }
...@@ -109,17 +109,29 @@ ...@@ -109,17 +109,29 @@
<if test="params.startCityId != null"> <if test="params.startCityId != null">
and ew_start.shi = #{params.startCityId} and ew_start.shi = #{params.startCityId}
</if> </if>
<if test="params.destCityId != null">
and ew_dest.shi = #{params.destCityId} <!--目的地-->
<if test="params.destCityId != null and params.destCityId.size()>0 ">
and ew_dest.`shi` in
<foreach item='destCity' index='index' collection='params.destCityId' open='(' separator=',' close=')'>
#{destCity}
</foreach>
</if> </if>
<!--目的国--> <!--目的国-->
<if test="params.destCountryId != null"> <if test="params.destCountryId != null and params.destCountryId.size()>0 ">
and ew_dest.guojia=#{params.destCountryId} and ew_dest.`guojia` in
<foreach item='destCountry' index='index' collection='params.destCountryId' open='(' separator=',' close=')'>
#{destCountry}
</foreach>
</if> </if>
<!--目的仓--> <!--目的仓-->
<if test="params.destWarehouseId != null"> <if test="params.destWarehouseId != null and params.destWarehouseId.size()>0 ">
and ew_dest.id=#{params.destWarehouseId} and ew_dest.`id` in
<foreach item='destWarehouse' index='index' collection='params.destWarehouseId' open='(' separator=',' close=')'>
#{destWarehouse}
</foreach>
</if> </if>
<if test="params.blacklist != null"> <if test="params.blacklist != null">
......
...@@ -306,4 +306,5 @@ order.not.is.overseas.warehouse.order= ...@@ -306,4 +306,5 @@ order.not.is.overseas.warehouse.order=
area.code.not.null= area.code.not.null=
currency.id.not.null= currency.id.not.null=
order.approval.is.not.exists= order.approval.is.not.exists=
\ No newline at end of file fee.application.not.is.zero=
\ No newline at end of file
...@@ -1120,4 +1120,5 @@ order.not.is.overseas.warehouse.order=This order is already a non overseas wareh ...@@ -1120,4 +1120,5 @@ order.not.is.overseas.warehouse.order=This order is already a non overseas wareh
area.code.not.null=The national mobile phone area code cannot be empty area.code.not.null=The national mobile phone area code cannot be empty
currency.id.not.null=The country ID cannot be empty currency.id.not.null=The country ID cannot be empty
order.approval.is.not.exists=Order approval type does not exist order.approval.is.not.exists=Order approval type does not exist
\ No newline at end of file fee.application.not.is.zero=The expense application amount is not 0, and cannot be directly deleted
\ No newline at end of file
...@@ -1120,4 +1120,5 @@ order.not.is.overseas.warehouse.order=\u8be5\u8ba2\u5355\u5df2\u7ecf\u662f\u975e ...@@ -1120,4 +1120,5 @@ order.not.is.overseas.warehouse.order=\u8be5\u8ba2\u5355\u5df2\u7ecf\u662f\u975e
area.code.not.null=\u56fd\u5bb6\u624b\u673a\u533a\u53f7\u4e0d\u80fd\u4e3a\u7a7a area.code.not.null=\u56fd\u5bb6\u624b\u673a\u533a\u53f7\u4e0d\u80fd\u4e3a\u7a7a
currency.id.not.null=\u56fd\u5bb6id\u4e0d\u80fd\u4e3a\u7a7a currency.id.not.null=\u56fd\u5bb6id\u4e0d\u80fd\u4e3a\u7a7a
order.approval.is.not.exists=\u8ba2\u5355\u5ba1\u6279\u7c7b\u578b\u4e0d\u5b58\u5728 order.approval.is.not.exists=\u8ba2\u5355\u5ba1\u6279\u7c7b\u578b\u4e0d\u5b58\u5728
\ No newline at end of file fee.application.not.is.zero=\u8d39\u7528\u7533\u8bf7\u91d1\u989d\u4e0d\u4e3a0\uff0c\u4e0d\u80fd\u8fdb\u884c\u76f4\u63a5\u5220\u9664
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment