bug
This commit is contained in:
@@ -394,9 +394,10 @@ public class MyUserServiceImpl extends ServiceImpl<MyUserDao, MyUserEntity> impl
|
||||
|
||||
private void sendCode(String phone, String code) throws Exception {
|
||||
com.aliyun.dysmsapi20170525.Client client = Sample.createClient(smsConfig.getAccessKeyId(),smsConfig.getAccessKeySecret());
|
||||
String tem = TelUtil.isPhone(phone)?smsConfig.getTemplateCode():smsConfig.getSTemplateCode();//通过手机号判断是否为国内手机号,并设置模版
|
||||
SendSmsRequest sendSmsRequest = new SendSmsRequest()
|
||||
.setSignName(smsConfig.getSingName())
|
||||
.setTemplateCode(smsConfig.getTemplateCode())
|
||||
.setTemplateCode(tem)
|
||||
.setPhoneNumbers(phone)
|
||||
.setTemplateParam("{\"code\":\""+ code +"\"}");
|
||||
RuntimeOptions runtime = new RuntimeOptions();
|
||||
|
||||
@@ -20,12 +20,12 @@ public class PointCategoryServiceImpl extends ServiceImpl<PointCategoryDao, Poin
|
||||
public List<PointCategoryEntity> getCategoryList() {
|
||||
LambdaQueryWrapper<PointCategoryEntity> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(PointCategoryEntity::getPid,0);
|
||||
wrapper.orderByDesc(PointCategoryEntity::getSort);
|
||||
wrapper.orderByAsc(PointCategoryEntity::getSort);
|
||||
List<PointCategoryEntity> list = list(wrapper);
|
||||
for (PointCategoryEntity p : list){
|
||||
LambdaQueryWrapper<PointCategoryEntity> wrapper1 = new LambdaQueryWrapper<>();
|
||||
wrapper1.eq(PointCategoryEntity::getPid,p.getId());
|
||||
wrapper1.orderByDesc(PointCategoryEntity::getSort);
|
||||
wrapper1.orderByAsc(PointCategoryEntity::getSort);
|
||||
List<PointCategoryEntity> list1 = list(wrapper1);
|
||||
p.setChildren(list1);
|
||||
}
|
||||
|
||||
@@ -36,12 +36,11 @@ public class PointServiceImpl extends ServiceImpl<PointDao, PointEntity> impleme
|
||||
createIds(id,ids);
|
||||
wrapper.in(PointEntity::getPointCategoryId,ids);
|
||||
}
|
||||
wrapper.orderByDesc(PointEntity::getSort);
|
||||
wrapper.orderByAsc(PointEntity::getSort);
|
||||
Page<PointEntity> pointEntityPage = getBaseMapper().selectPage(new Page<>(page, limit), wrapper);
|
||||
for (PointEntity p : pointEntityPage.getRecords()){
|
||||
p.setImageList(JSON.parseArray(p.getImages(),String.class));
|
||||
PointCategoryEntity c_category = pointCategoryDao.selectById(p.getPointCategoryId());
|
||||
System.out.println(c_category);
|
||||
PointCategoryEntity f_category = pointCategoryDao.selectById(c_category.getPid());
|
||||
p.setCategoryString(f_category.getTitle()+" > "+c_category.getTitle());
|
||||
}
|
||||
@@ -60,7 +59,7 @@ public class PointServiceImpl extends ServiceImpl<PointDao, PointEntity> impleme
|
||||
public List<PointEntity> searchPoint(String keywords) {
|
||||
LambdaQueryWrapper<PointEntity> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.like(PointEntity::getTitle,keywords);
|
||||
wrapper.orderByDesc(PointEntity::getSort);
|
||||
wrapper.orderByAsc(PointEntity::getSort);
|
||||
List<PointEntity> list = list(wrapper);
|
||||
return list;
|
||||
}
|
||||
@@ -68,7 +67,7 @@ public class PointServiceImpl extends ServiceImpl<PointDao, PointEntity> impleme
|
||||
private void createIds(Integer id, List<Integer> list){
|
||||
LambdaQueryWrapper<PointCategoryEntity> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(PointCategoryEntity::getPid,id);
|
||||
wrapper.orderByDesc(PointCategoryEntity::getSort);
|
||||
wrapper.orderByAsc(PointCategoryEntity::getSort);
|
||||
List<PointCategoryEntity> pointCategoryEntities = pointCategoryDao.selectList(wrapper);
|
||||
for (PointCategoryEntity p :pointCategoryEntities){
|
||||
createIds(p.getId(),list);
|
||||
|
||||
Reference in New Issue
Block a user