|
|
@@ -659,10 +659,10 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
|
|
|
public int pushSplitProject(Integer tid, String splitList) {
|
|
|
String[] str=splitList.split(",");
|
|
|
TOrderTask task=tOrderTaskMapper.selectByPrimaryKey(tid);
|
|
|
+ checkDeleteSign(task.getOrderNo());
|
|
|
TOrderTask usedTask=new TOrderTask();
|
|
|
usedTask.setId(tid);
|
|
|
usedTask.setSplitStatus(1);
|
|
|
- tOrderTaskMapper.updateByPrimaryKeySelective(usedTask);
|
|
|
//计算拆分数量
|
|
|
Integer x=0;
|
|
|
for (String string : str) {
|
|
|
@@ -671,6 +671,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
|
|
|
if (!task.getCommodityQuantity().equals(x)||str.length==1) {
|
|
|
return -1;
|
|
|
}
|
|
|
+ tOrderTaskMapper.updateByPrimaryKeySelective(usedTask);
|
|
|
int i=1;
|
|
|
TOrderTask newTask=task;
|
|
|
newTask.setCommodityPrice(new BigDecimal(0));
|