Commit f7b9c4e9 authored by wdy's avatar wdy

检测方案记录

parent dfdcac44
package com.ruoyi.domain;
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 java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
/**
*
* @TableName t_test_plan_record
*/
@TableName(value ="t_test_plan_record")
@Data
public class TTestPlanRecord implements Serializable {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long id;
/**
* 被检车企ID
*/
@TableField(value = "inspect_car_company_id")
private Long inspect_car_company_id;
/**
* 车辆型号
*/
@TableField(value = "car_model")
private String car_model;
/**
* 检测方案生成时间
*/
@TableField(value = "generation_time")
private Date generation_time;
/**
* 文件路径
*/
@TableField(value = "file_url")
private String file_url;
/**
* 测试结果
*/
@TableField(value = "test_result")
private String test_result;
/**
* 创建人
*/
@TableField(value = "create_by")
private String create_by;
/**
* 创建时间
*/
@TableField(value = "create_time")
private Date create_time;
/**
* 修改人
*/
@TableField(value = "update_by")
private String update_by;
/**
* 修改时间
*/
@TableField(value = "update_time")
private Date update_time;
/**
* 备注
*/
@TableField(value = "remark")
private String remark;
/**
* 检测机构id
*/
@TableField(value = "test_organization_id")
private Long test_organization_id;
/**
* 关联的检验项目逗号分隔id
*/
@TableField(value = "inspection_item")
private String inspection_item;
/**
* 关联的用例编号逗号分隔id
*/
@TableField(value = "use_case_no")
private Integer use_case_no;
/**
* 标准id
*/
@TableField(value = "inspection_standard_id")
private Long inspection_standard_id;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.ruoyi.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.TTestPlanRecord;
/**
* @author W_YI
* @description 针对表【t_test_plan_record】的数据库操作Mapper
* @createDate 2024-08-30 10:19:06
* @Entity com.ruoyi.domain.TTestPlanRecord
*/
public interface TTestPlanRecordMapper extends BaseMapper<TTestPlanRecord> {
}
package com.ruoyi.service;
import com.ruoyi.domain.TTestPlanRecord;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author W_YI
* @description 针对表【t_test_plan_record】的数据库操作Service
* @createDate 2024-08-30 10:19:52
*/
public interface TTestPlanRecordService extends IService<TTestPlanRecord> {
}
package com.ruoyi.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.domain.TTestPlanRecord;
import com.ruoyi.service.TTestPlanRecordService;
import com.ruoyi.mapper.TTestPlanRecordMapper;
import org.springframework.stereotype.Service;
/**
* @author W_YI
* @description 针对表【t_test_plan_record】的数据库操作Service实现
* @createDate 2024-08-30 10:19:52
*/
@Service
public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMapper, TTestPlanRecord>
implements TTestPlanRecordService{
}
<?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.ruoyi.mapper.TTestPlanRecordMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.domain.TTestPlanRecord">
<id property="id" column="id" jdbcType="BIGINT"/>
<result property="inspect_car_company_id" column="inspect_car_company_id" jdbcType="BIGINT"/>
<result property="car_model" column="car_model" jdbcType="VARCHAR"/>
<result property="generation_time" column="generation_time" jdbcType="TIMESTAMP"/>
<result property="file_url" column="file_url" jdbcType="VARCHAR"/>
<result property="test_result" column="test_result" jdbcType="VARCHAR"/>
<result property="create_by" column="create_by" jdbcType="VARCHAR"/>
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
<result property="update_by" column="update_by" jdbcType="VARCHAR"/>
<result property="update_time" column="update_time" jdbcType="TIMESTAMP"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="test_organization_id" column="test_organization_id" jdbcType="BIGINT"/>
<result property="inspection_item" column="inspection_item" jdbcType="VARCHAR"/>
<result property="use_case_no" column="use_case_no" jdbcType="INTEGER"/>
<result property="inspection_standard_id" column="inspection_standard_id" jdbcType="BIGINT"/>
</resultMap>
<sql id="Base_Column_List">
id,inspect_car_company_id,car_model,
generation_time,file_url,test_result,
create_by,create_time,update_by,
update_time,remark,test_organization_id,
inspection_item,use_case_no,inspection_standard_id
</sql>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment