|
@@ -1,5 +1,6 @@
|
|
package com.jeeplus.test.wdt.disposeRubbish.controller;
|
|
package com.jeeplus.test.wdt.disposeRubbish.controller;
|
|
|
|
|
|
|
|
+import com.google.common.collect.Lists;
|
|
import com.jeeplus.aop.logging.annotation.ApiLog;
|
|
import com.jeeplus.aop.logging.annotation.ApiLog;
|
|
import com.jeeplus.common.utils.ResponseUtil;
|
|
import com.jeeplus.common.utils.ResponseUtil;
|
|
import com.jeeplus.sys.service.OfficeService;
|
|
import com.jeeplus.sys.service.OfficeService;
|
|
@@ -274,4 +275,24 @@ public class DisposeRubbishController {
|
|
DisposeRubbish post = disposeRubbishService.getByNo ( no );
|
|
DisposeRubbish post = disposeRubbishService.getByNo ( no );
|
|
return ResponseEntity.ok ( post );
|
|
return ResponseEntity.ok ( post );
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据officeId查询详情汇总
|
|
|
|
+ */
|
|
|
|
+ @ApiLog("查询所有村落汇总信息")
|
|
|
|
+ @ApiOperation(value = "查询所有村落汇总信息")
|
|
|
|
+ @GetMapping("getAllOfficeDetailCollect")
|
|
|
|
+ public ResponseEntity<List<HashMap<String,Object>>> getAllOfficeDetailCollect() {
|
|
|
|
+ List<OfficeDTO> officeList = officeService.getOfficeOnHamlet ();
|
|
|
|
+ List<HashMap<String,Object>> result = Lists.newArrayList();
|
|
|
|
+ for (OfficeDTO officeDTO : officeList) {
|
|
|
|
+ HashMap<String,Object> map = disposeRubbishService.getAllOfficeDetailCollectByOfficeId ( officeDTO.getId() );
|
|
|
|
+ map.put("officeId",officeDTO.getId());
|
|
|
|
+ map.put("officeName",officeDTO.getName());
|
|
|
|
+ result.add(map);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return ResponseEntity.ok ( result );
|
|
|
|
+ }
|
|
}
|
|
}
|