|
@@ -501,7 +501,9 @@ public class ScanAdminController {
|
|
|
@ApiOperation("导出允许复工人员")
|
|
|
@SneakyThrows
|
|
|
@GetMapping("/whepi/returnWork/exReturnWork")
|
|
|
- public void exReturnWork(HttpParameterParser parser,HttpServletResponse resp, @Pd(name = "unitId" , required = false, defaultValue = "0") Long unitId) {
|
|
|
+ public void exReturnWork(HttpParameterParser parser,HttpServletResponse resp,
|
|
|
+ @Pd(name = "unitId" , required = false, defaultValue = "0") Long unitId,
|
|
|
+ @Pd(name = "departmentId" , required = false, defaultValue = "0") Long departmentId) {
|
|
|
Long userId = JwtHelper.getUserId();
|
|
|
if (userId > 7000 && userId < 8000) {
|
|
|
unitId = userId;
|
|
@@ -509,6 +511,7 @@ public class ScanAdminController {
|
|
|
scanService.returnWorkLY(unitId);
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("unitId", unitId);
|
|
|
+ map.put("departmentId", departmentId);
|
|
|
List<ReturnWorkLy> list = returnWorkLyMapper.exgetAllUser(map);
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
ExcelUtils.writeSheet(ReturnWorkLy.class, list).export(resp,"凌云集团正常复工员工" + sdf.format(new Date()));
|