76 lines
2.7 KiB
Java
76 lines
2.7 KiB
Java
|
|
package com.engine.salary.remote.attend.service.impl;
|
||
|
|
|
||
|
|
import com.alibaba.fastjson.JSONObject;
|
||
|
|
import com.engine.core.impl.Service;
|
||
|
|
import com.engine.kq.cmd.report.GetKQReportCmd;
|
||
|
|
import com.engine.salary.mapper.attend.AttendDataMapper;
|
||
|
|
import com.engine.salary.remote.attend.entity.Attend4Salary;
|
||
|
|
import com.engine.salary.remote.attend.service.RemoteAttend4SalaryService;
|
||
|
|
import com.engine.salary.util.db.MapperProxyFactory;
|
||
|
|
|
||
|
|
import java.util.HashMap;
|
||
|
|
import java.util.List;
|
||
|
|
import java.util.Map;
|
||
|
|
|
||
|
|
public class RemoteAttend4SalaryServiceImpl extends Service implements RemoteAttend4SalaryService {
|
||
|
|
|
||
|
|
private AttendDataMapper getAttendDataMapper(){
|
||
|
|
return MapperProxyFactory.getProxy(AttendDataMapper.class);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<Map> getColumns(Attend4Salary attend4Salary) {
|
||
|
|
Map<String, Object> paramsMap = new HashMap<String, Object>();
|
||
|
|
paramsMap.put("pageIndex",1);
|
||
|
|
paramsMap.put("pageSize",10);
|
||
|
|
paramsMap.put("typeselect","6");
|
||
|
|
paramsMap.put("fromDate","2021-01-01");
|
||
|
|
paramsMap.put("toDate","2023-01-01");
|
||
|
|
paramsMap.put("viewScope","3");
|
||
|
|
paramsMap.put("resourceId","22");
|
||
|
|
paramsMap.put("isNoAccount","1");
|
||
|
|
paramsMap.put("attendanceSerial","");
|
||
|
|
paramsMap.put("isFromMyAttendance","1");
|
||
|
|
Map<String, Object> temp = new HashMap<String,Object>();
|
||
|
|
temp.put("data",JSONObject.toJSONString(paramsMap));
|
||
|
|
temp.put("reportType","month");
|
||
|
|
Object datas = commandExecutor.execute(new GetKQReportCmd(temp, user)).get("columns");
|
||
|
|
System.out.println(datas);
|
||
|
|
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<Map<String, Object>> getDatas(Attend4Salary attend4Salary) {
|
||
|
|
|
||
|
|
// List<Long> onlyEmpIds = attend4Salary.getOnlyEmpIds();
|
||
|
|
|
||
|
|
// List<Map<String, Object>> attendData = getAttendDataMapper().getAttendData();
|
||
|
|
//
|
||
|
|
// return attendData;
|
||
|
|
|
||
|
|
Map<String, Object> paramsMap = new HashMap<String, Object>();
|
||
|
|
paramsMap.put("pageIndex",1);
|
||
|
|
paramsMap.put("pageSize",10);
|
||
|
|
paramsMap.put("typeselect","6");
|
||
|
|
paramsMap.put("fromDate","2021-01-01");
|
||
|
|
paramsMap.put("toDate","2023-01-01");
|
||
|
|
paramsMap.put("viewScope","3");
|
||
|
|
paramsMap.put("resourceId","22");
|
||
|
|
paramsMap.put("isNoAccount","1");
|
||
|
|
paramsMap.put("attendanceSerial","");
|
||
|
|
paramsMap.put("isFromMyAttendance","1");
|
||
|
|
Map<String, Object> temp = new HashMap<String,Object>();
|
||
|
|
temp.put("data",JSONObject.toJSONString(paramsMap));
|
||
|
|
temp.put("reportType","month");
|
||
|
|
|
||
|
|
|
||
|
|
Object datas = commandExecutor.execute(new GetKQReportCmd(temp, user)).get("datas");
|
||
|
|
System.out.println(datas);
|
||
|
|
|
||
|
|
return null;
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|