| | |
| | | return ResponseValue.success(export); |
| | | } |
| | | |
| | | @GetMapping("/deptListByModel2") |
| | | public ResponseValue deptListByModel2() { |
| | | LDeptFormScrappedQry param = CommonUtil.getObjFromReq(LDeptFormScrappedQry.class); |
| | | LDeptFormScrappedQry query = new LDeptFormScrappedQry(); |
| | | CommonUtil.copyProperties(param, query); |
| | | param = query; |
| | | |
| | | FinSysTenantUser sysInfo = getSysInfo(); |
| | | if (sysInfo == null) { |
| | | throw new RuntimeException("登录用户信息不存在"); |
| | | } |
| | | /*当前登录人只能看到自己机构下的列表*/ |
| | | String tenantId = sysInfo.getTenantId(); |
| | | String paramAgencyId = param.getAgencyId(); |
| | | if (StringUtils.isEmpty(paramAgencyId) || !paramAgencyId.startsWith(tenantId)) { |
| | | param.setAgencyId(tenantId); |
| | | } |
| | | return ResponseValue.success(depFormScrappedService.listByModel2(param)); |
| | | } |
| | | |
| | | |
| | | // public static void main(String[] args) { |
| | | // TemplateExportParams exportParams = new TemplateExportParams("D:\\MyProjects\\jmy\\低值易耗品\\low-consum-manage\\deploy-jar-single\\src\\main\\resources\\import\\deptScrapped.xlsx"); |
| | | // exportParams.setHeadingStartRow(2); |