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