diff --git a/common/src/main/java/com/foreverwin/mesnac/common/util/DateUtil.java b/common/src/main/java/com/foreverwin/mesnac/common/util/DateUtil.java index d452f7e3..be51b7da 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/util/DateUtil.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/util/DateUtil.java @@ -688,6 +688,6 @@ public class DateUtil int second = calendar.get(Calendar.SECOND); int msec = calendar.get(Calendar.MILLISECOND); - return String.valueOf(year) + String.valueOf(month) + String.valueOf(day) + String.valueOf(hour) + String.valueOf(minute) + String.valueOf(second) + String.valueOf(msec); + return String.valueOf(year) + String.valueOf(month) + String.valueOf(day) + String.valueOf(hour) + String.valueOf(minute) + String.valueOf(second); } } \ No newline at end of file diff --git a/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java b/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java index 6747e03b..19ebf9ef 100644 --- a/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java +++ b/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java @@ -208,7 +208,7 @@ public class InspectionTaskManageServiceImpl implements InspectionTaskManageServ String newTaskNo = "H_" + DateUtil.getTimeString(); String handle = HandleEnum.INSPECTION_TASK.getHandle(site, newTaskNo); newInspectionTask.setHandle(handle); - newInspectionTask.setTaskNo(taskNo); + newInspectionTask.setTaskNo(newTaskNo); newInspectionTask.setStatus(Constants.INSPECTION_TASK_STATUS_NEW); newInspectionTask.setResult(null); newInspectionTask.setComments(null);