|
@@ -1,7 +1,10 @@
|
|
|
package com.sqx.modules.firstLogin.service.impl;
|
|
package com.sqx.modules.firstLogin.service.impl;
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.sqx.modules.firstLogin.dao.WorkExpDao;
|
|
import com.sqx.modules.firstLogin.dao.WorkExpDao;
|
|
|
|
|
+import com.sqx.modules.firstLogin.dto.WorkExpDetailDto;
|
|
|
|
|
+import com.sqx.modules.firstLogin.dto.WorkExpDto;
|
|
|
import com.sqx.modules.firstLogin.entity.WorkExp;
|
|
import com.sqx.modules.firstLogin.entity.WorkExp;
|
|
|
import com.sqx.modules.firstLogin.service.WorkExpService;
|
|
import com.sqx.modules.firstLogin.service.WorkExpService;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -19,7 +22,7 @@ public class WorkExpServiceImpl extends ServiceImpl<WorkExpDao, WorkExp>implemen
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public List<Object> selectWorkExp(Integer userId) {
|
|
|
|
|
|
|
+ public List<WorkExpDetailDto> selectWorkExp(Integer userId) {
|
|
|
return workExpDao.selectWorkExpList(userId);
|
|
return workExpDao.selectWorkExpList(userId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -27,4 +30,11 @@ public class WorkExpServiceImpl extends ServiceImpl<WorkExpDao, WorkExp>implemen
|
|
|
public List<Object> selectWorkExpOne(Integer workExpId) {
|
|
public List<Object> selectWorkExpOne(Integer workExpId) {
|
|
|
return workExpDao.selectWorkExpOne(workExpId);
|
|
return workExpDao.selectWorkExpOne(workExpId);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<WorkExp> selectWorkExpOnly(Long userId) {
|
|
|
|
|
+ QueryWrapper<WorkExp> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
+ queryWrapper.eq("user_id",userId).eq("is_use",1);
|
|
|
|
|
+ return baseMapper.selectList(queryWrapper);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|