[修改] 部门查询
This commit is contained in:
@@ -35,7 +35,24 @@
|
|||||||
select org.* , forg.DEPARTMENT_CODE as ParentCode from TS_ORG org
|
select org.* , forg.DEPARTMENT_CODE as ParentCode from TS_ORG org
|
||||||
LEFT JOIN TS_ORG forg on org.PARENT_ID = forg.id
|
LEFT JOIN TS_ORG forg on org.PARENT_ID = forg.id
|
||||||
<where>
|
<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>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectCountByOrgCode" resultType="java.lang.Long">
|
<select id="selectCountByOrgCode" resultType="java.lang.Long">
|
||||||
|
|||||||
Reference in New Issue
Block a user