|
|
@@ -10,6 +10,7 @@ import com.yunfeiyun.agmp.common.utils.StringUtils;
|
|
|
import com.yunfeiyun.agmp.fms.domain.FmsBlock;
|
|
|
import com.yunfeiyun.agmp.fms.domain.FmsLand;
|
|
|
import com.yunfeiyun.agmp.fms.domain.reqvo.FmsScreenStatReqVo;
|
|
|
+import com.yunfeiyun.agmp.fms.domain.resvo.FmsScreenInvestStatResVo;
|
|
|
import com.yunfeiyun.agmp.fms.domain.resvo.FmsScreenLandStatResVo;
|
|
|
import com.yunfeiyun.agmp.fms.domain.resvo.FmsScreenPlanPickStatResVo;
|
|
|
import com.yunfeiyun.agmp.fms.domain.resvo.FmsScreenPlanStatResVo;
|
|
|
@@ -123,4 +124,35 @@ public class FmsScreenController extends BaseController {
|
|
|
List<FmsScreenPlanPickStatResVo> planPickStatList = fmsScreenService.planPickStat(reqVo);
|
|
|
return success(planPickStatList);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 本年度投入成本统计
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('fms:screen:invest:stat')")
|
|
|
+ @GetMapping(value = "/invest/stat")
|
|
|
+ public AjaxResult investStat(FmsScreenStatReqVo reqVo){
|
|
|
+ String landId = reqVo.getLandId();
|
|
|
+ if(StringUtils.isEmpty(landId)){
|
|
|
+ throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "参数异常");
|
|
|
+ }
|
|
|
+ List<FmsScreenInvestStatResVo> investStatResVoList = fmsScreenService.investStat(reqVo);
|
|
|
+ return success(investStatResVoList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 农事统计
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('fms:screen:farm:stat')")
|
|
|
+ @GetMapping(value = "/farm/stat")
|
|
|
+ public AjaxResult farmStat(FmsScreenStatReqVo reqVo){
|
|
|
+ String landId = reqVo.getLandId();
|
|
|
+ String startDate = reqVo.getStartDate();
|
|
|
+ String endDate = reqVo.getEndDate();
|
|
|
+ if(StringUtils.isEmpty(landId) || StringUtils.isEmpty(startDate) || StringUtils.isEmpty(endDate)){
|
|
|
+ throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "参数异常");
|
|
|
+ }
|
|
|
+ List<FmsScreenPlanPickStatResVo> planPickStatList = fmsScreenService.planPickStat(reqVo);
|
|
|
+ return success(planPickStatList);
|
|
|
+ }
|
|
|
}
|