修改bug
This commit is contained in:
parent
11e77c26b6
commit
478a08160e
|
@ -816,7 +816,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
||||||
req.setTemplateId(commonInfoService.findOne(404).getValue());
|
req.setTemplateId(commonInfoService.findOne(404).getValue());
|
||||||
break;
|
break;
|
||||||
case "qtsx":
|
case "qtsx":
|
||||||
req.setTemplateId(commonInfoService.findOne(405).getValue());
|
req.setTemplateId(commonInfoService.findOne(453).getValue());
|
||||||
break;
|
break;
|
||||||
case "touSu":
|
case "touSu":
|
||||||
req.setTemplateId(commonInfoService.findOne(453).getValue());
|
req.setTemplateId(commonInfoService.findOne(453).getValue());
|
||||||
|
@ -840,6 +840,9 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
||||||
case "touSu":
|
case "touSu":
|
||||||
req.setTemplateParamSet(null);
|
req.setTemplateParamSet(null);
|
||||||
break;
|
break;
|
||||||
|
case "qtsx":
|
||||||
|
req.setTemplateParamSet(null);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
req.setTemplateId(commonInfoService.findOne(399).getValue());
|
req.setTemplateId(commonInfoService.findOne(399).getValue());
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class AppArtificerController {
|
||||||
String longitude,String latitude,Integer sort,Integer authentication,
|
String longitude,String latitude,Integer sort,Integer authentication,
|
||||||
Integer by,String city,Long classifyId,String phone, Integer isStart,Integer technicianType,String isBack){
|
Integer by,String city,Long classifyId,String phone, Integer isStart,Integer technicianType,String isBack){
|
||||||
return artificerService.selectArtificerList(page, limit, massageTypeId, artificerName,longitude,latitude,
|
return artificerService.selectArtificerList(page, limit, massageTypeId, artificerName,longitude,latitude,
|
||||||
sort,authentication,by,-1,city,classifyId,phone,1,isStart,technicianType,isBack);
|
sort,authentication,by,1,city,classifyId,phone,1,isStart,technicianType,isBack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,19 @@ public class ArtificerServiceImpl extends ServiceImpl<ArtificerDao, Artificer> i
|
||||||
String longitude,String latitude,Integer sort,Integer authentication,
|
String longitude,String latitude,Integer sort,Integer authentication,
|
||||||
Integer by,Integer status,String city,Long classifyId,String phone,Integer user, Integer isStart,Integer technicianType,String isBack){
|
Integer by,Integer status,String city,Long classifyId,String phone,Integer user, Integer isStart,Integer technicianType,String isBack){
|
||||||
Page<Artificer> pages=new Page<>(page,limit);
|
Page<Artificer> pages=new Page<>(page,limit);
|
||||||
|
|
||||||
|
if(StringUtils.isEmpty(longitude)){
|
||||||
|
longitude = "125.430896";
|
||||||
|
}
|
||||||
|
if(StringUtils.isEmpty(latitude)){
|
||||||
|
latitude = "43.880798";
|
||||||
|
}
|
||||||
|
if(StringUtils.isEmpty(city)||StringUtils.equals("请选择城市",city)){
|
||||||
|
city = "长春市";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IPage<Artificer> artificerIPage = baseMapper.selectArtificerList(pages, massageTypeId, artificerName,
|
IPage<Artificer> artificerIPage = baseMapper.selectArtificerList(pages, massageTypeId, artificerName,
|
||||||
longitude, latitude, sort, authentication, by, status, city, classifyId,phone,user,isStart,technicianType,isBack);
|
longitude, latitude, sort, authentication, by, status, city, classifyId,phone,user,isStart,technicianType,isBack);
|
||||||
List<Artificer> records = artificerIPage.getRecords();
|
List<Artificer> records = artificerIPage.getRecords();
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class AppMessageController {
|
||||||
|
|
||||||
|
|
||||||
if (StringUtils.isNotEmpty(artificerUser.getPhone())) {
|
if (StringUtils.isNotEmpty(artificerUser.getPhone())) {
|
||||||
userService.sendMsg(userEntity.getPhone(), "qtsx");
|
userService.sendMsg(artificerUser.getPhone(), "qtsx");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -48,9 +48,7 @@
|
||||||
and a.longitude is not null and a.latitude is not null
|
and a.longitude is not null and a.latitude is not null
|
||||||
</if>
|
</if>
|
||||||
) b
|
) b
|
||||||
<if test="isBack==null or isBack==''">
|
|
||||||
where distance <= 5000
|
|
||||||
</if>
|
|
||||||
<if test="by!=null and by==1">
|
<if test="by!=null and by==1">
|
||||||
order by
|
order by
|
||||||
<if test="status!=null and status==-1">
|
<if test="status!=null and status==-1">
|
||||||
|
|
|
@ -8,9 +8,10 @@
|
||||||
ifnull((select avg(c.score) from taking_commnt c where c.artificer_id=a.artificer_id ),0.00) as ordersScore,
|
ifnull((select avg(c.score) from taking_commnt c where c.artificer_id=a.artificer_id ),0.00) as ordersScore,
|
||||||
(select count(*) from collect_artificer o where o.artificer_id=a.artificer_id and classify=1) as collectCount,
|
(select count(*) from collect_artificer o where o.artificer_id=a.artificer_id and classify=1) as collectCount,
|
||||||
(select count(*) from taking_commnt c where c.artificer_id=a.artificer_id ) as commentCount,
|
(select count(*) from taking_commnt c where c.artificer_id=a.artificer_id ) as commentCount,
|
||||||
(st_distance (point (a.longitude, a.latitude),point(#{longitude},#{latitude}) ) *111195) as distance
|
(st_distance (point (a.longitude, a.latitude),point(#{longitude},#{latitude}) ) *111195) as distance,c.consortia_name
|
||||||
from artificer a
|
from artificer a
|
||||||
left join tb_user u on u.user_id=a.user_id
|
left join tb_user u on u.user_id=a.user_id
|
||||||
|
left join consortia c on u.consortia_id = c.consortia_id
|
||||||
where
|
where
|
||||||
a.artificer_id in (select artificer_id from collect_artificer where user_id=#{userId} and classify=1)
|
a.artificer_id in (select artificer_id from collect_artificer where user_id=#{userId} and classify=1)
|
||||||
order by a.create_time desc
|
order by a.create_time desc
|
||||||
|
|
Loading…
Reference in New Issue