| | |
| | | import com.ycl.jxkg.domain.form.MeetForm; |
| | | import com.ycl.jxkg.domain.query.MeetQuery; |
| | | import com.ycl.jxkg.domain.vo.MeetVO; |
| | | import com.ycl.jxkg.domain.vo.StudentSimpleVO; |
| | | import com.ycl.jxkg.enums.MeetStatusEnum; |
| | | import com.ycl.jxkg.mapper.ClassesUserMapper; |
| | | import com.ycl.jxkg.mapper.MeetMapper; |
| | |
| | | Meet entity = baseMapper.selectById(form.getId()); |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | entity.setStatus(form.getStatus()); |
| | | // 不使用updateById这种方式,避免乐观锁加一。 |
| | | new LambdaUpdateChainWrapper<>(meetMapper) |
| | | .eq(Meet::getId, entity.getId()) |
| | | .update(entity); |
| | | .set(Meet::getStatus,form.getStatus()) |
| | | .update(); |
| | | return Result.ok(); |
| | | } |
| | | |
| | |
| | | return Result.ok().data(vos); |
| | | } |
| | | |
| | | @Override |
| | | public Result getStudentList(Integer meetId, String keyword) { |
| | | List<StudentSimpleVO> studentList = baseMapper.getStudentList(meetId, keyword); |
| | | return Result.ok().data(studentList); |
| | | } |
| | | |
| | | /** |
| | | * 发送mq消息 |
| | | * |