demand: 运单录入 -选择现金客户时,若现金客户新界面该条数据已停用,不允许搜索选择;

committer: heyu
This commit is contained in:
aike 2025-12-25 14:55:10 +08:00
parent 502dccc0c5
commit 7285254f24

View File

@ -1156,6 +1156,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
if (Objects.isNull(emisMoneyUser)) {
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "客户名称不存在");
}
if(!"1".equals(emisMoneyUser.getStatus())){
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "该客户已停用");
}
EmisWaybillOther emisWaybillOther = new EmisWaybillOther();
emisWaybillOther.setMoneyUserId(emisMoneyUser.getId());
emisWaybillOther.setSalesSupport(emisMoneyUser.getSalesSupport());