|
@@ -186,41 +186,6 @@ public interface CompanyUserMapper
|
|
|
@Select("select * from qw_user where corp_id=#{corpId} and company_id=#{companyId}")
|
|
|
List<QwUserVO> selectCompanyQwUserList(@Param("corpId") String corpId,@Param("companyId")Long companyId);
|
|
|
|
|
|
- @Select({"<script> " +
|
|
|
- "select u.*, d.dept_name, d.leader from company_user u\n" +
|
|
|
- " left join company_dept d on u.dept_id = d.dept_id\n" +
|
|
|
- " where u.del_flag = '0'\n" +
|
|
|
- " <if test=\"userName != null and userName != ''\">\n" +
|
|
|
- " AND u.user_name like concat('%', #{userName}, '%')\n" +
|
|
|
- " </if>\n" +
|
|
|
- "\n" +
|
|
|
- " <if test=\"nickName != null and nickName != ''\">\n" +
|
|
|
- " AND u.nick_name like concat( #{nickName}, '%')\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"companyId != null and companyId != ''\">\n" +
|
|
|
- " AND u.company_id = #{companyId}\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"status != null and status != ''\">\n" +
|
|
|
- " AND u.status = #{status}\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"qwStatus != null \">\n" +
|
|
|
- " AND u.qw_status = #{qwStatus} \n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"phonenumber != null and phonenumber != ''\">\n" +
|
|
|
- " AND u.phonenumber like concat('%', #{phonenumber}, '%')\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"beginTime != null and beginTime != ''\"><!-- 开始时间检索 -->\n" +
|
|
|
- " AND date_format(u.create_time,'%y%m%d') >= date_format(#{beginTime},'%y%m%d')\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"endTime != null and endTime != ''\"><!-- 结束时间检索 -->\n" +
|
|
|
- " AND date_format(u.create_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <if test=\"deptId != null and deptId != 0\">\n" +
|
|
|
- " AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM company_dept t WHERE find_in_set(#{deptId}, ancestors) ))\n" +
|
|
|
- " </if>\n" +
|
|
|
- " <!-- 数据范围过滤 -->\n" +
|
|
|
- " ${params.dataScope}"+
|
|
|
- "</script>"})
|
|
|
List<CompanyUserQwListVO> selectCompanyUserQwListVO(CompanyUserQwParam user);
|
|
|
|
|
|
|
|
@@ -291,4 +256,6 @@ public interface CompanyUserMapper
|
|
|
List<Long> selectUserAllCompanyUserId(@Param("companyUserId") Long companyUserId);
|
|
|
|
|
|
String selectCompanyUserNameUserById(@Param("userId") Long userId);
|
|
|
+
|
|
|
+ void uploadQrCode(@Param("userId") String userId, @Param("url") String url);
|
|
|
}
|