diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java index c792a46..99d9713 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java @@ -149,8 +149,10 @@ public class BPlanEnterpriseController extends BaseController { bPlanEnterprise.setCreateId(getUserId()); String enterPriseId = String.valueOf(bPlanEnterprise.getEnterpriseId()); String district = bPlanEnterprise.getDistrict(); + String enterpriseName = bPlanEnterprise.getEnterpriseName(); String[] idArray = enterPriseId.split(","); String[] districtArray = district.split(","); + String[] enterpriseNameArray = enterpriseName.split(","); int i = 0; for (String entId : idArray) { //根据企业id查询重点企业表是 1:重点企业 ,2:非重点企业 @@ -164,6 +166,7 @@ public class BPlanEnterpriseController extends BaseController { bPlanEnterprise.setCreateId(getUserId()); bPlanEnterprise.setDeptId(getDeptId()); bPlanEnterprise.setDistrict(districtArray[i]); + bPlanEnterprise.setEnterpriseName(enterpriseNameArray[i]); bPlanEnterpriseService.save(bPlanEnterprise); i += 1; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java index 730a733..31232bc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java @@ -135,11 +135,19 @@ public class BPlanEnterprise implements Serializable { private Integer isPoint; /** - * 企业名称 + *企业主表名称 */ @TableField(exist = false) - @ApiModelProperty(value = "企业名称") + @ApiModelProperty(value = "企业主表名称") private String entprName; + + /** + * 企业名称 + */ + @Excel(name = "企业名称") + @ApiModelProperty(value = "企业名称") + private String enterpriseName; + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java index b4facbf..83bc658 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java @@ -117,7 +117,7 @@ public class BPlanEnterpriseZhifaResponse { @ApiModelProperty(value = "企业名称") @Excel(name = "企业名称") - private String entprName; + private String enterpriseName; /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/UserServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/UserServiceImpl.java index ebf6183..a903942 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/UserServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/UserServiceImpl.java @@ -36,7 +36,7 @@ public class UserServiceImpl extends ServiceImpl imple public Object getUserByCode(String code) { RestTemplate restTemplate = new RestTemplate(); // 先请求accessToken - String accessTokenUrl = "http://180.108.205.123:8090/sso-server/oauth2/accessToken"; + String accessTokenUrl = "http://2.46.4.197:8090/sso-server/oauth2/accessToken"; HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.MULTIPART_FORM_DATA); MultiValueMap map = new LinkedMultiValueMap(); @@ -53,7 +53,7 @@ public class UserServiceImpl extends ServiceImpl imple // 获取accessToken String accessToken=data.get("accessToken").toString(); // 获取用户 - String userUrl = "http://180.108.205.123:8090/sso-server/oauth2/getUser"; + String userUrl = "http://2.46.4.197:8090/sso-server/oauth2/getUser"; headers = new HttpHeaders(); headers.setContentType(MediaType.MULTIPART_FORM_DATA); map = new LinkedMultiValueMap(); diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index ab49f24..6d418bb 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -80,43 +80,77 @@