|
@@ -108,7 +108,7 @@ public class SceneMarkShapeController extends BaseController
|
|
|
public ResultData saveOrEditJson(@RequestBody SceneMarkShape param) {
|
|
|
SceneMarkShape shape = sceneMarkShapeService.findByNumAndImagePath(param.getNum(), param.getImagePath());
|
|
|
if (ObjectUtil.isNotNull(shape)){
|
|
|
- param.setId(shape.getId());
|
|
|
+ shape.setId(shape.getId());
|
|
|
return ResultData.ok(sceneMarkShapeService.updateById(shape));
|
|
|
}else {
|
|
|
return ResultData.ok(sceneMarkShapeService.save(shape));
|