|
@@ -14,6 +14,7 @@
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="uploadTime" column="upload_time" />
|
|
|
+ <result property="createPhone" column="create_phone" />
|
|
|
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.railroad.modules.base.entity.OaFileInfo">
|
|
@@ -24,7 +25,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_oa_file_info
|
|
|
- (id_,name_,url_,type_,create_by,create_time,update_by,update_time,del_flag,upload_time)
|
|
|
+ (id_,name_,url_,type_,create_by,create_time,update_by,update_time,del_flag,upload_time,create_phone)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -37,6 +38,7 @@
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
,#{uploadTime,jdbcType= TIMESTAMP }
|
|
|
+,#{createPhone,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -73,6 +75,9 @@
|
|
|
<if test="uploadTime!=null">
|
|
|
upload_time=#{uploadTime,jdbcType= TIMESTAMP },
|
|
|
</if>
|
|
|
+ <if test="createPhone!=null">
|
|
|
+ create_phone=#{createPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
@@ -94,6 +99,24 @@
|
|
|
<if test="searchParams.name != null">
|
|
|
and name_ like #{searchParams.name}
|
|
|
</if>
|
|
|
+ <if test="searchParams.createPhone != null">
|
|
|
+ <![CDATA[
|
|
|
+ and ( create_phone = #{searchParams.createPhone}
|
|
|
+ ]]>
|
|
|
+ <if test="searchParams.oaFileRegUserInfoList != null">
|
|
|
+ <foreach item="item" collection="searchParams.oaFileRegUserInfoList" open="or id_ in ("
|
|
|
+ separator="," close=")">
|
|
|
+ #{item.fileId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.oaFileOrgList != null">
|
|
|
+ <foreach item="item" collection="searchParams.oaFileOrgList" open="or id_ in ("
|
|
|
+ separator="," close=")">
|
|
|
+ #{item.fileId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="searchParams.createBy != null">
|
|
|
<![CDATA[
|
|
|
and ( create_by = #{searchParams.createBy}
|
|
@@ -129,17 +152,21 @@
|
|
|
<if test="searchParams.name != null">
|
|
|
and a.name_ like #{searchParams.name}
|
|
|
</if>
|
|
|
- <if test="searchParams.createBy != null">
|
|
|
+ <if test="searchParams.createPhone != null">
|
|
|
<![CDATA[
|
|
|
- and (a.create_by = #{searchParams.createBy}
|
|
|
+ and ( create_phone = #{searchParams.createPhone}
|
|
|
]]>
|
|
|
- <if test="searchParams.businessIds != null">
|
|
|
- or a.id_ in (select file_id from base_oa_file_reg_user_info
|
|
|
- where del_flag = 0
|
|
|
- <foreach item="businessId" collection="searchParams.businessIds" open="and business_id in (" separator="," close=")">
|
|
|
- #{businessId}
|
|
|
+ <if test="searchParams.oaFileRegUserInfoList != null">
|
|
|
+ <foreach item="item" collection="searchParams.oaFileRegUserInfoList" open="or id_ in ("
|
|
|
+ separator="," close=")">
|
|
|
+ #{item.fileId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.oaFileOrgList != null">
|
|
|
+ <foreach item="item" collection="searchParams.oaFileOrgList" open="or id_ in ("
|
|
|
+ separator="," close=")">
|
|
|
+ #{item.fileId}
|
|
|
</foreach>
|
|
|
- )
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|