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.
45 lines
1.5 KiB
XML
45 lines
1.5 KiB
XML
3 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.sale.admin.dao.inout.IOOrderStatusDao">
|
||
|
|
||
|
<select id="filterOrderStatus" parameterType="com.glxp.sale.admin.req.inout.OrderStatusFilterRequest"
|
||
|
resultType="com.glxp.sale.admin.entity.inout.IOOrderStatusEntity">
|
||
|
select * from io_order_status
|
||
|
<where>
|
||
|
<if test="orderId != '' and orderId!=null">
|
||
|
and orderId = #{orderId}
|
||
|
</if>
|
||
|
<if test="status != '' and status!=null">
|
||
|
and status = #{status}
|
||
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<insert id="insertOrderStatus" keyProperty="id"
|
||
|
parameterType="com.glxp.sale.admin.entity.inout.IOOrderStatusEntity">
|
||
|
replace
|
||
|
INTO io_order_status(orderId,status,updateTime)
|
||
|
values(
|
||
|
#{orderId},
|
||
|
#{status},
|
||
|
#{updateTime}
|
||
|
)
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateOrderStatus" parameterType="com.glxp.sale.admin.entity.inout.IOOrderStatusEntity">
|
||
|
UPDATE io_order_status
|
||
|
<trim prefix="set" suffixOverrides=",">
|
||
|
<if test="status != null">status=#{status},</if>
|
||
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
||
|
</trim>
|
||
|
WHERE orderId = #{orderId}
|
||
|
</update>
|
||
|
<delete id="deleteByOrderId" parameterType="Map">
|
||
|
DELETE
|
||
|
FROM io_order_status
|
||
|
WHERE orderId = #{orderId}
|
||
|
</delete>
|
||
|
|
||
|
</mapper>
|