[修改] 部门查询

This commit is contained in:
bupengxiang
2023-05-23 17:36:12 +08:00
parent f317b20682
commit 36c9516ec1
@@ -35,7 +35,24 @@
select org.* , forg.DEPARTMENT_CODE as ParentCode from TS_ORG org
LEFT JOIN TS_ORG forg on org.PARENT_ID = forg.id
<where>
<include refid="Base_Where_Clause"/>
<if test="pageVO.departmentCode != null and pageVO.DepartmentCode !=''">
and org.DEPARTMENT_CODE LIKE CONCAT(CONCAT('%',#{pageVO.departmentCode}),'%')
</if>
<if test="pageVO.longName != null and pageVO.longName != ''">
and org.LONG_NAME LIKE CONCAT(CONCAT('%',#{pageVO.longName}) ,'%')
</if>
<if test="pageVO.level != null">
and org.LEVEL = #{pageVO.level}
</if>
<if test="pageVO.parentId != null and pageVO.parentId !=''">
and org.PARENT_ID = #{pageVO.parentId}
</if>
<if test="pageVO.attribution != null and pageVO.attribution != ''">
and org.ATTRIBUTION = #{pageVO.attribution}
</if>
<if test="pageVO.bmdm14 != null and pageVO.bmdm14 != ''">
and org.BMDM_14 = #{pageVO.bmdm14}
</if>
</where>
</select>
<select id="selectCountByOrgCode" resultType="java.lang.Long">