Browse Source

王子文 生产日报 查询

wangggziwen 3 years ago
parent
commit
e0a7cf3133

+ 0 - 16
master/src/main/java/com/ruoyi/project/production/controller/TDailyProductionReportController.java

@@ -69,22 +69,6 @@ public class TDailyProductionReportController extends BaseController
         return AjaxResult.success(tDailyProductionReportService.selectTDailyProductionReportById(id));
         return AjaxResult.success(tDailyProductionReportService.selectTDailyProductionReportById(id));
     }
     }
 
 
-    /**
-     * 按日期获取每日生产报告详细信息
-     */
-    @PreAuthorize("@ss.hasPermi('production:report:query')")
-    @GetMapping(value = "/getInfoByReportDate")
-    public AjaxResult getInfoByReportDate(TDailyProductionReport tDailyProductionReport)
-    {
-        if (tDailyProductionReport == null) {
-            TDailyProductionReport tDailyProductionReportToday = new TDailyProductionReport();
-            tDailyProductionReportToday.setReportDate(new Date());
-            return AjaxResult.success(tDailyProductionReportService.selectTDailyProductionReportByReportDate(tDailyProductionReportToday));
-        } else {
-            return AjaxResult.success(tDailyProductionReportService.selectTDailyProductionReportByReportDate(tDailyProductionReport));
-        }
-    }
-
     /**
     /**
      * 新增每日生产报告
      * 新增每日生产报告
      */
      */

+ 0 - 8
master/src/main/java/com/ruoyi/project/production/mapper/TDailyProductionReportMapper.java

@@ -21,14 +21,6 @@ public interface TDailyProductionReportMapper
      */
      */
     public TDailyProductionReport selectTDailyProductionReportById(Long id);
     public TDailyProductionReport selectTDailyProductionReportById(Long id);
 
 
-    /**
-     * 查询每日生产报告
-     *
-     * @param tDailyProductionReport 每日生产报告
-     * @return 每日生产报告
-     */
-    public TDailyProductionReport selectTDailyProductionReportByReportDate(TDailyProductionReport tDailyProductionReport);
-
     /**
     /**
      * 查询每日生产报告列表
      * 查询每日生产报告列表
      * 
      * 

+ 0 - 8
master/src/main/java/com/ruoyi/project/production/service/ITDailyProductionReportService.java

@@ -20,14 +20,6 @@ public interface ITDailyProductionReportService
      */
      */
     public TDailyProductionReport selectTDailyProductionReportById(Long id);
     public TDailyProductionReport selectTDailyProductionReportById(Long id);
 
 
-    /**
-     * 查询每日生产报告
-     *
-     * @param tDailyProductionReport 每日生产报告
-     * @return 每日生产报告
-     */
-    public TDailyProductionReport selectTDailyProductionReportByReportDate(TDailyProductionReport tDailyProductionReport);
-
     /**
     /**
      * 查询每日生产报告列表
      * 查询每日生产报告列表
      * 
      * 

+ 0 - 12
master/src/main/java/com/ruoyi/project/production/service/impl/TDailyProductionReportServiceImpl.java

@@ -32,18 +32,6 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
         return tDailyProductionReportMapper.selectTDailyProductionReportById(id);
         return tDailyProductionReportMapper.selectTDailyProductionReportById(id);
     }
     }
 
 
-    /**
-     * 查询每日生产报告
-     *
-     * @param tDailyProductionReport 每日生产报告
-     * @return 每日生产报告
-     */
-    @Override
-    public TDailyProductionReport selectTDailyProductionReportByReportDate(TDailyProductionReport tDailyProductionReport)
-    {
-        return tDailyProductionReportMapper.selectTDailyProductionReportByReportDate(tDailyProductionReport);
-    }
-
     /**
     /**
      * 查询每日生产报告列表
      * 查询每日生产报告列表
      *
      *

+ 0 - 5
master/src/main/resources/mybatis/production/TDailyProductionReportMapper.xml

@@ -1089,11 +1089,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectTDailyProductionReportVo"/>
         <include refid="selectTDailyProductionReportVo"/>
         where id = #{id}
         where id = #{id}
     </select>
     </select>
-
-    <select id="selectTDailyProductionReportByReportDate" parameterType="TDailyProductionReport"  resultMap="TDailyProductionReportResult">
-        <include refid="selectTDailyProductionReportVo"/>
-        where report_date = #{reportDate}
-    </select>
         
         
     <insert id="insertTDailyProductionReport" parameterType="TDailyProductionReport">
     <insert id="insertTDailyProductionReport" parameterType="TDailyProductionReport">
         insert into t_daily_production_report
         insert into t_daily_production_report

+ 0 - 9
ui/src/api/production/report.js

@@ -17,15 +17,6 @@ export function getReport(id) {
   })
   })
 }
 }
 
 
-// 查询每日生产报告详细
-export function getReportByReportDate(query) {
-  return request({
-    url: '/production/report/getInfoByReportDate',
-    method: 'get',
-    params: query
-  })
-}
-
 // 新增每日生产报告
 // 新增每日生产报告
 export function addReport(data) {
 export function addReport(data) {
   return request({
   return request({

+ 1 - 1
ui/src/views/production/daily/index.vue

@@ -1090,7 +1090,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { getReportByReportDate, listReport, getReport, delReport, addReport, updateReport, exportReport, importTemplate} from "@/api/production/report";
+import { listReport, getReport, delReport, addReport, updateReport, exportReport, importTemplate} from "@/api/production/report";
 import { treeselect } from "@/api/system/dept";
 import { treeselect } from "@/api/system/dept";
 import { getToken } from "@/utils/auth";
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import Treeselect from "@riophae/vue-treeselect";