|
@@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<mapper namespace="com.ruoyi.project.base.mapper.TBasePointMapper">
|
|
|
|
|
|
<resultMap type="TBasePoint" id="TBasePointResult">
|
|
|
- <result property="id" column="id" />
|
|
|
+ <result property="pointId" column="point_id" />
|
|
|
<result property="netTestValue" column="net_test_value" />
|
|
|
<result property="leakageDegree" column="leakage_degree" />
|
|
|
<result property="plantId" column="plant_id" />
|
|
@@ -54,14 +54,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTBasePointVo">
|
|
|
- select id, net_test_value, leakage_degree, plant_id, region_id, dev_id, medium, medium_type, point_type, layer, group_position, point_position, group_code, extend_code, sub_point_type, dia, unarrive, unarrive_reason, keep_warm, temperature, pressure, run_time, pid_no, pid_url, pic_no, pic_url, toc_mark, methane_mark, vocs_mark, remarks, approve_status, approve_time, dept_id, del_flag, creater_code, createdate, updater_code, updatedate from t_base_point
|
|
|
+ select point_id, net_test_value, leakage_degree, plant_id, region_id, dev_id, medium, medium_type, point_type, layer, group_position, point_position, group_code, extend_code, sub_point_type, dia, unarrive, unarrive_reason, keep_warm, temperature, pressure, run_time, pid_no, pid_url, pic_no, pic_url, toc_mark, methane_mark, vocs_mark, remarks, approve_status, approve_time, dept_id, del_flag, creater_code, createdate, updater_code, updatedate from t_base_point
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTBasePointList" parameterType="TBasePoint" resultMap="TBasePointResult">
|
|
|
- select d.id, d.net_test_value, d.leakage_degree, d.plant_id,bp.plant_name,bp.plant_type,bp.plant_code, d.region_id,br.region_code,br.region_name, d.dev_id,bd.dev_code,bd.`dev_describe` dev_name,d.medium, d.medium_type, d.point_type, d.layer, d.group_position, d.point_position, d.group_code, d.extend_code, d.sub_point_type, d.dia, d.unarrive, d.unarrive_reason, d.keep_warm, d.temperature, d.pressure, d.run_time, d.pid_no, d.pid_url, d.pic_no, d.pic_url, d.toc_mark, d.methane_mark, d.vocs_mark, d.remarks, d.approve_status, d.approve_time, d.dept_id, d.del_flag, d.creater_code, d.createdate, su.user_name updater, d.updatedate from t_base_point d
|
|
|
+ select d.point_id, d.net_test_value, d.leakage_degree, d.plant_id,bp.plant_name,bp.plant_type,bp.plant_code, d.region_id,br.region_code,br.region_name, d.dev_id,bd.dev_code,bd.`dev_describe` dev_name,d.medium, d.medium_type, d.point_type, d.layer, d.group_position, d.point_position, d.group_code, d.extend_code, d.sub_point_type, d.dia, d.unarrive, d.unarrive_reason, d.keep_warm, d.temperature, d.pressure, d.run_time, d.pid_no, d.pid_url, d.pic_no, d.pic_url, d.toc_mark, d.methane_mark, d.vocs_mark, d.remarks, d.approve_status, d.approve_time, d.dept_id, d.del_flag, d.creater_code, d.createdate, su.user_name updater, d.updatedate from t_base_point d
|
|
|
left join sys_user su on su.user_id = d.updater_code
|
|
|
left join t_base_plant bp on bp.plant_id = d.plant_id
|
|
|
- left join t_base_region br on br.id = d.region_id
|
|
|
+ left join t_base_region br on br.region_id = d.region_id
|
|
|
left join t_base_device bd on bd.dev_id = d.dev_id
|
|
|
<where>
|
|
|
<if test="netTestValue != null "> and d.net_test_value = #{netTestValue}</if>
|
|
@@ -106,13 +106,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTBasePointById" parameterType="Long" resultMap="TBasePointResult">
|
|
|
<include refid="selectTBasePointVo"/>
|
|
|
- where id = #{id}
|
|
|
+ where point_id = #{pointId}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTBasePointByGroupCodeAndExtendCode" parameterType="TBasePoint" resultMap="TBasePointResult">
|
|
|
<include refid="selectTBasePointVo"/>
|
|
|
<where>
|
|
|
- <if test="id != null "> and id != #{id}</if>
|
|
|
+ <if test="pointId != null "> and point_id != #{pointId}</if>
|
|
|
<if test="plantId != null "> and plant_id = #{plantId}</if>
|
|
|
<if test="regionId != null "> and region_id = #{regionId}</if>
|
|
|
<if test="devId != null "> and dev_id = #{devId}</if>
|
|
@@ -245,17 +245,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
</trim>
|
|
|
- where id = #{id}
|
|
|
+ where point_id = #{pointId}
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteTBasePointById" parameterType="Long">
|
|
|
- update t_base_point set del_flag=1 where id = #{id}
|
|
|
+ update t_base_point set del_flag=1 where point_id = #{pointId}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteTBasePointByIds" parameterType="String">
|
|
|
- update t_base_point set del_flag=1 where id in
|
|
|
- <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
+ update t_base_point set del_flag=1 where point_id in
|
|
|
+ <foreach item="pointId" collection="array" open="(" separator="," close=")">
|
|
|
+ #{pointId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
</mapper>
|