|
|
@@ -12,18 +12,18 @@ import com.yonge.cooleshow.biz.dal.entity.Teacher;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.AuthStatusEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.MessageTypeEnum;
|
|
|
-import com.yonge.cooleshow.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.service.SysMessageService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.TeacherAuthEntryRecordVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.TeacherVo;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
+import com.yonge.cooleshow.common.enums.YesOrNoEnum;
|
|
|
import com.yonge.toolset.base.string.StringPool;
|
|
|
import com.yonge.toolset.base.util.StringUtil;
|
|
|
import com.yonge.toolset.thirdparty.message.MessageSenderPluginContext;
|
|
|
import com.yonge.toolset.utils.string.ValueUtil;
|
|
|
-import org.apache.commons.beanutils.BeanUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.yonge.cooleshow.biz.dal.entity.TeacherAuthEntryRecord;
|
|
|
@@ -93,7 +93,7 @@ public class TeacherAuthEntryRecordServiceImpl extends ServiceImpl<TeacherAuthEn
|
|
|
teacher.setUpdateTime(new Date());
|
|
|
|
|
|
Teacher newTeacher = new Teacher();
|
|
|
- BeanUtils.copyProperties(newTeacher, teacher);
|
|
|
+ BeanUtils.copyProperties(teacher, newTeacher);
|
|
|
teacherDao.updateById(newTeacher);
|
|
|
|
|
|
// 发送审核通知
|
|
|
@@ -154,7 +154,7 @@ public class TeacherAuthEntryRecordServiceImpl extends ServiceImpl<TeacherAuthEn
|
|
|
}
|
|
|
//新增申请记录
|
|
|
TeacherAuthEntryRecord teacherAuthEntryRecord = new TeacherAuthEntryRecord();
|
|
|
- BeanUtils.copyProperties(teacherAuthEntryRecord, teacherApplyDetailDto);
|
|
|
+ BeanUtils.copyProperties(teacherApplyDetailDto, teacherAuthEntryRecord);
|
|
|
teacherAuthEntryRecord.setTeacherAuthStatus(AuthStatusEnum.DOING);
|
|
|
|
|
|
return HttpResponseResult.status(baseMapper.insert(teacherAuthEntryRecord) > 0);
|