Commit bf001a68 authored by lanbaoming's avatar lanbaoming

2024-06-28-1提交

parent 0ad10d7f
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<mapstruct.version>1.4.1.Final</mapstruct.version> <mapstruct.version>1.4.1.Final</mapstruct.version>
<hutool.version>5.6.1</hutool.version> <hutool.version>5.6.1</hutool.version>
<pinyin4j.version>2.5.0</pinyin4j.version> <pinyin4j.version>2.5.0</pinyin4j.version>
<!--lanbm 2024-06-11 修改版本 2.2.7 --> <!--修改版本 2.2.7 -->
<easyexcel.verion>2.2.7</easyexcel.verion> <easyexcel.verion>2.2.7</easyexcel.verion>
<ooxml.verion>1.0</ooxml.verion> <ooxml.verion>1.0</ooxml.verion>
<velocity.version>2.2</velocity.version> <velocity.version>2.2</velocity.version>
......
...@@ -137,7 +137,6 @@ public class JsonUtils { ...@@ -137,7 +137,6 @@ public class JsonUtils {
} }
/* /*
lanbm 2024-04-12 add
保存指定的测试信息 保存指定的测试信息
*/ */
public static void SaveLog(String content) { public static void SaveLog(String content) {
......
...@@ -94,7 +94,7 @@ public class I18nMessage { ...@@ -94,7 +94,7 @@ public class I18nMessage {
/** /**
* 获取一条语言配置信息(后台管理) * 获取一条语言配置信息(后台管理)
* 判断当前系统使用的语言 lanbm 2024-05-28 添加注释 * 判断当前系统使用的语言
* @return * @return
* @throws IOException * @throws IOException
*/ */
......
...@@ -19,7 +19,7 @@ public class BpmTaskApproveReqVO { ...@@ -19,7 +19,7 @@ public class BpmTaskApproveReqVO {
private String id; private String id;
/* /*
lanbm 2024-05-24 修改为审批意见可以为空, 修改为审批意见可以为空,
客户要求部分审批流程不用写审批意见 客户要求部分审批流程不用写审批意见
*/ */
@ApiModelProperty(value = "审批意见", required = false, example = "不错不错!") @ApiModelProperty(value = "审批意见", required = false, example = "不错不错!")
......
...@@ -21,7 +21,6 @@ public class BmpFinanceCommissionPaymentApproveListener extends BpmProcessInstan ...@@ -21,7 +21,6 @@ public class BmpFinanceCommissionPaymentApproveListener extends BpmProcessInstan
@Override @Override
protected void onEvent(BpmProcessInstanceResultEvent event) { protected void onEvent(BpmProcessInstanceResultEvent event) {
//lanbm 2024-05-13 添加注释
//ecw_payment 付款单审批回调函数 //ecw_payment 付款单审批回调函数
//ecw_payment_approval 付款单审核表 //ecw_payment_approval 付款单审核表
log.info("--------------------------------------------{},{}", event.getBusinessKey(), event.getResult()); log.info("--------------------------------------------{},{}", event.getBusinessKey(), event.getResult());
......
...@@ -24,7 +24,6 @@ public class BmpFinanceReceiptApproveListener extends BpmProcessInstanceResultEv ...@@ -24,7 +24,6 @@ public class BmpFinanceReceiptApproveListener extends BpmProcessInstanceResultEv
@Override @Override
protected void onEvent(BpmProcessInstanceResultEvent event) { protected void onEvent(BpmProcessInstanceResultEvent event) {
//lanbm 2024-05-13添加注释
//财务收款单 ecw_receipt //财务收款单 ecw_receipt
//收款单或者收款明细审核表 ecw_receipt_approval //收款单或者收款明细审核表 ecw_receipt_approval
log.info("--------------------------------------------{},{}", event.getBusinessKey(), event.getResult()); log.info("--------------------------------------------{},{}", event.getBusinessKey(), event.getResult());
......
...@@ -23,9 +23,8 @@ public class BpmOrdeFreeApplyResultListener extends BpmProcessInstanceResultEven ...@@ -23,9 +23,8 @@ public class BpmOrdeFreeApplyResultListener extends BpmProcessInstanceResultEven
@Override @Override
protected void onEvent(BpmProcessInstanceResultEvent event) { protected void onEvent(BpmProcessInstanceResultEvent event) {
//订单费用申请回调函数 lanbm 2024-05-15 添加注释
log.info("------------------费用审核回调--------------------------{},{}" , event.getBusinessKey(), event.getResult()); log.info("------------------费用审核回调--------------------------{},{}" , event.getBusinessKey(), event.getResult());
//lanbm 2024-05-16 处理报应收款不存在的BUG //处理报应收款不存在的BUG
orderFeeApplicationService.updateFeeApproveResult(event.getBusinessKey(), event.getResult()); orderFeeApplicationService.updateFeeApproveResult(event.getBusinessKey(), event.getResult());
} }
......
...@@ -11,7 +11,6 @@ import javax.annotation.Resource; ...@@ -11,7 +11,6 @@ import javax.annotation.Resource;
/* /*
入仓修改审批 入仓修改审批
lanbm 2024-05-31 添加注释
*/ */
@Component @Component
@Slf4j @Slf4j
......
...@@ -26,7 +26,7 @@ public class BmpShipmentBatchAddPriceListener extends BpmProcessInstanceResultEv ...@@ -26,7 +26,7 @@ public class BmpShipmentBatchAddPriceListener extends BpmProcessInstanceResultEv
protected void onEvent(BpmProcessInstanceResultEvent event) { protected void onEvent(BpmProcessInstanceResultEvent event) {
log.info("---------------------批量加价审核回调-----------------------{},{}", log.info("---------------------批量加价审核回调-----------------------{},{}",
event.getBusinessKey(), event.getResult()); event.getBusinessKey(), event.getResult());
//lanbm 2024-06-18 改为空运和海运都有此逻辑点 //改为空运和海运都有此逻辑点
//运费,清关费,币种,单位都要和元订单一致才能生效 //运费,清关费,币种,单位都要和元订单一致才能生效
boxApprovalService.updateBoxApproveResult( boxApprovalService.updateBoxApproveResult(
WorkFlowEmus.SHIPMENT_BATCH_ADD_PRICE.getKey(), WorkFlowEmus.SHIPMENT_BATCH_ADD_PRICE.getKey(),
......
...@@ -133,7 +133,7 @@ public class BpmTaskController { ...@@ -133,7 +133,7 @@ public class BpmTaskController {
} }
/* /*
批量审批不通过 lanbm 2024-05-20 add 批量审批不通过
*/ */
@PutMapping("/reject2") @PutMapping("/reject2")
@ApiOperation("不通过任务") @ApiOperation("不通过任务")
......
...@@ -53,15 +53,12 @@ public class UserBackVO { ...@@ -53,15 +53,12 @@ public class UserBackVO {
private String loginIp; private String loginIp;
@ExcelProperty("最后登录时间") @ExcelProperty("最后登录时间")
//lanbm 2024-05-15 修改显示BUG
//@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) //@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@ApiModelProperty(value = "最后登录时间") @ApiModelProperty(value = "最后登录时间")
private Date loginDate; private Date loginDate;
//lanbm 2024-06-16 update
@ExcelProperty("创建时间") @ExcelProperty("创建时间")
//lanbm 2024-05-15 修改显示BUG
//@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) //@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@ApiModelProperty(value = "创建时间", required = true) @ApiModelProperty(value = "创建时间", required = true)
......
...@@ -51,7 +51,6 @@ public class MemberBackVO { ...@@ -51,7 +51,6 @@ public class MemberBackVO {
private String loginIp; private String loginIp;
@ExcelProperty("最后登录时间") @ExcelProperty("最后登录时间")
//lanbm 2024-05-15 修改显示BUG
//@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) //@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@ApiModelProperty(value = "最后登录时间") @ApiModelProperty(value = "最后登录时间")
...@@ -62,7 +61,6 @@ public class MemberBackVO { ...@@ -62,7 +61,6 @@ public class MemberBackVO {
private String backLetterImg; private String backLetterImg;
@ExcelProperty("创建时间") @ExcelProperty("创建时间")
//lanbm 2024-05-15 修改显示BUG
//@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) //@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
@ApiModelProperty(value = "创建时间", required = true) @ApiModelProperty(value = "创建时间", required = true)
......
...@@ -60,7 +60,7 @@ public class ProductPriceExceptionHandleListener { ...@@ -60,7 +60,7 @@ public class ProductPriceExceptionHandleListener {
/* /*
处理好报价相关的订单的异常 lanbm 2024-05-31 处理好报价相关的订单的异常
*/ */
public void orderOtherFeeEvent(HandleData event) { public void orderOtherFeeEvent(HandleData event) {
List<ProductPriceDO> priceList = event.getNeedHandleList(); List<ProductPriceDO> priceList = event.getNeedHandleList();
......
...@@ -606,7 +606,8 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -606,7 +606,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
} }
// 物流信息查询 // 物流信息查询
LogisticsInfoDto initialLogisticsInfoDto = warehouseLineMapper.getStartInfoAndDestInfoByLineId(dto.getLineId()); LogisticsInfoDto initialLogisticsInfoDto =
warehouseLineMapper.getStartInfoAndDestInfoByLineId(dto.getLineId());
if (Objects.isNull(initialLogisticsInfoDto)) { if (Objects.isNull(initialLogisticsInfoDto)) {
throw exception(NOT_FIND_LOGISTICS_INFO); throw exception(NOT_FIND_LOGISTICS_INFO);
} }
...@@ -679,7 +680,10 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -679,7 +680,10 @@ public class OrderQueryServiceImpl implements OrderQueryService {
dto.setCountry(orderConsigneeDO.getCountry()); dto.setCountry(orderConsigneeDO.getCountry());
} }
// 商品列表信息 // 商品列表信息
List<OrderItemBackVO> backVOList = orderItemMapper.infoItemList(orderId, I18nMessage.getLang()); //oneSeaFreight 运费单价
//oneClearanceFreight 清关费单价
List<OrderItemBackVO> backVOList =
orderItemMapper.infoItemList(orderId, I18nMessage.getLang());
if (CollectionUtil.isNotEmpty(backVOList)) { if (CollectionUtil.isNotEmpty(backVOList)) {
backVOList = fillOrderItemProperties(backVOList); backVOList = fillOrderItemProperties(backVOList);
// 转换数据字段 // 转换数据字段
...@@ -689,13 +693,12 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -689,13 +693,12 @@ public class OrderQueryServiceImpl implements OrderQueryService {
dto.setOrderItemVOList(backVOList); dto.setOrderItemVOList(backVOList);
} }
// 订单动态 lanbm 2024-06-11 添加注释 // 订单动态
// 订单的到仓时间 去动态值 businessTime // 订单的到仓时间 去动态值 businessTime
List<OrderTimeDO> orderTimeList = List<OrderTimeDO> orderTimeList =
orderTimeMapper.selectList( orderTimeMapper.selectList(
new LambdaQueryWrapper<OrderTimeDO>().eq(OrderTimeDO::getOrderId, orderId).orderByDesc(OrderTimeDO::getId)); new LambdaQueryWrapper<OrderTimeDO>().eq(OrderTimeDO::getOrderId, orderId).orderByDesc(OrderTimeDO::getId));
if (CollectionUtil.isNotEmpty(orderTimeList)) { if (CollectionUtil.isNotEmpty(orderTimeList)) {
//lanbm 2024-06-11 添加的函数
getDaoCanTiam(orderTimeList); getDaoCanTiam(orderTimeList);
dto.setOrderTimeVOList(OrderTimeConvert.INSTANCE.convertList( dto.setOrderTimeVOList(OrderTimeConvert.INSTANCE.convertList(
orderTimeList)); orderTimeList));
...@@ -740,7 +743,7 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -740,7 +743,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
//i.getBusinessTime(); //i.getBusinessTime();
long l = i.getOrderId(); long l = i.getOrderId();
//long shpId = orderTimeMapper.getShipment_id(l); //long shpId = orderTimeMapper.getShipment_id(l);
//在订单操作日志中获取卸柜时间 2024-06-14 update //在订单操作日志中获取卸柜时间
Date d = orderTimeMapper.getUlboxtime(l); Date d = orderTimeMapper.getUlboxtime(l);
if (d != null) i.setBusinessTime(d); if (d != null) i.setBusinessTime(d);
} }
...@@ -748,18 +751,25 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -748,18 +751,25 @@ public class OrderQueryServiceImpl implements OrderQueryService {
} }
@NotNull @NotNull
private List<OrderItemBackVO> fillOrderItemProperties(List<OrderItemBackVO> backVOList) { private List<OrderItemBackVO> fillOrderItemProperties(
List<OrderItemBackVO> backVOList) {
if (CollectionUtil.isEmpty(backVOList)) { if (CollectionUtil.isEmpty(backVOList)) {
return backVOList; return backVOList;
} }
return backVOList.stream().peek(item -> { return backVOList.stream().peek(item -> {
if (!item.getChannelManualPricing() && !item.getSpecialPriceType() && !item.getSplitCustomPriceType() && Objects.nonNull(item.getOriginalSeaFreight()) && item.getOriginalSeaFreight().compareTo(BigDecimal.ZERO) == 0) { if (!item.getChannelManualPricing() &&
!item.getSpecialPriceType() &&
!item.getSplitCustomPriceType() &&
Objects.nonNull(item.getOriginalSeaFreight())
&& item.getOriginalSeaFreight().compareTo(BigDecimal.ZERO) == 0) {
// 表示当前运费没有原价,且不是设置了相关特价,则将预付状态置null // 表示当前运费没有原价,且不是设置了相关特价,则将预付状态置null
item.setIsPayAdvance(null); item.setIsPayAdvance(null);
} }
// 运费成本价=销售价-明佣-暗佣 // 运费成本价=销售价-明佣-暗佣
item.setCostSeaFreight(item.getOneSeaFreight().subtract(item.getPlainCommission()).subtract(item.getHiddenCommission())); item.setCostSeaFreight(item.getOneSeaFreight().
subtract(item.getPlainCommission()).
subtract(item.getHiddenCommission()));
// 清关费成本价=销售价 // 清关费成本价=销售价
item.setCostClearanceFreight(item.getOneClearanceFreight()); item.setCostClearanceFreight(item.getOneClearanceFreight());
if (Objects.nonNull(item.getWarehouseInInfoVO())) { if (Objects.nonNull(item.getWarehouseInInfoVO())) {
...@@ -803,7 +813,8 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -803,7 +813,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
item.setChargeVolume(new BigDecimal(item.getWVolume())); item.setChargeVolume(new BigDecimal(item.getWVolume()));
item.setChargeQuantity(new BigDecimal(item.getQQuantity())); item.setChargeQuantity(new BigDecimal(item.getQQuantity()));
//订单项入仓影像 //订单项入仓影像
List<OrderWarehousePictureDO> warehousePictureList = orderWarehousePictureService.getWarehousePictureList(5, item.getOrderItemId()); List<OrderWarehousePictureDO> warehousePictureList =
orderWarehousePictureService.getWarehousePictureList(5, item.getOrderItemId());
if (CollectionUtil.isNotEmpty(warehousePictureList)) { if (CollectionUtil.isNotEmpty(warehousePictureList)) {
List<String> pictureUrls = warehousePictureList.stream().map(OrderWarehousePictureDO::getUrl).collect(Collectors.toList()); List<String> pictureUrls = warehousePictureList.stream().map(OrderWarehousePictureDO::getUrl).collect(Collectors.toList());
item.setPictureUrls(pictureUrls); item.setPictureUrls(pictureUrls);
...@@ -846,7 +857,8 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -846,7 +857,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
item.setOriginalCostSeaFreight(originalCostSeaFreight); item.setOriginalCostSeaFreight(originalCostSeaFreight);
// 清关费原价= 原始价格(无牌无液无电)+特殊加价-优惠 // 清关费原价= 原始价格(无牌无液无电)+特殊加价-优惠
BigDecimal originalCostClearanceFreight = item.getOriginalClearanceFreight() BigDecimal originalCostClearanceFreight =
item.getOriginalClearanceFreight()
.add(item.getBrandClearanceFeePrice()) .add(item.getBrandClearanceFeePrice())
.add(item.getElectrifiedClearanceFeePrice()) .add(item.getElectrifiedClearanceFeePrice())
.add(item.getLiquidClearanceFeePrice()) .add(item.getLiquidClearanceFeePrice())
......
...@@ -196,24 +196,32 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -196,24 +196,32 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
MemberUserDO memberUserDO) { MemberUserDO memberUserDO) {
int type = 1; int type = 1;
// 获取功能开关 // 获取功能开关
List<DictDataRespDTO> dictList = dictDataApi.getDictDatas("part_function_switch"); List<DictDataRespDTO> dictList =
dictDataApi.getDictDatas("part_function_switch");
// 智慧预装功能开关 // 智慧预装功能开关
DictDataRespDTO dictDataRespDTO = dictList.stream().filter(dto -> "create_order_phone_limit".equals(dto.getLabel())).findFirst().orElse(null); DictDataRespDTO dictDataRespDTO = dictList.stream().filter(dto -> "create_order_phone_limit".equals(dto.getLabel())).findFirst().orElse(null);
if ((Objects.isNull(createReqVO.getIsCargoControl()) || !createReqVO.getIsCargoControl()) && if ((Objects.isNull(createReqVO.getIsCargoControl()) || !createReqVO.getIsCargoControl()) &&
Objects.nonNull(dictDataRespDTO) && StringUtils.equals(dictDataRespDTO.getValue(), "11") && StringUtils.isNotBlank(createReqVO.getCountryCode()) && StringUtils.equals("86", createReqVO.getCountryCode())) { Objects.nonNull(dictDataRespDTO) && StringUtils.equals(dictDataRespDTO.getValue(), "11") && StringUtils.isNotBlank(createReqVO.getCountryCode()) && StringUtils.equals("86", createReqVO.getCountryCode())) {
throw exception(CONSIGNEE_PHONE_IS_EXTERNAL); throw exception(CONSIGNEE_PHONE_IS_EXTERNAL);
} }
LogisticsInfoDto logisticsInfoDto = warehouseLineMapper.getStartInfoAndDestInfoByLineId(createReqVO.getLineId()); LogisticsInfoDto logisticsInfoDto =
warehouseLineMapper.getStartInfoAndDestInfoByLineId(
createReqVO.getLineId());
if (Objects.isNull(logisticsInfoDto)) { if (Objects.isNull(logisticsInfoDto)) {
throw exception(ORDER_LINE_NOT_EXIST); throw exception(ORDER_LINE_NOT_EXIST);
} }
if (!Objects.equals(logisticsInfoDto.getStartCityId(), createReqVO.getDepartureId()) || !Objects.equals(logisticsInfoDto.getDestCityId(), createReqVO.getObjectiveId())) { if (!Objects.equals(logisticsInfoDto.getStartCityId(),
createReqVO.getDepartureId()) || !Objects.equals(
logisticsInfoDto.getDestCityId(), createReqVO.getObjectiveId())) {
throw exception(ORDER_DEPARTURE_OBJECTIVE_AND_LINE_NOT_AGREEMENT); throw exception(ORDER_DEPARTURE_OBJECTIVE_AND_LINE_NOT_AGREEMENT);
} }
if (createReqVO.getIsExternalWarehouse() != null && createReqVO.getIsExternalWarehouse() && StringUtils.isNotBlank(createReqVO.getType()) && createReqVO.getType().contains("1")) { if (createReqVO.getIsExternalWarehouse() != null &&
createReqVO.getIsExternalWarehouse() &&
StringUtils.isNotBlank(createReqVO.getType()) && createReqVO.getType().contains("1")) {
throw exception(EXTERNAL_WAREHOUSE_AND_CONCENTRATE_TRANSPORT_NOT_PARALLEL); throw exception(EXTERNAL_WAREHOUSE_AND_CONCENTRATE_TRANSPORT_NOT_PARALLEL);
} }
if (createReqVO.getIsExternalWarehouse() != null && createReqVO.getIsExternalWarehouse() && !Objects.equals(createReqVO.getStatus(), OrderStatusEnum.DRAFT.getValue())) { if (createReqVO.getIsExternalWarehouse() != null &&
createReqVO.getIsExternalWarehouse() && !Objects.equals(createReqVO.getStatus(), OrderStatusEnum.DRAFT.getValue())) {
// 校验外部仓信息是否为空 // 校验外部仓信息是否为空
if (CollectionUtil.isEmpty(createReqVO.getExternalWarehouseDtoList())) { if (CollectionUtil.isEmpty(createReqVO.getExternalWarehouseDtoList())) {
throw exception(ORDER_EXTERNAL_WAREHOUSE_NOT_NULL); throw exception(ORDER_EXTERNAL_WAREHOUSE_NOT_NULL);
...@@ -224,7 +232,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -224,7 +232,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
throw exception(ORDER_EXTERNAL_WAREHOUSE_ADDRESS_AND_LOADING_TIME_NOT_NULL); throw exception(ORDER_EXTERNAL_WAREHOUSE_ADDRESS_AND_LOADING_TIME_NOT_NULL);
} }
} else { } else {
if (Objects.isNull(createReqVO.getDeliveryDate()) && !Objects.equals(createReqVO.getStatus(), OrderStatusEnum.DRAFT.getValue())) { if (Objects.isNull(createReqVO.getDeliveryDate()) &&
!Objects.equals(createReqVO.getStatus(), OrderStatusEnum.DRAFT.getValue())) {
throw exception(ORDER_DELIVERY_DATE_NOT_NULL); throw exception(ORDER_DELIVERY_DATE_NOT_NULL);
} }
} }
...@@ -244,7 +253,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -244,7 +253,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
createReqVO.setCustomsClearCert(false); createReqVO.setCustomsClearCert(false);
createReqVO.setAirlineCompany(0L); createReqVO.setAirlineCompany(0L);
} }
List<OrderItemDO> orderItemDOList = createReqVO.getOrderItemVOList().stream().map(OrderItemConvert.INSTANCE::convert).collect(Collectors.toList()); List<OrderItemDO> orderItemDOList =
createReqVO.getOrderItemVOList().stream().map(
OrderItemConvert.INSTANCE::convert).collect(Collectors.toList());
// 插入 // 插入
OrderDO order = OrderConvert.INSTANCE.convert(createReqVO); OrderDO order = OrderConvert.INSTANCE.convert(createReqVO);
if (3 == createReqVO.getDrawee()) { if (3 == createReqVO.getDrawee()) {
...@@ -326,7 +337,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -326,7 +337,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
String[] packageTypes = order.getPackageType().split(StrUtil.COMMA); String[] packageTypes = order.getPackageType().split(StrUtil.COMMA);
List<OrderSpecialNeedCreateReqVO> createReqVOList = new ArrayList<>(); List<OrderSpecialNeedCreateReqVO> createReqVOList = new ArrayList<>();
for (String packageType : packageTypes) { for (String packageType : packageTypes) {
OrderSpecialNeedCreateReqVO reqVO = new OrderSpecialNeedCreateReqVO(); OrderSpecialNeedCreateReqVO reqVO =
new OrderSpecialNeedCreateReqVO();
reqVO.setOrderId(order.getOrderId()); reqVO.setOrderId(order.getOrderId());
reqVO.setAdvanceType(packageType); reqVO.setAdvanceType(packageType);
reqVO.setTransFee(BigDecimal.ZERO); reqVO.setTransFee(BigDecimal.ZERO);
...@@ -340,7 +352,11 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -340,7 +352,11 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if (Objects.isNull(memberUserDO) || null == createReqVO.getUserId()) { if (Objects.isNull(memberUserDO) || null == createReqVO.getUserId()) {
// admin添加的订单 // admin添加的订单
this.adminSaveConsignorAndConsignee(createReqVO, order, creator, now, dictDataRespDTO); this.adminSaveConsignorAndConsignee(createReqVO,
order,
creator,
now,
dictDataRespDTO);
} else { } else {
// app-web添加的订单 // app-web添加的订单
this.appSaveConsignorAndConsignee(createReqVO, order, this.appSaveConsignorAndConsignee(createReqVO, order,
...@@ -359,13 +375,18 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -359,13 +375,18 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
// 插入订单商品项 // 插入订单商品项
orderBusinessService.costCalculation(creator, order, createReqVO.getConsignorId(), createReqVO.getConsigneeId(), orderBusinessService.costCalculation(creator,
createReqVO.getConsignorContactsId(), createReqVO.getConsigneeContactsId(), orderItemDOList, type); order, createReqVO.getConsignorId(),
createReqVO.getConsigneeId(),
createReqVO.getConsignorContactsId(),
createReqVO.getConsigneeContactsId(),
orderItemDOList, type);
// 如果报价单id不为空,则表示此订单关联报价单 // 如果报价单id不为空,则表示此订单关联报价单
if (Objects.nonNull(createReqVO.getOfferId()) && if (Objects.nonNull(createReqVO.getOfferId()) &&
createReqVO.getOfferId() > 0L) { createReqVO.getOfferId() > 0L) {
applicationContext.publishEvent( applicationContext.publishEvent(
new OfferAssociationOrderEvent(createReqVO.getOfferId(), new OfferAssociationOrderEvent(createReqVO.getOfferId(),
order.getOrderId(), order.getOrderId(),
...@@ -437,9 +458,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -437,9 +458,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
customerCreditLogService.sendPackageCreditLog(createReqVO.getConsignorContactsId(), order.getOrderId(), order.getOrderNo()); customerCreditLogService.sendPackageCreditLog(createReqVO.getConsignorContactsId(), order.getOrderId(), order.getOrderNo());
// 创建订单操作日志 // 创建订单操作日志
orderBusinessService.addOrderOperateLog(order.getOrderId(), "新建订单", null); orderBusinessService.addOrderOperateLog(order.getOrderId(),
"新建订单", null);
//lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型 //在创建完订单号,计算订单业绩类型
CalculateOrderYeJiTypeEvent even = new CalculateOrderYeJiTypeEvent(); CalculateOrderYeJiTypeEvent even = new CalculateOrderYeJiTypeEvent();
even.setOrderId(order.getOrderId()); even.setOrderId(order.getOrderId());
applicationContext.publishEvent(even); applicationContext.publishEvent(even);
......
...@@ -302,7 +302,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI ...@@ -302,7 +302,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
} }
/* /*
创建入仓记录 lanbm 2024-05-28添加注释 创建入仓记录
*/ */
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
......
...@@ -39,13 +39,15 @@ public class AirOrderPriceRefreshJob implements JobHandler { ...@@ -39,13 +39,15 @@ public class AirOrderPriceRefreshJob implements JobHandler {
transportIdList.add(3); transportIdList.add(3);
} }
// 获取空运需要每日定时刷新价格的订单列表(待入仓、入仓中、已入仓-待出空运订单) // 获取空运需要每日定时刷新价格的订单列表(待入仓、入仓中、已入仓-待出空运订单)
List<OrderDO> orderDOList = orderQueryService.getAirRefreshOrderPrice(transportIdList); List<OrderDO> orderDOList =
orderQueryService.getAirRefreshOrderPrice(transportIdList);
if (CollectionUtil.isNotEmpty(orderDOList)) { if (CollectionUtil.isNotEmpty(orderDOList)) {
log.info("开始刷新空运订单价格..."); log.info("开始刷新空运订单价格...");
int num = 0; int num = 0;
for (OrderDO orderDO : orderDOList) { for (OrderDO orderDO : orderDOList) {
// if (orderDO.getStatus() == 2 || orderDO.getStatus() == 3 || (orderDO.getStatus() == 5 && orderDO.getAirShipment() == 1)) { // if (orderDO.getStatus() == 2 || orderDO.getStatus() == 3 || (orderDO.getStatus() == 5 && orderDO.getAirShipment() == 1)) {
if (orderDO.getStatus() == 2 || orderDO.getStatus() == 3 || orderDO.getStatus() == 5) { if (orderDO.getStatus() == 2 || orderDO.getStatus() == 3 ||
orderDO.getStatus() == 5) {
orderBusinessService.airOrderPriceRefresh(orderDO); orderBusinessService.airOrderPriceRefresh(orderDO);
num++; num++;
} }
......
...@@ -1440,7 +1440,11 @@ ...@@ -1440,7 +1440,11 @@
</if> </if>
<if test="query.salesmanId != null "> <if test="query.salesmanId != null ">
AND (o.`salesman_id` = #{query.salesmanId} or o.`customer_id` in(select cus.id from ecw_customer cus where cus.is_customer_service_confirmed = 1 and cus.customer_service = #{query.salesmanId} )) AND (o.`salesman_id` = #{query.salesmanId} or
o.`customer_id` in(
select cus.id from ecw_customer cus
where cus.is_customer_service_confirmed =
1 and cus.customer_service = #{query.salesmanId} ))
</if> </if>
...@@ -1623,7 +1627,8 @@ ...@@ -1623,7 +1627,8 @@
wi.`update_time` between #{query.beginWarehouseInTime} and #{query.endWarehouseInTime}) wi.`update_time` between #{query.beginWarehouseInTime} and #{query.endWarehouseInTime})
</if> </if>
<if test="query.creator != null and query.creator != '' "> <if test="query.creator != null and query.creator != '' ">
AND o.`creator` = #{query.creator} and (o.user_id is null or o.user_id = 0) <!--2024-06-28 我的订单,客户要去除创建人是本人,业绩归属是当前用户的订单-->
AND (o.`creator` = #{query.creator} or o.salesman_id=#{query.creator}) and (o.user_id is null or o.user_id = 0)
</if> </if>
<if test = 'query.cargoControlStatus != null and query.cargoControlStatus != 3'> <if test = 'query.cargoControlStatus != null and query.cargoControlStatus != 3'>
AND o.`cargo_control_status` = #{query.cargoControlStatus} AND o.`cargo_control_status` = #{query.cargoControlStatus}
......
...@@ -121,11 +121,9 @@ public class OrderController { ...@@ -121,11 +121,9 @@ public class OrderController {
@Resource @Resource
private RedisHelper redisHelper; private RedisHelper redisHelper;
//lanbm 2024-05-13 add
@Resource @Resource
private ApplicationContext applicationContext; private ApplicationContext applicationContext;
/** /**
* 订单修改操作的防重复提交缓存key * 订单修改操作的防重复提交缓存key
*/ */
...@@ -154,7 +152,7 @@ public class OrderController { ...@@ -154,7 +152,7 @@ public class OrderController {
} }
} }
//lanbm 2024-05-13 添加注释 member_user 注册会员用户 // member_user 注册会员用户
Long orderId = orderService.createOrder(createReqVO, Long orderId = orderService.createOrder(createReqVO,
null).getOrderId(); null).getOrderId();
return success(orderId); return success(orderId);
......
...@@ -46,7 +46,7 @@ public class ProdLinePriceController { ...@@ -46,7 +46,7 @@ public class ProdLinePriceController {
public CommonResult<CalculationCostResultDto> calculationProdCost( public CommonResult<CalculationCostResultDto> calculationProdCost(
@RequestBody ConditionParam param) { @RequestBody ConditionParam param) {
//lanbm 2024-06-20 记录的参数日志 //记录的参数日志
//String listToString = JSON.toJSONString(param); //String listToString = JSON.toJSONString(param);
//JsonUtils.SaveLog(listToString); //JsonUtils.SaveLog(listToString);
......
...@@ -344,22 +344,22 @@ public class DownloadLogServiceImpl extends AbstractService<DownloadLogMapper, D ...@@ -344,22 +344,22 @@ public class DownloadLogServiceImpl extends AbstractService<DownloadLogMapper, D
shipmentSummeryExcelExportPushEvent(downloadLog); shipmentSummeryExcelExportPushEvent(downloadLog);
break; break;
case SHIPMENT_SEA_PRELOAD_EXCEL_EXPORT: case SHIPMENT_SEA_PRELOAD_EXCEL_EXPORT:
//海运预装单导出,lanbm 2024-05-22 添加注释 //海运预装单导出
shipmentSeaPreloadExcelExportPushEvent(downloadLog); shipmentSeaPreloadExcelExportPushEvent(downloadLog);
break; break;
case SHIPMENT_AIR_LOAD_EXCEL_EXPORT: case SHIPMENT_AIR_LOAD_EXCEL_EXPORT:
//空运预装单 lanbm 2024-05-22 添加注释 //空运预装单
shipmentAirLoadExcelExportPushEvent(downloadLog); shipmentAirLoadExcelExportPushEvent(downloadLog);
break; break;
case ACHIEVEMENT_DETAIL_EXCEL_EXPORT: case ACHIEVEMENT_DETAIL_EXCEL_EXPORT:
achievementDetailExcelExportPushEvent(downloadLog); achievementDetailExcelExportPushEvent(downloadLog);
break; break;
case REPORT_CSSTOMER_ANALYSIS: case REPORT_CSSTOMER_ANALYSIS:
//客户分析报表 lanbm 2024-05-01 add //客户分析报表
REPORT_CSSTOMER_ANALYSIS_Event(downloadLog); REPORT_CSSTOMER_ANALYSIS_Event(downloadLog);
break; break;
case REPORT_SALES_ANALYSIS: case REPORT_SALES_ANALYSIS:
//销售分析报表 lanbm 2024-05-01 add //销售分析报表
REPORT_SALES_ANALYSIS_Event(downloadLog); REPORT_SALES_ANALYSIS_Event(downloadLog);
break; break;
default: default:
......
...@@ -34,7 +34,6 @@ public class PayableController { ...@@ -34,7 +34,6 @@ public class PayableController {
@ApiOperation("创建应付款") @ApiOperation("创建应付款")
//@PreAuthorize("@ss.hasPermission('ecw:payable:create')") //@PreAuthorize("@ss.hasPermission('ecw:payable:create')")
public CommonResult<Long> createPayable(@Valid @RequestBody PayableCreateReqVO createReqVO) { public CommonResult<Long> createPayable(@Valid @RequestBody PayableCreateReqVO createReqVO) {
//lanbm 2024-05-17 添加费用产生时间字段
String s=""; String s="";
return success(payableService.createPayable(createReqVO)); return success(payableService.createPayable(createReqVO));
} }
...@@ -80,7 +79,6 @@ public class PayableController { ...@@ -80,7 +79,6 @@ public class PayableController {
@ApiOperation("应付款分页列表,添加供应商未付款项列表 两个用这一个查询") @ApiOperation("应付款分页列表,添加供应商未付款项列表 两个用这一个查询")
//@PreAuthorize("@ss.hasPermission('ecw:payable:query')") //@PreAuthorize("@ss.hasPermission('ecw:payable:query')")
public CommonResult<PageResult<PayableOrderBackVo>> getPayablePage(@Valid PayableQueryVO query, PageVO page) { public CommonResult<PageResult<PayableOrderBackVo>> getPayablePage(@Valid PayableQueryVO query, PageVO page) {
//lanbm 2024-05-17 修改问题点
PageResult<PayableOrderBackVo> result = payableService.getPayablePage(query, page); PageResult<PayableOrderBackVo> result = payableService.getPayablePage(query, page);
return success(result); return success(result);
} }
......
...@@ -65,7 +65,6 @@ public class ReceivableController { ...@@ -65,7 +65,6 @@ public class ReceivableController {
@ApiImplicitParam(name = "id", value = "订单ID", required = true, example = "1024", dataTypeClass = Long.class) @ApiImplicitParam(name = "id", value = "订单ID", required = true, example = "1024", dataTypeClass = Long.class)
public CommonResult<List<ReceivableBackVO>> getReceivableListByOrderId( public CommonResult<List<ReceivableBackVO>> getReceivableListByOrderId(
@RequestParam("id") Long id) { @RequestParam("id") Long id) {
//lanbm 2024-06-20 添加注释
return success(receivableService.getReceivableListByOrderId(id)); return success(receivableService.getReceivableListByOrderId(id));
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="cn.iocoder.yudao.module.wealth.dal.mysql.receipt.ReceiptMapper"> <mapper namespace="cn.iocoder.yudao.module.wealth.dal.mysql.receipt.ReceiptMapper">
<select id="getReceiptBackPage" resultType="cn.iocoder.yudao.module.wealth.vo.receipt.ReceiptBackVO"> <select id="getReceiptBackPage" resultType="cn.iocoder.yudao.module.wealth.vo.receipt.ReceiptBackVO">
<!--lanbm 2024-05-29 添加关联订单和应收款表的关联--> <!--添加关联订单和应收款表的关联-->
select er.*,rb.order_no as orderNo,o.tidan_no as tidanNo, select er.*,rb.order_no as orderNo,o.tidan_no as tidanNo,
rb.order_id as orderId rb.order_id as orderId
from ecw_receipt er left join ecw_receivable rb from ecw_receipt er left join ecw_receivable rb
......
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