|
@@ -65,6 +65,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by p_date desc , d.createdate desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectAllFileListFuzzy" parameterType="TCommonfile" resultMap="TCommonfileResult">
|
|
|
+ select d.file_size , d.p_value, d.p_date ,u.nick_name, d.id, d.p_id, d.file_name, d.file_url, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.remarks, d.p_type from t_commonfile d
|
|
|
+ LEFT JOIN SYS_USER u on d.CREATER_CODE = u.USER_ID
|
|
|
+ <where>
|
|
|
+ <if test="pId != null "> and p_id = #{pId}</if>
|
|
|
+ <if test="pType != null "> and p_type like concat(concat('%', #{pType}), '%')</if>
|
|
|
+ <if test="pValue != null and pValue != ''"> and p_value = #{pValue}</if>
|
|
|
+ <if test="pDate != null "> and p_date = #{pDate}</if>
|
|
|
+ and d.del_flag = 0
|
|
|
+ </where>
|
|
|
+ order by p_date desc , d.createdate desc
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertTCommonfile" parameterType="TCommonfile">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
SELECT seq_t_commonfile.NEXTVAL as id FROM DUAL
|