|
|
|
@ -34,7 +34,7 @@ import java.util.Map;
|
|
|
|
|
public class ProjectDownloadController {
|
|
|
|
|
|
|
|
|
|
//日志
|
|
|
|
|
private final Logger log = LoggerFactory.getLogger(ProjectColumnsController.class);
|
|
|
|
|
private final Logger log = LoggerFactory.getLogger(ProjectDownloadController.class);
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ColumnsUtils columnsUtils;
|
|
|
|
@ -47,73 +47,73 @@ public class ProjectDownloadController {
|
|
|
|
|
public String jtjname = "第三集团军";
|
|
|
|
|
public String qiyuesuoid = "9081413488803384317";
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/excledownload",produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
public void downloadExcel(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
|
|
|
|
|
|
|
String otherid = CommonUtils.null2String(request.getParameter("otherid")).trim();
|
|
|
|
|
if(StringUtils.isBlank(otherid)){
|
|
|
|
|
otherid = permissionEmployee;
|
|
|
|
|
}
|
|
|
|
|
String xm_id = CommonUtils.null2String(request.getParameter("xmid")).trim();
|
|
|
|
|
String xm_mc = CommonUtils.null2String(request.getParameter("xmmc")).trim();
|
|
|
|
|
String xm_xmjl = CommonUtils.null2String(request.getParameter("xmjl")).trim();
|
|
|
|
|
String xm_bm = CommonUtils.null2String(request.getParameter("bm")).trim();
|
|
|
|
|
String xm_jg = CommonUtils.null2String(request.getParameter("jg")).trim();
|
|
|
|
|
String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
|
|
|
|
|
Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
log.info("downloadExcel----employeeId:"+employeeId);
|
|
|
|
|
String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
|
|
|
|
|
SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
log.info("downloadExcel----userid:"+userid);
|
|
|
|
|
|
|
|
|
|
String subcompanyids = "" ;
|
|
|
|
|
if(otherid.contains(employee_id)){
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam4Other(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
}else{
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
}
|
|
|
|
|
log.info("downloadExcel----2222:"+employee_id);
|
|
|
|
|
List<Map<String,Object>> recordList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
|
|
|
|
|
log.info("downloadExcel----recordList:" + recordList.size());
|
|
|
|
|
String name = "第三集团军知识分享报表.xlsx";
|
|
|
|
|
String sheetName = "知识分享报表" ;
|
|
|
|
|
// 1.创建一个工作簿。
|
|
|
|
|
SXSSFWorkbook workbook = new SXSSFWorkbook();
|
|
|
|
|
// 2.创建一个工作表
|
|
|
|
|
Sheet sheet = workbook.createSheet(sheetName);
|
|
|
|
|
// 3.创建行。
|
|
|
|
|
List<Map<String,String>> headList = columnsUtils.getExcelHead();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Row headRow = sheet.createRow(0);
|
|
|
|
|
for (int i = 0; i < headList.size(); i++) {
|
|
|
|
|
Map<String,String> headData = headList.get(i);
|
|
|
|
|
Cell cell = headRow.createCell(i);
|
|
|
|
|
cell.setCellValue(headData.get("name"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(subcompanyids)) {
|
|
|
|
|
String baseSql = columnsUtils.queryProjectSql(subcompanyids, xm_mc, xm_xmjl, xm_bm, xm_id, xm_jg, xm_ysrq_start, xm_ysrq_end);
|
|
|
|
|
columnsUtils.queryProjectListByExcel(baseSql, tenant_key,jtjname,headList,sheet);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
response.reset();
|
|
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(name, "UTF-8"));
|
|
|
|
|
response.setContentType("application/vnd.ms-excel");
|
|
|
|
|
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
|
|
|
|
|
|
|
OutputStream output = response.getOutputStream();
|
|
|
|
|
workbook.write(output);
|
|
|
|
|
output.flush();
|
|
|
|
|
output.close();
|
|
|
|
|
workbook.dispose();
|
|
|
|
|
}
|
|
|
|
|
// @GetMapping(value = "/excledownload",produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
|
|
|
|
// @WeaPermission(publicPermission = true)
|
|
|
|
|
// public void downloadExcel(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
|
|
//
|
|
|
|
|
// String otherid = CommonUtils.null2String(request.getParameter("otherid")).trim();
|
|
|
|
|
// if(StringUtils.isBlank(otherid)){
|
|
|
|
|
// otherid = permissionEmployee;
|
|
|
|
|
// }
|
|
|
|
|
// String xm_id = CommonUtils.null2String(request.getParameter("xmid")).trim();
|
|
|
|
|
// String xm_mc = CommonUtils.null2String(request.getParameter("xmmc")).trim();
|
|
|
|
|
// String xm_xmjl = CommonUtils.null2String(request.getParameter("xmjl")).trim();
|
|
|
|
|
// String xm_bm = CommonUtils.null2String(request.getParameter("bm")).trim();
|
|
|
|
|
// String xm_jg = CommonUtils.null2String(request.getParameter("jg")).trim();
|
|
|
|
|
// String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
// String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
//
|
|
|
|
|
// Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
// log.info("downloadExcel----employeeId:"+employeeId);
|
|
|
|
|
// String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
//
|
|
|
|
|
// SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
// String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
// log.info("downloadExcel----userid:"+userid);
|
|
|
|
|
//
|
|
|
|
|
// String subcompanyids = "" ;
|
|
|
|
|
// if(otherid.contains(employee_id)){
|
|
|
|
|
// subcompanyids = columnsUtils.getEmployeeByProjectTeam4Other(jtjname,qiyuesuoid,tenant_key);
|
|
|
|
|
// }else{
|
|
|
|
|
// subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
// }
|
|
|
|
|
// log.info("downloadExcel----2222:"+employee_id);
|
|
|
|
|
// List<Map<String,Object>> recordList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
//
|
|
|
|
|
// log.info("downloadExcel----recordList:" + recordList.size());
|
|
|
|
|
// String name = "第三集团军知识分享报表.xlsx";
|
|
|
|
|
// String sheetName = "知识分享报表" ;
|
|
|
|
|
// // 1.创建一个工作簿。
|
|
|
|
|
// SXSSFWorkbook workbook = new SXSSFWorkbook();
|
|
|
|
|
// // 2.创建一个工作表
|
|
|
|
|
// Sheet sheet = workbook.createSheet(sheetName);
|
|
|
|
|
// // 3.创建行。
|
|
|
|
|
// List<Map<String,String>> headList = columnsUtils.getExcelHead();
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Row headRow = sheet.createRow(0);
|
|
|
|
|
// for (int i = 0; i < headList.size(); i++) {
|
|
|
|
|
// Map<String,String> headData = headList.get(i);
|
|
|
|
|
// Cell cell = headRow.createCell(i);
|
|
|
|
|
// cell.setCellValue(headData.get("name"));
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if(StringUtils.isNotBlank(subcompanyids)) {
|
|
|
|
|
// String baseSql = columnsUtils.queryProjectSql();
|
|
|
|
|
// columnsUtils.queryProjectListByExcel(baseSql, tenant_key,jtjname,headList,sheet,subcompanyids, xm_mc, xm_xmjl, xm_bm, xm_id, xm_jg, xm_ysrq_start, xm_ysrq_end);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// response.reset();
|
|
|
|
|
// response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(name, "UTF-8"));
|
|
|
|
|
// response.setContentType("application/vnd.ms-excel");
|
|
|
|
|
// response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
|
|
//
|
|
|
|
|
// OutputStream output = response.getOutputStream();
|
|
|
|
|
// workbook.write(output);
|
|
|
|
|
// output.flush();
|
|
|
|
|
// output.close();
|
|
|
|
|
// workbook.dispose();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @ApiOperation(notes = "文件下载", value = "文件下载")
|
|
|
|
@ -281,29 +281,23 @@ public class ProjectDownloadController {
|
|
|
|
|
String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int pageNo = CommonUtils.getIntValue(request.getParameter("pageNo"),1);
|
|
|
|
|
int pageSize = CommonUtils.getIntValue(request.getParameter("pageSize"),20);
|
|
|
|
|
|
|
|
|
|
Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
log.info("downloadExcel----employeeId:"+employeeId);
|
|
|
|
|
String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
|
|
|
|
|
SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
log.info("downloadExcel----userid:"+userid);
|
|
|
|
|
// SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
// String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
|
|
|
|
|
String subcompanyids = "" ;
|
|
|
|
|
if(otherid.contains(employee_id)){
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam4Other(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam4Other(jtjname,qiyuesuoid,tenant_key);
|
|
|
|
|
}else{
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
}
|
|
|
|
|
log.info("downloadExcel----2222:"+employee_id);
|
|
|
|
|
List<Map<String,Object>> recordList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
// List<Map<String,Object>> recordList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
|
|
|
|
|
log.info("downloadExcel----recordList:" + recordList.size());
|
|
|
|
|
String name = "第三集团军知识分享报表.xlsx";
|
|
|
|
|
String sheetName = "知识分享报表" ;
|
|
|
|
|
// 1.创建一个工作簿。
|
|
|
|
@ -313,7 +307,6 @@ public class ProjectDownloadController {
|
|
|
|
|
// 3.创建行。
|
|
|
|
|
List<Map<String,String>> headList = columnsUtils.getExcelHead();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Row headRow = sheet.createRow(0);
|
|
|
|
|
for (int i = 0; i < headList.size(); i++) {
|
|
|
|
|
Map<String,String> headData = headList.get(i);
|
|
|
|
@ -322,8 +315,8 @@ public class ProjectDownloadController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(subcompanyids)) {
|
|
|
|
|
String baseSql = columnsUtils.queryProjectSql(subcompanyids, xm_mc, xm_xmjl, xm_bm, xm_id, xm_jg, xm_ysrq_start, xm_ysrq_end);
|
|
|
|
|
columnsUtils.queryProjectListByExcel2(baseSql, tenant_key,jtjname,headList,sheet,pageNo,pageSize);
|
|
|
|
|
String baseSql = columnsUtils.queryProjectSql();
|
|
|
|
|
columnsUtils.queryProjectListByExcel2(baseSql,tenant_key,jtjname,headList,sheet,pageNo,pageSize,subcompanyids,xm_mc, xm_xmjl, xm_bm, xm_id, xm_jg, xm_ysrq_start, xm_ysrq_end);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
response.reset();
|
|
|
|
@ -344,82 +337,82 @@ public class ProjectDownloadController {
|
|
|
|
|
* @param request
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getProjectListCount")
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
public WeaResult<Object> getProjectListCount(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
String otherid = CommonUtils.null2String(request.getParameter("otherid")).trim();
|
|
|
|
|
if(StringUtils.isBlank(otherid)){
|
|
|
|
|
otherid = permissionEmployee;
|
|
|
|
|
}
|
|
|
|
|
String xm_id = CommonUtils.null2String(request.getParameter("xmid")).trim();
|
|
|
|
|
String xm_mc = CommonUtils.null2String(request.getParameter("xmmc")).trim();
|
|
|
|
|
String xm_xmjl = CommonUtils.null2String(request.getParameter("xmjl")).trim();
|
|
|
|
|
String xm_bm = CommonUtils.null2String(request.getParameter("bm")).trim();
|
|
|
|
|
String xm_jg = CommonUtils.null2String(request.getParameter("jg")).trim();
|
|
|
|
|
String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
|
|
|
|
|
Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
log.info("downloadExcel----employeeId:"+employeeId);
|
|
|
|
|
String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
|
|
|
|
|
SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
log.info("downloadExcel----userid:"+userid);
|
|
|
|
|
|
|
|
|
|
String subcompanyids = "" ;
|
|
|
|
|
if(otherid.contains(employee_id)){
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam4Other(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
}else{
|
|
|
|
|
subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
}
|
|
|
|
|
log.info("downloadExcel----2222:"+employee_id);
|
|
|
|
|
List<Map<String,Object>> dataList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
int count = 0;
|
|
|
|
|
if(StringUtils.isNotBlank(subcompanyids)) {
|
|
|
|
|
String baseSql = columnsUtils.queryProjectSql(subcompanyids, xm_mc, xm_xmjl, xm_bm, xm_id, xm_jg, xm_ysrq_start, xm_ysrq_end);
|
|
|
|
|
count = columnsUtils.getProjectListCount(baseSql);
|
|
|
|
|
}
|
|
|
|
|
Map<String, Object> data = new HashMap<String, Object>();
|
|
|
|
|
data.put("count",count);
|
|
|
|
|
return WeaResult.success(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getprojectlist")
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
public WeaResult<Object> getprojectlist(HttpServletRequest request){
|
|
|
|
|
|
|
|
|
|
int pageNo = CommonUtils.getIntValue(request.getParameter("pageNo"),1);
|
|
|
|
|
int pageSize = CommonUtils.getIntValue(request.getParameter("pageSize"),20);
|
|
|
|
|
|
|
|
|
|
String xm_id = CommonUtils.null2String(request.getParameter("xmid")).trim();
|
|
|
|
|
String xm_mc = CommonUtils.null2String(request.getParameter("xmmc")).trim();
|
|
|
|
|
String xm_xmjl = CommonUtils.null2String(request.getParameter("xmjl")).trim();
|
|
|
|
|
String xm_bm = CommonUtils.null2String(request.getParameter("bm")).trim();
|
|
|
|
|
String xm_jg = CommonUtils.null2String(request.getParameter("jg")).trim();
|
|
|
|
|
String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
|
|
|
|
|
Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
|
|
|
|
|
Map<String, Object> data = new HashMap<String, Object>();
|
|
|
|
|
log.info("queryprojectlistdata3----:"+userid);
|
|
|
|
|
|
|
|
|
|
String subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
|
|
|
|
|
String baseSql = columnsUtils.queryProjectSql(subcompanyids,xm_mc,xm_xmjl,xm_bm,xm_id,xm_jg,xm_ysrq_start,xm_ysrq_end);
|
|
|
|
|
|
|
|
|
|
int total = columnsUtils.queryProjectCount(baseSql);
|
|
|
|
|
// @GetMapping("/getProjectListCount")
|
|
|
|
|
// @WeaPermission(publicPermission = true)
|
|
|
|
|
// public WeaResult<Object> getProjectListCount(HttpServletRequest request){
|
|
|
|
|
//
|
|
|
|
|
// String otherid = CommonUtils.null2String(request.getParameter("otherid")).trim();
|
|
|
|
|
// if(StringUtils.isBlank(otherid)){
|
|
|
|
|
// otherid = permissionEmployee;
|
|
|
|
|
// }
|
|
|
|
|
// String xm_id = CommonUtils.null2String(request.getParameter("xmid")).trim();
|
|
|
|
|
// String xm_mc = CommonUtils.null2String(request.getParameter("xmmc")).trim();
|
|
|
|
|
// String xm_xmjl = CommonUtils.null2String(request.getParameter("xmjl")).trim();
|
|
|
|
|
// String xm_bm = CommonUtils.null2String(request.getParameter("bm")).trim();
|
|
|
|
|
// String xm_jg = CommonUtils.null2String(request.getParameter("jg")).trim();
|
|
|
|
|
// String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
// String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
//
|
|
|
|
|
// Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
// log.info("downloadExcel----employeeId:"+employeeId);
|
|
|
|
|
// String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
//
|
|
|
|
|
// SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
// String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
// log.info("downloadExcel----userid:"+userid);
|
|
|
|
|
//
|
|
|
|
|
// String subcompanyids = "" ;
|
|
|
|
|
// if(otherid.contains(employee_id)){
|
|
|
|
|
// subcompanyids = columnsUtils.getEmployeeByProjectTeam4Other(jtjname,qiyuesuoid,tenant_key);
|
|
|
|
|
// }else{
|
|
|
|
|
// subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
// }
|
|
|
|
|
// log.info("downloadExcel----2222:"+employee_id);
|
|
|
|
|
// List<Map<String,Object>> dataList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
// int count = 0;
|
|
|
|
|
// if(StringUtils.isNotBlank(subcompanyids)) {
|
|
|
|
|
// String baseSql = columnsUtils.queryProjectSql(subcompanyids, xm_mc, xm_xmjl, xm_bm, xm_id, xm_jg, xm_ysrq_start, xm_ysrq_end);
|
|
|
|
|
// count = columnsUtils.getProjectListCount(baseSql);
|
|
|
|
|
// }
|
|
|
|
|
// Map<String, Object> data = new HashMap<String, Object>();
|
|
|
|
|
// data.put("count",count);
|
|
|
|
|
// return WeaResult.success(data);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
data.put("count", total);
|
|
|
|
|
return WeaResult.success(data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// @GetMapping("/getprojectlist")
|
|
|
|
|
// @WeaPermission(publicPermission = true)
|
|
|
|
|
// public WeaResult<Object> getprojectlist(HttpServletRequest request){
|
|
|
|
|
//
|
|
|
|
|
// int pageNo = CommonUtils.getIntValue(request.getParameter("pageNo"),1);
|
|
|
|
|
// int pageSize = CommonUtils.getIntValue(request.getParameter("pageSize"),20);
|
|
|
|
|
//
|
|
|
|
|
// String xm_id = CommonUtils.null2String(request.getParameter("xmid")).trim();
|
|
|
|
|
// String xm_mc = CommonUtils.null2String(request.getParameter("xmmc")).trim();
|
|
|
|
|
// String xm_xmjl = CommonUtils.null2String(request.getParameter("xmjl")).trim();
|
|
|
|
|
// String xm_bm = CommonUtils.null2String(request.getParameter("bm")).trim();
|
|
|
|
|
// String xm_jg = CommonUtils.null2String(request.getParameter("jg")).trim();
|
|
|
|
|
// String xm_ysrq_start = CommonUtils.null2String(request.getParameter("ysrq_start")).trim();
|
|
|
|
|
// String xm_ysrq_end = CommonUtils.null2String(request.getParameter("ysrq_end")).trim();
|
|
|
|
|
//
|
|
|
|
|
// Long employeeId = UserContext.getCurrentEmployeeId();
|
|
|
|
|
// String employee_id = CommonUtils.null2String(employeeId);
|
|
|
|
|
// SimpleEmployee employee = hrmCommonEmployeeService.getEmployeeById(employeeId, tenant_key);
|
|
|
|
|
// String userid = CommonUtils.null2String(employee.getUserId());
|
|
|
|
|
//
|
|
|
|
|
// Map<String, Object> data = new HashMap<String, Object>();
|
|
|
|
|
// log.info("queryprojectlistdata3----:"+userid);
|
|
|
|
|
//
|
|
|
|
|
// String subcompanyids = columnsUtils.getEmployeeByProjectTeam(jtjname,qiyuesuoid,employee_id,tenant_key);
|
|
|
|
|
//
|
|
|
|
|
// String baseSql = columnsUtils.queryProjectSql(subcompanyids,xm_mc,xm_xmjl,xm_bm,xm_id,xm_jg,xm_ysrq_start,xm_ysrq_end);
|
|
|
|
|
//
|
|
|
|
|
// int total = columnsUtils.queryProjectCount(baseSql);
|
|
|
|
|
//
|
|
|
|
|
// data.put("count", total);
|
|
|
|
|
// return WeaResult.success(data);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|