|
@@ -17,7 +17,9 @@ import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.SecurityUtils;
|
|
|
import com.zhongzheng.modules.base.bo.ConsoleQueryBo;
|
|
|
import com.zhongzheng.modules.base.domain.ShoppingCart;
|
|
|
+import com.zhongzheng.modules.base.domain.UserProfile;
|
|
|
import com.zhongzheng.modules.base.service.IShoppingCartService;
|
|
|
+import com.zhongzheng.modules.base.service.IUserProfileService;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseMapper;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseMenuMapper;
|
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
@@ -81,10 +83,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Collection;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Set;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -165,6 +164,8 @@ public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGo
|
|
|
|
|
|
@Autowired
|
|
|
private IOrderInputService iOrderInputService;
|
|
|
+ @Autowired
|
|
|
+ private IUserProfileService iUserProfileService;
|
|
|
|
|
|
@Override
|
|
|
public OrderGoodsVo queryById(Long orderGoodsId) {
|
|
@@ -558,6 +559,17 @@ public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGo
|
|
|
if(Validator.isNotEmpty(fullName)){
|
|
|
if(fullName.equals("继续教育二级建造师")||fullName.equals("继续教育二级造价师")){
|
|
|
goodsVo.setErJianErZao(true);
|
|
|
+ }else if (goodsVo.getEducationName().equals("考前培训") && goodsVo.getProjectName().equals("施工现场专业人员")){
|
|
|
+ //七大员新考 判断是否提交学员资料
|
|
|
+ int count = iUserProfileService.count(new LambdaQueryWrapper<UserProfile>()
|
|
|
+ .notIn(UserProfile::getStatus, Arrays.asList(3, -1))
|
|
|
+ .eq(UserProfile::getUserId, goodsVo.getUserId())
|
|
|
+ .eq(UserProfile::getGoodsId, goodsVo.getGoodsId())
|
|
|
+// .eq(UserProfile::getCurrentStatus, 1)
|
|
|
+ );
|
|
|
+ if (count > 0){
|
|
|
+ goodsVo.setUserProfile(1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|