|
|
|
@ -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> |
|
|
|
|