22 lines
801 B
XML
22 lines
801 B
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.sqx.modules.pay.dao.PayClassifyDetailDao">
|
||
|
|
||
|
<select id="findList" resultType="com.sqx.modules.pay.entity.PayClassifyDetail">
|
||
|
select
|
||
|
a.pay_classify_detail_id,
|
||
|
a.pay_classify_id,
|
||
|
a.coupon_id,
|
||
|
a.give_num,
|
||
|
a.create_time
|
||
|
from pay_classify_detail a
|
||
|
where a.pay_classify_id = #{payClassifyId}
|
||
|
order by a.pay_classify_detail_id desc
|
||
|
</select>
|
||
|
|
||
|
<update id="updatePayClassifyDetailCouponId">
|
||
|
update pay_classify_detail set coupon_id=null,give_num=null where pay_classify_detail_id=#{payClassifyDetailId}
|
||
|
</update>
|
||
|
|
||
|
</mapper>
|