Explorar el Código

modify:

1. 系统停用备案;
tags/24090101
WendyYang hace 2 meses
padre
commit
d830a2984a
Se han modificado 7 ficheros con 150 adiciones y 1 borrados
  1. +57
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/MhSystemReplaceInfoStoppedRecord.java
  2. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java
  3. +16
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.java
  4. +5
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.xml
  5. +35
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/dto/MhSystemStoppedRecordDTO.java
  6. +16
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/IMhSystemReplaceInfoStoppedRecordService.java
  7. +20
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/impl/MhSystemReplaceInfoStoppedRecordServiceImpl.java

+ 57
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/MhSystemReplaceInfoStoppedRecord.java Ver fichero

@@ -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;

}

+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java Ver fichero

@@ -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);


+ 16
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.java Ver fichero

@@ -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> {

}

+ 5
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/MhSystemReplaceInfoStoppedRecordMapper.xml Ver fichero

@@ -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>

+ 35
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/dto/MhSystemStoppedRecordDTO.java Ver fichero

@@ -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;

}

+ 16
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/IMhSystemReplaceInfoStoppedRecordService.java Ver fichero

@@ -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> {

}

+ 20
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/service/impl/MhSystemReplaceInfoStoppedRecordServiceImpl.java Ver fichero

@@ -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 {

}

Cargando…
Cancelar
Guardar