|
|
@@ -6,6 +6,8 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
+import org.jeecg.modules.auth.entity.OauthApplication;
|
|
|
+import org.jeecg.modules.auth.service.AuthService;
|
|
|
import org.jeecg.modules.feign.client.HlwCompanyServiceClient;
|
|
|
import org.jeecg.modules.util.CryptTool;
|
|
|
import org.jeecg.modules.util.SecurityUtils;
|
|
|
@@ -25,6 +27,8 @@ public class HlwCompanyController {
|
|
|
|
|
|
@Autowired
|
|
|
private HlwCompanyServiceClient hlwCompanyServiceClient;
|
|
|
+ @Autowired
|
|
|
+ private AuthService authService;
|
|
|
|
|
|
/**
|
|
|
* @return
|
|
|
@@ -50,6 +54,9 @@ public class HlwCompanyController {
|
|
|
//数据解密
|
|
|
json = CryptTool.decode(json);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(json);
|
|
|
+ //获取应用信息
|
|
|
+ OauthApplication oauthApplication = authService.getApplication(SecurityUtils.getClient());
|
|
|
+ jsonObject.put("applicationId", oauthApplication.getApplicationId());
|
|
|
Result<?> result = hlwCompanyServiceClient.saveCompany(jsonObject);
|
|
|
return result;
|
|
|
}
|