高级检索条款适用市场条件添加已发布条件
This commit is contained in:
+1
-1
@@ -320,7 +320,7 @@
|
||||
<select id="getSplitSelectIds" resultType="java.lang.String">
|
||||
select l2.id from laws_domestic_standard l1
|
||||
left join sar_file_split_info l2 on l1.id = l2.standard_id and l2.del_flag = 0
|
||||
where l1.del_flag = 0 and l2.id is not null
|
||||
where l1.del_flag = 0 and l2.id is not null and split_status = 2
|
||||
and
|
||||
<foreach collection="countryList" separator="or" item= "item" open="(" close=")">
|
||||
CONCAT(',',l1.applicable_market,',') like CONCAT('%,',#{item},',%')
|
||||
|
||||
+5
-3
@@ -1879,10 +1879,12 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
// 查询市场下的标准
|
||||
List<String> countryList = Arrays.asList(parameter.get(COUNTRY).toString().split(","));
|
||||
List<String> ids = documentSplitMapper.getSplitSelectIds(countryList);
|
||||
if(!CollectionUtils.isEmpty(ids)){
|
||||
// in查询
|
||||
selectCondition.append(" and s.info_id" + " in('").append(String.join("','",ids)).append("')");
|
||||
if(CollectionUtils.isEmpty(ids)){
|
||||
ids = new ArrayList<>();
|
||||
ids.add("-1");
|
||||
}
|
||||
// in查询
|
||||
selectCondition.append(" and s.info_id" + " in('").append(String.join("','",ids)).append("')");
|
||||
parameter.remove(COUNTRY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user