md
This commit is contained in:
parent
1fc01ac345
commit
51c6bfcb09
@ -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("公司重复");
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user