Commit 169245dc by jianshuqin

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

parent 33ed163f
...@@ -187,6 +187,7 @@ public class GeneralManagerCheckState extends CostState { ...@@ -187,6 +187,7 @@ public class GeneralManagerCheckState extends CostState {
if (costDomain.getAmountRmb().compareTo(new BigDecimal("5000")) < 0) { if (costDomain.getAmountRmb().compareTo(new BigDecimal("5000")) < 0) {
//特殊情况:0(含)-5k(不含)的每天随机抽取三个订单 //特殊情况:0(含)-5k(不含)的每天随机抽取三个订单
//if (costDomain.getAmountRmb().compareTo(new BigDecimal("5000")) >= 0) { //if (costDomain.getAmountRmb().compareTo(new BigDecimal("5000")) >= 0) {
/* 取消每天随机抽取三个订单的特殊情况
Integer times = APPROVE_TIMES.get(LocalDate.now()); Integer times = APPROVE_TIMES.get(LocalDate.now());
if (times == null) { if (times == null) {
APPROVE_TIMES = new ConcurrentHashMap<LocalDate, Integer>() {{ APPROVE_TIMES = new ConcurrentHashMap<LocalDate, Integer>() {{
...@@ -195,6 +196,7 @@ public class GeneralManagerCheckState extends CostState { ...@@ -195,6 +196,7 @@ public class GeneralManagerCheckState extends CostState {
} else if (times < 3 && LocalDateTime.now().getSecond() % 3 == 0) { } else if (times < 3 && LocalDateTime.now().getSecond() % 3 == 0) {
APPROVE_TIMES.put(LocalDate.now(), ++times); APPROVE_TIMES.put(LocalDate.now(), ++times);
} else } else
*/
return true; return true;
/*} else /*} else
return true;*/ 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