Explorar el Código

修改 添加有效时间判断

jk-GitHub-coder hace 4 años
padre
commit
383e3205b6

+ 1 - 1
YijiaRestful/src/main/java/com/platform/yijia/controller/PayController.java

@@ -668,7 +668,7 @@ public class PayController {
                             integralRule.setOilName(infoMap.get("oilName").toString());
                             //获取该油站的积分规则
                             List<IntegralRule> rule = integralRuleService.getIntegralRule(integralRule);
-                            if(rule !=null && rule.size() > 0){
+                            if(rule !=null && rule.size() > 0 && rule.get(0).getEmptyDate().compareTo(new Date()) ==1){
                                 CustomerPoints customerPoints = new CustomerPoints();       //客户积分实体表
                                 CustomerPointsRecord customerPointsRecord = new CustomerPointsRecord();     //客户积分记录实体表
                                 if(infoMap.containsKey("unionId")){