|
|
|
@ -14,6 +14,7 @@ import com.psdc.mqtt.MyMQTTClient; |
|
|
|
|
import com.psdc.service.IPsdcDeviceService; |
|
|
|
|
import com.psdc.utils.SecurityUtils; |
|
|
|
|
import com.psdc.utils.poi.ExcelUtil; |
|
|
|
|
import io.lettuce.core.ScriptOutputType; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -447,8 +448,13 @@ public class PsdcDeviceServiceImpl implements IPsdcDeviceService { |
|
|
|
|
if (sCode.indexOf("null") >= 0){ |
|
|
|
|
sCode = sCode.substring(4); |
|
|
|
|
} |
|
|
|
|
System.out.println("你好 (3) 世界: " + sCode); |
|
|
|
|
psdcStrategyLogMapper.updateRunRes(newLog.getId(), null, null, sCode, null, null, null); |
|
|
|
|
String res = newLog.getStrategyRunRes() + "2"; |
|
|
|
|
if (res.indexOf("null") >= 0){ |
|
|
|
|
res = res.substring(4); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
System.out.println("你好 (3) 世界: " + sCode + ",执行中: " + res); |
|
|
|
|
psdcStrategyLogMapper.updateRunRes(newLog.getId(), null, null, sCode, res, null, null); |
|
|
|
|
if (i > 0) { |
|
|
|
|
count[0]++; |
|
|
|
|
} |
|
|
|
|