订单计划管理(母工单为未新增已解决)

highway
wws 1 year ago
parent f44af65c4f
commit b6506a910c

@ -89,6 +89,8 @@ public class ProOrderServiceImpl implements IProOrderService {
// code // code
int endCode = getEndCode(product.getId()); int endCode = getEndCode(product.getId());
firWorkOrder.setWorkorderCode(product.getOrderCode()+"-"+endCode); firWorkOrder.setWorkorderCode(product.getOrderCode()+"-"+endCode);
// 更新到数据库
proOrderWorkorderMapper.insertProOrderWorkorder(firWorkOrder);
// 创建通用批次表对象 // 创建通用批次表对象
ProOrderWorkorderBatch workBatch = setCommonBatchAttribute(); ProOrderWorkorderBatch workBatch = setCommonBatchAttribute();
@ -152,7 +154,7 @@ public class ProOrderServiceImpl implements IProOrderService {
if (checkEnd == 0) { if (checkEnd == 0) {
firWorkOrder.setIsEnd(1); firWorkOrder.setIsEnd(1);
// 更新到数据库 // 更新到数据库
proOrderWorkorderMapper.insertProOrderWorkorder(firWorkOrder); proOrderWorkorderMapper.updateProOrderWorkorder(firWorkOrder);
} }
return success(); return success();
@ -277,11 +279,7 @@ public class ProOrderServiceImpl implements IProOrderService {
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public List<ProOrder> selectProOrderList(ProOrder proOrder) { public List<ProOrder> selectProOrderList(ProOrder proOrder) {
List<ProOrder> proOrderList = proOrderMapper.selectProOrderList(proOrder); return proOrderMapper.selectProOrderList(proOrder);
for (int i = 0; i < proOrderList.size(); i++) {
proOrderList.get(i).setStatus(changeStatus(proOrderList.get(i).getStatus()));
}
return proOrderList;
} }
/** /**
@ -462,22 +460,6 @@ public class ProOrderServiceImpl implements IProOrderService {
} }
} }
/**
*
*
* @param status
* @return
*/
private String changeStatus(String status) {
if (status.equals("o0")){
return "未拆分";
}
if (status.equals("o1")){
return "已拆分";
}
return status;
}
/** /**
* code * code
* @param id * @param id

Loading…
Cancel
Save