Browse Source

[feat]
1、增加对参数的空判断

limeng 2 months ago
parent
commit
15f2d1afac

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/dao/mapper/TourismProjectMapper.xml

@@ -178,7 +178,7 @@
     <select id="getTourismProjectList" resultMap="BaseResultMap" parameterType="com.tourism.webadmin.back.model.TourismProject">
         SELECT * FROM tour_tourism_project
         <!-- 如果选择拼团查询条件,则拼写如下sql -->
-        <if test="tourismProjectFilter.hasGroup != null and tourismProjectFilter.hasGroup != '' and tourismProjectFilter.hasGroup == 1">
+        <if test="tourismProjectFilter !=null and tourismProjectFilter.hasGroup != null and tourismProjectFilter.hasGroup != '' and tourismProjectFilter.hasGroup == 1">
             inner join (select project_id,count(0) from tour_project_group_purchase group by project_id) t1 on tour_tourism_project.id = t1.project_id
         </if>
         <where>