|
|
@ -28,6 +28,8 @@ import com.yxt.wms.feign.message.MessageFeign; |
|
|
|
import com.yxt.wms.feign.message.MessageFlowVo; |
|
|
|
import com.yxt.wms.feign.message.MessageFlowableQuery; |
|
|
|
import com.yxt.wms.feign.portal.privilege.PrivilegeQuery; |
|
|
|
import com.yxt.wms.feign.portal.sysflowpower.SysFlowNodeQuery; |
|
|
|
import com.yxt.wms.feign.portal.sysflowpower.SysFlowPowerFeign; |
|
|
|
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.wms.feign.portal.sysuser.SysUserFeign; |
|
|
@ -66,6 +68,8 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
private MessageFeign messageFeign; |
|
|
|
@Autowired |
|
|
|
private SysUserRoleFeign sysUserRoleFeign; |
|
|
|
@Autowired |
|
|
|
private SysFlowPowerFeign sysFlowPowerFeign; |
|
|
|
|
|
|
|
public PagerVo<WmsInventoryAllocateBillVoNew> listPageVo(PagerQuery<WmsInventoryAllocateBillQueryNew> pq) { |
|
|
|
WmsInventoryAllocateBillQueryNew query = pq.getParams(); |
|
|
@ -646,6 +650,34 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
String createBySid = wmsInventoryAllocateBill.getCreateBySid(); |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
//成本折扣价
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(集团内不同分公司两一级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_9pm5umo8"); |
|
|
|
flowNodeQuery.setParameter("成本折扣价"); |
|
|
|
boolean f0 = false; |
|
|
|
boolean f1 = false; |
|
|
|
List<WmsInventoryAllocateBillDetailDtoNew> wmsInventoryAllocateBillDetailNewList = dto.getWmsInventoryAllocateBillDetailNewList(); |
|
|
|
for (WmsInventoryAllocateBillDetailDtoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocateBillDetailNewList) { |
|
|
|
flowNodeQuery.setNodeNames("调出方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
for (WmsInventoryAllocateBillDetailDtoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocateBillDetailNewList) { |
|
|
|
flowNodeQuery.setNodeNames("调入方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f1 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f1){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscdy",f0); |
|
|
|
variables.put("isrdy",f1); |
|
|
|
UserRoleQuery userRoleQuery = new UserRoleQuery(); |
|
|
|
if (list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")) { |
|
|
|
ResultBean<List<Map<String, Object>>> resultBean1 = flowTaskFeign.getNextNodesForSubmit(bv); |
|
|
@ -740,8 +772,34 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
String createBySid = wmsInventoryAllocateBill.getCreateBySid(); |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("iscdy", true); |
|
|
|
variables.put("isrdy", true); |
|
|
|
//成本折扣价
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(集团内不同分公司两一级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_9pm5umo8"); |
|
|
|
flowNodeQuery.setParameter("成本折扣价"); |
|
|
|
boolean f0 = false; |
|
|
|
boolean f1 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(businessSid); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调出方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调入方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f1 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f1){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscdy",f0); |
|
|
|
variables.put("isrdy",f1); |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", businessSid); |
|
|
|
variables.put("app", appMap); |
|
|
@ -817,8 +875,34 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
String createBySid = wmsInventoryAllocateBill.getCreateBySid(); |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("iscdy", true); |
|
|
|
variables.put("isrdy", true); |
|
|
|
//成本折扣价
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(集团内不同分公司两一级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_9pm5umo8"); |
|
|
|
flowNodeQuery.setParameter("成本折扣价"); |
|
|
|
boolean f0 = false; |
|
|
|
boolean f1 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调出方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调入方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f1 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f1){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscdy",f0); |
|
|
|
variables.put("isrdy",f1); |
|
|
|
bv.setModelId(wmsInventoryAllocateBill.getProcDefId()); |
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getPreviousNodesForReject(bv); |
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|
|
@ -838,8 +922,34 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
String createBySid = wmsInventoryAllocateBill.getCreateBySid(); |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("iscdy", true); |
|
|
|
variables.put("isrdy", true); |
|
|
|
//成本折扣价
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(集团内不同分公司两一级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_9pm5umo8"); |
|
|
|
flowNodeQuery.setParameter("成本折扣价"); |
|
|
|
boolean f0 = false; |
|
|
|
boolean f1 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调出方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调入方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f1 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f1){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscdy",f0); |
|
|
|
variables.put("isrdy",f1); |
|
|
|
bv.setModelId(wmsInventoryAllocateBill.getProcDefId()); |
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv); |
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|
|
@ -873,8 +983,34 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
String createBySid = wmsInventoryAllocateBill.getCreateBySid(); |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("iscdy", true); |
|
|
|
variables.put("isrdy", true); |
|
|
|
//成本折扣价
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(集团内不同分公司两一级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_9pm5umo8"); |
|
|
|
flowNodeQuery.setParameter("成本折扣价"); |
|
|
|
boolean f0 = false; |
|
|
|
boolean f1 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调出方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("调入方站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f1 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f1){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscdy",f0); |
|
|
|
variables.put("isrdy",f1); |
|
|
|
flowTaskVo.setValues(variables); |
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.taskReject(flowTaskVo); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
@ -939,7 +1075,24 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("ishz", true); |
|
|
|
variables.put("iscc", true); |
|
|
|
//超出二级配件库存累计金额
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(自有、合作二级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_hw0a2ybh"); |
|
|
|
flowNodeQuery.setParameter("超出二级配件库存累计金额"); |
|
|
|
boolean f0 = false; |
|
|
|
List<WmsInventoryAllocateBillDetailDtoNew> wmsInventoryAllocateBillDetailNewList = dto.getWmsInventoryAllocateBillDetailNewList(); |
|
|
|
for (WmsInventoryAllocateBillDetailDtoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocateBillDetailNewList) { |
|
|
|
flowNodeQuery.setNodeNames("合作二级站站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscc",f0); |
|
|
|
//用户的部门全路径sid
|
|
|
|
SysOrganizationVo sysOrganization = sysOrganizationFeign.fetchBySid(wmsInventoryAllocateBill.getDeptSid()).getData(); |
|
|
|
if (sysOrganization != null) { |
|
|
@ -1009,7 +1162,24 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("ishz", true); |
|
|
|
variables.put("iscc", true); |
|
|
|
//超出二级配件库存累计金额
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(自有、合作二级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_hw0a2ybh"); |
|
|
|
flowNodeQuery.setParameter("超出二级配件库存累计金额"); |
|
|
|
boolean f0 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(businessSid); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("合作二级站站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscc",f0); |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", businessSid); |
|
|
|
variables.put("app", appMap); |
|
|
@ -1063,7 +1233,24 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("ishz", true); |
|
|
|
variables.put("iscc", true); |
|
|
|
//超出二级配件库存累计金额
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(自有、合作二级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_hw0a2ybh"); |
|
|
|
flowNodeQuery.setParameter("超出二级配件库存累计金额"); |
|
|
|
boolean f0 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("合作二级站站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscc",f0); |
|
|
|
bv.setModelId(wmsInventoryAllocateBill.getProcDefId()); |
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getPreviousNodesForReject(bv); |
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|
|
@ -1084,7 +1271,24 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("ishz", true); |
|
|
|
variables.put("iscc", true); |
|
|
|
//超出二级配件库存累计金额
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(自有、合作二级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_hw0a2ybh"); |
|
|
|
flowNodeQuery.setParameter("超出二级配件库存累计金额"); |
|
|
|
boolean f0 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("合作二级站站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscc",f0); |
|
|
|
bv.setModelId(wmsInventoryAllocateBill.getProcDefId()); |
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv); |
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|
|
@ -1119,7 +1323,24 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|
|
|
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|
|
|
variables.put("ishz", true); |
|
|
|
variables.put("iscc", true); |
|
|
|
//超出二级配件库存累计金额
|
|
|
|
SysFlowNodeQuery flowNodeQuery = new SysFlowNodeQuery(); |
|
|
|
flowNodeQuery.setType(0); |
|
|
|
flowNodeQuery.setFlowName("调拨申请(自有、合作二级站间调拨)"); |
|
|
|
flowNodeQuery.setCreateOrgName(wmsInventoryAllocateBill.getCreateOrgName()); |
|
|
|
flowNodeQuery.setProcDefId("process_hw0a2ybh"); |
|
|
|
flowNodeQuery.setParameter("超出二级配件库存累计金额"); |
|
|
|
boolean f0 = false; |
|
|
|
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(businessSid); |
|
|
|
for (WmsInventoryAllocatebillDetailDetailsVoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocatebillDetailDetailsVoNews) { |
|
|
|
flowNodeQuery.setNodeNames("合作二级站站长审批"); |
|
|
|
flowNodeQuery.setValue(wmsInventoryAllocateBillDetailDtoNew.getTaxPrice().toString()); |
|
|
|
f0 = sysFlowPowerFeign.flowPermissions(flowNodeQuery); |
|
|
|
if (f0){ |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
variables.put("iscc",f0); |
|
|
|
flowTaskVo.setValues(variables); |
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.taskReject(flowTaskVo); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
@ -1149,7 +1370,6 @@ public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInven |
|
|
|
} else { |
|
|
|
messageFlowableQuery.setMsgContent(wmsInventoryAllocateBill.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|
|
|
} |
|
|
|
|
|
|
|
messageFlowableQuery.setMsgTitle("调拨申请"); |
|
|
|
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|
|
|
return rb.success(); |
|
|
|