提交 3de03b5b authored 作者: Matrix's avatar Matrix

[核查模块] 增加自动核查部分

上级 56a1ec16
......@@ -53,7 +53,7 @@ import static java.util.stream.Collectors.toList;
@RestController
@RequestMapping(value = "/check/confirm")
@AutoDocument
@Api(tags = "核查模块")
@Api(tags = "核查模块", value = "核查模块")
@Transactional
@Slf4j
public class DeviceCheckController {
......@@ -106,6 +106,21 @@ public class DeviceCheckController {
return ResponseEntity.ok(new ResultObj(detailVoList));
}
@ApiOperation(value = "发起自动核查", notes = "发起自动核查")
public ResponseEntity startAutoCheck() {
// 发起省级的统计 - 获得所有的市级单位
List<Units> cityUnits = unitsRepo.findAllByLevel(2);
Units provUnit = unitsRepo.findById(1).get();
String baseTitle = LocalDate.now().getYear() + "年" + (LocalDate.now().getMonthValue() + 1) + "月";
initStatData("自动核查",
0,
0,
baseTitle + "浙江省自动核查",
provUnit.getName(),
cityUnits);
return ResponseEntity.ok("nothing");
}
/**
* 手动发起核查
* <li>1. 添加发起核查bill记录</>
......@@ -114,7 +129,7 @@ public class DeviceCheckController {
*
* @param billVo 核查发起对象
*/
@ApiOperation(value = "发起核查", notes = "发起核查流程")
@ApiOperation(value = "发起手动核查", notes = "手动发起核查,需要指定参数")
@PostMapping("/check/bill")
public ResponseEntity startManualCheck(@RequestBody CheckBillVo billVo) {
// 1. 添加发起核查bill记录
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论