update 修改查询bug
This commit is contained in:
+1
@@ -59,6 +59,7 @@
|
||||
<if test="vo.nodeCode != null and vo.nodeCode != ''">
|
||||
AND id not in (select unique_relation_flag from laws_node_relation where node_code = #{vo.nodeCode})
|
||||
</if>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
<select id="getSingleStandard" resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
||||
SELECT id, standard_number, standard_name, release_date, standard_state
|
||||
|
||||
+2
-2
@@ -1720,7 +1720,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
String key = entryMap.getKey();
|
||||
String value = "";
|
||||
if (!Objects.isNull(entryMap.getValue())) {
|
||||
value = entryMap.getValue().toString();
|
||||
value = (String) entryMap.getValue();
|
||||
}
|
||||
// 如果value不为null和"",则拼接查询条件
|
||||
if (StringUtils.isNotBlank(value)) {
|
||||
@@ -1844,7 +1844,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
StringBuilder condition = new StringBuilder();
|
||||
for (String valueTemp : value.split(",")) {
|
||||
valueSb.append("'").append(valueTemp).append("',");
|
||||
condition.append(" or ").append(key).append(" like binary concat(concat('%','").append(valueTemp).append("'),'%')");
|
||||
condition.append(" or ").append(key).append(" like concat(concat('%','").append(valueTemp).append("'),'%')");
|
||||
}
|
||||
condition.append(")");
|
||||
String substring = valueSb.substring(0, valueSb.length() - 1);
|
||||
|
||||
Reference in New Issue
Block a user