You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.8 KiB
XML
65 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="org.dromara.wms.mapper.WmsInstockOrderMapper">
|
|
|
|
<update id="updateInstock" parameterType="org.dromara.wms.domain.WmsInstockOrder">
|
|
update wms_instock_order
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="instockCode != null">instock_code = #{instockCode},</if>
|
|
<if test="materialCategoryId != null and materialCategoryId != ''">material_categories = #{materialCategoryId},</if>
|
|
<if test="instockType != null and instockType != ''">instock_type = #{instockType},</if>
|
|
<if test="auditBy != null">audit_by = #{auditBy},</if>
|
|
<if test="auditComments != null">audit_comments = #{auditComments},</if>
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="auditTime != null">audit_time = #{auditTime},</if>
|
|
</trim>
|
|
where instock_id = #{instockId}
|
|
</update>
|
|
<select id="selectAuditByConfiguration" resultType="org.dromara.wms.domain.WmsConfiguration"
|
|
parameterType="java.lang.Long">
|
|
SELECT
|
|
x.*
|
|
FROM
|
|
hwmom.dbo.wms_configuration x
|
|
where
|
|
((x.approve_range = '1'
|
|
and x.warehouse_id = #{warehouseId})
|
|
or x.approve_range = '0')
|
|
and x.node_code = 'in'
|
|
and x.approve_yes_no = '0'
|
|
and x.approve_type != '2'
|
|
</select>
|
|
<select id="selectUnAuditByConfiguration" resultType="org.dromara.wms.domain.WmsConfiguration"
|
|
parameterType="java.lang.Long">
|
|
SELECT
|
|
x.*
|
|
FROM
|
|
hwmom.dbo.wms_configuration x
|
|
where
|
|
((x.approve_range = '1'
|
|
and x.warehouse_id = #{warehouseId})
|
|
or x.approve_range = '0')
|
|
and x.node_code = 'in'
|
|
and x.approve_yes_no = '1'
|
|
</select>
|
|
<select id="selectAllConfiguration" resultType="org.dromara.wms.domain.WmsConfiguration"
|
|
parameterType="java.lang.Long">
|
|
SELECT
|
|
x.*
|
|
FROM
|
|
hwmom.dbo.wms_configuration x
|
|
where
|
|
((x.approve_range = '1'
|
|
and x.warehouse_id = #{warehouseId})
|
|
or x.approve_range = '0')
|
|
and x.node_code = 'in'
|
|
</select>
|
|
</mapper>
|