| | |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.voSt.*; |
| | | import com.dy.pipIrrStatistics.intake.qo.*; |
| | | import com.dy.pipIrrGlobal.voSt.VoBatteryVolt; |
| | | import com.dy.pipIrrGlobal.voSt.VoCumulativeFlow; |
| | | import com.dy.pipIrrGlobal.voSt.VoIntake; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据开阀类型获取操作次数 |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/getCountByOpenType") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<VoCountOfOpenType>> getCountByOpenType(OpenTypeQO qo) { |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(intakeSv.getCountByOpenType(qo)); |
| | | } catch (Exception e) { |
| | | log.error("获取开卡记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据关阀类型获取操作次数 |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/getCountByCloseType") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<VoCountOfCloseType>> getCountByCloseType(CloseTypeQo qo) { |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(intakeSv.getCountByCloseType(qo)); |
| | | } catch (Exception e) { |
| | | log.error("获取开卡记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取从未开过阀的取水口 |