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.
66 lines
2.3 KiB
XML
66 lines
2.3 KiB
XML
4 years ago
|
<?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="com.glxp.api.admin.dao.inventory.InvOrderCheckDao">
|
||
|
|
||
|
<select id="filterStockCheck" parameterType="com.glxp.api.admin.req.inout.FilterStockCheckRequest"
|
||
|
resultType="com.glxp.api.admin.entity.inout.StockCheckEntity">
|
||
|
SELECT * FROM stockcheck
|
||
|
<where>
|
||
|
<if test="id != '' and id != null">
|
||
|
AND id = #{id}
|
||
|
</if>
|
||
|
<if test="action != '' and action != null">
|
||
|
AND action = #{action}
|
||
|
</if>
|
||
|
<if test="actDate != '' and actDate != null">
|
||
|
AND actDate = #{actDate}
|
||
|
</if>
|
||
|
<if test="status != '' and status != null">
|
||
|
AND status = #{status}
|
||
|
</if>
|
||
|
<if test="whouse != '' and whouse != null">
|
||
|
AND whouse = #{whouse}
|
||
|
</if>
|
||
|
<if test="houseCard != '' and houseCard != null">
|
||
|
AND houseCard = #{houseCard}
|
||
|
</if>
|
||
|
</where>
|
||
|
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<insert id="insertStockCheck" keyProperty="id" parameterType="com.glxp.api.admin.entity.inout.StockCheckEntity">
|
||
|
insert INTO stockcheck
|
||
|
(
|
||
|
action,actDate,status,remark,endTime,whouse,houseCard
|
||
|
)
|
||
|
values
|
||
|
(
|
||
|
#{action},
|
||
|
#{actDate},
|
||
|
#{status},
|
||
|
#{remark},#{endTime},#{whouse},#{houseCard}
|
||
|
)
|
||
|
</insert>
|
||
|
|
||
|
|
||
|
<delete id="deleteById" parameterType="Map">
|
||
|
DELETE FROM stockcheck WHERE id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<update id="updateStockCheck" parameterType="com.glxp.api.admin.entity.basic.StockPrintEntity">
|
||
|
UPDATE stockcheck
|
||
|
<set>
|
||
|
<if test="action != null">action=#{action},</if>
|
||
|
<if test="actDate != null">actDate=#{actDate},</if>
|
||
|
<if test="status != null">status=#{status},</if>
|
||
|
<if test="remark != null">remark=#{remark},</if>
|
||
|
<if test="endTime != null">endTime=#{endTime},</if>
|
||
|
<if test="whouse != null">whouse=#{whouse},</if>
|
||
|
<if test="houseCard != null">houseCard=#{houseCard},</if>
|
||
|
</set>
|
||
|
WHERE id = #{id}
|
||
|
</update>
|
||
|
|
||
|
</mapper>
|