| | |
| | | |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryConditionVo; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.pojoIr.IrIrrigatePlan; |
| | | import com.dy.pipIrrGlobal.pojoIr.IrIrrigateSchedule; |
| | | import com.dy.pipIrrGlobal.pojoIr.IrPlanOperate; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/getCompletedPlans") |
| | | public BaseResponse<List<VoPlans>> getCompletedPlans() { |
| | | public BaseResponse<QueryResultVo<List<VoPlans>>> getCompletedPlans(QueryConditionVo qo) { |
| | | try { |
| | | List<VoPlans> res = irrigatePlanSv.getCompletedPlans(); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | return BaseResponseUtils.buildSuccess(irrigatePlanSv.getCompletedPlans(qo)); |
| | | } catch (Exception e) { |
| | | log.error("获取项目记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |