@@ -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; | |||||
/** | |||||
* <p> | |||||
* 系统停用备案 | |||||
* </p> | |||||
* | |||||
* @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; | |||||
} |
@@ -235,7 +235,7 @@ public class MhSystemReplaceManage { | |||||
return; | return; | ||||
} | } | ||||
MhSystemReplaceInfoStoppedRecord stoppedRecord = new MhSystemReplaceInfoStoppedRecord(); | MhSystemReplaceInfoStoppedRecord stoppedRecord = new MhSystemReplaceInfoStoppedRecord(); | ||||
BeanUtil.copyProperties(replaceInfo, stoppedRecord); | |||||
BeanUtil.copyProperties(req, stoppedRecord); | |||||
mhSystemReplaceInfoStoppedRecordService.save(stoppedRecord); | mhSystemReplaceInfoStoppedRecordService.save(stoppedRecord); | ||||
replaceInfo.setStopped(Boolean.TRUE); | replaceInfo.setStopped(Boolean.TRUE); | ||||
mhSystemReplaceInfoService.updateById(replaceInfo); | mhSystemReplaceInfoService.updateById(replaceInfo); | ||||
@@ -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; | |||||
/** | |||||
* <p> | |||||
* Mapper 接口 | |||||
* </p> | |||||
* | |||||
* @author WendyYang | |||||
* @since 2024-09-01 | |||||
*/ | |||||
public interface MhSystemReplaceInfoStoppedRecordMapper extends BaseMapper<MhSystemReplaceInfoStoppedRecord> { | |||||
} |
@@ -0,0 +1,5 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | |||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
<mapper namespace="com.hz.pm.api.projectlib.mapper.MhSystemReplaceInfoStoppedRecordMapper"> | |||||
</mapper> |
@@ -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; | |||||
/** | |||||
* <p> | |||||
* 系统停用备案 | |||||
* </p> | |||||
* | |||||
* @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; | |||||
} |
@@ -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; | |||||
/** | |||||
* <p> | |||||
* 服务类 | |||||
* </p> | |||||
* | |||||
* @author WendyYang | |||||
* @since 2024-09-01 | |||||
*/ | |||||
public interface IMhSystemReplaceInfoStoppedRecordService extends IService<MhSystemReplaceInfoStoppedRecord> { | |||||
} |
@@ -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; | |||||
/** | |||||
* <p> | |||||
* 服务实现类 | |||||
* </p> | |||||
* | |||||
* @author WendyYang | |||||
* @since 2024-09-01 | |||||
*/ | |||||
@Service | |||||
public class MhSystemReplaceInfoStoppedRecordServiceImpl extends ServiceImpl<MhSystemReplaceInfoStoppedRecordMapper, MhSystemReplaceInfoStoppedRecord> implements IMhSystemReplaceInfoStoppedRecordService { | |||||
} |