浏览代码

feat(合同):合同制作

liutao 7 月之前
父节点
当前提交
ac729f8cc9

+ 3 - 1
src/main/java/com/sunxung/factoring/service/tradingPlatform/Impl/PlatformServiceImpl.java

@@ -18,6 +18,7 @@ import com.sunxung.factoring.service.sys.UserService;
 import com.sunxung.factoring.service.tradingPlatform.PlatformService;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
+import org.apache.xpath.operations.Bool;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
@@ -64,7 +65,8 @@ public class PlatformServiceImpl extends ServiceImpl<PlatformMapper, Platform> i
 
         platform.setAuthUrl(data.get("authUrl") == null ? "" : data.get("authUrl").toString());
         platform.setShortAuthUrl(data.get("shortAuthUrl") == null ? "" : data.get("shortAuthUrl").toString());
-        platform.setAuthStatus(0);
+        Boolean authStatus = (Boolean)data.get("authStatus");
+        platform.setAuthStatus(authStatus ? 1 : 0);
         platform.setFddCustomerId(data.get("fddCustomerId") == null ? "" : data.get("fddCustomerId").toString());
         platform.setAutoSignUrl(data.get("autoSignUrl") == null ? "" : data.get("autoSignUrl").toString());
         platform.setShortAutoSignUrl(data.get("shortAutoSignUrl") == null ? "" : data.get("shortAutoSignUrl").toString());