微调
This commit is contained in:
@@ -100,7 +100,9 @@ public class SocketSourceResponseService {
|
|||||||
if (ObjectUtil.isNotNull(dictDataEnumByCode)) {
|
if (ObjectUtil.isNotNull(dictDataEnumByCode)) {
|
||||||
switch (dictDataEnumByCode) {
|
switch (dictDataEnumByCode) {
|
||||||
case SUCCESS:
|
case SUCCESS:
|
||||||
|
if(param.getSendWebMsg()){
|
||||||
WebServiceManager.sendMsg(param.getUserPageId(), JSON.toJSONString(socketDataMsg));
|
WebServiceManager.sendMsg(param.getUserPageId(), JSON.toJSONString(socketDataMsg));
|
||||||
|
}
|
||||||
System.out.println("模拟检测-源初始化成功");
|
System.out.println("模拟检测-源初始化成功");
|
||||||
break;
|
break;
|
||||||
case UNPROCESSED_BUSINESS:
|
case UNPROCESSED_BUSINESS:
|
||||||
|
|||||||
@@ -62,4 +62,5 @@ public class PreDetectionParam {
|
|||||||
*/
|
*/
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
|
private Boolean sendWebMsg;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ public class PreDetectionServiceImpl implements PreDetectionService {
|
|||||||
PreDetectionParam preDetectionParam = new PreDetectionParam();
|
PreDetectionParam preDetectionParam = new PreDetectionParam();
|
||||||
preDetectionParam.setSourceId(param.getSourceId());
|
preDetectionParam.setSourceId(param.getSourceId());
|
||||||
preDetectionParam.setUserPageId(param.getUserPageId());
|
preDetectionParam.setUserPageId(param.getUserPageId());
|
||||||
|
preDetectionParam.setSendWebMsg(true);
|
||||||
|
|
||||||
specialDealSimulate(preDetectionParam);
|
specialDealSimulate(preDetectionParam);
|
||||||
|
|
||||||
@@ -250,6 +251,7 @@ public class PreDetectionServiceImpl implements PreDetectionService {
|
|||||||
PreDetectionParam preDetectionParam = new PreDetectionParam();
|
PreDetectionParam preDetectionParam = new PreDetectionParam();
|
||||||
preDetectionParam.setSourceId(param.getSourceId());
|
preDetectionParam.setSourceId(param.getSourceId());
|
||||||
preDetectionParam.setUserPageId(param.getUserPageId());
|
preDetectionParam.setUserPageId(param.getUserPageId());
|
||||||
|
preDetectionParam.setSendWebMsg(false);
|
||||||
this.sendYtxSocketSimulate(preDetectionParam);
|
this.sendYtxSocketSimulate(preDetectionParam);
|
||||||
}
|
}
|
||||||
//组装源控制脚本
|
//组装源控制脚本
|
||||||
|
|||||||
Reference in New Issue
Block a user