puhanshu
2021-09-13 08b0ed4c473dd2d45f9eb99d9536f86e689c2e81
修改签到后不能评价的bug
1个文件已修改
6 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActEvaluateServiceImpl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActEvaluateServiceImpl.java
@@ -69,9 +69,9 @@
        Integer isQrCode = comActActivityDO.getIsQrCode();
        if (nonNull(isQrCode) && isQrCode.equals(1)) {
            //需要签到类型
            int evaluateCount = this.baseMapper.selectCount(new QueryWrapper<ComActActEvaluateDO>()
                    .lambda().eq(ComActActEvaluateDO::getUserId, userId).eq(ComActActEvaluateDO::getActivityId, activityId));
            if (evaluateCount <= 0) {
            int signCount = comActActSignDAO.selectCount(new QueryWrapper<ComActActSignDO>()
                    .lambda().eq(ComActActSignDO::getUserId, userId).eq(ComActActSignDO::getActivityId, activityId));
            if (signCount <= 0) {
                //未签到,不能评价
                return R.fail("未签到,不能评价");
            }