hasan 2 年之前
父節點
當前提交
30f001d719
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/szls/nstths/service/impl/TeDataServiceImpl.java

+ 1 - 1
src/main/java/com/szls/nstths/service/impl/TeDataServiceImpl.java

@@ -82,7 +82,7 @@ public class TeDataServiceImpl implements TeDataService {
82 82
         RestTemplate restTemplate = new RestTemplate();
83 83
         ReMsg reMsg1 = restTemplate.postForObject(base_url + "equipmentTestingIsReady", teData, ReMsg.class);
84 84
         if (reMsg1 != null) {
85
-            if (reMsg1.getCode() == "0") {
85
+            if (reMsg1.getCode().equals("0")) {
86 86
                 ReMsg reMsg2 = restTemplate.postForObject(base_url + "equipmentTestingStart", teData, ReMsg.class);
87 87
                 return reMsg2;
88 88
             }