diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/MhSystemReplaceInfoStoppedRecord.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/MhSystemReplaceInfoStoppedRecord.java new file mode 100644 index 0000000..71c761b --- /dev/null +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/MhSystemReplaceInfoStoppedRecord.java @@ -0,0 +1,57 @@ +package com.hz.pm.api.projectlib.entity; + +import com.baomidou.mybatisplus.annotation.*; + +import java.io.Serializable; +import java.time.LocalDate; +import java.time.LocalDateTime; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 系统停用备案 + *

+ * + * @author WendyYang + * @since 2024-09-01 + */ +@Data +@TableName("MH_SYSTEM_REPLACE_INFO_STOPPED_RECORD") +@ApiModel(value = "MhSystemReplaceInfoStoppedRecord对象") +public class MhSystemReplaceInfoStoppedRecord { + + @TableId(type = IdType.AUTO) + private Long id; + + @ApiModelProperty("系统改造计划ID") + private String systemReplaceInfosId; + + @ApiModelProperty("停用时间") + private LocalDate stoppedDate; + + @ApiModelProperty("停用原因") + private String stoppedRemark; + + @ApiModelProperty("停用附件") + private String stoppedFile; + + @ApiModelProperty("创建人") + @TableField(fill = FieldFill.INSERT) + private Long createBy; + + @ApiModelProperty("创建时间") + @TableField(fill = FieldFill.INSERT) + private LocalDateTime createOn; + + @ApiModelProperty("修改人") + @TableField(fill = FieldFill.INSERT_UPDATE) + private Long updateBy; + + @ApiModelProperty("修改时间") + @TableField(fill = FieldFill.INSERT_UPDATE) + private LocalDateTime updateOn; + +} diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java index f9b659a..b5194f2 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java @@ -235,7 +235,7 @@ public class MhSystemReplaceManage { return; } MhSystemReplaceInfoStoppedRecord stoppedRecord = new MhSystemReplaceInfoStoppedRecord(); - BeanUtil.copyProperties(replaceInfo, stoppedRecord); + BeanUtil.copyProperties(req, stoppedRecord); mhSystemReplaceInfoStoppedRecordService.save(stoppedRecord); replaceInfo.setStopped(Boolean.TRUE); mhSystemReplaceInfoService.updateById(replaceInfo); diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.java new file mode 100644 index 0000000..a7e8c28 --- /dev/null +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.java @@ -0,0 +1,16 @@ +package com.hz.pm.api.projectlib.mapper; + +import com.hz.pm.api.projectlib.entity.MhSystemReplaceInfoStoppedRecord; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author WendyYang + * @since 2024-09-01 + */ +public interface MhSystemReplaceInfoStoppedRecordMapper extends BaseMapper { + +} diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.xml b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.xml new file mode 100644 index 0000000..d9e263b --- /dev/null +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/dto/MhSystemStoppedRecordDTO.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/dto/MhSystemStoppedRecordDTO.java new file mode 100644 index 0000000..688702f --- /dev/null +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/dto/MhSystemStoppedRecordDTO.java @@ -0,0 +1,35 @@ +package com.hz.pm.api.projectlib.model.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; +import java.time.LocalDate; + +/** + *

+ * 系统停用备案 + *

+ * + * @author WendyYang + * @since 2024-09-01 + */ +@Data +public class MhSystemStoppedRecordDTO { + + @ApiModelProperty("系统改造计划ID") + @NotEmpty(message = "系统改造计划ID不能为空") + private String systemReplaceInfosId; + + @ApiModelProperty("停用时间") + @NotNull(message = "停用时间不能为空") + private LocalDate stoppedDate; + + @ApiModelProperty("停用原因") + private String stoppedRemark; + + @ApiModelProperty("停用附件") + private String stoppedFile; + +} diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/IMhSystemReplaceInfoStoppedRecordService.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/IMhSystemReplaceInfoStoppedRecordService.java new file mode 100644 index 0000000..8fbfdf7 --- /dev/null +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/IMhSystemReplaceInfoStoppedRecordService.java @@ -0,0 +1,16 @@ +package com.hz.pm.api.projectlib.service; + +import com.hz.pm.api.projectlib.entity.MhSystemReplaceInfoStoppedRecord; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author WendyYang + * @since 2024-09-01 + */ +public interface IMhSystemReplaceInfoStoppedRecordService extends IService { + +} diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/impl/MhSystemReplaceInfoStoppedRecordServiceImpl.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/impl/MhSystemReplaceInfoStoppedRecordServiceImpl.java new file mode 100644 index 0000000..dcd8056 --- /dev/null +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/impl/MhSystemReplaceInfoStoppedRecordServiceImpl.java @@ -0,0 +1,20 @@ +package com.hz.pm.api.projectlib.service.impl; + +import com.hz.pm.api.projectlib.entity.MhSystemReplaceInfoStoppedRecord; +import com.hz.pm.api.projectlib.mapper.MhSystemReplaceInfoStoppedRecordMapper; +import com.hz.pm.api.projectlib.service.IMhSystemReplaceInfoStoppedRecordService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author WendyYang + * @since 2024-09-01 + */ +@Service +public class MhSystemReplaceInfoStoppedRecordServiceImpl extends ServiceImpl implements IMhSystemReplaceInfoStoppedRecordService { + +}