|
@@ -26,11 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="taskNodeKey" column="task_node_key" />
|
|
|
<result property="teamName" column="team_name" />
|
|
|
<result property="teamCode" column="team_code" />
|
|
|
+ <result property="stationType" column="station_type"></result>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectStationInformationVo">
|
|
|
select id, station_code, station_name, personnel_id, personnel_name, device_id, device_name, remark, create_by_id, create_by,
|
|
|
- create_time, update_by_id, update_by, update_time, del_flag, data_approval_status, process_key, task_process_key, task_node_key,team_name,team_code
|
|
|
+ create_time, update_by_id, update_by, update_time, del_flag, data_approval_status, process_key, task_process_key, task_node_key,team_name,team_code,station_type
|
|
|
from fjqydb.station_information
|
|
|
</sql>
|
|
|
|
|
@@ -56,7 +57,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
si.task_process_key,
|
|
|
si.task_node_key,
|
|
|
ti.team_name as team_name ,
|
|
|
- si.team_code
|
|
|
+ si.team_code,
|
|
|
+ si.station_type
|
|
|
from fjqydb.station_information as si
|
|
|
left join fjqydb.team_information as ti
|
|
|
on (si.team_code=ti.team_code)
|
|
@@ -75,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskNodeKey != null and taskNodeKey != ''"> and si.task_node_key = #{taskNodeKey}</if>
|
|
|
<if test="teamName != null and teamName != ''"> and ti.team_name = #{teamName}</if>
|
|
|
<if test="teamCode != null and teamCode != ''"> and si.team_code = #{teamCode}</if>
|
|
|
+ <if test="stationType!=null and stationType!=''">and si.station_type=#{stationType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -105,7 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskProcessKey != null">task_process_key,</if>
|
|
|
<if test="taskNodeKey != null">task_node_key,</if>
|
|
|
<if test="teamName != null and teamName != ''">team_name,</if>
|
|
|
- <if test="teamCode != null and teamCode != ''">team_code</if>
|
|
|
+ <if test="teamCode != null and teamCode != ''">team_code,</if>
|
|
|
+ <if test="stationType!=null and stationType!=''">station_type</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="stationCode != null">#{stationCode},</if>
|
|
@@ -127,7 +131,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskProcessKey != null">#{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">#{taskNodeKey},</if>
|
|
|
<if test="teamName != null and teamName != ''">#{teamName},</if>
|
|
|
- <if test="teamCode != null and teamCode != ''">#{teamCode}</if>
|
|
|
+ <if test="teamCode != null and teamCode != ''">#{teamCode},</if>
|
|
|
+ <if test="stationType!=null and stationType!=''">#{stationType}</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -152,7 +157,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="processKey != null">process_key = #{processKey},</if>
|
|
|
<if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
- <if test="teamName != null and teamName != ''">team_name=#{teamName}</if>
|
|
|
+ <if test="teamName != null and teamName != ''">team_name=#{teamName},</if>
|
|
|
+ <if test="stationType!=null and stationType!=''">station_type=#{stationType}</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -179,6 +185,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
<if test="teamName != null">team_name=#{teamName},</if>
|
|
|
<if test="teamCode != null">team_code=#{teamCode},</if>
|
|
|
+ <if test="stationType!=null and teamCode != ''">station_type=#{stationType}</if>
|
|
|
</trim>
|
|
|
where station_code = #{stationCode}
|
|
|
</update>
|
|
@@ -206,7 +213,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
<if test="teamName != null and teamName != ''">team_name=#{teamName},</if>
|
|
|
- <if test="teamCode != null and teamCode != ''">team_code=#{teamCode}</if>
|
|
|
+ <if test="teamCode != null and teamCode != ''">team_code=#{teamCode},</if>
|
|
|
+ <if test="stationType!=null and teamCode != ''">station_type=#{stationType}</if>
|
|
|
</trim>
|
|
|
where device_name = #{deviceName}
|
|
|
</update>
|