| | |
| | | return fail(ex, -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "根据编号更新") |
| | | @GetMapping(value = "/updateByBh") |
| | | public ResponseMsg<Object> updateByBh() { |
| | | try { |
| | | QueryWrapper<DkEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.apply("length(dikuaibianhao) > 0"); |
| | | |
| | | List<DkEntity> list = dkMapper.selectList(wrapper); |
| | | if (null == list || list.isEmpty()) { |
| | | return success("没需要更新的地块", 0); |
| | | } |
| | | |
| | | int rows = 0; |
| | | for (DkEntity dk : list) { |
| | | //boolean flag |
| | | } |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex, -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "根据坐标更新") |
| | | @GetMapping(value = "/updateByCoord") |
| | | public ResponseMsg<Object> updateByCoord() { |
| | | try { |
| | | int rows = 0; |
| | | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex, -1); |
| | | } |
| | | } |
| | | } |