|
|
|
@ -24,12 +24,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="sync" column="sync"/>
|
|
|
|
|
<result property="workCenter" column="work_center"/>
|
|
|
|
|
<result property="workTime" column="work_time"/>
|
|
|
|
|
<result property="equipment" column="equipment"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectProProcessVo">
|
|
|
|
|
select process_id, process_code, process_name, attention,
|
|
|
|
|
enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time,
|
|
|
|
|
update_by, update_time,split_merge,split_merg_num,sync,work_center,work_time
|
|
|
|
|
update_by, update_time,split_merge,split_merg_num,sync,work_center,work_time,equipment
|
|
|
|
|
from pro_process
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -85,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="sync != null">sync,</if>
|
|
|
|
|
<if test="workCenter != null">work_center,</if>
|
|
|
|
|
<if test="workTime != null">work_time,</if>
|
|
|
|
|
<if test="equipment != null">equipment,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
#{processId},
|
|
|
|
@ -106,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="sync != null">#{sync},</if>
|
|
|
|
|
<if test="workCenter != null">#{workCenter},</if>
|
|
|
|
|
<if test="workTime != null">#{workTime},</if>
|
|
|
|
|
<if test="equipment != null">#{equipment},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateProProcess" parameterType="ProProcess">
|
|
|
|
@ -129,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="sync != null">sync = #{sync},</if>
|
|
|
|
|
<if test="workCenter != null">work_center = #{workCenter},</if>
|
|
|
|
|
<if test="workTime != null">work_time = #{workTime},</if>
|
|
|
|
|
<if test="equipment != null">equipment = #{equipment},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where process_id = #{processId}
|
|
|
|
|
</update>
|
|
|
|
|