Commit 72161853 authored by zhangqingle's avatar zhangqingle

修改接口

parent 719b5c94
...@@ -97,7 +97,8 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> { ...@@ -97,7 +97,8 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" bl.lesson_name LessonTitle , su.name personName, " + " bl.lesson_name LessonTitle , su.name personName, " +
" blp.is_appoint isAppoint , blp.is_finish isFinish ," + " blp.is_appoint isAppoint , blp.is_finish isFinish ," +
" blp.learn_progress learnProgress ," + " blp.learn_progress learnProgress ," +
" ba.create_date appointDate ," + " if(blp.is_appoint = 0, blp.apply_date, ba.create_date) appointDate, " +
// " ba.create_date appointDate ," +
" blp.finish_date finishDate , " + " blp.finish_date finishDate , " +
" blp.apply_date applyDate , " + " blp.apply_date applyDate , " +
" blp.sign_date signDate , " + " blp.sign_date signDate , " +
......
...@@ -154,8 +154,10 @@ public class BLessonPerson extends IdEntity<BLessonPerson> { ...@@ -154,8 +154,10 @@ public class BLessonPerson extends IdEntity<BLessonPerson> {
this.setIsCollect("0"); this.setIsCollect("0");
//设置不指派 //设置不指派
this.setIsAppoint("0"); this.setIsAppoint("0");
//设置不指派
this.setRemarks(""); this.setRemarks("");
//设置加入学习时间为当前时间
this.setApplyDate(new Date());
} }
//初始化 //初始化
public void initTrainModel(){ public void initTrainModel(){
...@@ -164,7 +166,7 @@ public class BLessonPerson extends IdEntity<BLessonPerson> { ...@@ -164,7 +166,7 @@ public class BLessonPerson extends IdEntity<BLessonPerson> {
this.setIsCollect("0"); this.setIsCollect("0");
//设置不指派 //设置不指派
this.setIsAppoint("0"); this.setIsAppoint("0");
//设置不指派
this.setRemarks(""); this.setRemarks("");
//设置待开始 //设置待开始
this.setTrainIsSign("0"); this.setTrainIsSign("0");
......
...@@ -26,10 +26,7 @@ import org.springframework.stereotype.Service; ...@@ -26,10 +26,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.*;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/** /**
...@@ -211,6 +208,9 @@ public class BLessonPersonServiceImpl implements BLessonPersonService { ...@@ -211,6 +208,9 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
BLessonPerson bLessonPersonReal = bLessonPersonReals.get(0); BLessonPerson bLessonPersonReal = bLessonPersonReals.get(0);
bLessonPersonReal.setFlag("1"); bLessonPersonReal.setFlag("1");
bLessonPersonReal.setDelFlag("0"); bLessonPersonReal.setDelFlag("0");
//更新报名时间
bLessonPersonReal.setApplyDate(new Date());
UserUtil.setCurrentMergeOperation(bLessonPersonReal); UserUtil.setCurrentMergeOperation(bLessonPersonReal);
line = bLessonPersonRepository.updateByPrimaryKeySelective(bLessonPersonReal); line = bLessonPersonRepository.updateByPrimaryKeySelective(bLessonPersonReal);
return new PersistModel(line); return new PersistModel(line);
......
...@@ -725,7 +725,7 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -725,7 +725,7 @@ public class BLessonServiceImpl implements BLessonService {
updateBLessonPerson.setFlag("1"); updateBLessonPerson.setFlag("1");
//设置指派信息 //设置指派信息
updateBLessonPerson.setIsAppoint("1"); updateBLessonPerson.setIsAppoint("1");
updateBLessonPerson.setApplyDate(new Date());//指派时间同步到lesson_person的报名时间 // updateBLessonPerson.setApplyDate(new Date());//指派时间同步到lesson_person的报名时间
updateBLessonPerson.setLessonId(appointLessonDTO.getLessonId()); updateBLessonPerson.setLessonId(appointLessonDTO.getLessonId());
updateBLessonPerson.setAppointId(bAppoint.getBusinessId()); updateBLessonPerson.setAppointId(bAppoint.getBusinessId());
UserUtil.setCurrentMergeOperation(updateBLessonPerson); UserUtil.setCurrentMergeOperation(updateBLessonPerson);
...@@ -751,7 +751,6 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -751,7 +751,6 @@ public class BLessonServiceImpl implements BLessonService {
if ("0".equals(bLesson.getLessonType())){ if ("0".equals(bLesson.getLessonType())){
bLessonPerson.initModel(); bLessonPerson.initModel();
bLessonPerson.setIsFinish("0"); bLessonPerson.setIsFinish("0");
} }
if ("1".equals(bLesson.getLessonType())){ if ("1".equals(bLesson.getLessonType())){
bLessonPerson.initTrainModel(); bLessonPerson.initTrainModel();
...@@ -761,7 +760,7 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -761,7 +760,7 @@ public class BLessonServiceImpl implements BLessonService {
bLessonPerson.setAppointId(bAppoint.getBusinessId()); bLessonPerson.setAppointId(bAppoint.getBusinessId());
bLessonPerson.setIsAppoint("1"); bLessonPerson.setIsAppoint("1");
bLessonPerson.setApplyDate(new Date());//指派时间同步到lesson_person的报名时间 // bLessonPerson.setApplyDate(new Date());//指派时间同步到lesson_person的报名时间
bLessonPerson.setLessonId(appointLessonDTO.getLessonId()); bLessonPerson.setLessonId(appointLessonDTO.getLessonId());
bLessonPerson.setPersonId(userId); bLessonPerson.setPersonId(userId);
bLessonPersonOthers.add(bLessonPerson); bLessonPersonOthers.add(bLessonPerson);
......
...@@ -231,7 +231,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> { ...@@ -231,7 +231,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
" b_lesson_person blp left join b_lesson bl on blp.lesson_id = bl.business_id " + " b_lesson_person blp left join b_lesson bl on blp.lesson_id = bl.business_id " +
" where blp.del_flag != 1 AND blp.flag = 1 " + " where blp.del_flag != 1 AND blp.flag = 1 " +
" and bl.del_flag != 1 AND bl.flag = 1 " + " and bl.del_flag != 1 AND bl.flag = 1 " +
// " and blp.is_finish = 2 " + " and blp.is_finish = 1 " +
// " and bl.release_state = 2 " + // " and bl.release_state = 2 " +
" and bl.lesson_type = 0 " + " and bl.lesson_type = 0 " +
" and bl.corp_id = #{corpId} " + " and bl.corp_id = #{corpId} " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment