Commit c5c11c16 authored by 赵啸非's avatar 赵啸非

添加站点事项过滤

parent 29da3ddd
...@@ -200,6 +200,8 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M ...@@ -200,6 +200,8 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M
@Override @Override
public Result<MatterEntity> findSubList(MatterEntity matterQuery, PageInfo pageInfo, Context context) throws AppException { public Result<MatterEntity> findSubList(MatterEntity matterQuery, PageInfo pageInfo, Context context) throws AppException {
SiteEntity siteCache = siteService.getCache(matterQuery.getSiteId().toString());
matterQuery.setAreaCode(siteCache==null?null:siteCache.getAreaCode());
return this.dao.getSubList(matterQuery, pageInfo); return this.dao.getSubList(matterQuery, pageInfo);
} }
......
...@@ -155,7 +155,6 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe ...@@ -155,7 +155,6 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
this.init(model, context); this.init(model, context);
ret.setCode(code); ret.setCode(code);
ret.setData(model); ret.setData(model);
ret.setDict(model.get(KEY_RESULT_DICT));
ret.setMsg(model.get(MESSAGE_INFO) == null ? "" : model.remove(MESSAGE_INFO).toString()); ret.setMsg(model.get(MESSAGE_INFO) == null ? "" : model.remove(MESSAGE_INFO).toString());
return ret; return ret;
} }
......
...@@ -13,7 +13,15 @@ ...@@ -13,7 +13,15 @@
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where b.matterCode IS NULL where b.matterCode IS NULL
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
<include refid="_condition_"/> <if test="condition.areaCode!=null and condition.areaCode!=''">
and a.areaCode = #{condition.areaCode,jdbcType=VARCHAR}
</if>
<if test="condition.deptCode!=null and condition.deptCode!=''">
and a.deptCode = #{condition.deptCode,jdbcType=VARCHAR}
</if>
<if test="condition.matterName != null and condition.matterName != ''">
a.matterName like #{condition.matterName}
</if>
</trim> </trim>
</trim> </trim>
</select> </select>
...@@ -28,7 +36,15 @@ ...@@ -28,7 +36,15 @@
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where b.matterCode IS NULL where b.matterCode IS NULL
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
<include refid="_condition_"/> <if test="condition.areaCode!=null and condition.areaCode!=''">
and a.areaCode = #{condition.areaCode,jdbcType=VARCHAR}
</if>
<if test="condition.deptCode!=null and condition.deptCode!=''">
and a.deptCode = #{condition.deptCode,jdbcType=VARCHAR}
</if>
<if test="condition.matterName != null and condition.matterName != ''">
a.matterName like #{condition.matterName}
</if>
</trim> </trim>
</trim> </trim>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment