|
|
|
@ -97,7 +97,10 @@ public class ProWhiteOrderServiceImpl implements IProWhiteOrderService {
|
|
|
|
|
proOrder.setStatus("o0");
|
|
|
|
|
proOrder.setQuantitySplit(0L);
|
|
|
|
|
proOrder.setOrderType(proOrder.getProdType());
|
|
|
|
|
proOrder.setOrderCode("DD" + DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSSsss, DateUtils.getNowDate()));
|
|
|
|
|
String bpDD = "DD" + DateUtils.parseDateToStr(DateUtils.YYYYMMDD, DateUtils.getNowDate());
|
|
|
|
|
int liushuiNum = proWhiteOrderMapper.getTodayMaxNum();
|
|
|
|
|
String liushuiStr = String.format("%04d", liushuiNum);
|
|
|
|
|
proOrder.setOrderCode(bpDD+liushuiStr);
|
|
|
|
|
proOrder.setCreateBy(SecurityContextHolder.getUserName());
|
|
|
|
|
proOrder.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
proOrder.setUpdateBy(SecurityContextHolder.getUserName());
|
|
|
|
@ -342,5 +345,8 @@ public class ProWhiteOrderServiceImpl implements IProWhiteOrderService {
|
|
|
|
|
proOrderWorkorder.setChildren(childWorkorders); // 设置子工单列表
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String args[]){
|
|
|
|
|
String formatted = String.format("%04d", 7);
|
|
|
|
|
System.out.println(formatted);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|