|
@@ -89,6 +89,9 @@ public class AmsshipDeliveryNoticeController extends BaseRESTfulController {
|
|
|
@PostMapping(value = "/insertDeliveryNotice")
|
|
|
public RESTfulResult insertSelective(@RequestBody Map<String,Object> map){
|
|
|
int code=amsshipDeliveryNoticeService.insert(map);
|
|
|
+ if (code==-1){
|
|
|
+ return failed("进厂船名重复,请输入唯一的进厂船名");
|
|
|
+ }
|
|
|
return success(code);
|
|
|
}
|
|
|
|