Commit c6566d7f by caosy

调用VoucherDao

parent 8025924d
......@@ -240,9 +240,7 @@ public class OperationMessageService extends GenericService<OperationMessageDao,
System.out.println("发球场 ================>"+ "发球场");
for(String usedVoucherId: order.getVoucherIDList().split(",")){
System.out.println("usedVoucherId ================>"+ usedVoucherId);
System.out.println("voucherDao ================>"+ voucherDao.toString());
Voucher voucher = this.voucherDao.findById(Integer.parseInt(usedVoucherId));
System.out.println("voucher ================>"+ voucher);
if(voucher.getVoucherType() == 2){
message = message.replace("[realName]", voucher.getRealName() + "").replace("[PlayDate]", DateUtil.getDateStrC(orderItems.get(0).getPlayDate()));
message = message.replace("[PlayTime]", orderItems.get(0).getStartTime());
......
......@@ -83,11 +83,8 @@ public class EventActivityNotifyService extends AbstractNotifyService {
eventCustomerInfoService.updateEventCustomerInfosByOrderId(order.getOrderId(), true);
this.sendMessage(order, 100);
if(order.getVoucherIDList() != null && !("").equals(order.getVoucherIDList())){
System.out.println("order.getVoucherIDList() ================>"+ order.getVoucherIDList());
for(String usedVoucherId: order.getVoucherIDList().split(",")){
System.out.println("usedVoucherId ================>"+ usedVoucherId);
Voucher voucher = this.voucherService.getVoucherById(Integer.parseInt(usedVoucherId));
System.out.println("voucher ================>"+ voucher);
if(voucher.getVoucherType() == 2){
this.sendMessage(order, 120);
}
......
......@@ -231,6 +231,7 @@
<property name="eventActivityOrderItemDao" ref="eventActivityOrderItemDao" />
<property name="operationMessageDao" ref="operationMessageDao" />
<property name="smsDao" ref="smsDao" />
<property name="voucherDao" ref="voucherDao" />
<property name="userExtDao" ref="userExtDao" />
<property name="mallOrderConnectDao" ref="mallOrderConnectDao" />
<property name="mallMerchantDao" ref="mallMerchantDao" />
......
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