|
@@ -2,7 +2,12 @@ package com.ruoyi.project.production.mapper;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
|
|
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
|
|
|
|
+import com.ruoyi.project.production.controller.vo.DailyAnalysisQueryVO;
|
|
|
|
+import com.ruoyi.project.production.controller.vo.MonthlyAnalysisDataVO;
|
|
|
|
+import com.ruoyi.project.production.controller.vo.MonthlyAnalysisQueryVO;
|
|
import com.ruoyi.project.production.domain.TMonthlyProductionReport;
|
|
import com.ruoyi.project.production.domain.TMonthlyProductionReport;
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 每月生产报告Mapper接口
|
|
* 每月生产报告Mapper接口
|
|
@@ -62,4 +67,26 @@ public interface TMonthlyProductionReportMapper
|
|
public int deleteTMonthlyProductionReportByIds(Long[] ids);
|
|
public int deleteTMonthlyProductionReportByIds(Long[] ids);
|
|
|
|
|
|
public List<TMonthlyProductionReport> selectCrackerRawMaterialByYear(Long year);
|
|
public List<TMonthlyProductionReport> selectCrackerRawMaterialByYear(Long year);
|
|
|
|
+
|
|
|
|
+ @Select(" select d.${item} as valueData, concat(concat(d.REPORT_YEAR, '-'), d.REPORT_MONTH) as dateData, " +
|
|
|
|
+ " d.REPORT_MONTH, d.REPORT_YEAR from t_monthly_production_report d " +
|
|
|
|
+ " where (d.REPORT_YEAR = ${fromYear} and d.REPORT_MONTH >= ${fromMonth}) " +
|
|
|
|
+ " and (d.REPORT_YEAR = ${toYear} and d.REPORT_MONTH <= ${toMonth}) " +
|
|
|
|
+ " ORDER by d.REPORT_YEAR, d.REPORT_MONTH ")
|
|
|
|
+ List<MonthlyAnalysisDataVO> selectAnalysisDataSameYear(@Param("item") String item,
|
|
|
|
+ @Param("fromYear") int fromYear,
|
|
|
|
+ @Param("fromMonth") int fromMonth,
|
|
|
|
+ @Param("toYear") int toYear,
|
|
|
|
+ @Param("toMonth") int toMonth);
|
|
|
|
+
|
|
|
|
+ @Select(" select d.${item} as valueData, concat(concat(d.REPORT_YEAR, '-'), d.REPORT_MONTH) as dateData, " +
|
|
|
|
+ " d.REPORT_MONTH, d.REPORT_YEAR from t_monthly_production_report d " +
|
|
|
|
+ " where (d.REPORT_YEAR = ${fromYear} and d.REPORT_MONTH >= ${fromMonth}) " +
|
|
|
|
+ " or (d.REPORT_YEAR = ${toYear} and d.REPORT_MONTH <= ${toMonth}) " +
|
|
|
|
+ " ORDER by d.REPORT_YEAR, d.REPORT_MONTH ")
|
|
|
|
+ List<MonthlyAnalysisDataVO> selectAnalysisDataDiffYear(@Param("item") String item,
|
|
|
|
+ @Param("fromYear") int fromYear,
|
|
|
|
+ @Param("fromMonth") int fromMonth,
|
|
|
|
+ @Param("toYear") int toYear,
|
|
|
|
+ @Param("toMonth") int toMonth);
|
|
}
|
|
}
|