|
@@ -54,10 +54,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="devId" column="dev_id" />
|
|
|
<result property="hiType" column="hi_type" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
+ <result property="factoryNo" column="factory_no"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSpechiYlrqVo">
|
|
|
- select d.id, d.plant_code, d.unit, d.devname, d.devno, d.submitdate, d.status, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.approve_status, d.regno, d.useno, d.warn_date, d.warn_cycle, d.next_warn_date, d.warn_flag, d.plant_maint, d.engineer, d.vessel_type, d.is_key, d.create_unit, d.nation, d.out_size, d.material, d.medium, d.des_pressure, d.des_temp, d.opt_pressure, d.opt_temp, d.check_unit, d.report_no, d.is_danger, d.is_overlife, d.safe_class, d.approve_time, d.change_time, d.des_year, d.year_warn_date, d.check_conclusion, d.year_next_warn_date, d.year_report_no, d.dev_id, d.hi_type ,s.dept_name from t_spechi_ylrq d
|
|
|
+ select d.id, d.plant_code, d.unit, d.devname,d.factory_no, d.devno, d.submitdate, d.status, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.approve_status, d.regno, d.useno, d.warn_date, d.warn_cycle, d.next_warn_date, d.warn_flag, d.plant_maint, d.engineer, d.vessel_type, d.is_key, d.create_unit, d.nation, d.out_size, d.material, d.medium, d.des_pressure, d.des_temp, d.opt_pressure, d.opt_temp, d.check_unit, d.report_no, d.is_danger, d.is_overlife, d.safe_class, d.approve_time, d.change_time, d.des_year, d.year_warn_date, d.check_conclusion, d.year_next_warn_date, d.year_report_no, d.dev_id, d.hi_type ,s.dept_name from t_spechi_ylrq d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
@@ -184,7 +185,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="yearReportNo != null">year_report_no,</if>
|
|
|
<if test="devId != null">dev_id,</if>
|
|
|
<if test="hiType != null">hi_type,</if>
|
|
|
- </trim>
|
|
|
+ <if test="factoryNo != null">factory_no,</if>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="plantCode != null and plantCode != ''">#{plantCode},</if>
|
|
@@ -234,7 +236,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="yearReportNo != null">#{yearReportNo},</if>
|
|
|
<if test="devId != null">#{devId},</if>
|
|
|
<if test="hiType != null">#{hiType},</if>
|
|
|
- </trim>
|
|
|
+ <if test="factoryNo != null">#{factoryNo},</if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertTSpechiYlrqByDev" parameterType="com.ruoyi.project.sems.domain.TSpecdevYlrq">
|
|
@@ -291,6 +295,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="yearReportNo != null">year_report_no,</if>
|
|
|
<if test="devId != null">dev_id,</if>
|
|
|
<if test="hiType != null">hi_type,</if>
|
|
|
+ <if test="factoryNo != null">factory_no,</if>
|
|
|
+
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -341,6 +347,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="yearReportNo != null">#{yearReportNo},</if>
|
|
|
<if test="devId != null">#{devId},</if>
|
|
|
<if test="hiType != null">#{hiType},</if>
|
|
|
+ <if test="factoryNo != null">#{factoryNo},</if>
|
|
|
+
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -394,6 +402,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="yearReportNo != null">year_report_no = #{yearReportNo},</if>
|
|
|
<if test="devId != null">dev_id = #{devId},</if>
|
|
|
<if test="hiType != null">hi_type = #{hiType},</if>
|
|
|
+ <if test="factoryNo != null">factory_no = #{factoryNo},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|