@ -33,7 +33,6 @@ public interface UserEffectRecordsMapper extends BaseMapper<UserEffectRecords> {
// "ORDER BY effectValue DESC")
@Select("SELECT t1.departmentId,t1.name,IFNULL(sum(t2.effectValue),0) as effectValue from (SELECT t1.*,t2.openid FROM qywxDepartment t1 LEFT JOIN qywxDepartmentUserLink as t2 on t2.departmentId = t1.departmentId) as t1\n"+
"INNER JOIN (SELECT t1.openid,IFNULL(sum(t2.effectResultTran),0) as effectValue from user t1 left join userEffectRecords t2 on t2.userId = t1.id GROUP BY openid) as t2 on t2.openid = t1.openid\n"+