@ -98,6 +98,9 @@ public class WorkRulesServiceImpl extends Service implements WorkRulesService {
String psersongroup = Util . null2String ( params . get ( "psersongroup" ) ) ;
String psersongroup = Util . null2String ( params . get ( "psersongroup" ) ) ;
String status = Util . null2String ( params . get ( "status" ) ) ;
String status = Util . null2String ( params . get ( "status" ) ) ;
String userId = Util . null2String ( user . getUID ( ) ) ;
String userId = Util . null2String ( user . getUID ( ) ) ;
int monthDays = DateUtil . getDays ( dateTime , Calendar . DAY_OF_MONTH ) ;
String startTime = dateTime + "-01" ;
String endTime = dateTime + "-" + monthDays ;
//0:全体人员、1: 分部、2: 部门,3:人员
//0:全体人员、1: 分部、2: 部门,3:人员
String type = Util . null2String ( params . get ( "type" ) ) ;
String type = Util . null2String ( params . get ( "type" ) ) ;
@ -118,7 +121,9 @@ public class WorkRulesServiceImpl extends Service implements WorkRulesService {
}
}
Set < String > psersongroupUserIds = null ;
Set < String > psersongroupUserIds = null ;
if ( ! "" . equals ( psersongroup ) ) {
if ( ! "" . equals ( psersongroup ) ) {
psersongroupUserIds = CommonUtil . getEmpGroupUserIds ( psersongroup ) ;
String sql = "select a.list_type,b.mainid,b.empid,b.filters,b.bdate,b.edate,b.sqltj from uf_ryqz a left join uf_ryqz_dt1 b on a.id=b.mainid where a.id=?" ;
List < Map < String , Object > > personnelGrouping = DbTools . getSqlToList ( sql , psersongroup ) ;
psersongroupUserIds = PersongroupCommonUtil . getUserIdsByPersonnelGrouping ( personnelGrouping , startTime ) ;
if ( ! "" . equals ( employeeIds ) ) {
if ( ! "" . equals ( employeeIds ) ) {
Set < String > ids = Sets . newHashSet ( ) ;
Set < String > ids = Sets . newHashSet ( ) ;
for ( String employeeId : employeeIds . split ( "," ) ) {
for ( String employeeId : employeeIds . split ( "," ) ) {
@ -149,9 +154,7 @@ public class WorkRulesServiceImpl extends Service implements WorkRulesService {
int startindex = ( pageindex - 1 ) * pageSize ;
int startindex = ( pageindex - 1 ) * pageSize ;
int endindex = pageindex * pageSize ;
int endindex = pageindex * pageSize ;
int monthDays = DateUtil . getDays ( dateTime , Calendar . DAY_OF_MONTH ) ;
String startTime = dateTime + "-01" ;
String endTime = dateTime + "-" + monthDays ;
//当为系统管理员用户登录时
//当为系统管理员用户登录时
if ( "1" . equals ( userId ) ) {
if ( "1" . equals ( userId ) ) {
if ( "" . equals ( psersongroup ) ) {
if ( "" . equals ( psersongroup ) ) {