KwpSettlementOfflineMapper.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.sckw.payment.dao.KwpSettlementOfflineMapper">
  4. <resultMap id="BaseResultMap" type="com.sckw.payment.model.KwpSettlementOffline">
  5. <!--@mbg.generated-->
  6. <!--@Table kwp_settlement_offline-->
  7. <id column="id" jdbcType="BIGINT" property="id" />
  8. <result column="ent_id" jdbcType="BIGINT" property="entId" />
  9. <result column="settlement_id" jdbcType="BIGINT" property="settlementId" />
  10. <result column="order_type" jdbcType="BOOLEAN" property="orderType" />
  11. <result column="pay_time" jdbcType="TIMESTAMP" property="payTime" />
  12. <result column="pay_price" jdbcType="DECIMAL" property="payPrice" />
  13. <result column="topay_price" jdbcType="DECIMAL" property="topayPrice" />
  14. <result column="url" jdbcType="VARCHAR" property="url" />
  15. <result column="remark" jdbcType="VARCHAR" property="remark" />
  16. <result column="status" jdbcType="INTEGER" property="status" />
  17. <result column="create_by" jdbcType="BIGINT" property="createBy" />
  18. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  19. <result column="update_by" jdbcType="BIGINT" property="updateBy" />
  20. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  21. <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
  22. </resultMap>
  23. <sql id="Base_Column_List">
  24. <!--@mbg.generated-->
  25. id, ent_id, settlement_id, order_type, pay_time, pay_price, topay_price, url, remark,
  26. `status`, create_by, create_time, update_by, update_time, del_flag
  27. </sql>
  28. <!-- 物流-线下付款(运费收款)记录-列表 -->
  29. <select id="pageListLogisticsCollection" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  30. select
  31. <include refid="Base_Column_List" />
  32. FROM kwp_settlement_offline
  33. <where>
  34. order_type = 1
  35. </where>
  36. </select>
  37. <select id="detailLogisticsCollection" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  38. select
  39. <include refid="Base_Column_List" />
  40. FROM kwp_settlement_offline
  41. <where>
  42. order_type = 1
  43. </where>
  44. </select>
  45. <select id="confirmLogisticsCollection" resultType="java.lang.Integer">
  46. </select>
  47. <select id="pageList" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  48. select
  49. <include refid="Base_Column_List" />
  50. FROM kwp_settlement_offline
  51. <where>
  52. del_flag = 0
  53. <if test="offlineReq.orderType != null">
  54. and order_type = #{offlineReq.orderType,jdbcType=INTEGER}
  55. </if>
  56. <if test="offlineReq.id != null and offlineReq.id != ''">
  57. and settlement_id = #{offlineReq.id,jdbcType=INTEGER}
  58. </if>
  59. </where>
  60. </select>
  61. </mapper>