|
|
@ -4,7 +4,7 @@ import au.com.royalpay.payment.manage.activities.monsettledelay.core.ActMonDelay
|
|
|
|
import au.com.royalpay.payment.manage.mappers.act.ActAppMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.act.ActAppMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.act.ActMonDelaySettleMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.act.ActMonDelaySettleMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.act.ActMonDelaySettleRedPackMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.act.ActMonDelaySettleRedPackMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ActsClientsLogMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClientsOperationLogMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.core.ClientManager;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.core.ClientManager;
|
|
|
|
import au.com.royalpay.payment.tools.device.DeviceSupport;
|
|
|
|
import au.com.royalpay.payment.tools.device.DeviceSupport;
|
|
|
@ -44,7 +44,7 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ActAppMapper actAppMapper;
|
|
|
|
private ActAppMapper actAppMapper;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ActsClientsLogMapper actsClientsLogMapper;
|
|
|
|
private ClientsOperationLogMapper clientsOperationLogMapper;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ClientManager clientManager;
|
|
|
|
private ClientManager clientManager;
|
|
|
|
|
|
|
|
|
|
|
@ -135,7 +135,7 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
|
|
|
|
device.put("expire_time", act.getDate("expire_date"));
|
|
|
|
device.put("expire_time", act.getDate("expire_date"));
|
|
|
|
actMonDelaySettleMapper.save(device);
|
|
|
|
actMonDelaySettleMapper.save(device);
|
|
|
|
clientManager.changeManualSettle(client_id,true);
|
|
|
|
clientManager.changeManualSettle(client_id,true);
|
|
|
|
saveActClientLog(act.getString("act_id"),act.getString("act_name"), client_id,1);
|
|
|
|
saveActClientLog(device.getString("account_id"),client_id,"参加活动打开手动清算");
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -159,18 +159,17 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
|
|
|
|
actMonDelaySettleMapper.update(clientLog);
|
|
|
|
actMonDelaySettleMapper.update(clientLog);
|
|
|
|
JSONObject act = actAppMapper.getActDetail("1");
|
|
|
|
JSONObject act = actAppMapper.getActDetail("1");
|
|
|
|
clientManager.changeManualSettle(client_id,false);
|
|
|
|
clientManager.changeManualSettle(client_id,false);
|
|
|
|
saveActClientLog(act.getString("act_id"),act.getString("act_name"), client_id,2);
|
|
|
|
saveActClientLog(device.getString("account_id"), client_id,"退出活动关闭手动清算");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void saveActClientLog(String act_id,String act_name, int client_id,int operation) {
|
|
|
|
private void saveActClientLog(String account_id, int client_id,String operation) {
|
|
|
|
JSONObject actClientLog = new JSONObject();
|
|
|
|
JSONObject actClientLog = new JSONObject();
|
|
|
|
actClientLog.put("act_id",act_id);
|
|
|
|
|
|
|
|
actClientLog.put("client_id",client_id);
|
|
|
|
actClientLog.put("client_id",client_id);
|
|
|
|
actClientLog.put("act_name",act_name);
|
|
|
|
actClientLog.put("account_id",account_id);
|
|
|
|
actClientLog.put("operation",operation);
|
|
|
|
actClientLog.put("operation",operation);
|
|
|
|
actClientLog.put("create_time",new Date());
|
|
|
|
actClientLog.put("create_time",new Date());
|
|
|
|
actsClientsLogMapper.save(actClientLog);
|
|
|
|
clientsOperationLogMapper.save(actClientLog);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|