|
@@ -15,6 +15,7 @@
|
|
<result column="createtime" property="createTime"/>
|
|
<result column="createtime" property="createTime"/>
|
|
<result column="updaterid" property="updaterId"/>
|
|
<result column="updaterid" property="updaterId"/>
|
|
<result column="updatetime" property="updateTime"/>
|
|
<result column="updatetime" property="updateTime"/>
|
|
|
|
+ <result column="sender_email" property="senderEmail"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
@@ -31,14 +32,6 @@
|
|
where isvalid = 1
|
|
where isvalid = 1
|
|
and id = #{id}
|
|
and id = #{id}
|
|
</update>
|
|
</update>
|
|
- <resultMap id="TableResultMap" type="com.simuwang.base.pojo.vo.EmailParseInfoVO">
|
|
|
|
- <id column="id" property="id"/>
|
|
|
|
- <result column="email" property="email"/>
|
|
|
|
- <result column="parse_date" property="parseDate" />
|
|
|
|
- <result column="email_title" property="emailTitle"/>
|
|
|
|
- <result column="email_type" property="emailType"/>
|
|
|
|
- <result column="parse_status" property="parseStatus"/>
|
|
|
|
- </resultMap>
|
|
|
|
<sql id="selectEmailParse">
|
|
<sql id="selectEmailParse">
|
|
SELECT
|
|
SELECT
|
|
epi.id,
|
|
epi.id,
|
|
@@ -52,7 +45,8 @@
|
|
epi.creatorid,
|
|
epi.creatorid,
|
|
epi.createtime,
|
|
epi.createtime,
|
|
epi.updatetime,
|
|
epi.updatetime,
|
|
- epi.updaterid
|
|
|
|
|
|
+ epi.updaterid,
|
|
|
|
+ epi.sender_email
|
|
FROM
|
|
FROM
|
|
PPW_EMAIL.email_parse_info epi
|
|
PPW_EMAIL.email_parse_info epi
|
|
</sql>
|
|
</sql>
|
|
@@ -75,6 +69,21 @@
|
|
<if test="endDate !=null and endDate != ''">
|
|
<if test="endDate !=null and endDate != ''">
|
|
and epi.parse_date <![CDATA[ <= ]]> #{endDate}
|
|
and epi.parse_date <![CDATA[ <= ]]> #{endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="emailStartDate !=null and emailStartDate != ''">
|
|
|
|
+ and epi.email_date <![CDATA[ >= ]]> #{startDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="emailEndDate !=null and emailEndDate != ''">
|
|
|
|
+ and epi.email_date <![CDATA[ <= ]]> #{emailEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="id !=null">
|
|
|
|
+ and epi.id = #{id}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="email !=null and email !=''">
|
|
|
|
+ and epi.email like concat('%',#{email},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="senderEmail !=null and senderEmail !=''">
|
|
|
|
+ and epi.sender_email like concat('%',#{senderEmail},'%')
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<select id="searchEmailList" resultMap="BaseResultMap">
|
|
<select id="searchEmailList" resultMap="BaseResultMap">
|