KwpSettlementOfflineMapper.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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,
  26. ent_id,
  27. settlement_id,
  28. order_type,
  29. pay_time,
  30. pay_price,
  31. topay_price,
  32. url,
  33. remark,
  34. `status`,
  35. create_by,
  36. create_time,
  37. update_by,
  38. update_time,
  39. del_flag
  40. </sql>
  41. <!-- 物流-线下付款(运费收款)记录-列表 -->
  42. <select id="pageListLogisticsCollection" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  43. select
  44. <include refid="Base_Column_List"/>
  45. FROM kwp_settlement_offline
  46. <where>
  47. del_flag = 0
  48. <if test="offlineReq.orderType != null">
  49. and order_type = #{offlineReq.orderType,jdbcType=INTEGER}
  50. </if>
  51. <if test="offlineReq.id != null and offlineReq.id != ''">
  52. and settlement_id = #{offlineReq.id,jdbcType=INTEGER}
  53. </if>
  54. </where>
  55. </select>
  56. <select id="detailLogisticsCollection" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  57. select
  58. <include refid="Base_Column_List"/>
  59. FROM kwp_settlement_offline
  60. <where>
  61. order_type = 1
  62. </where>
  63. </select>
  64. <select id="appList" resultType="com.sckw.payment.model.vo.SettlementVo">
  65. select
  66. <include refid="Base_Column_List"/>
  67. FROM kwp_settlement_offline
  68. <where>
  69. del_flag = 0
  70. <if test="offlineReq.orderType != null">
  71. and order_type = #{offlineReq.orderType,jdbcType=INTEGER}
  72. </if>
  73. <if test="offlineReq.id != null and offlineReq.id != ''">
  74. and settlement_id = #{offlineReq.id,jdbcType=INTEGER}
  75. </if>
  76. </where>
  77. </select>
  78. <select id="pageList" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  79. select
  80. <include refid="Base_Column_List"/>
  81. FROM kwp_settlement_offline
  82. <where>
  83. del_flag = 0
  84. <if test="offlineReq.orderType != null">
  85. and order_type = #{offlineReq.orderType,jdbcType=INTEGER}
  86. </if>
  87. <if test="offlineReq.id != null and offlineReq.id != ''">
  88. and settlement_id = #{offlineReq.id,jdbcType=INTEGER}
  89. </if>
  90. </where>
  91. </select>
  92. <select id="list" resultType="com.sckw.payment.model.dto.SettlementOfflineDto">
  93. select
  94. <include refid="Base_Column_List"/>
  95. FROM kwp_settlement_offline
  96. <where>
  97. del_flag = 0
  98. <if test="offlineReq.orderType != null">
  99. and order_type = #{offlineReq.orderType,jdbcType=INTEGER}
  100. </if>
  101. <if test="offlineReq.id != null and offlineReq.id != ''">
  102. and settlement_id = #{offlineReq.id,jdbcType=INTEGER}
  103. </if>
  104. </where>
  105. </select>
  106. </mapper>