jz.kai há 1 ano atrás
pai
commit
5055717f65

+ 4 - 1
common/src/main/resources/mapper/base/WishInfo.xml

@@ -109,13 +109,16 @@
 			select * from base_wish_info
 		]]>
 		<where>
-			del_flag = 0 and amount_ > 0
+			del_flag = 0
 			<if test="searchParams.title != null">
 				and title_ like #{searchParams.title}
 			</if>
 			<if test="searchParams.category != null">
 				and category_ = #{searchParams.category}
 			</if>
+			<if test="searchParams.notZero == true">
+				and amount_ > 0
+			</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/WishApi.java

@@ -107,6 +107,7 @@ public class WishApi {
         MessageResult msgResult = new MessageResult<>();
 
         Map<String,Object> searchParams = new HashMap<>();
+        searchParams.put("notZero",true);
         if (StringUtils.isNotEmpty(title)) {
             searchParams.put("title","%" + title + "%");
         }