|
@@ -216,24 +216,38 @@ public class ClubServiceImpl implements ClubService {
|
|
if (club == null) {
|
|
if (club == null) {
|
|
return ResponseJson.error("机构信息不存在", null);
|
|
return ResponseJson.error("机构信息不存在", null);
|
|
}
|
|
}
|
|
- Map<String, Object> map = new HashMap();
|
|
|
|
|
|
+ Map<String, Object> map = new HashMap<>(10);
|
|
map.put("user", user);
|
|
map.put("user", user);
|
|
map.put("club", club);
|
|
map.put("club", club);
|
|
OrderCountVo countVo = clubMapper.getOrderCount(userId);
|
|
OrderCountVo countVo = clubMapper.getOrderCount(userId);
|
|
//待确认数量
|
|
//待确认数量
|
|
- map.put("confirmedCount", countVo.getConfirmedCount());
|
|
|
|
|
|
+ map.put("confirmedCount", countVo != null ? countVo.getConfirmedCount() : 0);
|
|
//待付款数量
|
|
//待付款数量
|
|
- map.put("paymentCount", countVo.getPaymentCount());
|
|
|
|
|
|
+ map.put("paymentCount", countVo != null ? countVo.getPaymentCount() : 0);
|
|
//待发货数量
|
|
//待发货数量
|
|
- map.put("waitShipmentsCount", countVo.getWaitShipmentsCount());
|
|
|
|
|
|
+ map.put("waitShipmentsCount", countVo != null ? countVo.getWaitShipmentsCount() : 0);
|
|
//已发货数量
|
|
//已发货数量
|
|
- map.put("shipmentsCount", countVo.getShipmentsCount());
|
|
|
|
|
|
+ map.put("shipmentsCount", countVo != null ? countVo.getShipmentsCount() : 0);
|
|
//退货款数量
|
|
//退货款数量
|
|
- map.put("salesReturnCount", countVo.getSalesReturnCount());
|
|
|
|
|
|
+ map.put("salesReturnCount", countVo != null ? countVo.getSalesReturnCount() : 0);
|
|
//联系电话
|
|
//联系电话
|
|
String contactNumber = baseMapper.getAfterSalesPhone();
|
|
String contactNumber = baseMapper.getAfterSalesPhone();
|
|
map.put("contactNumber", contactNumber);
|
|
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);
|
|
return ResponseJson.success(map);
|
|
}
|
|
}
|
|
|
|
|