main
han-l 2 years ago
parent c9901ce8c3
commit 890f253583

@ -21,6 +21,8 @@ public class ThreadPoolConfig {
executor.setQueueCapacity(300);
executor.setKeepAliveSeconds(300);
executor.setThreadNamePrefix("NORMAL--");
executor.setAwaitTerminationSeconds(60);
executor.setWaitForTasksToCompleteOnShutdown(true);
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy());
executor.initialize();
return executor;

@ -5,12 +5,26 @@
<mapper namespace="com.nmgs.mapper.CarLineMapper">
<select id="selectStaList" resultType="java.util.Map">
SELECT a.*
FROM NAME_TABLE_DCOM a INNER JOIN USER_STA_TABLE b on a.STANO=b.STANO
WHERE a.USERTYPE = 1
AND (a.SUBCOMNO = ${STANO} OR a.STANO = ${STANO})
FROM NAME_TABLE_DCOM a INNER JOIN
(select
<if test="manNo !=null and manNo!=0">
AND b.MANNO=${manNo}
*
</if>
<if test="manNo ==null or manNo==0">
STANO
</if>
from USER_STA_TABLE
<where>
<if test="manNo !=null and manNo!=0">
MANNO=${manNo}
</if>
</where>
<if test="manNo ==null or manNo==0">
GROUP BY STANO
</if>
) b on a.STANO=b.STANO
WHERE a.USERTYPE = 1
AND (a.SUBCOMNO = ${STANO} OR a.STANO = ${STANO})
</select>
<select id="selectPortBySta" resultType="java.util.Map">
SELECT CAST(PORTNO AS VARCHAR(100)) + '车道' + '-' + b.TEXT labelName,
@ -88,7 +102,23 @@
</if>
</select>
<select id="getStaNameByManNo" resultType="java.util.Map">
SELECT a.STANO,b.STANAME FROM USER_STA_TABLE a INNER JOIN NAME_TABLE_DCOM b on a.STANO=b.STANO
SELECT a.STANO,b.STANAME FROM (select
<if test="manNo !=null and manNo!=0">
*
</if>
<if test="manNo ==null or manNo==0">
STANO
</if>
from USER_STA_TABLE
<where>
<if test="manNo !=null and manNo!=0">
MANNO=${manNo}
</if>
</where>
<if test="manNo ==null or manNo==0">
GROUP BY STANO
</if>
) a INNER JOIN NAME_TABLE_DCOM b on a.STANO=b.STANO
<if test="manNo !=null and manNo!=0">
WHERE a.MANNO=${manNo}
</if>

@ -71,7 +71,6 @@ public class LogUtil {
reader.seek(reader.length());
reader.write(sb.toString().getBytes());
} catch (IOException e) {
e.printStackTrace();
System.out.println(e.getMessage());

@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico"/>
<title></title>
<script type="module" crossorigin src="./assets/index.881f4cc0.js"></script>
<script type="module" crossorigin src="./assets/index.975a1f81.js"></script>
<link rel="stylesheet" href="./assets/index.38f67042.css">
</head>
<body>

File diff suppressed because it is too large Load Diff

@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico"/>
<title></title>
<script type="module" crossorigin src="./assets/index.881f4cc0.js"></script>
<script type="module" crossorigin src="./assets/index.975a1f81.js"></script>
<link rel="stylesheet" href="./assets/index.38f67042.css">
</head>
<body>

@ -156,7 +156,6 @@ export default {
this.socketOnOpen(); //
this.socketOnError();
this.socketOnMessage();
},
socketOnOpen() {
this.socket.onopen = () => {
@ -228,17 +227,15 @@ export default {
socketOnClose() {
this.socket.onclose = () => {
console.log("close socket");
this.initSocket();
};
},
socketOnError() {
this.socket.onerror = () => {
this.socketIsNoOpen = true;
const _this = this;
console.log("socket 链接失败 重新链接");
this.socketOnClose();
window.setTimeout(() => {
_this.initSocket();
}, 3000)
this.initSocket();
console.log("socket 链接失败");
};
},

Loading…
Cancel
Save