Commit 52c72085 authored by lanbaoming's avatar lanbaoming

Merge branch 'dev'

# Conflicts:
#	yudao-module-bpm/yudao-module-bpm-base/src/main/java/cn/iocoder/yudao/module/bpm/service/BpmCreateServiceFactoryImpl.java
#	yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
#	yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
parents cf0ca276 72fdc215
...@@ -34,12 +34,14 @@ public class BpmCreateServiceFactoryImpl implements BpmCreateServiceFactory { ...@@ -34,12 +34,14 @@ public class BpmCreateServiceFactoryImpl implements BpmCreateServiceFactory {
* @param copyUserId 抄送人列表,不需要传null * @param copyUserId 抄送人列表,不需要传null
* @return 流程实例ID,需回写到表单对象中 * @return 流程实例ID,需回写到表单对象中
*/ */
public String createBmp(Long userId, Long orderFormId, String workFlowKey, String businessNo, String[] copyUserId) { public String createBmp(Long userId, Long orderFormId, String workFlowKey,
String businessNo, String[] copyUserId) {
Map<String, Object> processInstanceVariables = new HashMap<>(); Map<String, Object> processInstanceVariables = new HashMap<>();
if (StrUtil.isNotBlank(businessNo)) { if (StrUtil.isNotBlank(businessNo)) {
processInstanceVariables.put("businessNo", businessNo); processInstanceVariables.put("businessNo", businessNo);
} }
String processInstanceId = processInstanceApi.createProcessInstance(userId, String processInstanceId =
processInstanceApi.createProcessInstance(userId,
new BpmProcessInstanceCreateReqDTO().setProcessDefinitionKey(workFlowKey).setVariables(processInstanceVariables).setBusinessKey(String.valueOf(orderFormId)).setCopyUserIds(copyUserId)); new BpmProcessInstanceCreateReqDTO().setProcessDefinitionKey(workFlowKey).setVariables(processInstanceVariables).setBusinessKey(String.valueOf(orderFormId)).setCopyUserIds(copyUserId));
return processInstanceId; return processInstanceId;
} }
......
...@@ -2226,8 +2226,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2226,8 +2226,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
// 没有待处理的清关费未报价异常,则需要生成 // 没有待处理的清关费未报价异常,则需要生成
//生成清关费异常 lanbm 2024-06-06 添加参数type=6,是处理价格异常 //生成清关费异常 lanbm 2024-06-06 添加参数type=6,是处理价格异常
noQuoteOrAutomaticNoQuote = noQuoteOrAutomaticNoQuote =
this.createClearanceFeeNoQuiteException( this.createClearanceFeeNoQuiteException(orderDO,
orderDO,
noQuoteOrAutomaticNoQuote, noQuoteOrAutomaticNoQuote,
orderItemDO, type); orderItemDO, type);
// 这里可能因为自动处理未报价异常(包括未报价清关费异常)时, // 这里可能因为自动处理未报价异常(包括未报价清关费异常)时,
...@@ -2443,7 +2442,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2443,7 +2442,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
} }
//lanbm 2024-06-06 添加的逻辑点 //lanbm 2024-06-06 添加的逻辑点
*/ */
noQuoteOrAutomaticNoQuote=1;
if (orderItemDO.getItemStatus() == -1 && !orderItemDO.getIsProd()) { if (orderItemDO.getItemStatus() == -1 && !orderItemDO.getIsProd()) {
if (CollectionUtil.isEmpty(orderNoQuoteExceptionDOList)) { if (CollectionUtil.isEmpty(orderNoQuoteExceptionDOList)) {
...@@ -2608,22 +2607,16 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2608,22 +2607,16 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
// 查询是否有重量超限异常,如果有则不生成清关费异常 // 查询是否有重量超限异常,如果有则不生成清关费异常
// TODO 查询是否有重量超限异常和渠道包装重量超限异常,如果有则不生成清关费异常 // TODO 查询是否有重量超限异常和渠道包装重量超限异常,如果有则不生成清关费异常
List<OrderExceptionDO> goodsOverweightExceptionDOList = List<OrderExceptionDO> goodsOverweightExceptionDOList =
orderExceptionService.getPendingOrderExceptionByOrderIdAndOrderItemIdAndProdIdAndExceptionKeys( orderExceptionService.getPendingOrderExceptionByOrderIdAndOrderItemIdAndProdIdAndExceptionKeys(orderDO.getOrderId(),
orderDO.getOrderId(),
null, null,
orderItemDO.getProdId(), orderItemDO.getProdId(),
CollectionUtil.newArrayList( CollectionUtil.newArrayList(OrderExceptionEnum.GOODS_OVERWEIGHT_EXCEPTION.getKey(), OrderExceptionEnum.LINE_WEIGHT_EXCEPTION.getKey()));
OrderExceptionEnum.GOODS_OVERWEIGHT_EXCEPTION.getKey(),
OrderExceptionEnum.LINE_WEIGHT_EXCEPTION.getKey()));
/* /*
String s = "type=" + type.toString() + " TransportId=" + String s = "type=" + type.toString() + " TransportId=" +
orderDO.getTransportId().toString() + orderDO.getTransportId().toString() +
" NeedOrderInquiry=" + orderItemDO.getNeedOrderInquiry().toString(); " NeedOrderInquiry=" + orderItemDO.getNeedOrderInquiry().toString();
//lanbm 2024-06-06 添加的逻辑点 //lanbm 2024-06-06 添加的逻辑点
//空运,单询价
if (orderDO.getTransportId() == 3 if (orderDO.getTransportId() == 3
&& orderItemDO.getNeedOrderInquiry() == 1) { && orderItemDO.getNeedOrderInquiry() == 1) {
...@@ -2635,8 +2628,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2635,8 +2628,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
OrderExceptionEnum.CUSTOMS_FEE_NOT_QUOTE_EXCEPTION.getKey()); OrderExceptionEnum.CUSTOMS_FEE_NOT_QUOTE_EXCEPTION.getKey());
if (CollectionUtil.isNotEmpty(orderClearanceFeeNoQuoteExceptionDOList)) { if (CollectionUtil.isNotEmpty(orderClearanceFeeNoQuoteExceptionDOList)) {
// 当其他业务补充了品名空运清关费价格后, // 当其他业务补充了品名空运清关费价格后,如果还有待处理的清关费未报价异常,需要同步处理掉
// 如果还有待处理的清关费未报价异常,需要同步处理掉
orderExceptionService.autoProcessException(orderDO.getOrderId(), orderExceptionService.autoProcessException(orderDO.getOrderId(),
orderItemDO.getOrderItemId(), orderItemDO.getOrderItemId(),
OrderExceptionEnum.CUSTOMS_FEE_NOT_QUOTE_EXCEPTION, OrderExceptionEnum.CUSTOMS_FEE_NOT_QUOTE_EXCEPTION,
...@@ -2655,7 +2647,6 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2655,7 +2647,6 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
zTest z = new zTest(); zTest z = new zTest();
z.setTestname(s); z.setTestname(s);
z.setCreatedate(new Date()); z.setCreatedate(new Date());
zTestMapper.insert(z);
}*/ }*/
//end lanbm 2024-06-06 添加的逻辑点 //end lanbm 2024-06-06 添加的逻辑点
...@@ -2670,7 +2661,6 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2670,7 +2661,6 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
orderItemDO.getOrderItemId(), orderItemDO.getOrderItemId(),
OrderExceptionEnum.CUSTOMS_FEE_NOT_QUOTE_EXCEPTION.getKey()); OrderExceptionEnum.CUSTOMS_FEE_NOT_QUOTE_EXCEPTION.getKey());
//运费加清关价才生成清关费异常 lanbm 2024-06-06 添加注释 //运费加清关价才生成清关费异常 lanbm 2024-06-06 添加注释
//计费方式:0 运费/清关费 1 全包价
if (orderItemDO.getCharging() == 0 && if (orderItemDO.getCharging() == 0 &&
(Objects.isNull(orderItemDO.getOriginalClearanceFreight()) || (Objects.isNull(orderItemDO.getOriginalClearanceFreight()) ||
orderItemDO.getOriginalClearanceFreight().compareTo(BigDecimal.ZERO) == 0) orderItemDO.getOriginalClearanceFreight().compareTo(BigDecimal.ZERO) == 0)
...@@ -2716,7 +2706,6 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2716,7 +2706,6 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
} }
} }
return noQuoteOrAutomaticNoQuote; return noQuoteOrAutomaticNoQuote;
} }
private void createFeeChangeException(OrderDO orderDO, Integer type, BigDecimal oldFreightAndClearanceFee, BigDecimal newFreightAndClearanceFee) { private void createFeeChangeException(OrderDO orderDO, Integer type, BigDecimal oldFreightAndClearanceFee, BigDecimal newFreightAndClearanceFee) {
......
...@@ -218,8 +218,7 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin ...@@ -218,8 +218,7 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
if (null != createReqVO.getNeedBackend() && createReqVO.getNeedBackend()) { if (null != createReqVO.getNeedBackend() && createReqVO.getNeedBackend()) {
OrderDO orderDo = orderService.getById(createReqVO.getOrderId()); OrderDO orderDo = orderService.getById(createReqVO.getOrderId());
OrderObjectiveDO orderObjectiveDO = OrderObjectiveDO orderObjectiveDO = orderObjectiveService.getByOrderId(orderDo.getOrderId());
orderObjectiveService.getByOrderId(orderDo.getOrderId());
/*BoxDO box = boxService.getBox(shipmentId); /*BoxDO box = boxService.getBox(shipmentId);
...@@ -265,8 +264,8 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin ...@@ -265,8 +264,8 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
orderService.selectOne(OrderDO::getOrderId, orderService.selectOne(OrderDO::getOrderId,
createReqVO.getOrderId()); createReqVO.getOrderId());
//创建审批流 //lanbm 2024-06-13 取消流程的创建
/* lanbm 2024-06-13 不创建审批流程 /*
String bpmProcessId = String bpmProcessId =
bpmCreateServiceFactory.createBmp( bpmCreateServiceFactory.createBmp(
SecurityFrameworkUtils.getLoginUserId(), SecurityFrameworkUtils.getLoginUserId(),
...@@ -276,7 +275,6 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin ...@@ -276,7 +275,6 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
createReqVO.getCopyUserId()); createReqVO.getCopyUserId());
makeBillOfLading.setBpmProcessId(bpmProcessId); makeBillOfLading.setBpmProcessId(bpmProcessId);
*/ */
//lanbm 2024-05-24 修改为自动审批通过 //lanbm 2024-05-24 修改为自动审批通过
//ecw_make_bill_of_lading //ecw_make_bill_of_lading
/* /*
......
...@@ -193,7 +193,8 @@ public class MakeBillOfLadingController { ...@@ -193,7 +193,8 @@ public class MakeBillOfLadingController {
MakeBillOfLadingBackVO vResult = MakeBillOfLadingBackVO vResult =
MakeBillOfLadingConvert.INSTANCE.convert(lading); MakeBillOfLadingConvert.INSTANCE.convert(lading);
//前端是根据 status 来判断的,此处逻辑可以不用理会
//lanbm 2024-06-13 添加注释
if (lading.getBpmProcessId() == null || if (lading.getBpmProcessId() == null ||
lading.getBpmProcessId().length() == 0) { lading.getBpmProcessId().length() == 0) {
vResult.setBpmStatus("-1"); vResult.setBpmStatus("-1");
......
...@@ -76,4 +76,9 @@ public class ReceiptItemReq extends PageParam { ...@@ -76,4 +76,9 @@ public class ReceiptItemReq extends PageParam {
*/ */
private String accountNo; private String accountNo;
/*
审批状态 lanbm 2024-06-13 add
*/
private String status;
} }
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
<sql id="WherePage"> <sql id="WherePage">
<where> <where>
p.deleted=0 p.deleted=0
<if test="status != null and status != ''">
AND p.status=#{status}
</if>
<if test="accountNo != null and accountNo != ''"> <if test="accountNo != null and accountNo != ''">
AND p.account_no=#{accountNo} AND p.account_no=#{accountNo}
</if> </if>
...@@ -38,7 +41,7 @@ ...@@ -38,7 +41,7 @@
<!--收款明细提交审批日期--> <!--收款明细提交审批日期-->
<if test="sDate2 != null and sDate2 != '' and <if test="sDate2 != null and sDate2 != '' and
eDate2 != null and eDate2 != ''"> eDate2 != null and eDate2 != ''">
AND a.create_time BETWEEN #{sDate2} and #{eDate2}) AND a.create_time BETWEEN #{sDate2} and #{eDate2}
</if> </if>
<!--收款明细提交审批通过日期--> <!--收款明细提交审批通过日期-->
......
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