Преглед изворни кода

设备之系统——保养检修 BUG
提示选中的

hyq пре 1 година
родитељ
комит
cb3da82bd5

+ 2 - 1
cx-equipment/cx-equipment-common/src/main/java/com/rongwei/bscommon/sys/service/impl/MaintenanceServiceImpl.java

@@ -451,8 +451,9 @@ public class MaintenanceServiceImpl implements MaintenanceService {
             BeanUtils.copyProperties( maintenanceSchedule,equMaintenanceTask);
             BeanUtils.copyProperties( maintenancePart,equMaintenanceTask);
             equMaintenanceTask.setId(SecurityUtil.getUUID())
-                    .setMonth(month)
+                    .setMonth(month<10?"0"+month:String.valueOf(month))
                     .setCreateuserid(currentUser.getId())
+                    .setEquipmentnumber(maintenanceSchedule.getEquipmentnumber())
                     .setCreateusername(currentUser.getName())
                     .setCreatedate(newDate)
                     .setModifyuserid(currentUser.getId())

+ 2 - 2
cx-equipment/cx-equipment-entity/src/main/java/com/rongwei/bsentity/domain/EquMaintenanceTaskDo.java

@@ -1,9 +1,9 @@
 package com.rongwei.bsentity.domain;
 
 import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.NoArgsConstructor;
 import lombok.AllArgsConstructor;
 import lombok.Data;
+import lombok.NoArgsConstructor;
 import lombok.experimental.Accessors;
 
 import java.io.Serializable;
@@ -273,7 +273,7 @@ public class EquMaintenanceTaskDo implements Serializable {
 	 * table type:int
 	 * table comment:计划月份
 	 */
-	private Integer month;
+	private String month;
 
 	/**
 	 * table name:WORKSHOPID