From 5e3a8bcac219d13667853eab7f293b85f5b6f2db Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 29 二月 2024 10:50:10 +0800
Subject: [PATCH] 右键菜单以及拖选

---
 north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java
new file mode 100644
index 0000000..4b71fc6
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java
@@ -0,0 +1,52 @@
+
+package com.example.erp.service.pp;
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.baomidou.dynamic.datasource.annotation.DS;
+import com.example.erp.entity.pp.ProductionScheduling;
+import com.example.erp.mapper.pp.ProductionSchedulingMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.sql.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Service
+@DS("pp")
+public class ProductionSchedulingService {
+    @Autowired
+    ProductionSchedulingMapper productionSchedulingMapper;
+
+    //甯︽椂闂存煡璇�
+    public Map<String, Object> SelectSchedulingSv(String selectTime1, String selectTime2, String orderId,String processes, Integer state, ProductionScheduling productionScheduling ) {
+        Map<String, Object> map = new HashMap<>();
+
+        if (state==2){//宸叉帓浜�
+            map.put("data", productionSchedulingMapper.SelectOkSchedulingMp(selectTime1, selectTime2,orderId,processes, productionScheduling));
+
+        }else if (state==1){//鏈帓浜�
+            map.put("data", productionSchedulingMapper.SelectNoSchedulingMp(selectTime1, selectTime2,orderId,processes, productionScheduling));
+
+        }
+
+        return map;
+    }
+
+
+    //棣栨鏌ヨ鎺掍骇鏁版嵁
+    public Map<String, Object> selectLastScheduling(String selectTime1, String selectTime2,ProductionScheduling productionScheduling ) {
+        Map<String, Object> map = new HashMap<>();
+        map.put("data", productionSchedulingMapper.selectLastSchedulingMp(selectTime1, selectTime2, productionScheduling));
+        return map;
+    }
+
+    //甯﹁鍗曞彿鏌ヨ
+    public Map<String, Object> SelectSchedulingNotSv(String selectTime1, String selectTime2, String orderId, String processes, Integer state, ProductionScheduling productionScheduling) {
+        Map<String, Object> map = new HashMap<>();
+        map.put("data", productionSchedulingMapper.SelectSchedulingNotMp(selectTime1, selectTime2,orderId,processes, productionScheduling));
+        return map;
+    }
+}

--
Gitblit v1.8.0