|
@@ -195,25 +195,37 @@ public class RecordDetailController extends JeecgController<RecordDetail, IRecor
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 编辑
|
|
|
- *
|
|
|
- * @param jsonObject
|
|
|
- * @return
|
|
|
- */
|
|
|
@AutoLog(value = "培训记录详情-编辑")
|
|
|
@ApiOperation(value="培训记录详情-编辑", notes="培训记录详情-编辑")
|
|
|
@RequestMapping(value = "/editStatus", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
public Result<?> editStatus(@RequestBody JSONObject jsonObject) {
|
|
|
String id = jsonObject.getString("id");
|
|
|
- String courseId = jsonObject.getString("courseId");
|
|
|
- String chapterId = jsonObject.getString("chapterId");
|
|
|
-
|
|
|
- RecordDetail model = recordDetailService.getById(id);
|
|
|
-
|
|
|
+ Integer status = jsonObject.getInteger("status");
|
|
|
+ RecordDetail recordDetail = recordDetailService.getById(id);
|
|
|
+ recordDetail.setStatus(status);
|
|
|
+ recordDetailService.updateById(recordDetail);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
|
|
|
+// /**
|
|
|
+// * 编辑
|
|
|
+// *
|
|
|
+// * @param jsonObject
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @AutoLog(value = "培训记录详情-编辑")
|
|
|
+// @ApiOperation(value="培训记录详情-编辑", notes="培训记录详情-编辑")
|
|
|
+// @RequestMapping(value = "/editStatus", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
+// public Result<?> editStatus(@RequestBody JSONObject jsonObject) {
|
|
|
+// String id = jsonObject.getString("id");
|
|
|
+// String courseId = jsonObject.getString("courseId");
|
|
|
+// String chapterId = jsonObject.getString("chapterId");
|
|
|
+//
|
|
|
+// RecordDetail model = recordDetailService.getById(id);
|
|
|
+//
|
|
|
+// return Result.OK("编辑成功!");
|
|
|
+// }
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|