|
@@ -216,7 +216,7 @@ public class ClubServiceImpl implements ClubService {
|
|
|
if (club == null) {
|
|
|
return ResponseJson.error("机构信息不存在", null);
|
|
|
}
|
|
|
- Map<String, Object> map = new HashMap();
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
map.put("user", user);
|
|
|
map.put("club", club);
|
|
|
OrderCountVo countVo = clubMapper.getOrderCount(userId);
|
|
@@ -233,7 +233,21 @@ public class ClubServiceImpl implements ClubService {
|
|
|
//联系电话
|
|
|
String contactNumber = baseMapper.getAfterSalesPhone();
|
|
|
map.put("contactNumber", contactNumber);
|
|
|
-
|
|
|
+ //完善资料是否送豆
|
|
|
+ boolean isModify = true;
|
|
|
+ Integer id = null;
|
|
|
+ if (user.getUserIdentity() == 4) {
|
|
|
+ id = clubMapper.findBeansHistoryByType(userId, 3);
|
|
|
+ } else if (user.getUserIdentity() == 2) {
|
|
|
+ id = clubMapper.findBeansHistoryByType(userId, 4);
|
|
|
+ }
|
|
|
+ if (id != null && id > 0) {
|
|
|
+ isModify = false;
|
|
|
+ }
|
|
|
+ map.put("isModify", isModify);
|
|
|
+ //优惠券可用数量
|
|
|
+ Integer couponNum = clubMapper.findCountCoupon(userId);
|
|
|
+ map.put("couponNum", couponNum);
|
|
|
return ResponseJson.success(map);
|
|
|
}
|
|
|
|