菜单isChild字段
userInfo支付密码 问题
This commit is contained in:
@@ -62,9 +62,10 @@ public class HomeDistrictService {
|
||||
}
|
||||
List<SysDict> sysDicts = sysDictMapper.selectByType(null);
|
||||
for (SysDict sysDict : sysDicts) {
|
||||
if (sysDict.getIsChild()==1) {
|
||||
if (sysDict.getIsChild().equals("1")) {
|
||||
sysDict.setDetail(sysDictMapper.selectByDictId(sysDict.getDictId()));
|
||||
}
|
||||
sysDict.setIsChild((sysDict.getIsChild() == null || sysDict.getIsChild().equals("0")) ? false : true);
|
||||
}
|
||||
result.setMenu(sysDicts);
|
||||
}
|
||||
@@ -84,9 +85,10 @@ public class HomeDistrictService {
|
||||
result.setTitle("热榜推荐");
|
||||
List<SysDict> sysDicts = sysDictMapper.selectHot();
|
||||
for (SysDict sysDict : sysDicts) {
|
||||
if (sysDict.getIsChild()==1) {
|
||||
if (sysDict.getIsChild().equals("1")) {
|
||||
sysDict.setDetail(sysDictMapper.selectByDictId(sysDict.getDictId()));
|
||||
}
|
||||
sysDict.setIsChild((sysDict.getIsChild() == null || sysDict.getIsChild().equals("0")) ? false : true);
|
||||
}
|
||||
result.setMenu(sysDicts);
|
||||
}
|
||||
|
||||
@@ -56,9 +56,10 @@ public class HomePageService {
|
||||
//菜单
|
||||
List<SysDict> sysDicts = sysDictMapper.selectByType("home");
|
||||
for (SysDict sysDict : sysDicts) {
|
||||
if (sysDict.getIsChild()==1) {
|
||||
if (sysDict.getIsChild().equals("1")) {
|
||||
sysDict.setDetail(sysDictMapper.selectByDictId(sysDict.getDictId()));
|
||||
}
|
||||
sysDict.setIsChild((sysDict.getIsChild() == null || sysDict.getIsChild().equals("0")) ? false : true);
|
||||
}
|
||||
homeUpVO.setMenu(sysDicts);
|
||||
/**
|
||||
|
||||
@@ -284,7 +284,7 @@ public class LoginService {
|
||||
}
|
||||
|
||||
TbUserInfo userInfo=tbUserInfoMapper.selectByPrimaryKey(Integer.valueOf(userId));
|
||||
boolean flag= validate(map.get("code").toString(), userInfo.getPhone());
|
||||
boolean flag= validate(map.get("code").toString(), userInfo.getTelephone());
|
||||
if(!flag){
|
||||
return Result.fail("验证码错误");
|
||||
}
|
||||
|
||||
@@ -330,7 +330,9 @@ public class ProductService {
|
||||
productInfo.setPhone(tbShopInfo.getPhone());
|
||||
productInfo.setLat(tbShopInfo.getLat());
|
||||
productInfo.setLng(tbShopInfo.getLng());
|
||||
productInfo.setBusinessTime(tbShopInfo.getBusinessStartDay() + "至" + tbShopInfo.getBusinessEndDay() + " " + tbShopInfo.getBusinessTime());
|
||||
if(StringUtils.isNotBlank(tbShopInfo.getBusinessStartDay())){
|
||||
productInfo.setBusinessTime(tbShopInfo.getBusinessStartDay() + "至" + tbShopInfo.getBusinessEndDay() + " " + tbShopInfo.getBusinessTime());
|
||||
}
|
||||
String distance = LocationUtils.getDistanceString(
|
||||
Double.parseDouble(lng), Double.parseDouble(lat),
|
||||
Double.parseDouble(tbShopInfo.getLng()), Double.parseDouble(tbShopInfo.getLat()));
|
||||
|
||||
Reference in New Issue
Block a user