|
|
@ -20,15 +20,23 @@
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
|
|
|
<result property="length" column="length"/>
|
|
|
|
|
|
|
|
<result property="width" column="width"/>
|
|
|
|
|
|
|
|
<result property="height" column="height"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectMesBoxDetailVo">
|
|
|
|
<sql id="selectMesBoxDetailVo">
|
|
|
|
select box_code, box_sort, box_label, box_key, box_value, box_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark from mes_box_detail
|
|
|
|
select box_code, box_sort, box_label, box_key,
|
|
|
|
|
|
|
|
box_value, box_type, css_class, list_class,
|
|
|
|
|
|
|
|
is_default, status, create_by, create_time,
|
|
|
|
|
|
|
|
update_by, update_time, remark,
|
|
|
|
|
|
|
|
length, width, height from mes_box_detail
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMesBoxDetailList" parameterType="MesBoxDetail" resultMap="MesBoxDetailResult">
|
|
|
|
<select id="selectMesBoxDetailList" parameterType="MesBoxDetail" resultMap="MesBoxDetailResult">
|
|
|
|
<include refid="selectMesBoxDetailVo"/>
|
|
|
|
<include refid="selectMesBoxDetailVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
del_flag = '0'
|
|
|
|
<if test="boxSort != null ">
|
|
|
|
<if test="boxSort != null ">
|
|
|
|
and box_sort = #{boxSort}
|
|
|
|
and box_sort = #{boxSort}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -99,6 +107,12 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="remark != null">remark,
|
|
|
|
<if test="remark != null">remark,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="length != null">length,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="width != null">width,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="height != null">height,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="boxCode != null">#{boxCode},
|
|
|
|
<if test="boxCode != null">#{boxCode},
|
|
|
@ -131,6 +145,12 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="remark != null">#{remark},
|
|
|
|
<if test="remark != null">#{remark},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="length != null">#{length},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="width != null">#{width},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="height != null">#{height},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -179,16 +199,25 @@
|
|
|
|
<if test="remark != null">remark =
|
|
|
|
<if test="remark != null">remark =
|
|
|
|
#{remark},
|
|
|
|
#{remark},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="length != null">length =
|
|
|
|
|
|
|
|
#{length},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="width != null">width =
|
|
|
|
|
|
|
|
#{width},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="height != null">height =
|
|
|
|
|
|
|
|
#{height},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where box_code = #{boxCode}
|
|
|
|
where box_code = #{boxCode}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteMesBoxDetailByBoxCode" parameterType="Long">
|
|
|
|
<delete id="deleteMesBoxDetailByBoxCode" parameterType="Long">
|
|
|
|
delete from mes_box_detail where box_code = #{boxCode}
|
|
|
|
update mes_box_detail set del_flag = '1' where box_code = #{boxCode}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteMesBoxDetailByBoxCodes" parameterType="String">
|
|
|
|
<delete id="deleteMesBoxDetailByBoxCodes" parameterType="String">
|
|
|
|
delete from mes_box_detail where box_code in
|
|
|
|
update mes_box_detail set del_flag = '1' where box_code in
|
|
|
|
<foreach item="boxCode" collection="array" open="(" separator="," close=")">
|
|
|
|
<foreach item="boxCode" collection="array" open="(" separator="," close=")">
|
|
|
|
#{boxCode}
|
|
|
|
#{boxCode}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|