|
@@ -276,12 +276,12 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
return wr;
|
|
|
}
|
|
|
//日期、港口不能重复
|
|
|
-// List<Object> cf = hxhbtjService.cf(rq, szgkid);
|
|
|
-// if (cf != null && cf.size() != 0){
|
|
|
-// wr.setSuccess(false);
|
|
|
-// wr.setMessage("该日期已存在记录!");
|
|
|
-// return wr;
|
|
|
-// }
|
|
|
+ List<Object> cf = hxhbtjService.cf(rq, szgkid);
|
|
|
+ if (cf != null && cf.size() != 0 && StringUtils.isEmpty(code.getId())){
|
|
|
+ wr.setSuccess(false);
|
|
|
+ wr.setMessage("该日期已存在记录!");
|
|
|
+ return wr;
|
|
|
+ }
|
|
|
HxhbtjEntity entity = new HxhbtjEntity();
|
|
|
try {
|
|
|
if (!StringUtils.isEmpty(code.getId())) {
|