|
@@ -77,6 +77,7 @@ import com.zhongzheng.modules.user.mapper.UserStudyRecordPhotoMapper;
|
|
|
import com.zhongzheng.modules.user.service.*;
|
|
import com.zhongzheng.modules.user.service.*;
|
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.slf4j.Logger;
|
|
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;
|
|
@@ -3643,6 +3644,21 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
return newList;
|
|
return newList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<ClassGradeUserGoodsVo> checkTenClassGradeUser(ClassGradeUserQueryBo bo) {
|
|
|
|
|
+ Long startTime = 11*24*3600L;
|
|
|
|
|
+ Long endTime = 1*24*3600L;
|
|
|
|
|
+ List<ClassGradeUserGoodsVo> list = baseMapper.checkTenClassGradeUser(bo.getUserId(),startTime,endTime);
|
|
|
|
|
+ List<ClassGradeUserGoodsVo> list1 = new ArrayList<>();
|
|
|
|
|
+ for(ClassGradeUserGoodsVo vo : list){
|
|
|
|
|
+ String businessName = iGoodsService.getGoodsBusinessName(vo.getGoodsId());
|
|
|
|
|
+ if (businessName.contains("继续教育二级建造师") ){
|
|
|
|
|
+ list1.add(vo);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return list1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public List<ClassGradeUserGoodsVo> sendFiveClassGradeUser() {
|
|
public List<ClassGradeUserGoodsVo> sendFiveClassGradeUser() {
|
|
|
List<ClassGradeUserGoodsVo> userList = baseMapper.sendFiveClassGradeUser();
|
|
List<ClassGradeUserGoodsVo> userList = baseMapper.sendFiveClassGradeUser();
|
|
@@ -3800,6 +3816,18 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
//查询旧系统是否有学习
|
|
//查询旧系统是否有学习
|
|
|
String businessName = iGoodsService.getGoodsBusinessName(bo.getGoodsId());
|
|
String businessName = iGoodsService.getGoodsBusinessName(bo.getGoodsId());
|
|
|
if (businessName.contains("继续教育二级建造师") || businessName.contains("继续教育二级造价师")){
|
|
if (businessName.contains("继续教育二级建造师") || businessName.contains("继续教育二级造价师")){
|
|
|
|
|
+ OrderGoods orderGoods = baseMapper.getOrderGoods(bo.getUserId(),bo.getGoodsId());
|
|
|
|
|
+ if (ObjectUtils.isNotNull(orderGoods)){
|
|
|
|
|
+ ClassGradeUser classGradeUser = getOne(new LambdaQueryWrapper<ClassGradeUser>()
|
|
|
|
|
+ .eq(ClassGradeUser::getOrderGoodsId, orderGoods.getOrderGoodsId())
|
|
|
|
|
+ .eq(ClassGradeUser::getUserId, bo.getUserId())
|
|
|
|
|
+ .eq(ClassGradeUser::getStatus, 1)
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (ObjectUtils.isNotNull(classGradeUser) && ObjectUtils.isNotNull(classGradeUser.getPeriodWaitTime())){
|
|
|
|
|
+ //重修
|
|
|
|
|
+ return 0L;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
User user = iUserService.getById(bo.getUserId());
|
|
User user = iUserService.getById(bo.getUserId());
|
|
|
Integer type = "继续教育二级建造师".equals(businessName)?1:2;
|
|
Integer type = "继续教育二级建造师".equals(businessName)?1:2;
|
|
|
String param = String.format("idnum=%s&type=%s",EncryptHandler.decrypt(user.getIdCard()),type);
|
|
String param = String.format("idnum=%s&type=%s",EncryptHandler.decrypt(user.getIdCard()),type);
|