|
@@ -109,9 +109,15 @@ public class ScheduleUserDateServiceImpl extends SuperServiceImpl<ScheduleUserDa
|
|
|
* @return
|
|
|
*/
|
|
|
private String getCount(Map<String, String> map){
|
|
|
- String sql = " select count(1) count from imcs_s_schedule_user issu, c_auth_user u LEFT JOIN c_core_org o on u.org_id = o.id ";
|
|
|
- sql+=" where 1=1 AND issu.user_id = u.id";
|
|
|
- sql+=genCustSearchParam(map);
|
|
|
+ //年月条件
|
|
|
+ String year = StrUtil.isEmpty(map.get("year"))?"1":map.get("year").toString();
|
|
|
+ String month = StrUtil.isEmpty(map.get("month"))?"1":map.get("month").toString();
|
|
|
+ //年月条件
|
|
|
+ String date = year+"-"+month;
|
|
|
+ String sql = " select count(distinct user_id) count from imcs_s_schedule_user_date issud where 1=1";
|
|
|
+ if(StrUtil.isNotEmpty(year)&&StrUtil.isNotEmpty(month)){
|
|
|
+ sql+=" and issud.date like '"+date+"%' ";
|
|
|
+ }
|
|
|
return sql;
|
|
|
}
|
|
|
|