[修改] 组织管理 删除id 用org_code

This commit is contained in:
bupengxiang
2023-05-09 11:00:44 +08:00
parent 89b48fd62b
commit 8df19abcef
20 changed files with 103 additions and 46 deletions
@@ -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>