|
|
@ -17,6 +17,7 @@ import com.glxp.api.entity.purchase.SupCertEntity;
|
|
|
|
import com.glxp.api.entity.purchase.SupCertSetEntity;
|
|
|
|
import com.glxp.api.entity.purchase.SupCertSetEntity;
|
|
|
|
import com.glxp.api.entity.purchase.SupCompanyEntity;
|
|
|
|
import com.glxp.api.entity.purchase.SupCompanyEntity;
|
|
|
|
import com.glxp.api.entity.purchase.SupManufacturerEntity;
|
|
|
|
import com.glxp.api.entity.purchase.SupManufacturerEntity;
|
|
|
|
|
|
|
|
import com.glxp.api.entity.sup.UserCompanyEntity;
|
|
|
|
import com.glxp.api.exception.JsonException;
|
|
|
|
import com.glxp.api.exception.JsonException;
|
|
|
|
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
|
|
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
|
|
import com.glxp.api.req.purchase.FilterCertSetsRequest;
|
|
|
|
import com.glxp.api.req.purchase.FilterCertSetsRequest;
|
|
|
@ -256,6 +257,8 @@ public class SupManufacturerController {
|
|
|
|
if (supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_CHANGE || supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_UN) {
|
|
|
|
if (supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_CHANGE || supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_UN) {
|
|
|
|
//判断是否上级供应商是否审核通过
|
|
|
|
//判断是否上级供应商是否审核通过
|
|
|
|
SupCompanyEntity supCompanyEntity = supCompanyService.findCompany(supManufacturerEntity.getCustomerId());
|
|
|
|
SupCompanyEntity supCompanyEntity = supCompanyService.findCompany(supManufacturerEntity.getCustomerId());
|
|
|
|
|
|
|
|
System.out.println(supCompanyEntity.toString());
|
|
|
|
|
|
|
|
System.out.println(supCompanyEntity.getAuditStatus()+"zhi");
|
|
|
|
if (supCompanyEntity.getAuditStatus() == null || supCompanyEntity.getAuditStatus() != ConstantStatus.AUDIT_PASS
|
|
|
|
if (supCompanyEntity.getAuditStatus() == null || supCompanyEntity.getAuditStatus() != ConstantStatus.AUDIT_PASS
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
return ResultVOUtils.error(500, "所属配送企业资质未通过审核,暂时无法提交!");
|
|
|
|
return ResultVOUtils.error(500, "所属配送企业资质未通过审核,暂时无法提交!");
|
|
|
@ -653,7 +656,6 @@ public class SupManufacturerController {
|
|
|
|
// AuthAdmin authAdmin = authAdminService.findById(Long.parseLong(userId));
|
|
|
|
// AuthAdmin authAdmin = authAdminService.findById(Long.parseLong(userId));
|
|
|
|
// return authAdmin.getCustomerId() + "";
|
|
|
|
// return authAdmin.getCustomerId() + "";
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
public String getCustomerId() {
|
|
|
|
public String getCustomerId() {
|
|
|
|
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
|
|
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
|
|
if (attributes == null) {
|
|
|
|
if (attributes == null) {
|
|
|
@ -664,13 +666,14 @@ public class SupManufacturerController {
|
|
|
|
return companyId;
|
|
|
|
return companyId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// public String getCompanyId() {
|
|
|
|
public String getCompanyId() {
|
|
|
|
// ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
|
|
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
|
|
// if (attributes == null) {
|
|
|
|
if (attributes == null) {
|
|
|
|
// throw new JsonException(ResultEnum.NOT_NETWORK);
|
|
|
|
throw new JsonException(ResultEnum.NOT_NETWORK);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// HttpServletRequest request = attributes.getRequest();
|
|
|
|
HttpServletRequest request = attributes.getRequest();
|
|
|
|
// String companyId = request.getHeader("companyId");
|
|
|
|
String companyId = request.getHeader("companyId");
|
|
|
|
// return companyId;
|
|
|
|
return companyId;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|