|
|
|
@ -26,6 +26,16 @@ public interface QywxDepartmentGroupLinkMapper extends BaseMapper<QywxDepartment
|
|
|
|
|
"</script>")
|
|
|
|
|
void groupAddDepartment(Integer groupId, List<Integer> departmentIdList, LocalDateTime creatAt);
|
|
|
|
|
List<Map> departmentList(Integer groupId);
|
|
|
|
|
@Select(" SELECT t1.departmentId,t1.creatAt,t3.name as departmentName\n" +
|
|
|
|
|
" ,t4.id as userId,t4.name as userName\n" +
|
|
|
|
|
" from qywxDepartmentGroupLink as t1\n" +
|
|
|
|
|
" LEFT JOIN qywxDepartmentGroup as t2 on t1.groupId = t2.id\n" +
|
|
|
|
|
" INNER JOIN qywxDepartment as t3 on t3.departmentId = t1.departmentId\n" +
|
|
|
|
|
" INNER JOIN user as t4 on t4.main_department = t1.departmentId\n" +
|
|
|
|
|
" where t2.id in (2,4)\n" +
|
|
|
|
|
" GROUP BY userName\n" +
|
|
|
|
|
" ORDER BY creatAt DESC")
|
|
|
|
|
List<Map> departmentList2(Integer groupId);
|
|
|
|
|
@Select("SELECT t1.departmentId\n" +
|
|
|
|
|
"from qywxDepartmentGroupLink as t1\n" +
|
|
|
|
|
"LEFT JOIN qywxDepartmentGroup as t2 on t1.groupId = t2.id\n" +
|
|
|
|
|