修改Mapper文件

dev_xds
lijun 2024-09-07 22:18:40 +08:00
parent 10274861ca
commit 4f59ca0038
7 changed files with 12 additions and 12 deletions

View File

@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosData" parameterType="DevPitmonitSouthsmosData" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDevPitmonitSouthsmosData" parameterType="PitmonitSouthsmosData" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>

View File

@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from dev_pitmonit_southsmos_device
</sql>
<select id="selectDevPitmonitSouthsmosDeviceList" parameterType="DevPitmonitSouthsmosDevice" resultMap="PitmonitSouthsmosDeviceResult">
<select id="selectDevPitmonitSouthsmosDeviceList" parameterType="PitmonitSouthsmosDevice" resultMap="PitmonitSouthsmosDeviceResult">
SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId,
sp.meName,sp.meNameEn,sp.name spName,sp.position spPosition,sp.groupName
FROM dev_pitmonit_southsmos_device a
@ -166,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosDevice" parameterType="DevPitmonitSouthsmosDevice">
<update id="updateDevPitmonitSouthsmosDevice" parameterType="PitmonitSouthsmosDevice">
update dev_pitmonit_southsmos_device
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>

View File

@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, cfgId, srvId, monitorElementId, name, step, unit, valueRange, gmtCreate, gmtModified, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_element_item
</sql>
<select id="selectDevPitmonitSouthsmosElementItemList" parameterType="DevPitmonitSouthsmosElementItem" resultMap="PitmonitSouthsmosElementItemResult">
<select id="selectDevPitmonitSouthsmosElementItemList" parameterType="PitmonitSouthsmosElementItem" resultMap="PitmonitSouthsmosElementItemResult">
<include refid="selectDevPitmonitSouthsmosElementItemVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosElementItem" parameterType="DevPitmonitSouthsmosElementItem" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDevPitmonitSouthsmosElementItem" parameterType="PitmonitSouthsmosElementItem" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_element_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>

View File

@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosElement" parameterType="DevPitmonitSouthsmosElement" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDevPitmonitSouthsmosElement" parameterType="PitmonitSouthsmosElement" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_element
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
@ -102,7 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosElement" parameterType="DevPitmonitSouthsmosElement">
<update id="updateDevPitmonitSouthsmosElement" parameterType="PitmonitSouthsmosElement">
update dev_pitmonit_southsmos_element
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>

View File

@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosSurveypoint" parameterType="DevPitmonitSouthsmosSurveypoint" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDevPitmonitSouthsmosSurveypoint" parameterType="PitmonitSouthsmosSurveypoint" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_surveypoint
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>

View File

@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, cfgId, srvId, alarmInfo, alarmName, intervalA, intervalB, level, monitorElementId, monitorItemId, monitorItemName, tgId, threshold, type, unit, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_threshold
</sql>
<select id="selectDevPitmonitSouthsmosThresholdList" parameterType="DevPitmonitSouthsmosThreshold" resultMap="PitmonitSouthsmosThresholdResult">
<select id="selectDevPitmonitSouthsmosThresholdList" parameterType="PitmonitSouthsmosThreshold" resultMap="PitmonitSouthsmosThresholdResult">
SELECT a.*,e.name AS elName,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId
FROM dev_pitmonit_southsmos_threshold a
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosThreshold" parameterType="DevPitmonitSouthsmosThreshold" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDevPitmonitSouthsmosThreshold" parameterType="PitmonitSouthsmosThreshold" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_threshold
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>

View File

@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
<select id="selectSurProjectPitMonitCfgList" parameterType="SurProjectPitMonitCfg" resultMap="ProjectPitMonitCfgResult">
<select id="selectSurProjectPitMonitCfgList" parameterType="ProjectPitMonitCfg" resultMap="ProjectPitMonitCfgResult">
<include refid="selectSurProjectPitMonitCfgVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
@ -52,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<insert id="insertSurProjectPitMonitCfg" parameterType="SurProjectPitMonitCfg" useGeneratedKeys="true" keyProperty="id">
<insert id="insertSurProjectPitMonitCfg" parameterType="ProjectPitMonitCfg" useGeneratedKeys="true" keyProperty="id">
insert into sur_project_pit_monit_cfg
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>