|
|
@ -196,6 +196,15 @@ public class BasedataPatrolPointController extends BaseController { |
|
|
@PostMapping |
|
|
@PostMapping |
|
|
public AjaxResult add(@RequestBody JSONObject jsonObject) { |
|
|
public AjaxResult add(@RequestBody JSONObject jsonObject) { |
|
|
BasedataPatrolPoint basedataPatrolpoint = jsonObject.toJavaObject(BasedataPatrolPoint.class); |
|
|
BasedataPatrolPoint basedataPatrolpoint = jsonObject.toJavaObject(BasedataPatrolPoint.class); |
|
|
|
|
|
|
|
|
|
|
|
if (basedataPatrolpoint.getPatrolPointName().length() > 255) { |
|
|
|
|
|
return AjaxResult.error("点位名称长度不能超过255个字符"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (basedataPatrolpoint.getPurpose().length() > 255) { |
|
|
|
|
|
return AjaxResult.error("单位长度不能超过255个字符"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (null != basedataPatrolpoint.getStdParolPointId()) { |
|
|
if (null != basedataPatrolpoint.getStdParolPointId()) { |
|
|
this.combinePatrolPointByStd(basedataPatrolpoint); |
|
|
this.combinePatrolPointByStd(basedataPatrolpoint); |
|
|
} |
|
|
} |
|
|
|