|
@@ -3,7 +3,7 @@
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.project.intact.mapper.TIntactHiGjMapper">
|
|
<mapper namespace="com.ruoyi.project.intact.mapper.TIntactHiGjMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="TIntactHiGj" id="TIntactHiGjResult">
|
|
<resultMap type="TIntactHiGj" id="TIntactHiGjResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="plantCode" column="plant_code" />
|
|
<result property="plantCode" column="plant_code" />
|
|
@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTIntactHiGjList" parameterType="TIntactHiGj" resultMap="TIntactHiGjResult">
|
|
<select id="selectTIntactHiGjList" parameterType="TIntactHiGj" resultMap="TIntactHiGjResult">
|
|
<include refid="selectTIntactHiGjVo"/>
|
|
<include refid="selectTIntactHiGjVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="plantCode != null and plantCode != ''"> and plant_code = #{plantCode}</if>
|
|
<if test="plantCode != null and plantCode != ''"> and plant_code = #{plantCode}</if>
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
<if test="devname != null and devname != ''"> and devname like concat(concat('%', #{devname}), '%')</if>
|
|
<if test="devname != null and devname != ''"> and devname like concat(concat('%', #{devname}), '%')</if>
|
|
@@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectTIntactHiGjById" parameterType="Long" resultMap="TIntactHiGjResult">
|
|
<select id="selectTIntactHiGjById" parameterType="Long" resultMap="TIntactHiGjResult">
|
|
<include refid="selectTIntactHiGjVo"/>
|
|
<include refid="selectTIntactHiGjVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -162,7 +162,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
and d.del_flag = 0
|
|
and d.del_flag = 0
|
|
</select>
|
|
</select>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertTIntactHiGj" parameterType="TIntactHiGj">
|
|
<insert id="insertTIntactHiGj" parameterType="TIntactHiGj">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
SELECT seq_t_intacthi_gj.NEXTVAL as id FROM DUAL
|
|
SELECT seq_t_intacthi_gj.NEXTVAL as id FROM DUAL
|
|
@@ -377,5 +377,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<update id="deleteTIntactHiGjByDevId" parameterType="Long">
|
|
<update id="deleteTIntactHiGjByDevId" parameterType="Long">
|
|
update t_intacthi_gj set del_flag = 2 where dev_id = #{devId} and hi_type = 1
|
|
update t_intacthi_gj set del_flag = 2 where dev_id = #{devId} and hi_type = 1
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+</mapper>
|