DracMessageInfoMapper.xml
3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?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="cn.com.glsx.entmicro.mapper.DracMessageInfoMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.entmicro.entity.message.DracMessageInfo">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="im_name" jdbcType="VARCHAR" property="imName"/>
<result column="customer_count" jdbcType="INTEGER" property="customerCount"/>
<result column="im_status" jdbcType="INTEGER" property="imStatus"/>
<result column="im_uid" jdbcType="VARCHAR" property="imUid"/>
<result column="del_flag" jdbcType="INTEGER" property="delFlag"/>
<result column="merchantName" jdbcType="VARCHAR" property="merchantname"/>
<result column="send_time" jdbcType="VARCHAR" property="sendTime"/>
<result column="message_context" jdbcType="VARCHAR" property="messageContext"/>
<result column="created_by" jdbcType="INTEGER" property="createdBy"/>
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
<result column="updated_by" jdbcType="INTEGER" property="updatedBy"/>
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime"/>
<result column="message_context" jdbcType="VARCHAR" property="messageContext"/>
<result column="export_url" jdbcType="VARCHAR" property="exportUrl"/>
<result column="export_name" jdbcType="VARCHAR" property="exportName"/>
</resultMap>
<resultMap id="baseMap" type="cn.com.glsx.entmicro.model.response.message.DracMessageInfoResponse">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="im_name" jdbcType="VARCHAR" property="imName"/>
<result column="customer_count" jdbcType="INTEGER" property="customerCount"/>
<result column="im_status" jdbcType="INTEGER" property="imStatus"/>
<result column="im_uid" jdbcType="VARCHAR" property="imUid"/>
<result column="send_time" jdbcType="VARCHAR" property="sendTime"/>
<result column="message_context" jdbcType="VARCHAR" property="messageContext"/>
<result column="created_by" jdbcType="INTEGER" property="createdBy"/>
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, im_name, customer_count, im_status, im_uid, del_flag, merchantName, start_time,
end_time, message_context, created_by, created_time, updated_by, updated_time
</sql>
<select id="findMerchantByPage"
resultMap="baseMap">
select * from drac_message_info
where del_flag=0 and im_status in (1,2)
<if test="condition.imName != null and condition.imName != ''">
and im_name like concat('%',#{condition.imName},'%')
</if>
<if test="condition.imStatus != null and condition.imStatus != ''">
and im_status=#{condition.imStatus}
</if>
<if test="condition.startTime != null">
and created_time <![CDATA[>=]]> #{condition.startTime,jdbcType=DATE}
</if>
<!--结束时间 合并表时间为准-->
<if test="condition.endTime != null">
and created_time <![CDATA[<=]]> #{condition.endTime,jdbcType=DATE}
</if>
order by created_time desc
</select>
</mapper>