Przeglądaj źródła

行业资讯查询

guomengjiao 2 tygodni temu
rodzic
commit
a877580224

+ 3 - 3
modules/report/src/main/java/com/jeesite/modules/report/entity/MarketInfo.java

@@ -58,7 +58,7 @@ public class MarketInfo extends DataEntity<MarketInfo> {
 	// 新增字段
 	private String webTitle;	// 网站标题
 	//市场分类 多选
-	private List<String> marketTypeList;
+	private String marketTypeList;
 
 	public MarketInfo() {
 		this(null);
@@ -204,11 +204,11 @@ public class MarketInfo extends DataEntity<MarketInfo> {
 		this.webTitle = webTitle;
 	}
 
-	public List<String> getMarketTypeList() {
+	public String getMarketTypeList() {
 		return marketTypeList;
 	}
 
-	public void setMarketTypeList(List<String> marketTypeList) {
+	public void setMarketTypeList(String marketTypeList) {
 		this.marketTypeList = marketTypeList;
 	}
 }

+ 4 - 2
modules/report/src/main/resources/mappings/modules/report/MarketInfoDao.xml

@@ -55,9 +55,11 @@
 		<if test="info.keyword != null and info.keyword != ''">
 			and b.title like concat('%',#{info.keyword},'%')
 		</if>
-		<if test="info.marketTypeList != null and info.marketTypeList.size() > 0">
+		<if test="info.marketTypeList != null and info.marketTypeList != ''">
 			AND b.market_type in
-			<foreach item="marketType" collection="info.marketTypeList" open="(" separator="," close=")">
+			<foreach item="marketType"
+					 collection="info.marketTypeList.split(',')"
+					 open="(" separator="," close=")">
 				#{marketType}
 			</foreach>
 		</if>