|
|
@ -39,7 +39,7 @@ import java.util.Map; |
|
|
|
@RestController |
|
|
|
@RestController |
|
|
|
@AllArgsConstructor |
|
|
|
@AllArgsConstructor |
|
|
|
@RequestMapping("/hygiene") |
|
|
|
@RequestMapping("/hygiene") |
|
|
|
@Business(module = Constants.APP_NAME, value = "卫生自查", ignore = false) |
|
|
|
@Business(module = Constants.APP_NAME, value = "卫生自查") |
|
|
|
@Api(value = "卫生自查", tags = "卫生自查接口") |
|
|
|
@Api(value = "卫生自查", tags = "卫生自查接口") |
|
|
|
public class HygieneController extends BladeController { |
|
|
|
public class HygieneController extends BladeController { |
|
|
|
|
|
|
|
|
|
|
@ -52,7 +52,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/savePlan") |
|
|
|
@PostMapping("/savePlan") |
|
|
|
@ApiOperation(value = "新增卫生自查计划") |
|
|
|
@ApiOperation(value = "新增卫生自查计划") |
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@Operate(label = "新增卫生自查计划", type = BusinessType.INSERT, ignore = false) |
|
|
|
@Operate(label = "新增卫生自查计划", type = BusinessType.INSERT) |
|
|
|
public R savePlan(@Valid @RequestBody HygienePlanDTO hygienePlanDTO) { |
|
|
|
public R savePlan(@Valid @RequestBody HygienePlanDTO hygienePlanDTO) { |
|
|
|
return hygienePlanService.savePlan(hygienePlanDTO); |
|
|
|
return hygienePlanService.savePlan(hygienePlanDTO); |
|
|
|
} |
|
|
|
} |
|
|
@ -60,7 +60,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/updatePlan") |
|
|
|
@PostMapping("/updatePlan") |
|
|
|
@ApiOperation(value = "修改卫生自查计划") |
|
|
|
@ApiOperation(value = "修改卫生自查计划") |
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
@Operate(label = "修改卫生自查计划", type = BusinessType.UPDATE, ignore = false) |
|
|
|
@Operate(label = "修改卫生自查计划", type = BusinessType.UPDATE) |
|
|
|
public R updatePlan(@Valid @RequestBody HygienePlanDTO hygienePlanDTO) { |
|
|
|
public R updatePlan(@Valid @RequestBody HygienePlanDTO hygienePlanDTO) { |
|
|
|
return hygienePlanService.updatePlan(hygienePlanDTO); |
|
|
|
return hygienePlanService.updatePlan(hygienePlanDTO); |
|
|
|
} |
|
|
|
} |
|
|
@ -68,7 +68,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/removePlan") |
|
|
|
@PostMapping("/removePlan") |
|
|
|
@ApiOperation(value = "删除卫生自查计划") |
|
|
|
@ApiOperation(value = "删除卫生自查计划") |
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
@Operate(label = "删除卫生自查计划", type = BusinessType.DELETE, ignore = false) |
|
|
|
@Operate(label = "删除卫生自查计划", type = BusinessType.DELETE) |
|
|
|
public R removePlan(@RequestParam Long id) { |
|
|
|
public R removePlan(@RequestParam Long id) { |
|
|
|
return R.status(hygienePlanService.removePlan(id)); |
|
|
|
return R.status(hygienePlanService.removePlan(id)); |
|
|
|
} |
|
|
|
} |
|
|
@ -76,7 +76,7 @@ public class HygieneController extends BladeController { |
|
|
|
@GetMapping("/planDetail") |
|
|
|
@GetMapping("/planDetail") |
|
|
|
@ApiOperation(value = "卫生自查计划详情") |
|
|
|
@ApiOperation(value = "卫生自查计划详情") |
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
@Operate(label = "卫生自查计划详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生自查计划详情", type = BusinessType.QUERY) |
|
|
|
public R<HygienePlanDetailVO> planDetail(@RequestParam Long id) { |
|
|
|
public R<HygienePlanDetailVO> planDetail(@RequestParam Long id) { |
|
|
|
return R.data(hygienePlanService.getPlan(id)); |
|
|
|
return R.data(hygienePlanService.getPlan(id)); |
|
|
|
} |
|
|
|
} |
|
|
@ -90,7 +90,7 @@ public class HygieneController extends BladeController { |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "卫生自查计划分页") |
|
|
|
@ApiOperation(value = "卫生自查计划分页") |
|
|
|
@ApiOperationSupport(order = 5) |
|
|
|
@ApiOperationSupport(order = 5) |
|
|
|
@Operate(label = "卫生自查计划分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生自查计划分页", type = BusinessType.QUERY) |
|
|
|
public R<IPage<HygienePlanEntity>> planPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
public R<IPage<HygienePlanEntity>> planPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
IPage<HygienePlanEntity> page = hygienePlanService.planPage(param, query); |
|
|
|
IPage<HygienePlanEntity> page = hygienePlanService.planPage(param, query); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
@ -99,7 +99,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/saveRecord") |
|
|
|
@PostMapping("/saveRecord") |
|
|
|
@ApiOperation(value = "新增卫生自查记录") |
|
|
|
@ApiOperation(value = "新增卫生自查记录") |
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
@Operate(label = "新增卫生自查记录", type = BusinessType.INSERT, ignore = false) |
|
|
|
@Operate(label = "新增卫生自查记录", type = BusinessType.INSERT) |
|
|
|
public R saveRecord(@Valid @RequestBody HygieneRecordDTO hygieneRecordDTO) { |
|
|
|
public R saveRecord(@Valid @RequestBody HygieneRecordDTO hygieneRecordDTO) { |
|
|
|
return hygieneRecordService.saveRecord(hygieneRecordDTO); |
|
|
|
return hygieneRecordService.saveRecord(hygieneRecordDTO); |
|
|
|
} |
|
|
|
} |
|
|
@ -107,7 +107,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/updateRecord") |
|
|
|
@PostMapping("/updateRecord") |
|
|
|
@ApiOperation(value = "修改卫生自查记录") |
|
|
|
@ApiOperation(value = "修改卫生自查记录") |
|
|
|
@ApiOperationSupport(order = 7) |
|
|
|
@ApiOperationSupport(order = 7) |
|
|
|
@Operate(label = "修改卫生自查记录", type = BusinessType.UPDATE, ignore = false) |
|
|
|
@Operate(label = "修改卫生自查记录", type = BusinessType.UPDATE) |
|
|
|
public R updateRecord(@Valid @RequestBody HygieneRecordDTO hygieneRecordDTO) { |
|
|
|
public R updateRecord(@Valid @RequestBody HygieneRecordDTO hygieneRecordDTO) { |
|
|
|
return hygieneRecordService.updateRecord(hygieneRecordDTO); |
|
|
|
return hygieneRecordService.updateRecord(hygieneRecordDTO); |
|
|
|
} |
|
|
|
} |
|
|
@ -115,7 +115,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/removeRecord") |
|
|
|
@PostMapping("/removeRecord") |
|
|
|
@ApiOperation(value = "删除卫生自查记录") |
|
|
|
@ApiOperation(value = "删除卫生自查记录") |
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
@Operate(label = "删除卫生自查记录", type = BusinessType.DELETE, ignore = false) |
|
|
|
@Operate(label = "删除卫生自查记录", type = BusinessType.DELETE) |
|
|
|
public R removeRecord(@RequestParam Long id) { |
|
|
|
public R removeRecord(@RequestParam Long id) { |
|
|
|
return R.status(hygieneRecordService.removeById(id)); |
|
|
|
return R.status(hygieneRecordService.removeById(id)); |
|
|
|
} |
|
|
|
} |
|
|
@ -123,7 +123,7 @@ public class HygieneController extends BladeController { |
|
|
|
@GetMapping("/recordDetail") |
|
|
|
@GetMapping("/recordDetail") |
|
|
|
@ApiOperation(value = "卫生自查记录详情") |
|
|
|
@ApiOperation(value = "卫生自查记录详情") |
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
@Operate(label = "卫生自查记录详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生自查记录详情", type = BusinessType.QUERY) |
|
|
|
public R<HygieneRecordDetailVO> recordDetail(@RequestParam Long id) { |
|
|
|
public R<HygieneRecordDetailVO> recordDetail(@RequestParam Long id) { |
|
|
|
return R.data(hygieneRecordService.getRecordDetail(id)); |
|
|
|
return R.data(hygieneRecordService.getRecordDetail(id)); |
|
|
|
} |
|
|
|
} |
|
|
@ -137,7 +137,7 @@ public class HygieneController extends BladeController { |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "卫生自查记录分页") |
|
|
|
@ApiOperation(value = "卫生自查记录分页") |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@Operate(label = "卫生自查记录分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生自查记录分页", type = BusinessType.QUERY) |
|
|
|
public R<IPage<HygieneRecordPageVO>> recordPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
public R<IPage<HygieneRecordPageVO>> recordPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
IPage<HygieneRecordPageVO> page = hygieneRecordService.recordPage(param, query); |
|
|
|
IPage<HygieneRecordPageVO> page = hygieneRecordService.recordPage(param, query); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
@ -146,7 +146,7 @@ public class HygieneController extends BladeController { |
|
|
|
@GetMapping("/dataByMonth") |
|
|
|
@GetMapping("/dataByMonth") |
|
|
|
@ApiOperation(value = "月度统计表") |
|
|
|
@ApiOperation(value = "月度统计表") |
|
|
|
@ApiOperationSupport(order = 11) |
|
|
|
@ApiOperationSupport(order = 11) |
|
|
|
@Operate(label = "月度统计表", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "月度统计表", type = BusinessType.QUERY) |
|
|
|
public R<IPage<HygieneMonthVO>> dataByMonth(@RequestParam String month, String unit, Query query) { |
|
|
|
public R<IPage<HygieneMonthVO>> dataByMonth(@RequestParam String month, String unit, Query query) { |
|
|
|
IPage<HygieneMonthVO> page = hygienePlanService.dataByMonth(month, unit, query); |
|
|
|
IPage<HygieneMonthVO> page = hygienePlanService.dataByMonth(month, unit, query); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
@ -155,7 +155,7 @@ public class HygieneController extends BladeController { |
|
|
|
@GetMapping("/exportHygieneRecordData") |
|
|
|
@GetMapping("/exportHygieneRecordData") |
|
|
|
@ApiOperation(value = "卫生自查记录表导出") |
|
|
|
@ApiOperation(value = "卫生自查记录表导出") |
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
@Operate(label = "卫生自查记录表导出", type = BusinessType.EXPORT, ignore = false) |
|
|
|
@Operate(label = "卫生自查记录表导出", type = BusinessType.EXPORT) |
|
|
|
public void exportHygieneRecordData(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
public void exportHygieneRecordData(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
hygieneRecordService.exportHygieneRecordData(id, response); |
|
|
|
hygieneRecordService.exportHygieneRecordData(id, response); |
|
|
|
} |
|
|
|
} |
|
|
@ -167,7 +167,7 @@ public class HygieneController extends BladeController { |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "月度数据导出") |
|
|
|
@ApiOperation(value = "月度数据导出") |
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
@Operate(label = "月度数据导出", type = BusinessType.EXPORT, ignore = false) |
|
|
|
@Operate(label = "月度数据导出", type = BusinessType.EXPORT) |
|
|
|
public void exportMonthData(@ApiIgnore @RequestParam Map<String, Object> param, Query query, HttpServletResponse response) { |
|
|
|
public void exportMonthData(@ApiIgnore @RequestParam Map<String, Object> param, Query query, HttpServletResponse response) { |
|
|
|
hygienePlanService.exportMonthData(param, query, response); |
|
|
|
hygienePlanService.exportMonthData(param, query, response); |
|
|
|
} |
|
|
|
} |
|
|
@ -181,7 +181,7 @@ public class HygieneController extends BladeController { |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "卫生自查计划导出") |
|
|
|
@ApiOperation(value = "卫生自查计划导出") |
|
|
|
@ApiOperationSupport(order = 14) |
|
|
|
@ApiOperationSupport(order = 14) |
|
|
|
@Operate(label = "卫生自查计划导出", type = BusinessType.EXPORT, ignore = false) |
|
|
|
@Operate(label = "卫生自查计划导出", type = BusinessType.EXPORT) |
|
|
|
public void exportHygienePlanData(@ApiIgnore @RequestParam Map<String, Object> param, HttpServletResponse response) { |
|
|
|
public void exportHygienePlanData(@ApiIgnore @RequestParam Map<String, Object> param, HttpServletResponse response) { |
|
|
|
hygienePlanService.exportHygienePlanData(param, response); |
|
|
|
hygienePlanService.exportHygienePlanData(param, response); |
|
|
|
} |
|
|
|
} |
|
|
@ -189,7 +189,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/saveHygieneTemplate") |
|
|
|
@PostMapping("/saveHygieneTemplate") |
|
|
|
@ApiOperation(value = "新增卫生自查模板") |
|
|
|
@ApiOperation(value = "新增卫生自查模板") |
|
|
|
@ApiOperationSupport(order = 15) |
|
|
|
@ApiOperationSupport(order = 15) |
|
|
|
@Operate(label = "新增卫生自查模板", type = BusinessType.INSERT, ignore = false) |
|
|
|
@Operate(label = "新增卫生自查模板", type = BusinessType.INSERT) |
|
|
|
public R saveHygieneTemplate(@RequestBody HygieneTemplateDTO hygieneTemplateDTO) { |
|
|
|
public R saveHygieneTemplate(@RequestBody HygieneTemplateDTO hygieneTemplateDTO) { |
|
|
|
boolean save = hygieneTemplateService.saveHygieneTemplate(hygieneTemplateDTO); |
|
|
|
boolean save = hygieneTemplateService.saveHygieneTemplate(hygieneTemplateDTO); |
|
|
|
return R.status(save); |
|
|
|
return R.status(save); |
|
|
@ -198,7 +198,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/updateHygieneTemplate") |
|
|
|
@PostMapping("/updateHygieneTemplate") |
|
|
|
@ApiOperation(value = "修改卫生自查模板") |
|
|
|
@ApiOperation(value = "修改卫生自查模板") |
|
|
|
@ApiOperationSupport(order = 16) |
|
|
|
@ApiOperationSupport(order = 16) |
|
|
|
@Operate(label = "修改卫生自查模板", type = BusinessType.UPDATE, ignore = false) |
|
|
|
@Operate(label = "修改卫生自查模板", type = BusinessType.UPDATE) |
|
|
|
public R updateHygieneTemplate(@RequestBody HygieneTemplateDTO hygieneTemplateDTO) { |
|
|
|
public R updateHygieneTemplate(@RequestBody HygieneTemplateDTO hygieneTemplateDTO) { |
|
|
|
boolean update = hygieneTemplateService.updateHygieneTemplate(hygieneTemplateDTO); |
|
|
|
boolean update = hygieneTemplateService.updateHygieneTemplate(hygieneTemplateDTO); |
|
|
|
return R.status(update); |
|
|
|
return R.status(update); |
|
|
@ -207,7 +207,7 @@ public class HygieneController extends BladeController { |
|
|
|
@PostMapping("/removeHygieneTemplate") |
|
|
|
@PostMapping("/removeHygieneTemplate") |
|
|
|
@ApiOperation(value = "删除卫生自查模板") |
|
|
|
@ApiOperation(value = "删除卫生自查模板") |
|
|
|
@ApiOperationSupport(order = 17) |
|
|
|
@ApiOperationSupport(order = 17) |
|
|
|
@Operate(label = "删除卫生自查模板", type = BusinessType.DELETE, ignore = false) |
|
|
|
@Operate(label = "删除卫生自查模板", type = BusinessType.DELETE) |
|
|
|
public R removeHygieneTemplate(@RequestParam Long id) { |
|
|
|
public R removeHygieneTemplate(@RequestParam Long id) { |
|
|
|
boolean remove = hygieneTemplateService.removeHygieneTemplate(id); |
|
|
|
boolean remove = hygieneTemplateService.removeHygieneTemplate(id); |
|
|
|
return R.status(remove); |
|
|
|
return R.status(remove); |
|
|
@ -216,7 +216,7 @@ public class HygieneController extends BladeController { |
|
|
|
@GetMapping("/hygieneTemplateDetail") |
|
|
|
@GetMapping("/hygieneTemplateDetail") |
|
|
|
@ApiOperation(value = "卫生自查模板详情") |
|
|
|
@ApiOperation(value = "卫生自查模板详情") |
|
|
|
@ApiOperationSupport(order = 18) |
|
|
|
@ApiOperationSupport(order = 18) |
|
|
|
@Operate(label = "卫生自查模板详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生自查模板详情", type = BusinessType.QUERY) |
|
|
|
public R<HygieneTemplateDetailVO> hygieneTemplateDetail(@RequestParam Long id) { |
|
|
|
public R<HygieneTemplateDetailVO> hygieneTemplateDetail(@RequestParam Long id) { |
|
|
|
HygieneTemplateDetailVO detail = hygieneTemplateService.getHygieneTemplateDetail(id); |
|
|
|
HygieneTemplateDetailVO detail = hygieneTemplateService.getHygieneTemplateDetail(id); |
|
|
|
return R.data(detail); |
|
|
|
return R.data(detail); |
|
|
@ -225,7 +225,7 @@ public class HygieneController extends BladeController { |
|
|
|
@GetMapping("/hygieneTemplatePage") |
|
|
|
@GetMapping("/hygieneTemplatePage") |
|
|
|
@ApiOperation(value = "卫生自查模板分页") |
|
|
|
@ApiOperation(value = "卫生自查模板分页") |
|
|
|
@ApiOperationSupport(order = 19) |
|
|
|
@ApiOperationSupport(order = 19) |
|
|
|
@Operate(label = "卫生自查模板分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生自查模板分页", type = BusinessType.QUERY) |
|
|
|
public R<IPage<HygieneTemplateEntity>> hygieneTemplatePage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
public R<IPage<HygieneTemplateEntity>> hygieneTemplatePage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
IPage<HygieneTemplateEntity> page = hygieneTemplateService.getHygieneTemplatePage(param, query); |
|
|
|
IPage<HygieneTemplateEntity> page = hygieneTemplateService.getHygieneTemplatePage(param, query); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
@ -240,7 +240,7 @@ public class HygieneController extends BladeController { |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "卫生月度详情列表") |
|
|
|
@ApiOperation(value = "卫生月度详情列表") |
|
|
|
@ApiOperationSupport(order = 20) |
|
|
|
@ApiOperationSupport(order = 20) |
|
|
|
@Operate(label = "卫生月度详情列表", type = BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "卫生月度详情列表", type = BusinessType.QUERY) |
|
|
|
public R<IPage<HygienePlanEntity>> detailListByMonth(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
public R<IPage<HygienePlanEntity>> detailListByMonth(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
IPage<HygienePlanEntity> page = hygienePlanService.getDetailListByMonth(param, query); |
|
|
|
IPage<HygienePlanEntity> page = hygienePlanService.getDetailListByMonth(param, query); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
@ -254,4 +254,12 @@ public class HygieneController extends BladeController { |
|
|
|
HygieneEvaluationPageVO page = hygieneRecordService.getEvaluationPage(month); |
|
|
|
HygieneEvaluationPageVO page = hygieneRecordService.getEvaluationPage(month); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/exportEvaluationData") |
|
|
|
|
|
|
|
@ApiOperation(value = "卫生考核数据导出") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 22) |
|
|
|
|
|
|
|
@Operate(label = "卫生考核数据导出", type = BusinessType.EXPORT) |
|
|
|
|
|
|
|
public void exportEvaluationData(@RequestParam String month, HttpServletResponse response) { |
|
|
|
|
|
|
|
hygieneRecordService.exportEvaluationData(month, response); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|