This commit is contained in:
linfso 2025-02-22 22:48:54 +08:00
parent 1fc01ac345
commit 51c6bfcb09

View File

@ -108,13 +108,14 @@ public class EmisCustomerInvoiceInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
{
try {
return toAjax(emisCustomerInvoiceInfoService.insertEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo));
}
catch (DuplicateKeyException e) {
e.printStackTrace();
return AjaxResult.error("公司重复");
}
return toAjax(emisCustomerInvoiceInfoService.insertEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo));
// try {
// }
// catch (DuplicateKeyException e) {
// e.printStackTrace();
// return AjaxResult.error("公司重复");
// }
}