RefundAddrMapper.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.yami.shop.dao.RefundAddrMapper">
  4. <resultMap id="refundAddrMap" type="com.yami.shop.bean.model.RefundAddr">
  5. <id column="refund_addr_id" property="refundAddrId"/>
  6. <result column="shop_id" property="shopId"/>
  7. <result column="receiver_name" property="receiverName"/>
  8. <result column="receiver_mobile" property="receiverMobile"/>
  9. <result column="post_code" property="postCode"/>
  10. <result column="province_id" property="provinceId"/>
  11. <result column="province" property="province"/>
  12. <result column="city_id" property="cityId"/>
  13. <result column="city" property="city"/>
  14. <result column="area_id" property="areaId"/>
  15. <result column="area" property="area"/>
  16. <result column="addr" property="addr"/>
  17. <result column="default_addr" property="defaultAddr"/>
  18. <result column="status" property="status"/>
  19. <result column="update_time" property="updateTime"/>
  20. <result column="create_time" property="createTime"/>
  21. </resultMap>
  22. <update id="cancelDefaultAddr">
  23. UPDATE
  24. tz_refund_addr ra
  25. SET
  26. ra.`default_addr` = 0
  27. WHERE ra.`shop_id` = #{shopId}
  28. </update>
  29. </mapper>