修改查询信息
This commit is contained in:
parent
f1389aff32
commit
6adcbd883a
|
@ -23,5 +23,5 @@ public interface MassageTypeDao extends BaseMapper<MassageType> {
|
|||
|
||||
IPage<MassageType> selectMassageTypeChildrenPage(Page<MassageType> pages, Integer status, String city, Integer sort, Integer authentication, Integer by, String title, Long artificerId, Long parentId, Long classifyId);
|
||||
|
||||
IPage<?> selectMassageTypeQyPage(Page<MassageType> pages, String city, String title);
|
||||
IPage<?> selectMassageTypeQyPage(Page<MassageType> pages, @Param("city")String city, @Param("title")String title);
|
||||
}
|
|
@ -69,21 +69,6 @@
|
|||
from massage_type m
|
||||
left join sys_dict s on s.id=m.classify_id
|
||||
where 1=1 and qy_type = 1
|
||||
<if test="artificerId!=null">
|
||||
and m.massage_type_id not in (select massage_type_id from artificer_massage where artificer_id=#{artificerId})
|
||||
</if>
|
||||
<if test="status!=null and status!=0">
|
||||
and m.status=#{status}
|
||||
</if>
|
||||
<if test="parentId==null or parentId==0">
|
||||
and (m.parent_id is null or m.parent_id=0)
|
||||
</if>
|
||||
<if test="parentId!=null and parentId!=0">
|
||||
and m.parent_id=#{parentId}
|
||||
</if>
|
||||
<if test="classifyId!=null and classifyId!=0">
|
||||
and m.classify_id=#{classifyId}
|
||||
</if>
|
||||
<if test="city!=null and city!=''">
|
||||
and (m.city like concat('%',#{city},'%') or m.city='不限')
|
||||
</if>
|
||||
|
@ -91,18 +76,6 @@
|
|||
and m.title like concat('%',#{title},'%')
|
||||
</if>
|
||||
) a
|
||||
<if test="by!=null and by==1">
|
||||
order by price desc
|
||||
</if>
|
||||
<if test="by!=null and by==2">
|
||||
order by price asc
|
||||
</if>
|
||||
<if test="by!=null and by==3">
|
||||
order by sales desc
|
||||
</if>
|
||||
<if test="by!=null and by==4">
|
||||
order by massageScore desc
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMassageTypeChildrenPage" resultType="com.sqx.modules.artificer.entity.MassageType">
|
||||
|
|
Loading…
Reference in New Issue