|
|
|
@ -10,6 +10,7 @@ import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.entity.auth.CustomerInfoEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicCorpEntity;
|
|
|
|
|
import com.glxp.api.entity.purchase.CustomerContactEntity;
|
|
|
|
|
import com.glxp.api.entity.purchase.SupCertEntity;
|
|
|
|
@ -23,6 +24,7 @@ import com.glxp.api.req.purchase.SelectCorpBindRequest;
|
|
|
|
|
import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.service.auth.AuthAdminService;
|
|
|
|
|
import com.glxp.api.service.auth.CustomerInfoService;
|
|
|
|
|
import com.glxp.api.service.basic.BasicCorpService;
|
|
|
|
|
import com.glxp.api.service.purchase.CustomerContactService;
|
|
|
|
|
import com.glxp.api.service.purchase.SupCertService;
|
|
|
|
@ -63,6 +65,8 @@ public class SupCompanyController {
|
|
|
|
|
SupCertSetService supCertSetService;
|
|
|
|
|
@Resource
|
|
|
|
|
SupCompanyService supCompanyService;
|
|
|
|
|
@Resource
|
|
|
|
|
CustomerInfoService customerInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@ -259,6 +263,14 @@ public class SupCompanyController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(companyEntity.getRoleId()!=null){
|
|
|
|
|
CustomerInfoEntity customerInfoEntity=new CustomerInfoEntity();
|
|
|
|
|
customerInfoEntity.setCustomerId(Long.valueOf(companyEntity.getCustomerId()));
|
|
|
|
|
customerInfoEntity.setRoleId(companyEntity.getRoleId());
|
|
|
|
|
customerInfoService.updateCustomerInfo(customerInfoEntity);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AuthAdmin authAdmin = getUser();
|
|
|
|
|
companyEntity.setAuditor(authAdmin.getId() + "");
|
|
|
|
|