修改bug

This commit is contained in:
yangjun 2026-02-05 13:43:44 +08:00
parent 8b24ed9663
commit af69805023
1 changed files with 4 additions and 1 deletions

View File

@ -239,8 +239,11 @@ public class NuConfigSuppliersApplyController extends JeecgController<NuConfigSu
@RequestMapping(value = "/audit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> audit(@RequestBody NuConfigSuppliersApply nuConfigSuppliersApply) {
String orgCode = nuConfigSuppliersApplyService.audit(nuConfigSuppliersApply);
NuConfigSuppliersApply nuConfigSuppliersApplyNew = nuConfigSuppliersApplyService.getById(nuConfigSuppliersApply.getId());
SuppliersInfoMQDto suppliersInfoMQDto = new SuppliersInfoMQDto();
BeanUtils.copyProperties(nuConfigSuppliersApply, suppliersInfoMQDto);
BeanUtils.copyProperties(nuConfigSuppliersApplyNew, suppliersInfoMQDto);
suppliersInfoMQDto.setApplyStatus(nuConfigSuppliersApply.getApplyStatus());
suppliersInfoMQDto.setApplyContent(nuConfigSuppliersApply.getApplyContent());
suppliersInfoMQDto.setSysOrgCode(orgCode);
rabbitMQUtil.sendToExchange("nu.suppliers.updateAuditResult", "nu.suppliers.updateAuditResult", suppliersInfoMQDto);
return Result.OK("审核成功!");