Commit 169245dc by jianshuqin

修改逻辑:总经办审核取消每天随机抽取三个订单的特殊情况

parent 33ed163f
......@@ -187,6 +187,7 @@ public class GeneralManagerCheckState extends CostState {
if (costDomain.getAmountRmb().compareTo(new BigDecimal("5000")) < 0) {
//特殊情况:0(含)-5k(不含)的每天随机抽取三个订单
//if (costDomain.getAmountRmb().compareTo(new BigDecimal("5000")) >= 0) {
/* 取消每天随机抽取三个订单的特殊情况
Integer times = APPROVE_TIMES.get(LocalDate.now());
if (times == null) {
APPROVE_TIMES = new ConcurrentHashMap<LocalDate, Integer>() {{
......@@ -195,7 +196,8 @@ public class GeneralManagerCheckState extends CostState {
} else if (times < 3 && LocalDateTime.now().getSecond() % 3 == 0) {
APPROVE_TIMES.put(LocalDate.now(), ++times);
} else
return true;
*/
return true;
/*} else
return true;*/
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment