|
|
@ -21,13 +21,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="routeVersion" column="route_version" />
|
|
|
|
<result property="routeVersion" column="route_version" />
|
|
|
|
<result property="needCheck" column="need_check" />
|
|
|
|
<result property="needCheck" column="need_check" />
|
|
|
|
|
|
|
|
<!--新增-->
|
|
|
|
|
|
|
|
<result property="tecMan" column="tec_man" />
|
|
|
|
|
|
|
|
<result property="tecMachine" column="tec_machine" />
|
|
|
|
|
|
|
|
<result property="tecOther" column="tec_other" />
|
|
|
|
|
|
|
|
<result property="tecDepreciation" column="tec_depreciation" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectProRouteVo">
|
|
|
|
<sql id="selectProRouteVo">
|
|
|
|
select route_id, route_code, route_name, route_desc, enable_flag, remark,
|
|
|
|
select route_id, route_code, route_name, route_desc, enable_flag, remark,
|
|
|
|
attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time,
|
|
|
|
attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time,
|
|
|
|
route_version,need_check
|
|
|
|
route_version,need_check,tec_man,tec_machine,tec_other,tec_depreciation
|
|
|
|
from pro_route
|
|
|
|
from pro_route
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
@ -59,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="checkRouteCodeUnique" parameterType="ProRoute" resultMap="ProRouteResult">
|
|
|
|
<select id="checkRouteCodeUnique" parameterType="ProRoute" resultMap="ProRouteResult">
|
|
|
|
select top 1 route_id, route_code, route_name, route_desc,
|
|
|
|
select top 1 route_id, route_code, route_name, route_desc,
|
|
|
|
enable_flag, remark, attr1, attr2, attr3, attr4,
|
|
|
|
enable_flag, remark, attr1, attr2, attr3, attr4,
|
|
|
|
create_by, create_time, update_by, update_time,need_check
|
|
|
|
create_by, create_time, update_by, update_time,need_check,tec_man,tec_machine,tec_other,tec_depreciation
|
|
|
|
from pro_route
|
|
|
|
from pro_route
|
|
|
|
where route_code = #{routeCode}
|
|
|
|
where route_code = #{routeCode}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -89,7 +93,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="routeVersion != null">route_version,</if>
|
|
|
|
<if test="routeVersion != null">route_version,</if>
|
|
|
|
<if test="needCheck != null">need_check,</if>
|
|
|
|
<if test="needCheck != null">need_check,</if>
|
|
|
|
|
|
|
|
-- 新增
|
|
|
|
|
|
|
|
<if test="tecMan != null">tec_man,</if>
|
|
|
|
|
|
|
|
<if test="tecMachine != null">tec_machine,</if>
|
|
|
|
|
|
|
|
<if test="tecOther != null">tec_other,</if>
|
|
|
|
|
|
|
|
<if test="tecDepreciation != null">tec_depreciation,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="routeId != null and routeId != ''">#{routeId},</if>
|
|
|
|
<if test="routeId != null and routeId != ''">#{routeId},</if>
|
|
|
@ -108,6 +116,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="routeVersion != null">#{routeVersion},</if>
|
|
|
|
<if test="routeVersion != null">#{routeVersion},</if>
|
|
|
|
<if test="needCheck != null">#{needCheck},</if>
|
|
|
|
<if test="needCheck != null">#{needCheck},</if>
|
|
|
|
|
|
|
|
-- 新增
|
|
|
|
|
|
|
|
<if test="tecMan != null">#{tecMan},</if>
|
|
|
|
|
|
|
|
<if test="tecMachine != null">#{tecMachine},</if>
|
|
|
|
|
|
|
|
<if test="tecOther != null">#{tecOther},</if>
|
|
|
|
|
|
|
|
<if test="tecDepreciation != null">#{tecDepreciation},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -129,6 +142,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="routeVersion != null">route_version = #{routeVersion},</if>
|
|
|
|
<if test="routeVersion != null">route_version = #{routeVersion},</if>
|
|
|
|
<if test="needCheck != null">need_check=#{needCheck},</if>
|
|
|
|
<if test="needCheck != null">need_check=#{needCheck},</if>
|
|
|
|
|
|
|
|
-- 新增
|
|
|
|
|
|
|
|
<if test="tecMan != null">tec_man = #{tecMan},</if>
|
|
|
|
|
|
|
|
<if test="tecMachine != null">tec_machine = #{tecMachine},</if>
|
|
|
|
|
|
|
|
<if test="tecOther != null">tec_other = #{tecOther},</if>
|
|
|
|
|
|
|
|
<if test="tecDepreciation != null">tec_depreciation=#{tecDepreciation},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where route_id = #{routeId}
|
|
|
|
where route_id = #{routeId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|