|
|
|
@ -67,6 +67,7 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
|
|
|
|
|
int client_id = device.getIntValue("client_id");
|
|
|
|
|
List<JSONObject> clientLogs = actMonDelaySettleMapper.clientLog(client_id);
|
|
|
|
|
JSONObject res = new JSONObject();
|
|
|
|
|
res.put("operation_pause",false);
|
|
|
|
|
Boolean apply = false;
|
|
|
|
|
if (!clientLogs.isEmpty()) {
|
|
|
|
|
apply = true;
|
|
|
|
@ -82,6 +83,10 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
|
|
|
|
|
res.put("active", true);
|
|
|
|
|
res.put("expire", false);
|
|
|
|
|
}
|
|
|
|
|
LocalDateTime dt = LocalDateTime.now();
|
|
|
|
|
if(dt.getDayOfWeek()==DayOfWeek.MONDAY && dt.getHour()<18){
|
|
|
|
|
res.put("operation_pause",true);
|
|
|
|
|
}
|
|
|
|
|
BigDecimal total_redpack = actMonDelaySettleRedPackMapper.getTotalRedPack(client_id);
|
|
|
|
|
PageList<JSONObject> list = actMonDelaySettleRedPackMapper.listRedpacks(client_id, new PageBounds(Order.formString("create_time.desc")));
|
|
|
|
|
res.put("apply", apply);
|
|
|
|
|