Browse Source

1.修改编号

training
0.0 1 year ago
parent
commit
80a9a6a821
  1. 2
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java

2
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java

@ -1610,7 +1610,7 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
private String getQuestNum(String warehouseCode) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
return "PDRW-" + warehouseCode + "-" + simpleDateFormat.format(new Date()) + new Random().nextInt(900) + 100;
return "PDRW-" + warehouseCode + "-" + simpleDateFormat.format(new Date()) + String.format("%03d", new Random().nextInt(900) + 100);
}

Loading…
Cancel
Save