瀏覽代碼

志愿活动加上架

jz.kai 1 年之前
父節點
當前提交
c237102b88

+ 3 - 0
common/src/main/resources/mapper/base/VolunteerTasks.xml

@@ -103,6 +103,9 @@
 			<if test="searchParams.introduce != null">
 				and introduce_ like #{searchParams.introduce}
 			</if>
+			<if test="searchParams.isShelves != null">
+				and is_shelves = #{searchParams.isShelves}
+			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">
 	        ${sort.name} ${sort.order}

+ 1 - 0
web/src/main/java/com/jpsoft/employment/modules/base/api/VolunteerApi.java

@@ -46,6 +46,7 @@ public class VolunteerApi {
         MessageResult msgResult = new MessageResult<>();
 
         Map<String,Object> searchParams = new HashMap<>();
+        searchParams.put("isShelves",true);
 
         List<Sort> sortList = new ArrayList<>();
         sortList.add(new Sort("create_time","desc"));