| | |
| | | import cn.gistack.sm.sjztmd.service.IAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbDykeInvestigationService; |
| | | import cn.gistack.sm.sjztmd.service.ITbDykeInvestigationStateService; |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsBar; |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsParams; |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsPie; |
| | | import cn.gistack.sm.sjztmd.vo.AttResBaseGeneralInvestigationVO; |
| | |
| | | @ApiOperation(value = "白蚁普查-添加或者修改", notes = "白蚁普查-添加或者修改") |
| | | @PostMapping(value = "/submit") |
| | | public R submit(@RequestBody TbDykeInvestigation tbDykeInvestigation) { |
| | | if (tbDykeInvestigation.getGuid() == null) { |
| | | tbDykeInvestigation.setCreateTime(new Date()); |
| | | } |
| | | // if (tbDykeInvestigation.getGuid() == null) { |
| | | tbDykeInvestigation.setCreateTime(new Date()); |
| | | // } |
| | | return tbDykeInvestigationService.saveOrUpdateBy(tbDykeInvestigation); |
| | | } |
| | | |
| | |
| | | return R.data(statisticsPie); |
| | | } |
| | | |
| | | @GetMapping("/statisticsBar") |
| | | public R statisticsBar(StatisticsParams statisticsParams){ |
| | | List<StatisticsBar> list = tbDykeInvestigationService.statisticsBar(statisticsParams); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |