puhanshu
2022-03-09 fb84b6f42f9885752c144e6d17de46473c4fa8f8
新增社区添加活动相关默认积分设置
2个文件已修改
76 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActIntegralRuleDO.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActIntegralRuleServiceImpl.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActIntegralRuleDO.java
@@ -91,14 +91,14 @@
    }
    /**
     * 积分任务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.参与志愿者活动 5.参与社区活动 6.参与党员活动 7.参与调查问卷)
     * 积分任务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.参加居民活动 5.参加志愿者活动 6.参加党员活动 7.参与调查问卷)
     */
    public interface integralType {
        int fbssp = 1;
        int fbwxy = 2;
        int cyystp = 3;
        int cyzyzhd = 4;
        int cysqhd = 5;
        int cyjmhd = 4;
        int cyzyzhd = 5;
        int cydyhd = 6;
        int cydcwj = 7;
    }
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActIntegralRuleServiceImpl.java
@@ -125,42 +125,6 @@
        integralRuleYSTPDO.setIntegralType(ComActIntegralRuleDO.integralType.cyystp);
        integralRuleList.add(integralRuleYSTPDO);
        // 志愿者活动默认积分规则
        // ComActIntegralRuleDO integralRuleZYZDO = new ComActIntegralRuleDO();
        // integralRuleZYZDO.setCommunityId(communityId);
        // integralRuleZYZDO.setName("参与志愿者活动");
        // integralRuleZYZDO.setAmount(2);
        // integralRuleZYZDO.setIntegralDescribe("报名参加志愿者活动,仅限志愿者");
        // integralRuleZYZDO.setIsRestrict(1);
        // integralRuleZYZDO.setType(ComActIntegralRuleDO.type.month);
        // integralRuleZYZDO.setCount(0);
        // integralRuleZYZDO.setIntegralType(ComActIntegralRuleDO.integralType.cyzyzhd);
        // integralRuleList.add(integralRuleZYZDO);
        // 社区活动默认积分规则
        // ComActIntegralRuleDO integralRuleSQHDDO = new ComActIntegralRuleDO();
        // integralRuleSQHDDO.setCommunityId(communityId);
        // integralRuleSQHDDO.setName("参与社区活动");
        // integralRuleSQHDDO.setAmount(2);
        // integralRuleSQHDDO.setIntegralDescribe("报名参加社区活动,所有人可参与");
        // integralRuleSQHDDO.setIsRestrict(1);
        // integralRuleSQHDDO.setType(ComActIntegralRuleDO.type.month);
        // integralRuleSQHDDO.setCount(0);
        // integralRuleSQHDDO.setIntegralType(ComActIntegralRuleDO.integralType.cysqhd);
        // integralRuleList.add(integralRuleSQHDDO);
        // 党员活动默认积分规则
        // ComActIntegralRuleDO integralRuleDYHDDO = new ComActIntegralRuleDO();
        // integralRuleDYHDDO.setCommunityId(communityId);
        // integralRuleDYHDDO.setName("参与党员活动");
        // integralRuleDYHDDO.setAmount(1);
        // integralRuleDYHDDO.setIntegralDescribe("报名参加社区党员活动,党员可参与");
        // integralRuleDYHDDO.setIsRestrict(1);
        // integralRuleDYHDDO.setType(ComActIntegralRuleDO.type.day);
        // integralRuleDYHDDO.setCount(0);
        // integralRuleDYHDDO.setIntegralType(ComActIntegralRuleDO.integralType.cydyhd);
        // integralRuleList.add(integralRuleDYHDDO);
        // 问卷调查默认积分规则
        ComActIntegralRuleDO integralRuleWJDCDO = new ComActIntegralRuleDO();
        integralRuleWJDCDO.setCommunityId(communityId);
@@ -172,6 +136,40 @@
        integralRuleWJDCDO.setCount(0);
        integralRuleWJDCDO.setIntegralType(ComActIntegralRuleDO.integralType.cydcwj);
        integralRuleList.add(integralRuleWJDCDO);
        ComActIntegralRuleDO integralRuleJMHDDO = new ComActIntegralRuleDO();
        integralRuleWJDCDO.setCommunityId(communityId);
        integralRuleWJDCDO.setName("参加居民活动");
        integralRuleWJDCDO.setAmount(0);
        integralRuleWJDCDO.setIntegralDescribe("以居民身份参与社区活动可获得对应积分奖励");
        integralRuleWJDCDO.setIsRestrict(1);
        integralRuleWJDCDO.setType(ComActIntegralRuleDO.type.day);
        integralRuleWJDCDO.setCount(0);
        integralRuleWJDCDO.setIntegralType(ComActIntegralRuleDO.integralType.cyjmhd);
        integralRuleList.add(integralRuleJMHDDO);
        ComActIntegralRuleDO integralRuleZYZHDDO = new ComActIntegralRuleDO();
        integralRuleWJDCDO.setCommunityId(communityId);
        integralRuleWJDCDO.setName("参加志愿者活动");
        integralRuleWJDCDO.setAmount(0);
        integralRuleWJDCDO.setIntegralDescribe("以志愿者身份参与社区活动可获得对应积分奖励");
        integralRuleWJDCDO.setIsRestrict(1);
        integralRuleWJDCDO.setType(ComActIntegralRuleDO.type.day);
        integralRuleWJDCDO.setCount(0);
        integralRuleWJDCDO.setIntegralType(ComActIntegralRuleDO.integralType.cyzyzhd);
        integralRuleList.add(integralRuleZYZHDDO);
        ComActIntegralRuleDO integralRuleDYHDDO = new ComActIntegralRuleDO();
        integralRuleWJDCDO.setCommunityId(communityId);
        integralRuleWJDCDO.setName("参加党员活动");
        integralRuleWJDCDO.setAmount(0);
        integralRuleWJDCDO.setIntegralDescribe("以党员身份参与社区活动可获得相应积分");
        integralRuleWJDCDO.setIsRestrict(1);
        integralRuleWJDCDO.setType(ComActIntegralRuleDO.type.day);
        integralRuleWJDCDO.setCount(0);
        integralRuleWJDCDO.setIntegralType(ComActIntegralRuleDO.integralType.cydyhd);
        integralRuleList.add(integralRuleDYHDDO);
        return integralRuleList;
    }