|
@@ -14,6 +14,8 @@ import com.github.pagehelper.Page;
|
|
import com.google.common.base.Splitter;
|
|
import com.google.common.base.Splitter;
|
|
import com.zhongzheng.common.annotation.DataScope;
|
|
import com.zhongzheng.common.annotation.DataScope;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
|
+import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
|
+import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
import com.zhongzheng.common.core.redis.RedisCache;
|
|
import com.zhongzheng.common.core.redis.RedisCache;
|
|
import com.zhongzheng.common.core.redis.RedisLockEntity;
|
|
import com.zhongzheng.common.core.redis.RedisLockEntity;
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
@@ -52,6 +54,7 @@ import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
|
|
+import com.zhongzheng.modules.system.service.ISysUserService;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserBankRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserBankRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserQueryBo;
|
|
@@ -68,6 +71,7 @@ import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.security.core.token.TokenService;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -106,6 +110,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
@Autowired
|
|
@Autowired
|
|
private OssService ossService;
|
|
private OssService ossService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysUserService iSysUserService;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private IOrderService iOrderService;
|
|
private IOrderService iOrderService;
|
|
|
|
|
|
@@ -121,6 +128,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
@Autowired
|
|
@Autowired
|
|
private IGoodsService iGoodsService;
|
|
private IGoodsService iGoodsService;
|
|
|
|
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private RedisCache redisCache;
|
|
private RedisCache redisCache;
|
|
|
|
|
|
@@ -706,12 +714,20 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
studentVo.setGoodsId(orderGoods.getGoodsId());
|
|
studentVo.setGoodsId(orderGoods.getGoodsId());
|
|
studentVo.setGoodsName(goods.getGoodsName());
|
|
studentVo.setGoodsName(goods.getGoodsName());
|
|
studentVo.setFullName(fullName);
|
|
studentVo.setFullName(fullName);
|
|
|
|
+ String userName = "erjian";
|
|
if(fullName.equals("继续教育二级建造师")){
|
|
if(fullName.equals("继续教育二级建造师")){
|
|
studentVo.setGradeType(1);
|
|
studentVo.setGradeType(1);
|
|
}
|
|
}
|
|
if(fullName.equals("继续教育二级造价师")){
|
|
if(fullName.equals("继续教育二级造价师")){
|
|
studentVo.setGradeType(2);
|
|
studentVo.setGradeType(2);
|
|
|
|
+ userName = "erzao";
|
|
}
|
|
}
|
|
|
|
+ SysUser sysUser = iSysUserService.getOne(new LambdaQueryWrapper<SysUser>()
|
|
|
|
+ .eq(SysUser::getUserName, userName).last("limit 1"));
|
|
|
|
+ LoginUser loginUser = new LoginUser();
|
|
|
|
+ loginUser.setUser(sysUser);
|
|
|
|
+
|
|
|
|
+ studentVo.setToken(iUserService.createToken(loginUser));
|
|
return studentVo;
|
|
return studentVo;
|
|
}
|
|
}
|
|
|
|
|