|
|
@@ -16,6 +16,7 @@ import com.fs.his.utils.PhoneUtil;
|
|
|
import com.fs.his.vo.FsUserCouponCountUVO;
|
|
|
import com.fs.his.vo.FsUserCouponListUVO;
|
|
|
import com.fs.his.vo.FsUserCouponListVO;
|
|
|
+import com.fs.live.service.ILiveCouponUserService;
|
|
|
import org.checkerframework.checker.units.qual.A;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -38,6 +39,9 @@ public class FsUserCouponServiceImpl implements IFsUserCouponService
|
|
|
|
|
|
@Autowired
|
|
|
private FsCouponMapper fsCouponMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ILiveCouponUserService liveCouponUserService;
|
|
|
/**
|
|
|
* 查询会员优惠券
|
|
|
*
|
|
|
@@ -200,7 +204,8 @@ public class FsUserCouponServiceImpl implements IFsUserCouponService
|
|
|
for (int i=0;i<3;i++){
|
|
|
param.setStatus(i);
|
|
|
List<FsUserCouponListUVO> list = fsUserCouponMapper.selectFsUserCouponListUVO(param);
|
|
|
- countArray[i] = list.size();
|
|
|
+ // 互医优惠券 + 直播优惠券(status:0未使用/未核销 1已使用/已核销 2已过期)
|
|
|
+ countArray[i] = list.size() + liveCouponUserService.countByUserIdAndStatus(param.getUserId(), i);
|
|
|
}
|
|
|
countUVO.setNotUsedCount(countArray[0]);
|
|
|
countUVO.setUsedCount(countArray[1]);
|