mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-27 23:52:58 +08:00
fixed: typo
This commit is contained in:
parent
a2a1206ec7
commit
debf6c65fb
@ -60,7 +60,7 @@ public class CourseController {
|
|||||||
String title = MapUtils.getString(params, "title");
|
String title = MapUtils.getString(params, "title");
|
||||||
String depIds = MapUtils.getString(params, "dep_ids");
|
String depIds = MapUtils.getString(params, "dep_ids");
|
||||||
String categoryIds = MapUtils.getString(params, "category_ids");
|
String categoryIds = MapUtils.getString(params, "category_ids");
|
||||||
Integer isRequired = MapUtils.getInteger(params, "is_requried");
|
Integer isRequired = MapUtils.getInteger(params, "is_required");
|
||||||
|
|
||||||
CoursePaginateFiler filter = new CoursePaginateFiler();
|
CoursePaginateFiler filter = new CoursePaginateFiler();
|
||||||
filter.setTitle(title);
|
filter.setTitle(title);
|
||||||
@ -93,15 +93,7 @@ public class CourseController {
|
|||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Transactional
|
@Transactional
|
||||||
public JsonResponse store(@RequestBody @Validated CourseRequest req) throws ParseException {
|
public JsonResponse store(@RequestBody @Validated CourseRequest req) throws ParseException {
|
||||||
Course course = courseService.createWithCategoryIdsAndDepIds(
|
Course course = courseService.createWithCategoryIdsAndDepIds(req.getTitle(), req.getThumb(), req.getShortDesc(), req.getIsRequired(), req.getIsShow(), req.getCategoryIds(), req.getDepIds());
|
||||||
req.getTitle(),
|
|
||||||
req.getThumb(),
|
|
||||||
req.getShortDesc(),
|
|
||||||
req.getIsRequired(),
|
|
||||||
req.getIsShow(),
|
|
||||||
req.getCategoryIds(),
|
|
||||||
req.getDepIds()
|
|
||||||
);
|
|
||||||
|
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user