|
|
@ -5,18 +5,22 @@
|
|
|
|
<mapper namespace="com.hw.mes.mapper.MesBasePalletInfoMapper">
|
|
|
|
<mapper namespace="com.hw.mes.mapper.MesBasePalletInfoMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="MesBasePalletInfo" id="MesBasePalletInfoResult">
|
|
|
|
<resultMap type="MesBasePalletInfo" id="MesBasePalletInfoResult">
|
|
|
|
<result property="palletInfoId" column="pallet_info_id"/>
|
|
|
|
<result property="palletInfoId" column="pallet_info_id" />
|
|
|
|
<result property="palletInfoCode" column="pallet_info_code"/>
|
|
|
|
<result property="palletInfoCode" column="pallet_info_code" />
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
<result property="materialId" column="material_id" />
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
<result property="materialCode" column="material_code" />
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
<result property="materialName" column="material_name" />
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="materialBarcode" column="material_barcode" />
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
|
|
|
<result property="bindAmount" column="bind_amount" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectMesBasePalletInfoVo">
|
|
|
|
<sql id="selectMesBasePalletInfoVo">
|
|
|
|
select pallet_info_id, pallet_info_code, remark, create_by, create_time, update_by, update_time
|
|
|
|
select pallet_info_id, pallet_info_code, material_id, material_code, material_name, material_barcode, remark, create_by, create_time, update_by, update_time, bind_amount from mes_base_pallet_info
|
|
|
|
from mes_base_pallet_info
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMesBasePalletInfoList" parameterType="MesBasePalletInfo" resultMap="MesBasePalletInfoResult">
|
|
|
|
<select id="selectMesBasePalletInfoList" parameterType="MesBasePalletInfo" resultMap="MesBasePalletInfoResult">
|
|
|
@ -31,24 +35,33 @@
|
|
|
|
where pallet_info_id = #{palletInfoId}
|
|
|
|
where pallet_info_id = #{palletInfoId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertMesBasePalletInfo" parameterType="MesBasePalletInfo" useGeneratedKeys="true"
|
|
|
|
<insert id="insertMesBasePalletInfo" parameterType="MesBasePalletInfo" useGeneratedKeys="true" keyProperty="palletInfoId">
|
|
|
|
keyProperty="palletInfoId">
|
|
|
|
|
|
|
|
insert into mes_base_pallet_info
|
|
|
|
insert into mes_base_pallet_info
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="palletInfoCode != null and palletInfoCode != ''">pallet_info_code,</if>
|
|
|
|
<if test="palletInfoCode != null and palletInfoCode != ''">pallet_info_code,</if>
|
|
|
|
|
|
|
|
<if test="materialId != null">material_id,</if>
|
|
|
|
|
|
|
|
<if test="materialCode != null">material_code,</if>
|
|
|
|
|
|
|
|
<if test="materialName != null">material_name,</if>
|
|
|
|
|
|
|
|
<if test="materialBarcode != null">material_barcode,</if>
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
|
|
|
<if test="bindAmount != null">bind_amount,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="palletInfoCode != null and palletInfoCode != ''">#{palletInfoCode},</if>
|
|
|
|
<if test="palletInfoCode != null and palletInfoCode != ''">#{palletInfoCode},</if>
|
|
|
|
|
|
|
|
<if test="materialId != null">#{materialId},</if>
|
|
|
|
|
|
|
|
<if test="materialCode != null">#{materialCode},</if>
|
|
|
|
|
|
|
|
<if test="materialName != null">#{materialName},</if>
|
|
|
|
|
|
|
|
<if test="materialBarcode != null">#{materialBarcode},</if>
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
|
|
|
<if test="bindAmount != null">#{bindAmount},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -56,11 +69,16 @@
|
|
|
|
update mes_base_pallet_info
|
|
|
|
update mes_base_pallet_info
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="palletInfoCode != null and palletInfoCode != ''">pallet_info_code = #{palletInfoCode},</if>
|
|
|
|
<if test="palletInfoCode != null and palletInfoCode != ''">pallet_info_code = #{palletInfoCode},</if>
|
|
|
|
|
|
|
|
<if test="materialId != null">material_id = #{materialId},</if>
|
|
|
|
|
|
|
|
<if test="materialCode != null">material_code = #{materialCode},</if>
|
|
|
|
|
|
|
|
<if test="materialName != null">material_name = #{materialName},</if>
|
|
|
|
|
|
|
|
<if test="materialBarcode != null">material_barcode = #{materialBarcode},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
|
|
|
<if test="bindAmount != null">bind_amount = #{bindAmount},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where pallet_info_id = #{palletInfoId}
|
|
|
|
where pallet_info_id = #{palletInfoId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -77,4 +95,13 @@
|
|
|
|
#{palletInfoId}
|
|
|
|
#{palletInfoId}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
</mapper>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMesBasePalletInfoByPalletInfoCode" parameterType="String" resultMap="MesBasePalletInfoResult">
|
|
|
|
|
|
|
|
<include refid="selectMesBasePalletInfoVo"/>
|
|
|
|
|
|
|
|
where pallet_info_code = #{palletInfoCode}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|