feat: 根据部门和层级获取人员 及 区域 及 全部意见CID条件查询

This commit is contained in:
super_liu
2021-06-04 17:28:51 +08:00
parent a18735496e
commit 8457c5ce97
19 changed files with 742 additions and 9 deletions
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.utArea.dao.UtAreaDao">
<!-- Result Map-->
<resultMap id="BaseResultMap" type="com.adc.da.slrs.utArea.entity.UtArea" >
<id column="id" property="id" />
<result column="area_name" property="areaName" />
<result column="show_index" property="showIndex" />
<result column="sar_type" property="sarType" />
<result column="creation_user" property="creationUser" />
<result column="valid_flag" property="validFlag" />
<result column="creation_time" property="creationTime" />
<result column="modify_time" property="modifyTime" />
</resultMap>
<!-- UT_AREA table all fields -->
<sql id="Base_Column_List" >
id, area_name, show_index, sar_type, creation_user, valid_flag, creation_time, modify_time
</sql>
<!-- 查询条件 -->
<sql id="Base_Where_Clause">
where 1=1
<trim suffixOverrides="," >
<if test="id != null" >
and id ${idOperator} #{id}
</if>
<if test="areaName != null" >
and area_name ${areaNameOperator} #{areaName}
</if>
<if test="showIndex != null" >
and show_index ${showIndexOperator} #{showIndex}
</if>
<if test="sarType != null" >
and sar_type like concat(concat('%',#{sarType}),'%')
</if>
<if test="creationUser != null" >
and creation_user ${creationUserOperator} #{creationUser}
</if>
<if test="validFlag != null" >
and valid_flag ${validFlagOperator} #{validFlag}
</if>
<if test="creationTime != null" >
and creation_time ${creationTimeOperator} #{creationTime}
</if>
<if test="creationTime1 != null" >
and creation_time &gt;= #{creationTime1}
</if>
<if test="creationTime2 != null" >
and creation_time &lt;= #{creationTime2}
</if>
<if test="modifyTime != null" >
and modify_time ${modifyTimeOperator} #{modifyTime}
</if>
<if test="modifyTime1 != null" >
and modify_time &gt;= #{modifyTime1}
</if>
<if test="modifyTime2 != null" >
and modify_time &lt;= #{modifyTime2}
</if>
<if test="notId != null" >
and id != #{notId}
</if>
</trim>
</sql>
<select id="getAreaSelList" parameterType="com.adc.da.slrs.utArea.entity.UtArea" resultType="com.adc.da.sys.common.SelectionResult">
select id as value,area_name as label
from UT_AREA
where 1=1
<if test="id != null" >
and id != #{id}
</if>
<if test="sarType != null" >
and sar_type like concat(concat('%',#{sarType}),'%')
</if>
order by show_index,id
</select>
</mapper>