| | |
| | | package com.ycl.jxkg.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.jxkg.context.WebContext; |
| | | import com.ycl.jxkg.domain.entity.ClassesNotify; |
| | | import com.ycl.jxkg.mapper.ClassesNotifyMapper; |
| | | import com.ycl.jxkg.service.ClassesNotifyService; |
| | |
| | | public class ClassesNotifyServiceImpl extends ServiceImpl<ClassesNotifyMapper, ClassesNotify> implements ClassesNotifyService { |
| | | |
| | | private final ClassesNotifyMapper classesNotifyMapper; |
| | | private final WebContext webContext; |
| | | |
| | | /** |
| | | * 添加 |
| | |
| | | @Override |
| | | public Result add(ClassesNotifyForm form) { |
| | | ClassesNotify entity = ClassesNotifyForm.getEntityByForm(form, null); |
| | | entity.setTeacherId(webContext.getCurrentUser().getId()); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |