|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.op.wms.mapper.WmsProductPutMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="WmsProductPut" id="WmsProductPutResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="workOrder" column="work_order" />
|
|
|
|
@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectWmsProductPutList" parameterType="WmsProductPut" resultMap="WmsProductPutResult">
|
|
|
|
|
<include refid="selectWmsProductPutVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="workOrder != null and workOrder != ''"> and work_order = #{workOrder}</if>
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="productOrder != null and productOrder != ''"> and product_order = #{productOrder}</if>
|
|
|
|
@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="attr10 != null and attr10 != ''"> and attr10 = #{attr10}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWmsProductPutById" parameterType="String" resultMap="WmsProductPutResult">
|
|
|
|
|
<include refid="selectWmsProductPutVo"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
@ -213,9 +213,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteWmsProductPutByIds" parameterType="String">
|
|
|
|
|
delete from wms_product_put where id in
|
|
|
|
|
delete from wms_product_put where id in
|
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|
|
|
|
|
<select id="selectMesReportWork" resultMap="WmsProductPutResult">
|
|
|
|
|
SELECT
|
|
|
|
|
report_code work_order,
|
|
|
|
|
product_code,
|
|
|
|
|
product_name,
|
|
|
|
|
unit unit_of_measure,
|
|
|
|
|
quantity plan_quantity
|
|
|
|
|
FROM
|
|
|
|
|
mes_report_work
|
|
|
|
|
WHERE
|
|
|
|
|
report_code=#{workOrder}
|
|
|
|
|
and
|
|
|
|
|
parent_order = '0'
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|