|
|
|
@@ -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> |