hasan 2 years ago
parent
commit
30f001d719
1 changed files with 1 additions and 1 deletions
  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
             }