|
@ -7,15 +7,13 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import com.ccsens.cloudutil.feign.TallFeignClient; |
|
|
import com.ccsens.cloudutil.feign.TallFeignClient; |
|
|
import com.ccsens.health.bean.dto.JourneyDto; |
|
|
import com.ccsens.health.bean.dto.JourneyDto; |
|
|
import com.ccsens.health.bean.po.Employee; |
|
|
import com.ccsens.health.bean.po.*; |
|
|
import com.ccsens.health.bean.po.EmployeeExample; |
|
|
|
|
|
import com.ccsens.health.bean.po.Journey; |
|
|
|
|
|
import com.ccsens.health.bean.po.JourneyAbnormal; |
|
|
|
|
|
import com.ccsens.health.bean.vo.JourneyVo; |
|
|
import com.ccsens.health.bean.vo.JourneyVo; |
|
|
import com.ccsens.health.bean.vo.UserVo; |
|
|
import com.ccsens.health.bean.vo.UserVo; |
|
|
import com.ccsens.health.persist.dao.EmployeeDao; |
|
|
import com.ccsens.health.persist.dao.EmployeeDao; |
|
|
import com.ccsens.health.persist.dao.JourneyAbnormalDao; |
|
|
import com.ccsens.health.persist.dao.JourneyAbnormalDao; |
|
|
import com.ccsens.health.persist.dao.JourneyDao; |
|
|
import com.ccsens.health.persist.dao.JourneyDao; |
|
|
|
|
|
import com.ccsens.health.persist.dao.RealNameAuthDao; |
|
|
import com.ccsens.health.util.HealthConstant; |
|
|
import com.ccsens.health.util.HealthConstant; |
|
|
import com.ccsens.util.CodeEnum; |
|
|
import com.ccsens.util.CodeEnum; |
|
|
import com.ccsens.util.DateUtil; |
|
|
import com.ccsens.util.DateUtil; |
|
@ -47,6 +45,8 @@ public class JourneyService implements IJourneyService{ |
|
|
private TallFeignClient tallFeignClient; |
|
|
private TallFeignClient tallFeignClient; |
|
|
@Resource |
|
|
@Resource |
|
|
private RedisUtil redisUtil; |
|
|
private RedisUtil redisUtil; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private RealNameAuthDao realNameAuthDao; |
|
|
@Resource |
|
|
@Resource |
|
|
private IStudentService studentService; |
|
|
private IStudentService studentService; |
|
|
@Resource |
|
|
@Resource |
|
@ -106,6 +106,13 @@ public class JourneyService implements IJourneyService{ |
|
|
//1、获取用户id和传入信息
|
|
|
//1、获取用户id和传入信息
|
|
|
JourneyDto.JourneyInfo journeyInfo = params.getParam(); |
|
|
JourneyDto.JourneyInfo journeyInfo = params.getParam(); |
|
|
Long userId = params.getUserId(); |
|
|
Long userId = params.getUserId(); |
|
|
|
|
|
//检查用户是否已认证
|
|
|
|
|
|
RealNameAuthExample realNameAuthExample = new RealNameAuthExample(); |
|
|
|
|
|
realNameAuthExample.createCriteria().andUserIdEqualTo(userId); |
|
|
|
|
|
List<RealNameAuth> realNameAuthList = realNameAuthDao.selectByExample(realNameAuthExample); |
|
|
|
|
|
if(CollectionUtil.isEmpty(realNameAuthList)){ |
|
|
|
|
|
throw new BaseException(CodeEnum.NOT_REAL_AUTH); |
|
|
|
|
|
} |
|
|
// //2、通过tallId找到health里的成员id
|
|
|
// //2、通过tallId找到health里的成员id
|
|
|
// Employee employee = userService.getEmployeeByUserId(userId);
|
|
|
// Employee employee = userService.getEmployeeByUserId(userId);
|
|
|
//3、保存行程
|
|
|
//3、保存行程
|
|
|