zhangjinli 3 years ago
parent 3c12340715
commit 70680c1ee4

@ -31,7 +31,7 @@ public interface UserEffectRecordsMapper extends BaseMapper<UserEffectRecords> {
"GROUP BY departmentId\n" +
"ORDER BY effectValue DESC")
IPage<Map> rankByDepartment(IPage page, @Param("ew") Wrapper<UserEffectRecords> queryWrapper);
@Select("SELECT t1.userId,t2.name as title,t2.departmentId,t2.departmentName as subtitle,IFNULL(sum(t1.effectResultTran),0) as effectValue from userEffectRecords as t1\n" +
@Select("SELECT t1.userId,t2.name as title,t2.avatar,t2.departmentId,t2.departmentName as subtitle,IFNULL(sum(t1.effectResultTran),0) as effectValue from userEffectRecords as t1\n" +
"INNER JOIN (SELECT t1.id,t1.name,t2.departmentId,t2.name as departmentName FROM user as t1 left join qywxDepartment as t2 on t1.main_department = t2.departmentId) as t2 on t1.userId = t2.id\n" +
"${ew.customSqlSegment} " +
"GROUP BY userId\n" +

Loading…
Cancel
Save