|
|
@@ -47,6 +47,7 @@
|
|
|
<select id="selectPageList"
|
|
|
resultType="com.xunmei.common.core.domain.letter.vo.CoreIntroduceLetterVo">
|
|
|
select * from core_introduce_letter a where deleted=0
|
|
|
+
|
|
|
<if test="coreIntroduceLetter.orgId != null ">
|
|
|
and a.org_id = #{coreIntroduceLetter.orgId}
|
|
|
</if>
|
|
|
@@ -70,6 +71,30 @@
|
|
|
</if>
|
|
|
order by a.create_time DESC
|
|
|
</select>
|
|
|
+ <select id="selectPageListForApp"
|
|
|
+ resultType="com.xunmei.common.core.domain.letter.vo.CoreIntroduceLetterVo">
|
|
|
+ select
|
|
|
+ a.*,
|
|
|
+ c.approve_status as approveStatus,
|
|
|
+ c.approve_remark as approveRemark,
|
|
|
+ c.approve_time
|
|
|
+ from core_introduce_letter a
|
|
|
+ left join core_introduce_letter_approve_log c on a.id=c.letter_id
|
|
|
+ where a.deleted=0 ANd a.status!=0 and a.type in (2,3)
|
|
|
+ <if test="coreIntroduceLetter.orgId != null ">
|
|
|
+ and c.org_id = #{coreIntroduceLetter.orgId}
|
|
|
+ </if>
|
|
|
+ <if test="coreIntroduceLetter.letterNo !=null and coreIntroduceLetter.letterNo !=''">
|
|
|
+ and a.letter_no like concat('%', #{coreIntroduceLetter.letterNo}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="coreIntroduceLetter.reasons !=null and coreIntroduceLetter.reasons !=''">
|
|
|
+ and a.reasons like concat('%', #{coreIntroduceLetter.reasons}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="coreIntroduceLetter.type !=null and coreIntroduceLetter.type !=''">
|
|
|
+ and a.type = #{coreIntroduceLetter.type}
|
|
|
+ </if>
|
|
|
+ order by a.create_time DESC
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
<insert id="insertCoreIntroduceLetter" parameterType="com.xunmei.common.core.domain.letter.domain.CoreIntroduceLetter">
|