检测报告-todo
This commit is contained in:
parent
4373fb4374
commit
a440eca381
|
@ -0,0 +1,78 @@
|
||||||
|
package com.dite.znpt.domain.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.dite.znpt.domain.AuditableEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Bear.G
|
||||||
|
* @date 2025/7/7/周一 16:59
|
||||||
|
* @description
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@TableName("inspection_report")
|
||||||
|
@ApiModel(value="InspectionReportEntity对象", description="检测报告表")
|
||||||
|
public class InspectionReportEntity extends AuditableEntity implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 6994234156669409533L;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("报告id")
|
||||||
|
@TableId(value = "report_id", type = IdType.ASSIGN_UUID)
|
||||||
|
private String reportId;
|
||||||
|
|
||||||
|
@ApiModelProperty("主标题")
|
||||||
|
@TableField("title")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@ApiModelProperty("副标题")
|
||||||
|
@TableField("sub_title")
|
||||||
|
private String subTitle;
|
||||||
|
|
||||||
|
@ApiModelProperty("报告日期")
|
||||||
|
@TableField("report_date")
|
||||||
|
private LocalDate reportDate;
|
||||||
|
|
||||||
|
@ApiModelProperty("检查日期")
|
||||||
|
@TableField("check_date")
|
||||||
|
private LocalDate checkDate;
|
||||||
|
|
||||||
|
@ApiModelProperty("检查位置")
|
||||||
|
@TableField("check_position")
|
||||||
|
private String checkPosition;
|
||||||
|
|
||||||
|
@ApiModelProperty("检查内容")
|
||||||
|
@TableField("check_content")
|
||||||
|
private String checkContent;
|
||||||
|
|
||||||
|
@ApiModelProperty("检查方式")
|
||||||
|
@TableField("check_method")
|
||||||
|
private String checkMethod;
|
||||||
|
|
||||||
|
@ApiModelProperty("检查人员id,多个人员英文逗号分隔")
|
||||||
|
@TableField("check_user_id")
|
||||||
|
private String checkUserId;
|
||||||
|
|
||||||
|
@ApiModelProperty("报告编制人员id")
|
||||||
|
@TableField("report_writer")
|
||||||
|
private String reportWriter;
|
||||||
|
|
||||||
|
@ApiModelProperty("报告复核人员id")
|
||||||
|
@TableField("report_reviewer")
|
||||||
|
private String reportReviewer;
|
||||||
|
|
||||||
|
@ApiModelProperty("报告审核人员id")
|
||||||
|
@TableField("report_auditor")
|
||||||
|
private String reportAuditor;
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.dite.znpt.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.dite.znpt.domain.entity.InspectionReportEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Bear.G
|
||||||
|
* @date 2025/7/7/周一 17:34
|
||||||
|
* @description
|
||||||
|
*/
|
||||||
|
public interface InspectionReportMapper extends BaseMapper<InspectionReportEntity> {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.dite.znpt.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.dite.znpt.domain.entity.InspectionReportEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Bear.G
|
||||||
|
* @date 2025/7/7/周一 17:42
|
||||||
|
* @description
|
||||||
|
*/
|
||||||
|
public interface InspectionReportService extends IService<InspectionReportEntity> {
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.dite.znpt.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.dite.znpt.domain.entity.InspectionReportEntity;
|
||||||
|
import com.dite.znpt.mapper.InspectionReportMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Bear.G
|
||||||
|
* @date 2025/7/7/周一 17:42
|
||||||
|
* @description
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class InspectionReportServiceImpl extends ServiceImpl<InspectionReportMapper, InspectionReportEntity> implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1460849450000057636L;
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.dite.znpt.mapper.InspectionReportMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.dite.znpt.web.controller;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Bear.G
|
||||||
|
* @date 2025/7/7/周一 17:43
|
||||||
|
* @description
|
||||||
|
*/
|
||||||
|
@Api(tags = "检查报告")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/inspection-report")
|
||||||
|
public class InspectionReportController {
|
||||||
|
}
|
Loading…
Reference in New Issue