|
|
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyUserId != null "> and company_user_id = #{companyUserId}</if>
|
|
|
<if test="unionId != null and unionId != ''"> and union_id = #{unionId}</if>
|
|
|
<if test="materialId != null "> and material_id = #{materialId}</if>
|
|
|
- <if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
|
|
+ <if test="beginCreateTime != null and beginCreateTime != '' and endCreateTime != null and endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
|
|
<if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if>
|
|
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
|
|
<if test="companyUserName != null and companyUserName != ''"> and company_user_name like concat('%', #{companyUserName}, '%')</if>
|
|
|
@@ -97,4 +97,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
+
|
|
|
+ <select id="selectFsShareMaterialClickRecordListVO" parameterType="com.fs.his.param.FsShareMaterialClickRecordParam" resultType="com.fs.his.vo.FsShareMaterialClickRecordVO">
|
|
|
+ select r.user_name,r.union_id,r.avatar,
|
|
|
+ r.company_user_name,r.create_time,c.company_name,m.material_name
|
|
|
+ FROM fs_share_material_click_record r
|
|
|
+ LEFT JOIN company c ON c.company_id = r.company_id
|
|
|
+ LEFT JOIN fs_share_material m ON m.id = r.material_id
|
|
|
+ <where>
|
|
|
+ <if test="materialName != null "> and m.material_name like concat('%', #{materialName}, '%')</if>
|
|
|
+ <if test="beginCreateTime != null and beginCreateTime != '' and endCreateTime != null and endCreateTime != ''"> and r.create_time between #{beginCreateTime} and #{endCreateTime}</if>
|
|
|
+ <if test="userName != null and userName != ''"> and r.user_name like concat('%', #{userName}, '%')</if>
|
|
|
+ <if test="companyUserName != null and companyUserName != ''"> and r.company_user_name like concat('%', #{companyUserName}, '%')</if>
|
|
|
+ <if test="companyName != null "> and c.company_name like concat('%', #{companyName}, '%')</if>
|
|
|
+ </where>
|
|
|
+ order by r.create_time desc
|
|
|
+ </select>
|
|
|
</mapper>
|