diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java index 5e248b89c..5567a1f58 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java @@ -396,7 +396,7 @@ public class ApplyformController { AdminUserDO user = userService.getUser(getLoginUserId()); //1表示接口 if (type.equals("1")) { //土贵乌拉 - if (user.getOrgId().equals("150926PDY564156")) { + Map tokendata = new HashMap<>(); tokendata.put("appkey", "7653571505643966826"); tokendata.put("appsecret", "z8SVG1NBFY9d74LM"); @@ -410,7 +410,7 @@ public class ApplyformController { LocalDate currentDate = LocalDate.now(); Map data = new HashMap<>(); - data.put("Yiyuanid", "150926PDY564156"); + data.put("Yiyuanid", user.getOrgId()); data.put("dateStart",currentDate.toString()); data.put("token", accessToken); data.put("dateEnd", currentDate.toString()); @@ -470,7 +470,7 @@ public class ApplyformController { { StrMsg = "暂无需要同步的数据"; } - } + } else if (type.equals("2")) //2 数据库 { switch (apiconfigDO.getDatabaseType()) {