From 999ac56a03c8221a084a3afab870d258dd4d9741 Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期四, 21 十一月 2024 17:09:40 +0800
Subject: [PATCH] 预览状态,开始上片,暂停接口完善,前端页面新增字段

---
 UI-Project/config.js                                                                                                           |    8 
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/service/impl/EngineeringServiceImpl.java     |    8 -
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java |   27 ++++-
 UI-Project/src/utils/constants.js                                                                                              |    4 
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/controller/UpPattenUsageController.java    |   16 +-
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application.yml                                             |   11 -
 hangzhoumesParent/common/servicebase/src/main/java/com/mes/pp/entity/OptimizeProject.java                                      |    9 +
 UI-Project/src/views/Returns/upreturns.vue                                                                                     |   68 ++++++++++---
 UI-Project/src/views/Returns/upreturns2.vue                                                                                    |   68 ++++++++++---
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/entity/Engineering.java                      |    1 
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml                                         |    2 
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/UpPattenUsageService.java          |   11 ++
 hangzhoumesParent/common/servicebase/src/main/java/com/mes/uppattenusage/entity/UpPattenUsage.java                             |    9 +
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/controller/EngineeringController.java        |   12 +-
 14 files changed, 176 insertions(+), 78 deletions(-)

diff --git a/UI-Project/config.js b/UI-Project/config.js
index 3f97658..e752fc6 100644
--- a/UI-Project/config.js
+++ b/UI-Project/config.js
@@ -1,10 +1,10 @@
 export default {
-    serverUrl: "10.153.19.150:88/api",
+    // serverUrl: "10.153.19.150:88/api",
 //  serverUrl: "192.168.1.199:88/api",
-    // serverUrl: "127.0.0.1:88/api",
-    serverUrl2: "10.153.19.150:88"
+    serverUrl: "127.0.0.1:88/api",
+    // serverUrl2: "10.153.19.150:88"
     // serverUrl2: "192.168.1.199:88"
-    // serverUrl2: "127.0.0.1:88"
+    serverUrl2: "127.0.0.1:88"
 
     //serverUrl:"res.abeim.cn"
 }
\ No newline at end of file
diff --git a/UI-Project/src/utils/constants.js b/UI-Project/src/utils/constants.js
index b551cfb..69000bc 100644
--- a/UI-Project/src/utils/constants.js
+++ b/UI-Project/src/utils/constants.js
@@ -1,4 +1,4 @@
 //  export const WebSocketHost = "192.168.1.199";
-export const WebSocketHost = "10.153.19.150";
-// export const WebSocketHost = "127.0.0.1";
+// export const WebSocketHost = "10.153.19.150";
+export const WebSocketHost = "127.0.0.1";
 export const host = "88";
\ No newline at end of file
diff --git a/UI-Project/src/views/Returns/upreturns.vue b/UI-Project/src/views/Returns/upreturns.vue
index a7a4448..27a1d77 100644
--- a/UI-Project/src/views/Returns/upreturns.vue
+++ b/UI-Project/src/views/Returns/upreturns.vue
@@ -96,7 +96,8 @@
     const response = await request.post('/loadGlass/up-patten-usage/selectUpPattenUsage', {
       stationCell: 5,
       engineerId: selectedProjectNo.value,
-      filmRemove: filmRemove.value,
+      // filmRemove: filmRemove.value,
+      filmRemove: parseInt(filmRemove.value, 10),
     })
     window.localStorage.setItem('engineeringId', selectedProjectNo.value)
     window.localStorage.setItem('filmRemove', filmRemove.value)
@@ -121,10 +122,10 @@
   let engineeringId = window.localStorage.getItem('engineeringId')
   if (markingMachineStatus.value === 'green' && cuttingMachineStatus.value === 'green') {
     try {
-      // const response = await request.post('/loadGlass/engineering/engineering/pauseTask', {
-        const response = await request.post('/loadGlass/engineering/engineering/changeTask', {
-        stationCell: 5,
-        filmRemove: filmRemove,
+      const response = await request.post('/loadGlass/engineering/engineering/pause', {
+        // const response = await request.post('/loadGlass/engineering/engineering/changeTask', {
+        // stationCell: 5,
+        // filmRemove: filmRemove,
         engineerId: engineeringId,
         state: 1,
       })
@@ -148,8 +149,8 @@
     let engineeringId = window.localStorage.getItem('engineeringId')
     console.log(engineeringId);
     if (engineeringId !== '') {
-      const response = await request.post('/loadGlass/engineering/engineering/pauseTask', {
-        stationCell: 5,
+      const response = await request.post('/loadGlass/engineering/engineering/pause', {
+        // stationCell: 5,
         engineerId: engineeringId,
         state: 0,
       })
@@ -236,6 +237,28 @@
     ElMessage.error(t('basicData.glassnull'));
   }
 };
+
+function getStatusType2(filmRemove) {
+  switch (filmRemove) {
+    case 0:
+      return 'success';
+    case 1:
+      return 'info';
+    case 2:
+      return 'warning';
+  }
+}
+
+function getStatusText2(filmRemove) {
+  switch (filmRemove) {
+    case 0:
+      return t('Mounting.noremoval');//瀹屾垚
+    case 1:
+      return t('Mounting.coarselyground');//鏂板缓
+    case 2:
+      return t('Mounting.finegrinding');//鎵ц涓�
+  }
+}
 </script>
 <template>
   <div style="height: 500px;">
@@ -301,18 +324,29 @@
             min-width="80"
             prop="state"
           >
-          <template #default="scope">  
-          <el-tag  
-            :type="scope.row.state === 100 ? 'success' : 'warning'"  
-            @click="toggleEnableState(scope.row)"  
-          >  
-            {{ scope.row.state === 100 ? $t('Mounting.pass') : $t('Mounting.waiting') }}
-          </el-tag>  
-        </template> 
-          </el-table-column>
+          <template #default="scope">
+            <el-tag
+                :type="scope.row.state === 100 ? 'success' : 'warning'"
+                @click="toggleEnableState(scope.row)"
+            >
+              {{ scope.row.state === 100 ? $t('Mounting.pass') : $t('Mounting.waiting') }}
+            </el-tag>
+          </template>
+      </el-table-column>
       <el-table-column prop="filmsId" :label="$t('Mounting.createtime')" align="center"/>
       <!-- <el-table-column prop="filmRemove" :label="$t('Mounting.removalmethodp')" align="center"/> -->
-      <!-- <el-table-column prop="stationCell" :label="$t('Mounting.loadinglinea')" align="center"/> -->
+      <el-table-column
+          align="center"
+          :label="$t('Mounting.removalmethodp')"
+          prop="filmRemove"
+      >
+        <template #default="scope">
+          <el-tag :type="getStatusType2(scope.row.filmRemove)">
+            {{ getStatusText2(scope.row.filmRemove) }}
+          </el-tag>
+        </template>
+      </el-table-column>
+      <el-table-column prop="stationCell" :label="$t('Mounting.loadinglinea')" align="center"/>
     </el-table>
       </div>
     </el-card>
diff --git a/UI-Project/src/views/Returns/upreturns2.vue b/UI-Project/src/views/Returns/upreturns2.vue
index f4fdcab..8a52b79 100644
--- a/UI-Project/src/views/Returns/upreturns2.vue
+++ b/UI-Project/src/views/Returns/upreturns2.vue
@@ -96,7 +96,8 @@
     const response = await request.post('/loadGlass/up-patten-usage/selectUpPattenUsage', {
       stationCell: 6,
       engineerId: selectedProjectNo.value,
-      filmRemove: filmRemove.value,
+      // filmRemove: filmRemove.value,
+      filmRemove: parseInt(filmRemove.value, 10),
     })
     window.localStorage.setItem('engineeringId', selectedProjectNo.value)
     window.localStorage.setItem('filmRemove', filmRemove.value)
@@ -121,10 +122,10 @@
   let engineeringId = window.localStorage.getItem('engineeringId')
   if (markingMachineStatus.value === 'green' && cuttingMachineStatus.value === 'green') {
     try {
-      // const response = await request.post('/loadGlass/engineering/engineering/pauseTask', {
-        const response = await request.post('/loadGlass/engineering/engineering/changeTask', {
-        stationCell: 6,
-        filmRemove: filmRemove,
+      const response = await request.post('/loadGlass/engineering/engineering/pause', {
+        // const response = await request.post('/loadGlass/engineering/engineering/changeTask', {
+        // stationCell: 6,
+        // filmRemove: filmRemove,
         engineerId: engineeringId,
         state: 1,
       })
@@ -148,8 +149,8 @@
     let engineeringId = window.localStorage.getItem('engineeringId')
     console.log(engineeringId);
     if (engineeringId !== '') {
-      const response = await request.post('/loadGlass/engineering/engineering/pauseTask', {
-        stationCell: 6,
+      const response = await request.post('/loadGlass/engineering/engineering/pause', {
+        // stationCell: 6,
         engineerId: engineeringId,
         state: 0,
       })
@@ -236,6 +237,28 @@
     ElMessage.error(t('basicData.glassnull'));
   }
 };
+
+function getStatusType2(filmRemove) {
+  switch (filmRemove) {
+    case 0:
+      return 'success';
+    case 1:
+      return 'info';
+    case 2:
+      return 'warning';
+  }
+}
+
+function getStatusText2(filmRemove) {
+  switch (filmRemove) {
+    case 0:
+      return t('Mounting.noremoval');//瀹屾垚
+    case 1:
+      return t('Mounting.coarselyground');//鏂板缓
+    case 2:
+      return t('Mounting.finegrinding');//鎵ц涓�
+  }
+}
 </script>
 <template>
   <div style="height: 500px;">
@@ -301,18 +324,29 @@
             min-width="80"
             prop="state"
           >
-          <template #default="scope">  
-          <el-tag  
-            :type="scope.row.state === 100 ? 'success' : 'warning'"  
-            @click="toggleEnableState(scope.row)"  
-          >  
-            {{ scope.row.state === 100 ? $t('Mounting.pass') : $t('Mounting.waiting') }}
-          </el-tag>  
-        </template> 
-          </el-table-column>
+          <template #default="scope">
+            <el-tag
+                :type="scope.row.state === 100 ? 'success' : 'warning'"
+                @click="toggleEnableState(scope.row)"
+            >
+              {{ scope.row.state === 100 ? $t('Mounting.pass') : $t('Mounting.waiting') }}
+            </el-tag>
+          </template>
+      </el-table-column>
       <el-table-column prop="filmsId" :label="$t('Mounting.createtime')" align="center"/>
       <!-- <el-table-column prop="filmRemove" :label="$t('Mounting.removalmethodp')" align="center"/> -->
-      <!-- <el-table-column prop="stationCell" :label="$t('Mounting.loadinglinea')" align="center"/> -->
+      <el-table-column
+          align="center"
+          :label="$t('Mounting.removalmethodp')"
+          prop="filmRemove"
+      >
+        <template #default="scope">
+          <el-tag :type="getStatusType2(scope.row.filmRemove)">
+            {{ getStatusText2(scope.row.filmRemove) }}
+          </el-tag>
+        </template>
+      </el-table-column>
+      <el-table-column prop="stationCell" :label="$t('Mounting.loadinglinea')" align="center"/>
     </el-table>
       </div>
     </el-card>
diff --git a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/pp/entity/OptimizeProject.java b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/pp/entity/OptimizeProject.java
index ddc80fe..e23597e 100644
--- a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/pp/entity/OptimizeProject.java
+++ b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/pp/entity/OptimizeProject.java
@@ -189,6 +189,15 @@
      */
     private Date updateTime;
 
+//    /**
+//     * 闄よ啘鏂瑰紡
+//     */
+//    private Integer filmRemove;
+//
+//    /**
+//     * 璁惧
+//     */
+//    private Integer stationCell;
     /**
      * 棰勭暀锛屼娇鐢ㄩ渶娉ㄦ槑
      */
diff --git a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/uppattenusage/entity/UpPattenUsage.java b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/uppattenusage/entity/UpPattenUsage.java
index d0beeb5..52fa1bc 100644
--- a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/uppattenusage/entity/UpPattenUsage.java
+++ b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/uppattenusage/entity/UpPattenUsage.java
@@ -62,5 +62,14 @@
      */
     private Integer state;
 
+    /**
+     * 闄よ啘鏂瑰紡
+     */
+    private Integer filmRemove;
+
+    /**
+     * 璁惧
+     */
+    private Integer stationCell;
 
 }
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/controller/EngineeringController.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/controller/EngineeringController.java
index a548f00..26cd5c3 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/controller/EngineeringController.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/controller/EngineeringController.java
@@ -54,11 +54,11 @@
     @ResponseBody
     public  Result <List<UpPattenUsage>> pause(@RequestBody Engineering engineering) {
         boolean work=engineeringService.pauseTask(engineering.getEngineerId(),engineering.getState());
-        List<UpPattenUsage> glass = upPattenUsageService.prioritylist();String message;
+//        List<UpPattenUsage> glass = upPattenUsageService.prioritylist();String message;
         if(work){
-            return Result.build(200,"鎴愬姛",glass);
+            return Result.build(200, "鎴愬姛", null);
         }else {
-            return Result.build(100,"鎴愬姛",glass);
+            return Result.build(100, "鎴愬姛", null);
         }
     }
 
@@ -67,9 +67,9 @@
     @ResponseBody
     public  Result <Boolean> changeTask(@RequestBody Engineering engineering) {
         log.info("engineeringId:{}", engineering);
-        UpPattenUsage upPattenUsage = upPattenUsageService.selectedEngineering(engineering.getEngineerId());
+        UpPattenUsage upPattenUsage = upPattenUsageService.selectedTaskEngineering(engineering.getEngineerId());
         if (upPattenUsage != null) {
-            boolean work = engineeringService.changeTask(engineering.getEngineerId(), engineering.getState(), engineering.getFilmRemove(), engineering.getStationCell());
+            boolean work = engineeringService.changeTask(engineering.getEngineerId(), engineering.getState());
             List<UpPattenUsage> glass = upPattenUsageService.prioritylist();
             optimizeProjectService.changeTask(engineering.getEngineerId(), 200);
             return Result.build(200, "宸蹭繚瀛樿繃", work);
@@ -85,7 +85,7 @@
             engineeringService.saveEngineering(listEngineering);
             log.info("鏇存敼pp琛ㄧ姸鎬佷负宸查鍙�");
             //灏唀ngineering琛ㄧ姸鎬佷负姝e湪涓婄墖
-            boolean work = engineeringService.changeTask(engineering.getEngineerId(), engineering.getState(), engineering.getFilmRemove(), engineering.getStationCell());
+            boolean work = engineeringService.changeTask(engineering.getEngineerId(), engineering.getState());
             List<UpPattenUsage> glass = upPattenUsageService.prioritylist();
             optimizeProjectService.changeTask(engineering.getEngineerId(), 200);
             if (work) {
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/entity/Engineering.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/entity/Engineering.java
index 9300779..c9576ae 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/entity/Engineering.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/entity/Engineering.java
@@ -107,5 +107,4 @@
      */
     private String notes;
 
-
 }
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/service/impl/EngineeringServiceImpl.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/service/impl/EngineeringServiceImpl.java
index 2240fc8..459f616 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/service/impl/EngineeringServiceImpl.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/engineering/service/impl/EngineeringServiceImpl.java
@@ -119,14 +119,10 @@
     public boolean pauseTask(String engineerId, Integer state) {
         //鏆傚仠姝e湪杩涜宸ョ▼
         LambdaUpdateChainWrapper<Engineering> pauseWrapper = new LambdaUpdateChainWrapper<>(this.getBaseMapper());
-        pauseWrapper.set(Engineering::getState, 0);
-        pauseWrapper.eq(Engineering::getState, 1);
+        pauseWrapper.set(Engineering::getState, state);
+        pauseWrapper.eq(Engineering::getEngineerId, engineerId);
         return pauseWrapper.update();
     }
 
-    @Override
-    public boolean changeTask(String engineerId, Integer state, Integer filmRemove, Integer stationCell) {
-        return false;
-    }
 
 }
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/controller/UpPattenUsageController.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/controller/UpPattenUsageController.java
index 434a8c5..e05b9da 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/controller/UpPattenUsageController.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/controller/UpPattenUsageController.java
@@ -50,17 +50,19 @@
     @PostMapping("/selectUpPattenUsage") //鏌ヨ鐜板湪涓婄墖鏈虹殑鐜荤拑淇℃伅
     @ResponseBody
     public Result<List<UpPattenUsage>> selectUpPattenUsage(@RequestBody Engineering engineering) {
-        List<UpPattenUsage> upPattenUsages=null;
-        UpPattenUsage upPattenUsage = upPattenUsageService.selectedEngineering(engineering.getEngineerId());
-        if(upPattenUsage == null){
-            upPattenUsages = upPattenUsageService.selectSaveUpPattenUsage(engineering.getEngineerId());
-        }else {
-            upPattenUsages= upPattenUsageService.selectUpPattenUsage(upPattenUsage);
+        List<UpPattenUsage> upPattenUsages = null;
+        UpPattenUsage upPattenUsage = upPattenUsageService.selectedEngineering(engineering.getEngineerId(), engineering.getFilmRemove(), engineering.getStationCell()
+        );
+        if (upPattenUsage == null) {
+            return Result.build(200, "澶辫触鏃犳暟鎹�", null);
+            //upPattenUsages = upPattenUsageService.selectSaveUpPattenUsage(engineering.getEngineerId(), engineering.getFilmRemove(), engineering.getStationCell());
+        } else {
+            upPattenUsages = upPattenUsageService.selectUpPattenUsage(upPattenUsage);
         }
 
         if (!upPattenUsages.isEmpty()) {
             return Result.build(200, "鎴愬姛", upPattenUsages);
-        }else {
+        } else {
             return Result.build(100, "澶辫触", upPattenUsages);
         }
 
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/UpPattenUsageService.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/UpPattenUsageService.java
index 377b77e..8f183a6 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/UpPattenUsageService.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/UpPattenUsageService.java
@@ -38,13 +38,17 @@
       * 鏇存柊涓婄墖琛ㄧ姸鎬�
       */
      void updateUpPattenUsageState(UpPattenUsage upPattenUsage, Integer state);
+
      /**
       * 鍒ゆ柇姝ゅ伐绋嬫槸鍚﹀凡淇濆瓨杩�
+      *
       * @return UpPattenUsage
       */
-     UpPattenUsage selectedEngineering(String engineeringId);
+     UpPattenUsage selectedTaskEngineering(String engineeringId);
+
      /**
       * 鏌ヨ姝e湪鎵ц鐨勪笂鐗囦换鍔�
+      *
       * @return UpPattenUsage
       */
      UpPattenUsage selectOverTask();
@@ -56,10 +60,15 @@
 
      /**
       * 鏇存敼涓婄墖鐜荤拑鐘舵��
+      *
       * @return UpPattenUsage
       */
      Boolean updateGlassState(UpPattenUsage upPattenUsage);
 
      List<Engineering> setRawGlassTaskRequest(Engineering request);
+
+     List<UpPattenUsage> selectSaveUpPattenUsage(String engineerId, Integer filmRemove, Integer stationCell);
+
+     UpPattenUsage selectedEngineering(String engineerId, Integer filmRemove, Integer stationCell);
 }
 
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
index 5f31161..c1f9b24 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
@@ -56,12 +56,16 @@
     @Override
     public List<UpPattenUsage> selectUpPattenUsage(UpPattenUsage upPattenUsage) {
         LambdaQueryWrapper<UpPattenUsage> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(UpPattenUsage::getEngineeringId,upPattenUsage.getEngineeringId());
+        wrapper.eq(UpPattenUsage::getEngineeringId, upPattenUsage.getEngineeringId())
+                .eq(UpPattenUsage::getStationCell, upPattenUsage.getStationCell())
+                .eq(UpPattenUsage::getFilmRemove, upPattenUsage.getFilmRemove());
+
         return this.list(wrapper);
+        //浣�
     }
 
     @Override
-    @DS("pp")
+    @DS("pp")  //閫欒!鍙偝浜嗗伐绋嬭櫉
     public List<UpPattenUsage> selectSaveUpPattenUsage(String engineeringId) {
 
         List<OptimizeUpPattenUsage> upPattenUsageList = null;
@@ -104,16 +108,25 @@
     @Override
     public void updateUpPattenUsageState(UpPattenUsage upPattenUsage, Integer state) {
         upPattenUsage.setState(state);
-        boolean updateSuccess=this.updateById(upPattenUsage);
-        log.info("鏇存柊鐘舵�亄}",updateSuccess);
+        boolean updateSuccess = this.updateById(upPattenUsage);
+        log.info("鏇存柊鐘舵�亄}", updateSuccess);
         //鏇存柊鐘舵��
     }
 
     @Override
-    public UpPattenUsage selectedEngineering(String engineeringId) {
-        QueryWrapper<UpPattenUsage>wrapper = new QueryWrapper<>();
-        wrapper.eq("engineering_id",engineeringId)
+    public UpPattenUsage selectedTaskEngineering(String engineeringId) {
+        return null;
+    }
+
+    @Override
+    public UpPattenUsage selectedEngineering(String engineerId, Integer filmRemove, Integer stationCell) {
+        QueryWrapper<UpPattenUsage> wrapper = new QueryWrapper<>();
+        wrapper.eq("engineering_id", engineerId)
+                .eq("station_cell", stationCell)
+                .eq("film_remove", filmRemove)
                 .last("limit 1");
+        log.info("鏌ヨ棰勮鍙傛暟");
+        log.info("鏌ヨ棰勮鍙傛暟{}", this.getOne(wrapper));
         return this.getOne(wrapper);
     }
 
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml
index 571c726..214b3b3 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml
@@ -5,7 +5,7 @@
       strict: false #璁剧疆涓ユ牸妯″紡,榛樿false涓嶅惎鍔�. 鍚姩鍚庡湪鏈尮閰嶅埌鎸囧畾鏁版嵁婧愭椂鍊欏洖鎶涘嚭寮傚父,涓嶅惎鍔ㄤ細浣跨敤榛樿鏁版嵁婧�.
       datasource:
         hangzhoumes:
-          url: jdbc:mysql://127.0.0.1:3306/hangzhoumes?serverTimezone=GMT%2b8&allowMultiQueries=true
+          url: jdbc:mysql://10.153.19.150:3306/hangzhoumes?serverTimezone=GMT%2b8
           username: root
           password: beibo.123/
           driver-class-name: com.mysql.cj.jdbc.Driver
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application.yml b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application.yml
index 1c8c8b3..abbddf5 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application.yml
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application.yml
@@ -2,7 +2,7 @@
   port: 8083
 spring:
   profiles:
-    active: yw
+    active: dev
   application:
     name: loadGlass
   liquibase:
@@ -13,11 +13,4 @@
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 kangaroohy:
   milo:
-    enabled: false
-    primary: default
-    config:
-      default:
-        endpoint: opc.tcp://192.168.0.39:49320
-        security-policy: basic256sha256
-        username: admin
-        password: 1qaz2wsx3edc4rfv
+    enabled: false
\ No newline at end of file

--
Gitblit v1.8.0