|
@@ -52,21 +52,17 @@
|
|
|
where DOC_ID = #{docId}
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectDocShareSend" resultType="com.jjt.doc.domain.DocShare">
|
|
|
- select a.*,
|
|
|
- b.doc_name,
|
|
|
- b.doc_type,
|
|
|
- b.doc_path,
|
|
|
- b.doc_size,
|
|
|
- b.doc_desc,
|
|
|
- b.doc_level,
|
|
|
- b.create_year docYear,
|
|
|
- b.owner
|
|
|
- from doc_share a,
|
|
|
- doc_info b
|
|
|
- where a.doc_id = b.doc_id
|
|
|
- and a.CREATE_BY = #{uid}
|
|
|
- order by a.update_time desc
|
|
|
+ <select id="selectDocShareSend" parameterType="DocShare" resultType="com.jjt.doc.domain.DocShare">
|
|
|
+ select * from (
|
|
|
+ select a.*, b.doc_name, b.doc_type, b.doc_path,
|
|
|
+ b.doc_size, b.doc_desc, b.doc_level, b.create_year docYear, b.owner
|
|
|
+ from doc_share a,doc_info b where a.doc_id = b.doc_id
|
|
|
+ ) a
|
|
|
+ <where>
|
|
|
+ <if test="docName != null and docName != ''">and DOC_NAME like concat('%', #{docName}, '%')</if>
|
|
|
+ <if test="createBy != null and createBy != ''">and CREATE_BY = #{createBy}</if>
|
|
|
+ </where>
|
|
|
+ order by update_time desc
|
|
|
</select>
|
|
|
<select id="selectDocShareReceive" parameterType="DocShare" resultType="com.jjt.doc.domain.DocShare">
|
|
|
select a.*, b.doc_name,
|