|
@@ -30,6 +30,7 @@ public class WrappingNode implements IRunBPMService {
|
|
|
|
|
|
@Override
|
|
|
public AjaxResult preValidation(IRunBPMEntity iRunBPMEntity) {
|
|
|
+ //修改销售单产品表状态为已完成
|
|
|
System.err.println(iRunBPMEntity.toString());
|
|
|
String id = iRunBPMEntity.getExecutionMap().get("taskPlanKey").toString();
|
|
|
CommonEntity commonEntity = new CommonEntity();
|
|
@@ -38,6 +39,27 @@ public class WrappingNode implements IRunBPMService {
|
|
|
commonEntity.getCommMap().put("status","6");
|
|
|
commonEntity.getCommMap().put("on_board_state","3");
|
|
|
commonService.edit(commonEntity);
|
|
|
+ //查询销售单所有货品是否全部生产完成,如果全部完成则修改状态为已完成,否则为生产中
|
|
|
+ //查询销售单产品详情
|
|
|
+// CommonEntity saleProducts = new CommonEntity();
|
|
|
+// saleProducts.getBasicMap().put("tableName","sale_products");
|
|
|
+// saleProducts.getConditionMap().put("id",id);
|
|
|
+// CommonEntity saleProductsInfo = commonService.getInfoById(commonEntity);
|
|
|
+// //根据销售单产品销售单号查询销售单详情
|
|
|
+// CommonEntity saleOrderParam = new CommonEntity();
|
|
|
+// saleOrderParam.getBasicMap().put("tableName","sale_order");
|
|
|
+// saleOrderParam.getConditionMap().put("sale_no",saleProductsInfo.getResultMap().get("saleOrderNo"));
|
|
|
+// CommonEntity saleOrderInfo = commonService.getInfoById(saleOrderParam);
|
|
|
+// //根据销售单编号查询所有货品信息,判断所有货品状态是否已经生产完,生产完修改销售单状态
|
|
|
+// CommonEntity saleProductsListParam = new CommonEntity();
|
|
|
+// saleProductsListParam.getBasicMap().put("tableName","sale_products");
|
|
|
+// saleProductsListParam.getConditionMap().put("sale_order_no",saleOrderInfo.getResultMap().get("sale_no"));
|
|
|
+// saleProductsListParam.getConditionMap().put("del_flag","0");
|
|
|
+// //得到当前销售单所有货品信息
|
|
|
+// List<CommonEntity> saleProductsList = commonService.selectList(saleProductsListParam);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//停止产线
|
|
|
CommonEntity commonEntity2 = new CommonEntity();
|
|
|
//查询销售产品信息
|