Commit a78108ed by 高晓磊

修改一下返回状态,之前放到message里边了

parent 59b71215
...@@ -74,7 +74,7 @@ public class SandMiningController { ...@@ -74,7 +74,7 @@ public class SandMiningController {
KObject kobject = JSONObjectUtils.toObject(body,Amino.getApplicationMetadataContext().getBean(SandMiningConstant.ENTITY, KClass.class)); KObject kobject = JSONObjectUtils.toObject(body,Amino.getApplicationMetadataContext().getBean(SandMiningConstant.ENTITY, KClass.class));
List<KObject> a = sandMiningService.getListByShipAndWorkDate(kobject); List<KObject> a = sandMiningService.getListByShipAndWorkDate(kobject);
if(a.size()>0){ if(a.size()>0){
return ResponseObj.error("500", "该许可证下的船只许可时间与已有数据交叉,请选择其他船只"); return ResponseObj.error(500, "该许可证下的船只许可时间与已有数据交叉,请选择其他船只");
} }
sandMiningService.update(kobject); sandMiningService.update(kobject);
return ResponseObj.success("修改成功"); return ResponseObj.success("修改成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment