update 标准法规-我的收藏查询
This commit is contained in:
@@ -57,6 +57,8 @@ public class FieldCommon {
|
||||
public static final String STR_TO_DATE_SUFFIX = "','%Y-%m-%d %H:%i:%s')"; // 格式化时间格式的后缀
|
||||
// 收藏标识
|
||||
public static final String COLLECTION_FLAG = "collectionFlag";
|
||||
// 我的收藏
|
||||
public static final String MY_COLLECTION = "MyCollection";
|
||||
// 主键
|
||||
public static final String ID = "id";
|
||||
// 标准编号
|
||||
|
||||
+8
-2
@@ -1359,8 +1359,14 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
// 处理左侧树code查询
|
||||
String nodeCode = (String) parameterMap.get(FieldCommon.NODE_CODE); // 获取树节点code
|
||||
if (StringUtils.isNotBlank(nodeCode) && nodeCode.length() > 3) {
|
||||
selectCondition.append(" and id in (select unique_relation_flag from laws_node_relation " +
|
||||
"where node_code like concat('" + nodeCode + "','%'))");
|
||||
if (FieldCommon.MY_COLLECTION.equals(nodeCode)) {
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
selectCondition.append(" and id in (select distinct standard_id from laws_standard_collection" +
|
||||
" where collector_id = '"+ loginUser.getId() +"')");
|
||||
} else {
|
||||
selectCondition.append(" and id in (select distinct unique_relation_flag from laws_node_relation " +
|
||||
"where node_code like concat('" + nodeCode + "','%'))");
|
||||
}
|
||||
}
|
||||
|
||||
//处理列表表头排序
|
||||
|
||||
Reference in New Issue
Block a user