|
@@ -46,6 +46,8 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
|
|
|
|
|
|
private final WebAuditMapper webAuditMapper;
|
|
private final WebAuditMapper webAuditMapper;
|
|
|
|
|
|
|
|
|
|
+ private final LifeUserOrderMapper lifeUserOrderMapper;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public boolean saveThali(LifeGroupBuyDto lifeGroupBuyDto) {
|
|
public boolean saveThali(LifeGroupBuyDto lifeGroupBuyDto) {
|
|
|
JSONObject currentUserInfo = JwtUtil.getCurrentUserInfo();
|
|
JSONObject currentUserInfo = JwtUtil.getCurrentUserInfo();
|
|
@@ -187,6 +189,10 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
|
}
|
|
}
|
|
|
lifeGroupBuyThaliVo.setDetails(resultMap);
|
|
lifeGroupBuyThaliVo.setDetails(resultMap);
|
|
|
getMainImgAndDisableDate(lifeGroupBuyThaliVo);
|
|
getMainImgAndDisableDate(lifeGroupBuyThaliVo);
|
|
|
|
|
+
|
|
|
|
|
+ //已售数量
|
|
|
|
|
+ lifeGroupBuyThaliVo.setSaleNum(lifeUserOrderMapper.countBuyGroup(id));
|
|
|
|
|
+
|
|
|
return lifeGroupBuyThaliVo;
|
|
return lifeGroupBuyThaliVo;
|
|
|
}
|
|
}
|
|
|
|
|
|