Browse Source

关联节点 加上部门权限

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

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

@ -58,6 +58,7 @@ public class LinkageDictServiceImpl implements ILinkageDictService
* @return 联动字典
*/
@Override
@DataScope
public List<LinkageDict> selectLinkageDictList(LinkageDict linkageDict)
{
return linkageDictMapper.selectLinkageDictList(linkageDict);
@ -74,6 +75,7 @@ public class LinkageDictServiceImpl implements ILinkageDictService
{
UserBean user = userApi.getCurrentUser();
linkageDict.setId(IdUtil.simpleUUID());
linkageDict.setDeptId(user.getDeptId());
linkageDict.setCreateBy(user.getUserName());
linkageDict.setCreateTime(DateUtils.getNowDate());
return linkageDictMapper.insertLinkageDict(linkageDict);

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

@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="status" column="status" />
<result property="domain" column="domain" />
<result property="dept" column="dept" />
<result property="deptId" column="dept_id" />
<result property="demand" column="demand" />
<result property="basis" column="basis" />
<result property="creator" column="creator" />
@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectLinkageDictVo">
select id, title, `value`, parent_id, `desc`, srot, `status`, `domain`, dept, demand, basis, creator, create_time, updator, update_time from linkage_dict
select id, title, `value`, parent_id, `desc`, srot, `status`, `domain`, dept, dept_id, demand, basis, creator, create_time, updator, update_time from linkage_dict
</sql>
<select id="selectLinkageDictList" parameterType="LinkageDict" resultMap="LinkageDictResult">
@ -37,6 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null "> and status = #{status}</if>
<if test="creator != null and creator != ''"> and creator = #{creator}</if>
<if test="updator != null and updator != ''"> and updator = #{updator}</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</where>
</select>
@ -62,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null ">`status`,</if>
<if test="domain != null and domain != ''">`domain`,</if>
<if test="dept != null and dept != ''">`dept`,</if>
<if test="deptId != null and deptId != ''">`dept_id`,</if>
<if test="demand != null and demand != ''">`demand`,</if>
<if test="basis != null and basis != ''">`basis`,</if>
<if test="creator != null and creator != ''">creator,</if>
@ -79,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null ">#{status},</if>
<if test="domain != null and domain != ''">#{domain},</if>
<if test="dept != null and dept != ''">#{dept},</if>
<if test="deptId != null and deptId != ''">#{deptId},</if>
<if test="demand != null and demand != ''">#{demand},</if>
<if test="basis != null and basis != ''">#{basis},</if>
<if test="creator != null and creator != ''">#{creator},</if>
@ -99,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null ">`status` = #{status},</if>
<if test="domain != null and domain != ''">`domain` = #{domain},</if>
<if test="dept != null and dept != ''">`dept` = #{dept},</if>
<if test="deptId != null and deptId != ''">`dept_id` = #{deptId},</if>
<if test="demand != null and demand != ''">`demand` = #{demand},</if>
<if test="basis != null and basis != ''">`basis` = #{basis},</if>
<if test="creator != null and creator != ''">creator = #{creator},</if>

Loading…
Cancel
Save