|
|
|
@ -86,60 +86,13 @@ public class SupCompanyController {
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success(customerInfoEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/api/pur/auditCompany")
|
|
|
|
|
@Log(title = "资质证书", businessType = BusinessType.UPDATE)
|
|
|
|
|
public BaseResponse auditCompany(@RequestBody SupCompanyEntity companyEntity) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @AuthRuleAnnotation("")
|
|
|
|
|
// @GetMapping("/sup/company/cert/filter")
|
|
|
|
|
// public BaseResponse filterCompanyCert(FilterSupCertRequest filterSupCertRequest,
|
|
|
|
|
// BindingResult bindingResult) {
|
|
|
|
|
// if (bindingResult.hasErrors()) {
|
|
|
|
|
// return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
// }
|
|
|
|
|
// List<SupCertEntity> supCertEntityList
|
|
|
|
|
// = supCertService.filterCompanyCert(filterSupCertRequest);
|
|
|
|
|
// PageInfo<SupCertEntity> pageInfo;
|
|
|
|
|
// pageInfo = new PageInfo<>(supCertEntityList);
|
|
|
|
|
// PageSimpleResponse<SupCertEntity> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
// pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
// pageSimpleResponse.setList(supCertEntityList);
|
|
|
|
|
// return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//撤回单据
|
|
|
|
|
// @AuthRuleAnnotation("")
|
|
|
|
|
// @PostMapping("/sale/sup/cert/revoke")
|
|
|
|
|
// @Log(title = "单据管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
// public BaseResponse revokeSupCert(@RequestBody SupCertEntity supCertEntity) {
|
|
|
|
|
// supCertEntity.setCreateTime(new Date());
|
|
|
|
|
// supCertEntity.setUpdateTime(new Date());
|
|
|
|
|
// boolean b = supCertService.updateCompanyCert(supCertEntity);
|
|
|
|
|
// if (supCertEntity.getType() == ConstantStatus.CERT_COMPANY) {
|
|
|
|
|
// SupCompanyEntity supCompanyEntity = supCompanyService.findCompany(supCertEntity.getCustomerId());
|
|
|
|
|
// supCompanyEntity.setAuditStatus(ConstantStatus.AUDIT_UN);
|
|
|
|
|
// supCompanyEntity.setUpdateTime(new Date());
|
|
|
|
|
// supCompanyService.modifyCompany(supCompanyEntity);
|
|
|
|
|
// } else if (supCertEntity.getType() == ConstantStatus.CERT_MANUFACTURER) {
|
|
|
|
|
// SupManufacturerEntity supManufacturerEntity = supManufacturerService.findManufacturer(supCertEntity.getManufacturerIdFk());
|
|
|
|
|
// supManufacturerEntity.setAuditStatus(ConstantStatus.AUDIT_UN);
|
|
|
|
|
// supManufacturerEntity.setUpdateTime(new Date());
|
|
|
|
|
// supManufacturerService.modifyCompany(supManufacturerEntity);
|
|
|
|
|
// } else if (supCertEntity.getType() == ConstantStatus.CERT_PRODUCT) {
|
|
|
|
|
// SupProductResponse supProductResponse = supProductService.findByProductId(supCertEntity.getProductIdFk());
|
|
|
|
|
// SupProductEntity supProductEntity = new SupProductEntity();
|
|
|
|
|
// supProductEntity.setId(supProductResponse.getId());
|
|
|
|
|
// supProductEntity.setUpdateTime(new Date());
|
|
|
|
|
// supProductEntity.setAuditStatus(ConstantStatus.AUDIT_UN);
|
|
|
|
|
// supProductService.modifyRegistration(supProductEntity);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// return ResultVOUtils.success("成功");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (companyEntity.getAuditStatus() == 1) {
|
|
|
|
|
//查询用户上传的证书
|
|
|
|
|
FilterSupCertRequest filterSupCertRequest = new FilterSupCertRequest();
|
|
|
|
|