From 5dbe9e79932224bd9358bf027aa04e29151154ad Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期五, 21 四月 2023 10:24:51 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 20 +-
src/main/resources/mapper/WrkMastMapper.xml | 60 +++---
src/main/webapp/static/js/console.map.js | 496 -------------------------------------------------
3 files changed, 41 insertions(+), 535 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 9f043ee..7f4631c 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -966,20 +966,20 @@
// }catch(Exception ignore){}
// }
- // 淇敼宸ヤ綔妗g姸鎬� 2.璁惧涓婅蛋 => 3.鍚婅溅鍏ュ簱涓�
- Date now = new Date();
- wrkMast.setWrkSts(3L);
- wrkMast.setCrnStrTime(now);
- wrkMast.setModiTime(now);
- if (wrkMastMapper.updateById(wrkMast) == 0) {
- News.error(methodName + ":淇敼宸ヤ綔妗g姸鎬� 2.璁惧涓婅蛋 => 3.鍚婅溅鍏ュ簱涓� 澶辫触锛侊紒锛屽伐浣滃彿={}", wrkMast.getWrkNo());
- }
- }
+ // 淇敼宸ヤ綔妗g姸鎬� 2.璁惧涓婅蛋 => 3.鍚婅溅鍏ュ簱涓�
+ Date now = new Date();
+ wrkMast.setWrkSts(3L);
+ wrkMast.setCrnStrTime(now);
+ wrkMast.setModiTime(now);
+ if (wrkMastMapper.updateById(wrkMast) == 0) {
+ News.error(methodName + ":淇敼宸ヤ綔妗g姸鎬� 2.璁惧涓婅蛋 => 3.鍚婅溅鍏ュ簱涓� 澶辫触锛侊紒锛屽伐浣滃彿={}", wrkMast.getWrkNo());
+ }
+ }
}
}
}else News.error(methodName + ":鍏ュ簱鎿嶄綔搴撲綅鐘舵�佷笉绗﹀悎--鐘舵��, 搴撲綅鍙�={}锛屽簱浣嶇姸鎬�={}", wrkMast.getLocNo(), locMast.getLocSts());
}else News.error(methodName + ":鏌ヨ搴撳瓨鏃犳暟鎹�--搴撲綅鍙穥}", wrkMast.getLocNo());
- }
+ }
}
public synchronized void crnStnToLoc1(CrnSlave slave, CrnProtocol crnProtocol) {
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index ad47c15..0b09bcf 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -56,7 +56,7 @@
<result column="log_err_time" property="logErrTime" />
<result column="log_err_memo" property="logErrMemo" />
<result column="barcode" property="barcode" />
-<!-- <result column="Pdc_type" property="PdcType" />-->
+ <!-- <result column="Pdc_type" property="PdcType" />-->
<result column="ctn_no" property="ctnNo" />
<result column="full_plt" property="fullPlt" />
@@ -77,9 +77,9 @@
<select id="selectToBeHistoryData" resultMap="BaseResultMap">
select * from asr_wrk_mast
where wrk_sts=5
- or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))
- or (wrk_sts=15 and dateadd(mi,15,crn_end_time) <= getdate() and wrk_no not in (select wrk_no from asr_bas_devp))
- or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp))
+ or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))
+ or (wrk_sts=15 and dateadd(mi,15,crn_end_time) <= getdate() and wrk_no not in (select wrk_no from asr_bas_devp))
+ or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp))
order by io_time,wrk_no asc
</select>
@@ -123,26 +123,26 @@
select top 1 * from dbo.asr_wrk_mast where 1=1 and (wrk_sts=3 or wrk_sts=12) and crn_no=#{crnNo} order by io_time,wrk_no
</select>
-<!-- <!– 鍏ュ簱浠诲姟 –>-->
-<!-- <select id="selectWorkingPakin" resultMap="BaseResultMap">-->
-<!-- select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4) and io_type != 11 and source_sta_no = 180 order by io_time,wrk_no-->
-<!-- </select>-->
+ <!-- <!– 鍏ュ簱浠诲姟 –>-->
+ <!-- <select id="selectWorkingPakin" resultMap="BaseResultMap">-->
+ <!-- select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4) and io_type != 11 and source_sta_no = 180 order by io_time,wrk_no-->
+ <!-- </select>-->
-<!-- <!– 鍑哄簱浠诲姟 –>-->
-<!-- <select id="selectWorkingPakout" resultMap="BaseResultMap">-->
-<!-- select top 1 *-->
-<!-- from dbo.asr_wrk_mast-->
-<!-- where (wrk_sts in (11,12)-->
-<!-- or (wrk_sts in (14,15) and wrk_no in-->
-<!-- (-->
-<!-- select wrk_no-->
-<!-- from asr_bas_devp-->
-<!-- where wrk_no > 0)-->
-<!-- ))-->
-<!-- and io_type != 11-->
-<!-- and source_sta_no = 180-->
-<!-- order by io_time,wrk_no-->
-<!-- </select>-->
+ <!-- <!– 鍑哄簱浠诲姟 –>-->
+ <!-- <select id="selectWorkingPakout" resultMap="BaseResultMap">-->
+ <!-- select top 1 *-->
+ <!-- from dbo.asr_wrk_mast-->
+ <!-- where (wrk_sts in (11,12)-->
+ <!-- or (wrk_sts in (14,15) and wrk_no in-->
+ <!-- (-->
+ <!-- select wrk_no-->
+ <!-- from asr_bas_devp-->
+ <!-- where wrk_no > 0)-->
+ <!-- ))-->
+ <!-- and io_type != 11-->
+ <!-- and source_sta_no = 180-->
+ <!-- order by io_time,wrk_no-->
+ <!-- </select>-->
<select id="selectCrnWorking" resultMap="BaseResultMap">
select top 1 * from dbo.asr_wrk_mast where 1=1 and wrk_sts in (3,4,11,12) and crn_no=#{crnNo} order by io_time,wrk_no
@@ -169,13 +169,13 @@
select top 1 *
from dbo.asr_wrk_mast
where (wrk_sts in (11,12)
- or (wrk_sts in (14,15) and wrk_no in
- (
- select wrk_no
- from asr_bas_devp
- where wrk_no > 0)
- ))
- and io_type != 11
+ or (wrk_sts in (14,15) and wrk_no in
+ (
+ select wrk_no
+ from asr_bas_devp
+ where wrk_no > 0)
+ ))
+ and io_type != 11
and source_sta_no = #{sourceStaNo}
order by io_time,wrk_no
</select>
diff --git a/src/main/webapp/static/js/console.map.js b/src/main/webapp/static/js/console.map.js
index dea8820..7b796c0 100644
--- a/src/main/webapp/static/js/console.map.js
+++ b/src/main/webapp/static/js/console.map.js
@@ -1,495 +1 @@
-mapInfo ={
- "mapName": "XFXWCS",
- "rackCount": 6,
- "crnCount": 3,
- "stbCount": 39,
- "hpPosition": 1,
- "minBayNo": 2,
- "floors": 3,
- "racks": [{
- "type": "rack",
- "id": "rack6",
- "top": 344,
- "left": 193,
- "width": 796,
- "height": 23,
- "minBayNo": 2,
- "maxBayNo": 35
- }, {
- "type": "rack",
- "id": "rack5",
- "top": 284,
- "left": 193,
- "width": 796,
- "height": 23,
- "minBayNo": 2,
- "maxBayNo": 35
- }, {
- "type": "rack",
- "id": "rack4",
- "top": 260,
- "left": 193,
- "width": 796,
- "height": 23,
- "minBayNo": 2,
- "maxBayNo": 35
- }, {
- "type": "rack",
- "id": "rack1",
- "top": 119,
- "left": 193,
- "width": 796,
- "height": 23,
- "minBayNo": 2,
- "maxBayNo": 35
- }, {
- "type": "rack",
- "id": "rack2",
- "top": 176,
- "left": 193,
- "width": 796,
- "height": 23,
- "minBayNo": 2,
- "maxBayNo": 35
- }, {
- "type": "rack",
- "id": "rack3",
- "top": 200,
- "left": 193,
- "width": 796,
- "height": 23,
- "minBayNo": 2,
- "maxBayNo": 35
- }],
- "rackDescs": [{
- "type": "rackDescs",
- "id": "lb_desc17",
- "text": "#1",
- "top": 119,
- "left": 157,
- "width": 30,
- "height": 23
- }, {
- "type": "rackDescs",
- "id": "lb_desc16",
- "text": "#6",
- "top": 344,
- "left": 154,
- "width": 33,
- "height": 23
- }],
- "crns": [{
- "type": "track",
- "id": "lb_track4",
- "text": "",
- "top": 97,
- "left": 1090,
- "width": 3,
- "height": 290
- }, {
- "type": "track",
- "id": "lb_track5",
- "text": "",
- "top": 97,
- "left": 1119,
- "width": 3,
- "height": 290
- }, {
- "type": "crane",
- "id": "crn-3",
- "text": "3",
- "top": 316,
- "left": 466,
- "width": 93,
- "height": 22
- }, {
- "type": "track",
- "id": "lb_track3",
- "text": "",
- "top": 327,
- "left": 172,
- "width": 850,
- "height": 2
- }, {
- "type": "crane",
- "id": "crn-2",
- "text": "2",
- "top": 232,
- "left": 466,
- "width": 93,
- "height": 22
- }, {
- "type": "track",
- "id": "lb_track1",
- "text": "",
- "top": 160,
- "left": 177,
- "width": 850,
- "height": 2
- }, {
- "type": "track",
- "id": "lb_track2",
- "text": "",
- "top": 243,
- "left": 172,
- "width": 850,
- "height": 2
- }, {
- "type": "crane",
- "id": "crn-1",
- "text": "1",
- "top": 151,
- "left": 471,
- "width": 93,
- "height": 22
- }],
- "areas": [{
- "type": "Control_floor",
- "id": "tabControl_floor1",
- "text": "妤煎眰",
- "top": 66,
- "left": 80,
- "width": 1267,
- "height": 666,
- "floors": [{
- "type": "floor",
- "id": "page_floor1",
- "text": "1F",
- "top": 4,
- "left": 22,
- "width": 1241,
- "height": 658,
- "stns": [{
- "type": "stn",
- "id": "site-100",
- "text": "100",
- "top": 176,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-102",
- "text": "102",
- "top": 237,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-101",
- "text": "101",
- "top": 176,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-112",
- "text": "112",
- "top": 176,
- "left": 1072,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-105",
- "text": "105",
- "top": 284,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-103",
- "text": "103",
- "top": 237,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-110",
- "text": "110",
- "top": 284,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-108",
- "text": "108",
- "top": 200,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-109",
- "text": "109",
- "top": 260,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-104",
- "text": "104",
- "top": 284,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-107",
- "text": "107",
- "top": 176,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-106",
- "text": "106",
- "top": 119,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-111",
- "text": "111",
- "top": 344,
- "left": 991,
- "width": 80,
- "height": 23
- }]
- }, {
- "type": "floor",
- "id": "page_floor2",
- "text": "2F",
- "top": 4,
- "left": 22,
- "width": 1241,
- "height": 658,
- "stns": [{
- "type": "stn",
- "id": "site-200",
- "text": "200",
- "top": 176,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-202",
- "text": "202",
- "top": 237,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-201",
- "text": "201",
- "top": 176,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-212",
- "text": "212",
- "top": 176,
- "left": 1072,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-205",
- "text": "205",
- "top": 284,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-203",
- "text": "203",
- "top": 237,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-210",
- "text": "210",
- "top": 284,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-208",
- "text": "208",
- "top": 200,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-209",
- "text": "209",
- "top": 260,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-204",
- "text": "204",
- "top": 284,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-207",
- "text": "207",
- "top": 176,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-206",
- "text": "206",
- "top": 119,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-211",
- "text": "211",
- "top": 344,
- "left": 991,
- "width": 80,
- "height": 23
- }]
- }, {
- "type": "floor",
- "id": "page_floor3",
- "text": "3F",
- "top": 4,
- "left": 22,
- "width": 1241,
- "height": 658,
- "stns": [{
- "type": "stn",
- "id": "site-300",
- "text": "300",
- "top": 176,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-302",
- "text": "302",
- "top": 237,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-301",
- "text": "301",
- "top": 176,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-312",
- "text": "312",
- "top": 176,
- "left": 1072,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-305",
- "text": "305",
- "top": 284,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-303",
- "text": "303",
- "top": 237,
- "left": 1138,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-310",
- "text": "310",
- "top": 284,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-308",
- "text": "308",
- "top": 200,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-309",
- "text": "309",
- "top": 260,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-304",
- "text": "304",
- "top": 284,
- "left": 1204,
- "width": 65,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-307",
- "text": "307",
- "top": 176,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-306",
- "text": "306",
- "top": 119,
- "left": 991,
- "width": 80,
- "height": 23
- }, {
- "type": "stn",
- "id": "site-311",
- "text": "311",
- "top": 344,
- "left": 991,
- "width": 80,
- "height": 23
- }]
- }]
- }]
-}
\ No newline at end of file
+mapInfo ={"mapName":"SHBGWCS","rackCount":8,"crnCount":2,"stbCount":16,"hpPosition":1,"minBayNo":2,"floors":1,"racks":[{"type":"rack","id":"rack4","top":272,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack1","top":363,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack2","top":342,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack3","top":294,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack8","top":158,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack5","top":250,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack6","top":228,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38},{"type":"rack","id":"rack7","top":180,"left":189,"width":917,"height":20,"minBayNo":2,"maxBayNo":38}],"rackDescs":[{"type":"rackDescs","id":"lb_desc1","text":"#1","top":386,"left":1005,"width":30,"height":23},{"type":"rackDescs","id":"lb_desc11","text":"#8","top":129,"left":1005,"width":33,"height":23}],"crns":[{"type":"track","id":"lb_track1","text":"","top":327,"left":128,"width":1022,"height":2},{"type":"track","id":"lb_track2","text":"","top":213,"left":128,"width":1023,"height":2},{"type":"crane","id":"crn-2","text":"2","top":203,"left":278,"width":93,"height":22},{"type":"crane","id":"crn-1","text":"1","top":317,"left":278,"width":93,"height":22}],"areas":[{"type":"Control_floor","id":"tabControl_floor1","text":"妤煎眰","top":68,"left":80,"width":1430,"height":598,"floors":[{"type":"floor","id":"page_floor1","text":"1F","top":4,"left":22,"width":1404,"height":590,"stns":[{"type":"stn","id":"site-103","text":"103","top":180,"left":1378,"width":53,"height":20},{"type":"stn","id":"site-101","text":"101","top":180,"left":1107,"width":53,"height":20},{"type":"stn","id":"site-102","text":"102","top":180,"left":1323,"width":53,"height":20},{"type":"stn","id":"site-110","text":"110","top":342,"left":1432,"width":53,"height":20},{"type":"stn","id":"site-111","text":"111","top":180,"left":1161,"width":53,"height":20},{"type":"stn","id":"site-112","text":"112","top":180,"left":1215,"width":53,"height":20},{"type":"stn","id":"site-113","text":"113","top":180,"left":1269,"width":53,"height":20},{"type":"stn","id":"site-114","text":"114","top":342,"left":1161,"width":53,"height":20},{"type":"stn","id":"site-115","text":"115","top":342,"left":1215,"width":53,"height":20},{"type":"stn","id":"site-116","text":"116","top":342,"left":1269,"width":53,"height":20},{"type":"stn","id":"site-109","text":"109","top":342,"left":1377,"width":53,"height":20},{"type":"stn","id":"site-108","text":"108","top":342,"left":1323,"width":53,"height":20},{"type":"stn","id":"site-104","text":"104","top":180,"left":1433,"width":53,"height":20},{"type":"stn","id":"site-105","text":"105","top":201,"left":1323,"width":53,"height":69},{"type":"stn","id":"site-106","text":"106","top":272,"left":1323,"width":53,"height":69},{"type":"stn","id":"site-107","text":"107","top":342,"left":1107,"width":53,"height":20}]}]}]}
--
Gitblit v1.9.1