理论试题管理代码调整
This commit is contained in:
parent
1ecd05be32
commit
6ff6eeffec
@ -7,6 +7,7 @@ import club.joylink.rtss.entity.RaceQuestion;
|
||||
import club.joylink.rtss.entity.RaceQuestionExample;
|
||||
import club.joylink.rtss.entity.RaceQuestionOption;
|
||||
import club.joylink.rtss.entity.RaceQuestionOptionExample;
|
||||
|
||||
import club.joylink.rtss.entity.project.Project;
|
||||
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
|
||||
import club.joylink.rtss.services.completition.IUserQuestionProgressService;
|
||||
|
@ -1,10 +1,11 @@
|
||||
package club.joylink.rtss.services.papger;
|
||||
|
||||
import club.joylink.rtss.constants.BusinessConsts;
|
||||
import club.joylink.rtss.constants.Project;
|
||||
|
||||
import club.joylink.rtss.dao.paper.PagerQuestionDAO;
|
||||
import club.joylink.rtss.entity.paper.question.PaperQuestion;
|
||||
import club.joylink.rtss.entity.paper.question.PaperQuestionExample;
|
||||
import club.joylink.rtss.entity.project.Project;
|
||||
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
|
||||
import club.joylink.rtss.vo.AccountVO;
|
||||
import club.joylink.rtss.vo.client.PageVO;
|
||||
@ -50,7 +51,7 @@ public class PagerQuestionService {
|
||||
criteria.andTypeEqualTo(queryVO.getType());
|
||||
}
|
||||
criteria.andIsDelEqualTo(BusinessConsts.DBLogicDelete.NORMAL.ordinal());
|
||||
boolean isDefault = Project.isDefault(Project.valueOf(queryVO.getProjectCode()));
|
||||
boolean isDefault = Project.isDefault(queryVO.getProjectCode());
|
||||
if (isDefault) {
|
||||
criteria.andProjectCodeIsNull();
|
||||
if (Objects.nonNull(queryVO.getCompanyId())) {
|
||||
@ -142,7 +143,7 @@ public class PagerQuestionService {
|
||||
public Collection<String> findAllLable(String projectCode){
|
||||
PaperQuestionExample example = new PaperQuestionExample();
|
||||
PaperQuestionExample.Criteria criteria = example.createCriteria();
|
||||
boolean isDefault = Project.isDefault(Project.valueOf(projectCode));
|
||||
boolean isDefault = Project.isDefault(projectCode);
|
||||
// criteria.andCompanyIdEqualTo(companyId);
|
||||
if(isDefault){
|
||||
criteria.andProjectCodeIsNull();
|
||||
@ -247,7 +248,7 @@ public class PagerQuestionService {
|
||||
}
|
||||
});
|
||||
|
||||
boolean isDefault = Project.isDefault(Project.valueOf(projectCode));
|
||||
boolean isDefault = Project.isDefault(projectCode);
|
||||
//默认项目导入题考虑是否有单位关联
|
||||
PaperQuestionExample example = new PaperQuestionExample();
|
||||
PaperQuestionExample.Criteria criteria = example.createCriteria();
|
||||
|
@ -1,5 +1,6 @@
|
||||
package club.joylink.rtss.websocket;
|
||||
|
||||
import club.joylink.rtss.services.ISysUserService;
|
||||
import club.joylink.rtss.services.LoginSessionManager;
|
||||
import club.joylink.rtss.services.SysUserService;
|
||||
import club.joylink.rtss.vo.AccountVO;
|
||||
@ -32,7 +33,7 @@ public class WebsocketConfig implements WebSocketMessageBrokerConfigurer {
|
||||
@Autowired
|
||||
private LoginSessionManager loginSessionManager;
|
||||
@Resource
|
||||
private SysUserService sysUserService;
|
||||
private ISysUserService sysUserService;
|
||||
@Resource
|
||||
private PresenceChannelInterceptor presenceChannelInterceptor;
|
||||
@Override
|
||||
|
@ -1,6 +1,7 @@
|
||||
package club.joylink.rtss.websocket.interceptor;
|
||||
|
||||
import club.joylink.rtss.entity.project.Project;
|
||||
import club.joylink.rtss.services.ISysUserService;
|
||||
import club.joylink.rtss.services.SysUserService;
|
||||
import club.joylink.rtss.vo.AccountVO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -13,9 +14,9 @@ import java.util.Objects;
|
||||
|
||||
@Slf4j
|
||||
public class VSimpleInterceptor extends BaseInterceptor {
|
||||
private SysUserService sysUserService;
|
||||
private ISysUserService sysUserService;
|
||||
|
||||
public VSimpleInterceptor(SysUserService sysUserService) {
|
||||
public VSimpleInterceptor(ISysUserService sysUserService) {
|
||||
this.sysUserService = sysUserService;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user