Bladeren bron

提交本地

txf 3 jaren geleden
bovenliggende
commit
a31e9eb614

+ 18 - 0
src/main/java/com/steerinfo/dil/mapper/StatisticalReportMapper.java

@@ -0,0 +1,18 @@
+package com.steerinfo.dil.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 统计报表
+ * @ author    :TXF
+ * @ time      :2021/12/14 15:27
+ */
+@Mapper
+public interface StatisticalReportMapper {
+    //查询采购统计报表 (辅料、燃料、内转)
+    List<Map<String, Object>> getAllPurchaseFLRLReport(Map<String, Object> map);
+
+}

+ 11 - 0
src/main/java/com/steerinfo/dil/service/IStatisticalReportService.java

@@ -0,0 +1,11 @@
+package com.steerinfo.dil.service;
+
+/**
+ * 查询汽运统计报表
+ * @ author    :TXF
+ * @ time      :2021/12/14 15:25
+ */
+
+public interface IStatisticalReportService {
+
+}

+ 13 - 0
src/main/java/com/steerinfo/dil/service/impl/StatisticalReportImpl.java

@@ -0,0 +1,13 @@
+package com.steerinfo.dil.service.impl;
+
+import com.steerinfo.dil.service.IStatisticalReportService;
+import org.springframework.stereotype.Service;
+
+/**
+ * @ author    :TXF
+ * @ time      :2021/12/14 15:26
+ */
+@Service
+public class StatisticalReportImpl implements IStatisticalReportService {
+
+}

+ 1 - 0
src/main/java/com/steerinfo/dil/service/impl/TmstruckMeasureCommissionServiceImpl.java

@@ -213,6 +213,7 @@ public class TmstruckMeasureCommissionServiceImpl implements ITmstruckMeasureCom
     }
 
     /**
+     *
      * 访问老厂区计量接口方法
      * @param map
      * @return

+ 16 - 0
src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.steerinfo.dil.mapper.StatisticalReportMapper">
+
+<!--查询采购统计报表-->
+    <select id="getAllPurchaseFLRLReport" parameterType="map" resultType="java.util.Map">
+        select *
+        from OMSTRUCK_ORDER OO
+        left join TMSTRUCK_TOTAL_RESULT TTR
+            on TTR.ORDER_ID = OO.ORDER_ID
+
+        left join TMSTRUCK_ENFACTORY_RESULT TER
+            on TTR.RESULT_TOTAL_ID = TER.RESULT_TOTAL_ID
+
+    </select>
+</mapper>