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.
95 lines
3.2 KiB
XML
95 lines
3.2 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="com.glxp.sale.admin.dao.inout.StockQRCodeTextDao">
|
|
|
|
<select id="filterStockQRCodeText" parameterType="com.glxp.sale.admin.req.inout.StockQRCodeTextFilterRequest"
|
|
resultType="com.glxp.sale.admin.entity.inout.StockQRCodeTextEntity">
|
|
select * from stock_qrcode_text
|
|
<where>
|
|
<if test="orderId != '' and orderId!=null">
|
|
and orderId = #{orderId}
|
|
</if>
|
|
<if test="detailId != '' and detailId!=null">
|
|
and detailId = #{detailId}
|
|
</if>
|
|
<if test="status != '' and status!=null">
|
|
and status = #{status}
|
|
</if>
|
|
</where>
|
|
ORDER BY id DESC
|
|
</select>
|
|
|
|
<insert id="insertStockQRCodeText" keyProperty="id" parameterType="com.glxp.sale.admin.entity.inout.StockQRCodeTextEntity">
|
|
replace
|
|
INTO stock_qrcode_text(id,
|
|
orderId,detailId,text,textTag,status,param,create_time,update_time)
|
|
values(
|
|
#{id},
|
|
#{orderId},
|
|
#{detailId},
|
|
#{text},
|
|
#{textTag},
|
|
#{status},
|
|
#{param},
|
|
#{create_time},
|
|
#{update_time}
|
|
)
|
|
</insert>
|
|
|
|
<insert id="insertStockQRCodeTexts" keyProperty="id" parameterType="com.glxp.sale.admin.entity.inout.StockQRCodeTextEntity">
|
|
replace INTO stock_qrcode_text(id,
|
|
orderId,detailId,text,textTag,status,param,create_time,update_time)
|
|
values
|
|
<foreach collection="stockQRCodeTextEntities" item="item" index="index"
|
|
separator=",">
|
|
(
|
|
#{item.id},
|
|
#{item.orderId},
|
|
#{item.detailId},
|
|
#{item.text},
|
|
#{item.textTag},
|
|
#{item.status},
|
|
#{item.param},
|
|
#{item.create_time},
|
|
#{item.update_time}
|
|
)
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
<update id="updateById" parameterType="com.glxp.sale.admin.entity.inout.StockQRCodeTextEntity">
|
|
UPDATE stock_qrcode_text
|
|
<set>
|
|
<if test="orderId != null">orderId=#{orderId},</if>
|
|
<if test="detailId != null">detailId=#{detailId},</if>
|
|
<if test="text != null">text=#{text},</if>
|
|
<if test="textTag != null">textTag=#{textTag},</if>
|
|
<if test="status != null">status=#{status},</if>
|
|
<if test="param != null">param=#{param},</if>
|
|
<if test="create_time != null">create_time=#{create_time},</if>
|
|
<if test="update_time != null">update_time=#{update_time},</if>
|
|
</set>
|
|
WHERE id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
DELETE
|
|
FROM stock_qrcode_text
|
|
WHERE id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteByOrderId" parameterType="Map">
|
|
DELETE
|
|
FROM stock_qrcode_text
|
|
WHERE orderId = #{id}
|
|
</delete>
|
|
|
|
<select id="findOne" parameterType="Map"
|
|
resultType="com.glxp.sale.admin.entity.inout.StockQRCodeTextEntity">
|
|
SELECT * FROM stock_qrcode_text
|
|
WHERE id = #{id}
|
|
limit 1
|
|
</select>
|
|
|
|
</mapper> |