|
@@ -37,13 +37,6 @@
|
|
|
<result column="email_title" property="emailTitle"/>
|
|
|
<result column="email_type" property="emailType"/>
|
|
|
<result column="parse_status" property="parseStatus"/>
|
|
|
- <!--关联属性的映射关系-->
|
|
|
- <collection property="emailFileInfoList" ofType="com.simuwang.base.pojo.vo.EmailFileInfoVO">
|
|
|
- <id property="id" column="fid"/>
|
|
|
- <result property="fileName" column="file_name"/>
|
|
|
- <result property="filePath" column="file_path"/>
|
|
|
- <result property="emailId" column="email_id"/>
|
|
|
- </collection>
|
|
|
</resultMap>
|
|
|
<sql id="selectEmailParse">
|
|
|
SELECT
|
|
@@ -54,15 +47,13 @@
|
|
|
epi.email_title,
|
|
|
epi.email_type,
|
|
|
epi.parse_status,
|
|
|
- efi.id AS fid,
|
|
|
- efi.file_name,
|
|
|
- efi.file_path,
|
|
|
- efi.email_id
|
|
|
+ epi.isvalid,
|
|
|
+ epi.creatorid,
|
|
|
+ epi.createtime,
|
|
|
+ epi.updatetime,
|
|
|
+ epi.updaterid
|
|
|
FROM
|
|
|
PPW_EMAIL.email_parse_info epi
|
|
|
- LEFT JOIN PPW_EMAIL.email_file_info efi
|
|
|
- ON epi.id = efi.email_id
|
|
|
- AND efi.isvalid = 1
|
|
|
</sql>
|
|
|
<!-- 查询条件 -->
|
|
|
<sql id="sqlwhereSearch">
|
|
@@ -85,12 +76,12 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
- <select id="searchEmailList" resultMap="TableResultMap">
|
|
|
+ <select id="searchEmailList" resultMap="BaseResultMap">
|
|
|
<include refid="selectEmailParse"/>
|
|
|
<include refid="sqlwhereSearch"/>
|
|
|
limit #{offset},#{pageSize}
|
|
|
</select>
|
|
|
- <select id="searchEmailById" resultMap="TableResultMap">
|
|
|
+ <select id="searchEmailById" resultMap="BaseResultMap">
|
|
|
<include refid="selectEmailParse"/>
|
|
|
where epi.isvalid =1 and epi.id =#{id}
|
|
|
</select>
|