feat(REQ-3300): 关联单据提示文案统一
This commit is contained in:
parent
39d21c1449
commit
e99d6856f6
@ -1591,7 +1591,7 @@ public class ChangeRecordServiceImpl extends ServiceImpl<ChangeRecordDao, Change
|
||||
.findAny()
|
||||
.ifPresent(m -> {
|
||||
log.info("{} bill {} is related by {} visa {}", m.getBillType(), m.getBillId(), m.getVisaType(), m.getVisaId());
|
||||
throw new ServiceException(String.format("%s:单据%s已被其他单据关联,请重新选择", m.getBillType(), m.getBillNo()));
|
||||
throw new ServiceException(String.format("%s已被其他%s关联,请重新选择", m.getBillType().name(), visaType.name()));
|
||||
}));
|
||||
}
|
||||
|
||||
@ -1609,7 +1609,7 @@ public class ChangeRecordServiceImpl extends ServiceImpl<ChangeRecordDao, Change
|
||||
.findAny()
|
||||
.ifPresent(m -> {
|
||||
log.info("{} bill {} is related by {} visa {}", m.getBillType(), m.getBillId(), m.getVisaType(), m.getVisaId());
|
||||
throw new ServiceException(String.format("%s:单据%s已被其他单据关联,请重新选择", m.getBillType(), m.getBillNo()));
|
||||
throw new ServiceException(String.format("%s已被其他%s关联,请重新选择", m.getBillType().name(), visaType.name()));
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user