Commit d3a0366f by guojuxing

财务管理-发票管理-开票户关闭接口修改

parent a9f7ab14
......@@ -75,6 +75,10 @@ public class InvoiceAccountApiServiceImpl implements InvoiceAccountApiService {
if (tab == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "主键有误");
}
TabInvoiceAccount enableTab = invoiceAccountService.getEnable();
if (enableTab.getInvoiceAccountId().intValue() == id.intValue()) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "不能关闭,必须有一个是开启状态");
}
InvoiceAccountDTO dto = new InvoiceAccountDTO();
dto.setInvoiceAccountId(id);
dto.setStatus(InvoiceUseStatusEnum.DISABLE.getCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment