This commit is contained in:
linfso 2025-02-22 22:43:39 +08:00
parent a5a7df5787
commit 1fc01ac345

View File

@ -108,20 +108,14 @@ public class EmisCustomerInvoiceInfoController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody EmisCustomerInvoiceInfo emisCustomerInvoiceInfo) public AjaxResult add(@RequestBody EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
{ {
try { try {
return toAjax(emisCustomerInvoiceInfoService.insertEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo)); return toAjax(emisCustomerInvoiceInfoService.insertEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo));
} }
catch (DuplicateKeyException e) { catch (DuplicateKeyException e) {
e.printStackTrace(); e.printStackTrace();
return AjaxResult.error("公司重复"); return AjaxResult.error("公司重复");
}
}
catch (Exception ex){
throw ex;
// ex.printStackTrace();
// return AjaxResult.error("操作异常:",ex.getMessage());
}
} }
/** /**