Commit 527ee68d by chongli

加入会员续费活动调试信息

parent 044fdab5
......@@ -1070,9 +1070,12 @@ public class VoucherService {
* @throws Exception
*/
public void sendVoucherFor360PlaceOrder(String uid,String orderId) throws Exception{
logger.error("[sendVoucherFor360PlaceOrder in self ");
UserExt userExt = this.userExtDao.getByUid(uid);
Date communeEnd = DateUtil.addDateField(userExt.getCommuneAgainTime(),Calendar.YEAR, 1);
logger.error("[sendVoucherFor360PlaceOrder in self uid="+uid+";communeEnd="+DateUtil.getDateTimeStr(communeEnd));
String rule_String = null;
JSONObject jsobj = JSONObject.parseObject(clientConfigDao.getByType("chongzhiren_voucher_send_360").getMessage());
JSONArray config_360 = jsobj.getJSONArray("rules");
......
......@@ -362,6 +362,8 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
getUserExtDao().setUserExtVipGradeRenewCommune(order.getUid());
operationMessageService.executeSendMessageOfVipCommune(order, 110);
try {
//1:执行续费人的小程序送券
logger.error("[sendVoucherFor360PlaceOrder in afterSubmitOrder 367 ");
this.getVoucherService().sendVoucherFor360PlaceOrder(order.getUid(), order.getOrderId()+"");
} catch (Exception e) {
e.printStackTrace();
......
......@@ -69,6 +69,7 @@ public class CommuneNotifyService extends AbstractNotifyService {
}
}else if(order.getAmount().intValue()==360){
//1:执行续费人的小程序送券
logger.error("[sendVoucherFor360PlaceOrder in notifyForMiniApp 73 ");
voucherService.sendVoucherFor360PlaceOrder(order.getUid(), order.getOrderId()+"");
}
}
......@@ -116,6 +117,8 @@ public class CommuneNotifyService extends AbstractNotifyService {
sendMessage(order, 110);
//1:执行续费送券逻辑
try {
//1:执行续费人的小程序送券
logger.error("[sendVoucherFor360PlaceOrder in doPaySuccess 122 ");
voucherService.sendVoucherFor360PlaceOrder(order.getUid(), order.getOrderId()+"");
} catch (Exception e) {
e.printStackTrace();
......
......@@ -115,7 +115,7 @@ public class UserOrderBehaviourStatisticsDaoTest {
}
@Test
public void testOrderUpdate() throws Exception {
voucherService.voucherUsedSend(1106088, "15021270276", "lichong", 1);
voucherService.sendVoucherFor360PlaceOrder("15021268738", "111111");
}
......
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 sign in to comment