委外保养定时任务-统一申领单号

highway
wws 12 months ago
parent b4a2f41311
commit 685bdc34bf

@ -276,7 +276,7 @@ public class DeviceTaskServiceImpl implements IDeviceTaskService {
for (EquPlanEquSpare spare : spares) { for (EquPlanEquSpare spare : spares) {
EquSpareApply apply = new EquSpareApply(); EquSpareApply apply = new EquSpareApply();
apply.setApplyId(IdUtils.fastSimpleUUID()); apply.setApplyId(IdUtils.fastSimpleUUID());
apply.setApplyCode("A"+orderCode+String.format("%03d",applySerialNum)); apply.setApplyCode("A"+orderCode+String.format("%02d",applySerialNum));
applySerialNum++; applySerialNum++;
apply.setSpareCode(spare.getMaterialCode()); apply.setSpareCode(spare.getMaterialCode());
apply.setSpareName(spare.getMaterialDesc()); apply.setSpareName(spare.getMaterialDesc());

Loading…
Cancel
Save