| | |
| | | |
| | | |
| | | /** |
| | | * 5项常规统计 |
| | | * @return |
| | | */ |
| | | @GetMapping("/comActAcidRecord/fiveCount") |
| | | R comActAcidRecordFiveCount(); |
| | | |
| | | |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | | * @param commonPage 查询实体 |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordExcelVO; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.FiveCount; |
| | | import com.panzhihua.common.model.vos.community.warehouse.ComActWarehouseApplyExcelVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.SFTPUtil; |
| | |
| | | } |
| | | return r; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 5项常规统计 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "5项常规统计",response = FiveCount.class) |
| | | @GetMapping("fiveCount") |
| | | public R fiveCount(){ |
| | | return this.communityService.comActAcidRecordFiveCount(); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @PostMapping |
| | | public R insert(@RequestBody ComActAcidRecordVO comActAcidRecordVO) { |
| | | ComActAcidRecord comActAcidRecord=new ComActAcidRecord(); |
| | | BeanUtils.copyProperties(comActAcidRecordVO,comActAcidRecord); |
| | | return R.ok(this.comActAcidRecordService.save(comActAcidRecord)); |
| | | return this.comActAcidRecordService.insertRecord(comActAcidRecordVO); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R delete(@RequestParam("id") Long id) { |
| | | return R.ok(this.comActAcidRecordService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 5项常规统计 |
| | | * @return |
| | | */ |
| | | @GetMapping("fiveCount") |
| | | public R fiveCount(){ |
| | | return this.comActAcidRecordService.fiveCount(); |
| | | } |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordExcelVO; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.FiveCount; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.panzhihua.service_community.entity.ComActAcidRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | * @return |
| | | */ |
| | | List<ComActAcidRecordExcelVO> export(@Param("commonPage")ComActAcidRecordDTO comActAcidRecordDTO); |
| | | |
| | | /** |
| | | * 5项统计 |
| | | * @return |
| | | */ |
| | | FiveCount fiveCount(); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | R insertRecord(ComActAcidRecordVO comActAcidRecordVO); |
| | | |
| | | /** |
| | | * 5项统计 |
| | | * @return |
| | | */ |
| | | R fiveCount(); |
| | | } |
| | |
| | | BeanUtils.copyProperties(comActAcidRecordVO,comActAcidRecord); |
| | | return R.ok(this.save(comActAcidRecord)); |
| | | } |
| | | |
| | | @Override |
| | | public R fiveCount() { |
| | | return null; |
| | | } |
| | | } |
| | |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="fiveCount" resultType="com.panzhihua.common.model.vos.community.reserve.FiveCount"> |
| | | select (select count(*) from com_act_acid_record) allCount, |
| | | (select count(*) from com_act_acid_record where danger_area = '是') dangerCount, |
| | | (select count(*) from com_act_acid_record where color_mark = '绿码') greenMark, |
| | | (select count(*) from com_act_acid_record where color_mark = '红码') redMark, |
| | | (select count(*) from com_act_acid_record where color_mark = '黄码') yellowMark |
| | | </select> |
| | | |
| | | </mapper> |