| @@ -0,0 +1,52 @@ | |||||
| <?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.simple.mapper.WxMsgCallbackMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgCallback"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | |||||
| <result column="batch_no" jdbcType="VARCHAR" property="batchNo" /> | |||||
| <result column="phone" jdbcType="VARCHAR" property="phone" /> | |||||
| <result column="begintime" jdbcType="INTEGER" property="begintime" /> | |||||
| <result column="endtime" jdbcType="INTEGER" property="endtime" /> | |||||
| <result column="status" jdbcType="INTEGER" property="status" /> | |||||
| <result column="status_msg" jdbcType="VARCHAR" property="statusMsg" /> | |||||
| <result column="sign" jdbcType="VARCHAR" property="sign" /> | |||||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`tenant_id`,`batch_no`,`phone`,`begintime`,`endtime`,`status`,`status_msg`,`sign`,`createtime` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != batchNo "> and `batch_no` = #{batchNo} </if> | |||||
| <if test=" null != phone "> and `phone` = #{phone} </if> | |||||
| <if test=" null != begintime "> and `begintime` = #{begintime} </if> | |||||
| <if test=" null != endtime "> and `endtime` = #{endtime} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != statusMsg "> and `status_msg` = #{statusMsg} </if> | |||||
| <if test=" null != sign "> and `sign` = #{sign} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxMsgCallback" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_msg_callback | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -13,10 +13,15 @@ | |||||
| <result column="error_number" jdbcType="VARCHAR" property="errorNumber" /> | <result column="error_number" jdbcType="VARCHAR" property="errorNumber" /> | ||||
| <result column="return_result" jdbcType="VARCHAR" property="returnResult" /> | <result column="return_result" jdbcType="VARCHAR" property="returnResult" /> | ||||
| <result column="phones" jdbcType="VARCHAR" property="phones" /> | <result column="phones" jdbcType="VARCHAR" property="phones" /> | ||||
| <result column="signature" jdbcType="VARCHAR" property="signature" /> | |||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | |||||
| <result column="isright" jdbcType="SMALLINT" property="isright" /> | |||||
| <result column="sendstatus" jdbcType="SMALLINT" property="sendstatus" /> | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`tenant_id`,`model_id`,`msg`,`sendtime`,`createtime`,`expect_send_number`,`success_number`,`error_number`,`return_result`,`phones` | |||||
| `id`,`tenant_id`,`model_id`,`msg`,`sendtime`,`createtime`,`expect_send_number`,`success_number`,`error_number`,`return_result`,`phones`,`signature`,`name`,`isright`,`sendstatus` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| @@ -75,7 +80,22 @@ | |||||
| <if test=" null != phones "> | <if test=" null != phones "> | ||||
| and `phones` like concat('%', #{phones},'%') | and `phones` like concat('%', #{phones},'%') | ||||
| </if> | |||||
| </if> | |||||
| <if test=" null != signature "> | |||||
| and `signature`=#{signature} | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name`=#{name} | |||||
| </if> | |||||
| <if test=" null != isright "> | |||||
| and `isright`=#{isright} | |||||
| </if> | |||||
| <if test=" null != sendstatus "> | |||||
| and `sendstatus`=#{sendstatus} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||