记得上下班打卡 | git大法好,push需谨慎

Commit f1fef01b authored by Tice's avatar Tice

update

parent a90b885e
...@@ -23,6 +23,9 @@ public class MerchantRedisUtil { ...@@ -23,6 +23,9 @@ public class MerchantRedisUtil {
// 【场地】获取详情 // 【场地】获取详情
public MerchantFieldsVo getFieldsVoByFieldId(String fieldId) { public MerchantFieldsVo getFieldsVoByFieldId(String fieldId) {
if (null == fieldId || fieldId.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_FIELD.concat(fieldId); String key = MerchantRedisConst.INFO_FIELD.concat(fieldId);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
MerchantFieldsVo vo = (MerchantFieldsVo) redisUtil.get(key); MerchantFieldsVo vo = (MerchantFieldsVo) redisUtil.get(key);
...@@ -42,6 +45,9 @@ public class MerchantRedisUtil { ...@@ -42,6 +45,9 @@ public class MerchantRedisUtil {
// 【场地申请】我的列表 // 【场地申请】我的列表
public List<MerchantFieldAppliesVo> getFieldAppliesVosByUid(String uid) { public List<MerchantFieldAppliesVo> getFieldAppliesVosByUid(String uid) {
if (null == uid || uid.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_FIELD_APPLIES.concat(uid); String key = MerchantRedisConst.INFO_FIELD_APPLIES.concat(uid);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
List<MerchantFieldAppliesVo> vos = (List<MerchantFieldAppliesVo>) redisUtil.get(key); List<MerchantFieldAppliesVo> vos = (List<MerchantFieldAppliesVo>) redisUtil.get(key);
...@@ -121,6 +127,9 @@ public class MerchantRedisUtil { ...@@ -121,6 +127,9 @@ public class MerchantRedisUtil {
// 【主办】详情 // 【主办】详情
public MerchantSponsorsVo getSponsorsVoBySponsorId(String sponsorId) { public MerchantSponsorsVo getSponsorsVoBySponsorId(String sponsorId) {
if (null == sponsorId || sponsorId.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_SPONSOR.concat(sponsorId); String key = MerchantRedisConst.INFO_SPONSOR.concat(sponsorId);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
MerchantSponsorsVo vo = (MerchantSponsorsVo) redisUtil.get(key); MerchantSponsorsVo vo = (MerchantSponsorsVo) redisUtil.get(key);
...@@ -139,6 +148,9 @@ public class MerchantRedisUtil { ...@@ -139,6 +148,9 @@ public class MerchantRedisUtil {
// 【主办申请】我的列表 // 【主办申请】我的列表
public List<MerchantSponsorAppliesVo> getSponsorAppliesVosByUid(String uid) { public List<MerchantSponsorAppliesVo> getSponsorAppliesVosByUid(String uid) {
if (null == uid || uid.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_SPONSOR_APPLIES.concat(uid); String key = MerchantRedisConst.INFO_SPONSOR_APPLIES.concat(uid);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
List<MerchantSponsorAppliesVo> vos = (List<MerchantSponsorAppliesVo>) redisUtil.get(key); List<MerchantSponsorAppliesVo> vos = (List<MerchantSponsorAppliesVo>) redisUtil.get(key);
......
...@@ -23,6 +23,9 @@ public class MerchantRdmService { ...@@ -23,6 +23,9 @@ public class MerchantRdmService {
// 【场地】获取详情 // 【场地】获取详情
public MerchantFieldsVo getFieldsVoByFieldId(String fieldId) { public MerchantFieldsVo getFieldsVoByFieldId(String fieldId) {
if (null == fieldId || fieldId.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_FIELD.concat(fieldId); String key = MerchantRedisConst.INFO_FIELD.concat(fieldId);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
MerchantFieldsVo vo = (MerchantFieldsVo) redisUtil.get(key); MerchantFieldsVo vo = (MerchantFieldsVo) redisUtil.get(key);
...@@ -42,6 +45,9 @@ public class MerchantRdmService { ...@@ -42,6 +45,9 @@ public class MerchantRdmService {
// 【场地申请】我的列表 // 【场地申请】我的列表
public List<MerchantFieldAppliesVo> getFieldAppliesVosByUid(String uid) { public List<MerchantFieldAppliesVo> getFieldAppliesVosByUid(String uid) {
if (null == uid || uid.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_FIELD_APPLIES.concat(uid); String key = MerchantRedisConst.INFO_FIELD_APPLIES.concat(uid);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
List<MerchantFieldAppliesVo> vos = (List<MerchantFieldAppliesVo>) redisUtil.get(key); List<MerchantFieldAppliesVo> vos = (List<MerchantFieldAppliesVo>) redisUtil.get(key);
...@@ -101,6 +107,9 @@ public class MerchantRdmService { ...@@ -101,6 +107,9 @@ public class MerchantRdmService {
// 【主办】详情 // 【主办】详情
public MerchantSponsorsVo getSponsorsVoBySponsorId(String sponsorId) { public MerchantSponsorsVo getSponsorsVoBySponsorId(String sponsorId) {
if (null == sponsorId || sponsorId.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_SPONSOR.concat(sponsorId); String key = MerchantRedisConst.INFO_SPONSOR.concat(sponsorId);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
MerchantSponsorsVo vo = (MerchantSponsorsVo) redisUtil.get(key); MerchantSponsorsVo vo = (MerchantSponsorsVo) redisUtil.get(key);
...@@ -119,6 +128,9 @@ public class MerchantRdmService { ...@@ -119,6 +128,9 @@ public class MerchantRdmService {
// 【主办申请】我的列表 // 【主办申请】我的列表
public List<MerchantSponsorAppliesVo> getSponsorAppliesVosByUid(String uid) { public List<MerchantSponsorAppliesVo> getSponsorAppliesVosByUid(String uid) {
if (null == uid || uid.isEmpty()) {
return null;
}
String key = MerchantRedisConst.INFO_SPONSOR_APPLIES.concat(uid); String key = MerchantRedisConst.INFO_SPONSOR_APPLIES.concat(uid);
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
List<MerchantSponsorAppliesVo> vos = (List<MerchantSponsorAppliesVo>) redisUtil.get(key); List<MerchantSponsorAppliesVo> vos = (List<MerchantSponsorAppliesVo>) redisUtil.get(key);
......
...@@ -59,7 +59,22 @@ public class MerchantFieldsServiceImpl implements IMerchantFieldsService { ...@@ -59,7 +59,22 @@ public class MerchantFieldsServiceImpl implements IMerchantFieldsService {
// 分页 // 分页
PagedResult<MerchantFieldsVo> pagedResult = ObjectUtil.getMerchantFieldsVoPagedResult(); PagedResult<MerchantFieldsVo> pagedResult = ObjectUtil.getMerchantFieldsVoPagedResult();
if (count > 0) { if (count > 0) {
query.fields().include("fieldId").include("isOnline").include("claimStatus").include("name").include("uid").include("isCheck"); query.fields()
.include("fieldId")
.include("isOnline")
.include("claimStatus")
.include("uid")
.include("isCheck")
.include("name")
.include("logo")
.include("background")
.include("provinceId")
.include("provinceName")
.include("cityId")
.include("cityName")
.include("districtId")
.include("districtName")
.include("address");
// 查询分页 // 查询分页
Pageable pageable = PageRequest.of(page - 1, size, Sort.by(Sort.Direction.DESC, "createdAt")); Pageable pageable = PageRequest.of(page - 1, size, Sort.by(Sort.Direction.DESC, "createdAt"));
......
...@@ -44,7 +44,13 @@ public class MerchantSponsorsServiceImpl implements IMerchantSponsorsService { ...@@ -44,7 +44,13 @@ public class MerchantSponsorsServiceImpl implements IMerchantSponsorsService {
// 分页 // 分页
PagedResult<MerchantSponsorsVo> pagedResult = ObjectUtil.getMerchantSponsorsVoPagedResult(); PagedResult<MerchantSponsorsVo> pagedResult = ObjectUtil.getMerchantSponsorsVoPagedResult();
if (count > 0) { if (count > 0) {
query.fields().include("sponsorId").include("isOnline").include("name").include("uid"); query.fields()
.include("sponsorId")
.include("isOnline")
.include("uid")
.include("name")
.include("logo")
.include("background");
// 查询分页 // 查询分页
Pageable pageable = PageRequest.of(page - 1, size, Sort.by(Sort.Direction.DESC, "createdAt")); Pageable pageable = PageRequest.of(page - 1, size, Sort.by(Sort.Direction.DESC, "createdAt"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment