Browse Source

联动字典加入权限

v2
蟑螂恶霸 2 years ago
parent
commit
1e3a1ff1ff
  1. 1
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/LinkageDictServiceImpl.java
  2. 5
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/LinkageDictMapper.xml

1
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/LinkageDictServiceImpl.java

@ -58,6 +58,7 @@ public class LinkageDictServiceImpl implements ILinkageDictService
* @return 联动字典 * @return 联动字典
*/ */
@Override @Override
@DataScope
public List<LinkageDict> selectLinkageDictList(LinkageDict linkageDict) public List<LinkageDict> selectLinkageDictList(LinkageDict linkageDict)
{ {
return linkageDictMapper.selectLinkageDictList(linkageDict); return linkageDictMapper.selectLinkageDictList(linkageDict);

5
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/LinkageDictMapper.xml

@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectLinkageDictList" parameterType="LinkageDict" resultMap="LinkageDictResult"> <select id="selectLinkageDictList" parameterType="LinkageDict" resultMap="LinkageDictResult">
<include refid="selectLinkageDictVo"/> <include refid="selectLinkageDictVo"/>
<where> <where>
<if test="title != null and title != ''"> and title = #{title}</if> <if test="title != null and title != ''"> and title = #{title}</if>
<if test="value != null and value != ''"> and `value` = #{value}</if> <if test="value != null and value != ''"> and `value` = #{value}</if>
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId}</if> <if test="parentId != null and parentId != ''"> and parent_id = #{parentId}</if>
@ -38,6 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null "> and status = #{status}</if> <if test="status != null "> and status = #{status}</if>
<if test="creator != null and creator != ''"> and creator = #{creator}</if> <if test="creator != null and creator != ''"> and creator = #{creator}</if>
<if test="updator != null and updator != ''"> and updator = #{updator}</if> <if test="updator != null and updator != ''"> and updator = #{updator}</if>
<!-- 数据范围过滤 -->
${params.dataScope}
or dept_id is null
</where> </where>
</select> </select>

Loading…
Cancel
Save