[修改] 组织管理 删除id 用org_code
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
<if test="pageVO.id != null and pageVO.id !=''">
|
||||
and id = #{pageVO.id}
|
||||
<if test="pageVO.orgCode != null and pageVO.orgCode !=''">
|
||||
and org_code = #{pageVO.orgCode}
|
||||
</if>
|
||||
<if test="pageVO.orgCode != null and pageVO.orgCode != ''">
|
||||
and ORG_CODE = #{pageVO.orgCode}
|
||||
<if test="pageVO.UUID != null and pageVO.UUID != ''">
|
||||
and UUID = #{pageVO.UUID}
|
||||
</if>
|
||||
<if test="pageVO.orgName != null and pageVO.orgName != ''">
|
||||
and ORG_NAME LIKE CONCAT(CONCAT('%',#{pageVO.orgName}) ,'%')
|
||||
@@ -45,4 +45,15 @@
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectCountByUUID" resultType="java.lang.Long">
|
||||
select count(1) from TS_ORG
|
||||
<where>
|
||||
<if test="pageVO.UUID != null and pageVO.UUID != ''">
|
||||
and UUID != #{pageVO.UUID}
|
||||
</if>
|
||||
<if test="pageVO.orgCode != null and pageVO.orgCode != ''">
|
||||
and org_code = #{pageVO.orgCode}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user