| | |
| | | @RequestParam(name = "dkbh", defaultValue = "") String dkbh, |
| | | @RequestParam(name = "isPlan", required = false) Integer isPlan, |
| | | @RequestParam(name = "xzqdm", defaultValue = "") String xzqdm, |
| | | @RequestParam(name = "bsm", defaultValue = "") String bsm |
| | | @RequestParam(name = "bsm", defaultValue = "") String bsm, |
| | | @RequestParam(name = "xmc", defaultValue = "") String xmc, |
| | | @RequestParam(name = "investigate", required = false) Integer investigate |
| | | ) { |
| | | //调用service分页查询 |
| | | PatchesParam param = PatchesParam.builder() |
| | |
| | | .isPlan(isPlan) |
| | | .xzqdm(xzqdm) |
| | | .bsm(bsm) |
| | | .xmc(xmc) |
| | | .investigate(investigate) |
| | | .build(); |
| | | PaginationData<LotInfo> data = getPatchesService.limitGet(param); |
| | | return ResponseResult.success(data); |
| | |
| | | String xzq = DistrictCodeUtils.nameToCode(code); |
| | | return ResponseResult.success(xzq); |
| | | } |
| | | @GetMapping("/getInfoById") |
| | | public ResponseResult<LotInfo> wayAndPatchesId(@RequestParam String patchesId) { |
| | | return ResponseResult.success(getPatchesService.getPatchesFromId(patchesId)); |
| | | } |
| | | |
| | | @GetMapping("/useMyTask") |
| | | public ResponseResult useMyTask() throws Exception { |
| | | try { |
| | | timerUtil.myTask(); |
| | | timerUtil.myTask2(); |
| | | // timerUtil.myTask2(); |
| | | return ResponseResult.success(); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("db存储发送出现异常"); |