|
|
|
@ -74,8 +74,6 @@ public class SupCompanyController {
|
|
|
|
|
AuthRoleAdminService authRoleAdminService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/api/pur/getSupComapnys")
|
|
|
|
|
public BaseResponse getSupComapnys(FilterSupCompanyRequest companyRequest) {
|
|
|
|
@ -95,7 +93,8 @@ public class SupCompanyController {
|
|
|
|
|
|
|
|
|
|
//判断是不是存在草稿
|
|
|
|
|
if (companyEntity.getAuditStatus() == 6) {
|
|
|
|
|
List<SupCertEntity> supCertEntityList = supCertService.findAll(companyEntity.getCustomerId()); for(SupCertEntity obj:supCertEntityList){
|
|
|
|
|
List<SupCertEntity> supCertEntityList = supCertService.findAll(companyEntity.getCustomerId());
|
|
|
|
|
for (SupCertEntity obj : supCertEntityList) {
|
|
|
|
|
if (obj.getAuditStatus() == 0) {
|
|
|
|
|
return ResultVOUtils.error(999, "证书中存在草稿不允许提交!");
|
|
|
|
|
}
|
|
|
|
@ -274,6 +273,8 @@ public class SupCompanyController {
|
|
|
|
|
CustomerInfoEntity customerInfoEntity = new CustomerInfoEntity();
|
|
|
|
|
customerInfoEntity.setCustomerId(Long.valueOf(companyEntity.getCustomerId()));
|
|
|
|
|
customerInfoEntity.setRoleId(companyEntity.getRoleId());
|
|
|
|
|
customerInfoEntity.setCompanyName(companyEntity.getCompanyName());
|
|
|
|
|
customerInfoEntity.setCustomerName(companyEntity.getCompanyName());
|
|
|
|
|
customerInfoService.updateCustomerInfo(customerInfoEntity);
|
|
|
|
|
//获取该供应商下面的用户
|
|
|
|
|
List<AuthAdmin> authAdmin = authAdminService.findByCustomerld(companyEntity.getCustomerId());
|
|
|
|
|