|
@@ -1,6 +1,8 @@
|
|
|
package com.miaxis.order.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.miaxis.birthday.domain.BirthdayLog;
|
|
|
+import com.miaxis.birthday.service.IBirthdayLogService;
|
|
|
import com.miaxis.common.utils.DateUtils;
|
|
|
import com.miaxis.order.domain.OrderInfo;
|
|
|
import com.miaxis.order.dto.OrderInfoDto;
|
|
@@ -29,6 +31,9 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
@Autowired
|
|
|
private OrderInfoMapper orderInfoMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBirthdayLogService birthdayLogService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询ad列表
|
|
|
*
|
|
@@ -67,8 +72,12 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
orderInfo.setForeType(order.getForeType());
|
|
|
orderInfo.setPhoneType(order.getPhoneType());
|
|
|
|
|
|
- if(order.getGoodsType()==1) { //考场
|
|
|
- //添加会员信息
|
|
|
+ if(order.getGoodsType()==3) { //人生报告
|
|
|
+ //添加八字信息
|
|
|
+ BirthdayLog birthdayLog = birthdayLogService.getById(order.getGoodsId());
|
|
|
+ birthdayLog.setIsPay(1);
|
|
|
+ birthdayLogService.saveOrUpdate(birthdayLog);
|
|
|
+ this.save(orderInfo);
|
|
|
} else if(order.getGoodsType()==2) { //商品
|
|
|
//添加会员信息
|
|
|
}
|