|
@@ -109,33 +109,33 @@
|
|
|
<!-- </choose>-->
|
|
|
<!-- limit #{offset},#{pageSize}-->
|
|
|
<!-- </select>-->
|
|
|
- <select id="searchEmailById" resultMap="BaseResultMap">
|
|
|
- <include refid="selectEmailParse"/>
|
|
|
- where epi.isvalid =1 and epi.id =#{id}
|
|
|
- </select>
|
|
|
+<!-- <select id="searchEmailById" resultMap="BaseResultMap">-->
|
|
|
+<!-- <include refid="selectEmailParse"/>-->
|
|
|
+<!-- where epi.isvalid =1 and epi.id =#{id}-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <select id="searchEmailCount" resultType="java.lang.Integer">
|
|
|
- select count(1) from mo_email_parse_info where isvalid=1
|
|
|
- <if test="parseStatus != null and parseStatus != -1">
|
|
|
- and parse_status=#{parseStatus}
|
|
|
- </if>
|
|
|
- <if test="parseStatus != null and parseStatus == -1">
|
|
|
- and parse_status != 1
|
|
|
- </if>
|
|
|
- <if test="startDate != null and startDate != ''">
|
|
|
- and parse_date >= #{startDate}
|
|
|
- </if>
|
|
|
- <if test="endDate != null and endDate != ''">
|
|
|
- and parse_date <![CDATA[ <= ]]> #{endDate}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
+<!-- <select id="searchEmailCount" resultType="java.lang.Integer">-->
|
|
|
+<!-- select count(1) from mo_email_parse_info where isvalid=1-->
|
|
|
+<!-- <if test="parseStatus != null and parseStatus != -1">-->
|
|
|
+<!-- and parse_status=#{parseStatus}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="parseStatus != null and parseStatus == -1">-->
|
|
|
+<!-- and parse_status != 1-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="startDate != null and startDate != ''">-->
|
|
|
+<!-- and parse_date >= #{startDate}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="endDate != null and endDate != ''">-->
|
|
|
+<!-- and parse_date <![CDATA[ <= ]]> #{endDate}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <select id="queryById" resultMap="BaseResultMap">
|
|
|
- select id, email,email_key, email_date, parse_date, email_title, email_type, sender_email,parse_status,attr_size
|
|
|
- from mo_email_parse_info
|
|
|
- where isvalid = 1
|
|
|
- and id = #{id}
|
|
|
- </select>
|
|
|
+<!-- <select id="queryById" resultMap="BaseResultMap">-->
|
|
|
+<!-- select id, email,email_key, email_date, parse_date, email_title, email_type, sender_email,parse_status,attr_size-->
|
|
|
+<!-- from mo_email_parse_info-->
|
|
|
+<!-- where isvalid = 1-->
|
|
|
+<!-- and id = #{id}-->
|
|
|
+<!-- </select>-->
|
|
|
<!-- <select id="countEmailList" resultType="java.lang.Long"-->
|
|
|
<!-- parameterType="com.simuwang.base.pojo.dto.query.EmailParseQuery">-->
|
|
|
<!-- select count(*) from PPW_EMAIL.email_parse_info epi-->
|
|
@@ -231,28 +231,38 @@
|
|
|
<!-- and fail_reason like concat('%',#{errorInfo},'%')-->
|
|
|
<!-- </if>-->
|
|
|
<!-- </select>-->
|
|
|
- <select id="countEmailTotal" resultType="java.lang.Long">
|
|
|
- select count(1) from mo_email_parse_info where isvalid=1
|
|
|
- <if test="emailType !=null">
|
|
|
- and email_type = #{emailType}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
+<!-- <select id="countEmailTotal" resultType="java.lang.Long">-->
|
|
|
+<!-- select count(1) from mo_email_parse_info where isvalid=1-->
|
|
|
+<!-- <if test="emailType !=null">-->
|
|
|
+<!-- and email_type = #{emailType}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </select>-->
|
|
|
+
|
|
|
+<!-- <select id="searchEmail" parameterType="com.smppw.modaq.domain.entity.EmailParseInfoDO" resultMap="BaseResultMap">-->
|
|
|
+<!-- select *-->
|
|
|
+<!-- from mo_email_parse_info where isvalid = 1-->
|
|
|
+<!-- <if test="senderEmail !=null and senderEmail != ''">-->
|
|
|
+<!-- and sender_email = #{senderEmail}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="email != null and email != ''">-->
|
|
|
+<!-- and email = #{email}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="emailDate != null">-->
|
|
|
+<!-- and email_date = #{emailDate}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="emailTitle != null and emailTitle != ''">-->
|
|
|
+<!-- and email_title = #{emailTitle}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- limit 1-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <select id="searchEmail" parameterType="com.smppw.modaq.domain.entity.EmailParseInfoDO" resultMap="BaseResultMap">
|
|
|
- select *
|
|
|
- from mo_email_parse_info where isvalid = 1
|
|
|
- <if test="senderEmail !=null and senderEmail != ''">
|
|
|
- and sender_email = #{senderEmail}
|
|
|
- </if>
|
|
|
- <if test="email != null and email != ''">
|
|
|
- and email = #{email}
|
|
|
- </if>
|
|
|
- <if test="emailDate != null">
|
|
|
- and email_date = #{emailDate}
|
|
|
- </if>
|
|
|
- <if test="emailTitle != null and emailTitle != ''">
|
|
|
- and email_title = #{emailTitle}
|
|
|
- </if>
|
|
|
- limit 1
|
|
|
+ <select id="countEmailByInfoAndStatus" resultType="java.lang.Integer">
|
|
|
+ select count(1)
|
|
|
+ from mo_email_parse_info t
|
|
|
+ where t.sender_email = #{senderAddress}
|
|
|
+ and t.email = #{emailAddress}
|
|
|
+ and t.email_date = #{emailDate}
|
|
|
+ and t.email_title = #{emailTitle}
|
|
|
+ and t.parse_status = 1
|
|
|
</select>
|
|
|
</mapper>
|