Commit 72fdc215 authored by lanbaoming's avatar lanbaoming

2024-06-13-4提交发布

parent b5225176
...@@ -34,12 +34,15 @@ public class BpmCreateServiceFactoryImpl implements BpmCreateServiceFactory { ...@@ -34,12 +34,15 @@ 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, new BpmProcessInstanceCreateReqDTO().setProcessDefinitionKey(workFlowKey).setVariables(processInstanceVariables).setBusinessKey(String.valueOf(orderFormId)).setCopyUserIds(copyUserId)); String processInstanceId =
processInstanceApi.createProcessInstance(userId,
new BpmProcessInstanceCreateReqDTO().setProcessDefinitionKey(workFlowKey).setVariables(processInstanceVariables).setBusinessKey(String.valueOf(orderFormId)).setCopyUserIds(copyUserId));
return processInstanceId; return processInstanceId;
} }
......
...@@ -2611,7 +2611,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2611,7 +2611,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
null, null,
orderItemDO.getProdId(), orderItemDO.getProdId(),
CollectionUtil.newArrayList(OrderExceptionEnum.GOODS_OVERWEIGHT_EXCEPTION.getKey(), OrderExceptionEnum.LINE_WEIGHT_EXCEPTION.getKey())); CollectionUtil.newArrayList(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();
...@@ -2647,7 +2647,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order ...@@ -2647,7 +2647,7 @@ 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());
} }*/
//end lanbm 2024-06-06 添加的逻辑点 //end lanbm 2024-06-06 添加的逻辑点
// 渠道重量超限异常 channel_packaging_overweight_exception // 渠道重量超限异常 channel_packaging_overweight_exception
......
...@@ -263,6 +263,9 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin ...@@ -263,6 +263,9 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
OrderDO orderDO = OrderDO orderDO =
orderService.selectOne(OrderDO::getOrderId, orderService.selectOne(OrderDO::getOrderId,
createReqVO.getOrderId()); createReqVO.getOrderId());
//lanbm 2024-06-13 取消流程的创建
/*
String bpmProcessId = String bpmProcessId =
bpmCreateServiceFactory.createBmp( bpmCreateServiceFactory.createBmp(
SecurityFrameworkUtils.getLoginUserId(), SecurityFrameworkUtils.getLoginUserId(),
...@@ -270,8 +273,8 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin ...@@ -270,8 +273,8 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
WorkFlowEmus.SHIPMENT_BILL_LADING.getKey(), WorkFlowEmus.SHIPMENT_BILL_LADING.getKey(),
orderDO.getOrderNo(), orderDO.getOrderNo(),
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
/* /*
......
...@@ -192,7 +192,8 @@ public class MakeBillOfLadingController { ...@@ -192,7 +192,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