|
|
|
@ -145,7 +145,8 @@ public class BasedataPatrolPointController extends BaseController { |
|
|
|
businessType = BizType.INSERT |
|
|
|
) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult add(@RequestBody BasedataPatrolPoint basedataPatrolpoint) { |
|
|
|
public AjaxResult add(@RequestBody JSONObject jsonObject) { |
|
|
|
BasedataPatrolPoint basedataPatrolpoint = jsonObject.toJavaObject(BasedataPatrolPoint.class); |
|
|
|
if (null != basedataPatrolpoint.getStdParolPointId()) { |
|
|
|
this.combinePatrolPointByStd(basedataPatrolpoint); |
|
|
|
} |
|
|
|
@ -187,7 +188,8 @@ public class BasedataPatrolPointController extends BaseController { |
|
|
|
businessType = BizType.UPDATE |
|
|
|
) |
|
|
|
@PostMapping({"/edit"}) |
|
|
|
public AjaxResult edit(@RequestBody BasedataPatrolPoint basedataPatrolpoint) { |
|
|
|
public AjaxResult edit(@RequestBody JSONObject jsonObject) { |
|
|
|
BasedataPatrolPoint basedataPatrolpoint = jsonObject.toJavaObject(BasedataPatrolPoint.class); |
|
|
|
log.info("BASEDATA_PATROL_POINT_CONTROLLER EDIT param: {}", basedataPatrolpoint); |
|
|
|
return this.toAjax(this.basedataPatrolPointService.updateBasedataPatrolPoint(basedataPatrolpoint)); |
|
|
|
} |
|
|
|
|