Browse Source

发布成果列表按发布页面搜索BUG修复

anderx 8 years ago
parent
commit
49a515e7e0

+ 2 - 1
src/main/java/com/goafanti/achievement/service/impl/AchievementPublishServiceImpl.java

@@ -82,7 +82,8 @@ public class AchievementPublishServiceImpl extends BaseMybatisDao<AchievementPub
 		}
 		if (null!=ifTop) {
 			params.put("ifTop", ifTop);
-		}																					
+		}
+		
 		Pagination<AchievementPublishBo> p=(Pagination<AchievementPublishBo>) findPage("findAchievementPublishByPage", "findAchievementPublishCount",
 				params,pageNo, pageSize);
 		List<AchievementPublishBo> ap=(List<AchievementPublishBo>) p.getList();

+ 7 - 1
src/main/java/com/goafanti/common/mapper/AchievementPublishMapper.xml

@@ -378,7 +378,10 @@ where 1=1
   	<if test="userName != null">
   	and a.owner_name = = #{userName,jdbcType=VARCHAR}
   	</if>
-  	<if test="publishPlatform != null">
+  	<if test="publishPage != null">
+		and ap.publish_page = #{publishPage,jdbcType=VARCHAR}
+	</if>
+	<if test="publishPlatform != null">
 		and ap.publish_platform = #{publishPlatform,jdbcType=VARCHAR}
 	</if>
 	<if test="publishClient != null">
@@ -407,6 +410,9 @@ where 1=1
   	<if test="userName != null">
   	and a.owner_name = = #{userName,jdbcType=VARCHAR}
   	</if>
+  	<if test="publishPage != null">
+		and ap.publish_page = #{publishPage,jdbcType=VARCHAR}
+	</if>
   	<if test="publishPlatform != null">
 		and ap.publish_platform = #{publishPlatform,jdbcType=VARCHAR}
 	</if>