|
@@ -10,10 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="deptAncestors" column="dept_ancestors" />
|
|
|
+ <result property="isJudgment" column="is_judgment" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLawenforcementProvincialDeptVo">
|
|
|
- select provincial_dept_name, provincial_dept_id, dept_name, dept_id, dept_ancestors from lawenforcement_provincial_dept
|
|
|
+ select provincial_dept_name, provincial_dept_id, dept_name, dept_id, dept_ancestors, is_judgment from lawenforcement_provincial_dept
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectLawenforcementProvincialDeptList" parameterType="LawenforcementProvincialDept" resultMap="LawenforcementProvincialDeptResult">
|
|
@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="deptName != null">dept_ancestors,</if>
|
|
|
+ <if test="isJudgment != null and isJudgment != ''">is_judgment,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="provincialDeptName != null and provincialDeptName != ''">(select dept_id from lawenforcement_record where dept_name = #{provincialDeptName} group by dept_name),</if>
|
|
@@ -45,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="deptName != null">(select ancestors from ${database_system}.sys_dept where dept_id = #{deptId}),</if>
|
|
|
+ <if test="isJudgment != null and isJudgment != ''">#{isJudgment},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -56,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptName != null">dept_name = (select dept_name from ${database_system}.sys_dept where dept_id = #{deptId}),</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="deptName != null">dept_ancestors = (select ancestors from ${database_system}.sys_dept where dept_id = #{deptId}),</if>
|
|
|
+ <if test="isJudgment != null and isJudgment != ''">is_judgment = #{isJudgment},</if>
|
|
|
</trim>
|
|
|
where dept_id = #{deptId}
|
|
|
</update>
|