|
|
|
@@ -705,6 +705,20 @@ public class InvestBizServiceImpl implements InvestBizService { |
|
|
|
return queryUserList(EnumInvestUserType.ALL); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> shopRentInfo(Long shopId) { |
|
|
|
WxShop shop = shopService.getById(shopId); |
|
|
|
InvestHelper.notNull(shop, "shop 不存在"); |
|
|
|
//3、商品合同信息 |
|
|
|
Map<Long, WxRentContract> shopContractMap = rentContractService.selectRentContractByShopIds(Arrays.asList(shop.getId()), StringUtils.join(shop.getId()), InvestUserContext.getUser().getTenantId()); |
|
|
|
WxRentContract contract = shopContractMap.get(shop.getId()); |
|
|
|
InvestHelper.notNull(contract,"合同信息不存在"); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("startdate", contract.getRentalStartDate()); |
|
|
|
map.put("enddate", contract.getRentalEndDate()); |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|
public List<MallUserInfo> queryUserList(EnumInvestUserType userType) { |
|
|
|
LambdaQueryWrapper<MallUserInfo> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
queryWrapper.eq(MallUserInfo::getStatus, 1); |
|
|
|
|