Parcourir la source

变更项目计算拆分编号

anderx il y a 3 ans
Parent
commit
68e1b1ffe0

+ 5 - 0
src/main/java/com/goafanti/order/service/impl/OrderChangeServiceImpl.java

@@ -1039,9 +1039,14 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
 						if (tid==null)tid=tChangeTaskMapper.selectByPrimaryKey(cd.getChangeSplitSuper()).getTid();
 						ot.setSplitSuper(tid);
 					}
+					//计算出拆分编号
+					Integer i = tOrderTaskMapper.getSplitCount(ot.getSplitSuper());
+					i++;
+					ot.setSplitId(i);
 				}
 				if (cd.getDeclarationBatch()!=null)ot.setDeclarationBatch(cd.getDeclarationBatch());
 				if (cd.getPatentType()!=null)ot.setPatentType(cd.getPatentType());
+
 				tOrderTaskMapper.insertSelective(ot);
 				InputAddTask inMid=new InputAddTask();
 				inMid.setId(ot.getId());