25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

136 satır
4.3 KiB

  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.iformall.mapper.WxMsgMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.msg.WxMsg">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="model_id" jdbcType="BIGINT" property="modelId" />
  8. <result column="msg" jdbcType="VARCHAR" property="msg" />
  9. <result column="sendtime" jdbcType="TIMESTAMP" property="sendtime" />
  10. <result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
  11. <result column="expect_send_number" jdbcType="VARCHAR" property="expectSendNumber" />
  12. <result column="success_number" jdbcType="VARCHAR" property="successNumber" />
  13. <result column="error_number" jdbcType="VARCHAR" property="errorNumber" />
  14. <result column="return_result" jdbcType="VARCHAR" property="returnResult" />
  15. <result column="phones" jdbcType="VARCHAR" property="phones" />
  16. <result column="signature" jdbcType="VARCHAR" property="signature" />
  17. <result column="isright" jdbcType="INTEGER" property="isright" />
  18. <result column="name" jdbcType="VARCHAR" property="name" />
  19. <result column="sendstatus" jdbcType="INTEGER" property="sendstatus" />
  20. <result column="excelpath" jdbcType="VARCHAR" property="excelpath" />
  21. <result column="label" jdbcType="VARCHAR" property="label" />
  22. <result column="tags" jdbcType="VARCHAR" property="tags" />
  23. <result column="status" jdbcType="INTEGER" property="status" />
  24. <result column="way" jdbcType="INTEGER" property="way" />
  25. <result column="coupon_inject_id" jdbcType="BIGINT" property="couponInjectId" />
  26. </resultMap>
  27. <sql id="allColumns">
  28. `id`,`tenant_id`,`model_id`,`msg`,`sendtime`,`createtime`,`expect_send_number`,`success_number`,`error_number`,`return_result`,`phones`,`signature`,`isright`,`name`,`sendstatus`,`excelpath`,`label`,`tags`,`status`,`way`,`coupon_inject_id`
  29. </sql>
  30. <sql id="dynamicWhereConditions">
  31. where 1 = 1
  32. <if test=" null != id ">
  33. and `id` = #{id}
  34. </if>
  35. <if test=" null != tenantId ">
  36. and `tenant_id` = #{tenantId}
  37. </if>
  38. <if test=" null != modelId ">
  39. and `model_id` = #{modelId}
  40. </if>
  41. <if test=" null != msg ">
  42. and `msg` like concat('%', #{msg},'%')
  43. </if>
  44. <if test=" null != sendtime ">
  45. and `sendtime` = #{sendtime}
  46. </if>
  47. <if test=" null != createtime ">
  48. and `createtime` = #{createtime}
  49. </if>
  50. <if test=" null != expectSendNumber ">
  51. and `expect_send_number` like concat('%', #{expectSendNumber},'%')
  52. </if>
  53. <if test=" null != successNumber ">
  54. and `success_number` like concat('%', #{successNumber},'%')
  55. </if>
  56. <if test=" null != errorNumber ">
  57. and `error_number` like concat('%', #{errorNumber},'%')
  58. </if>
  59. <if test=" null != returnResult ">
  60. and `return_result` like concat('%', #{returnResult},'%')
  61. </if>
  62. <if test=" null != phones ">
  63. and `phones` like concat('%', #{phones},'%')
  64. </if>
  65. <if test=" null != signature ">
  66. and `signature` like concat('%', #{signature},'%')
  67. </if>
  68. <if test=" null != isright ">
  69. and `isright` = #{isright}
  70. </if>
  71. <if test=" null != name ">
  72. and `name` like concat('%', #{name},'%')
  73. </if>
  74. <if test=" null != sendstatus ">
  75. and `sendstatus` = #{sendstatus}
  76. </if>
  77. <if test=" null != status ">
  78. and `status` = #{status}
  79. </if>
  80. <if test=" null != way ">
  81. and `way` = #{way}
  82. </if>
  83. <if test=" null != couponInjectId ">
  84. and `coupon_inject_id` = #{couponInjectId}
  85. </if>
  86. <if test=" null != ids ">
  87. and id in
  88. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  89. #{idItem}
  90. </foreach>
  91. </if>
  92. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  93. </sql>
  94. <select id="findList" parameterType="com.iformall.domain.po.msg.WxMsg" resultMap="BaseResultMap">
  95. select <include refid="allColumns" /> from wx_msg
  96. <include refid="dynamicWhereConditions" />
  97. </select>
  98. </mapper>