|
@@ -215,7 +215,7 @@
|
|
|
|
|
|
<!--查询某个字段的某条数据数量-->
|
|
<!--查询某个字段的某条数据数量-->
|
|
<select id="getObjExists" parameterType="Map" resultType="int">
|
|
<select id="getObjExists" parameterType="Map" resultType="int">
|
|
- select count(1) cun from sys_institution where 1=1 and status='1'
|
|
|
|
|
|
+ select count(1) cun from sys_institution where 1=1 and status='0'
|
|
<if test="key!=null and key!=''">
|
|
<if test="key!=null and key!=''">
|
|
and ${key} = #{value}
|
|
and ${key} = #{value}
|
|
</if>
|
|
</if>
|
|
@@ -232,13 +232,13 @@
|
|
<select id="getMapById" resultType="Map" parameterType="String">
|
|
<select id="getMapById" resultType="Map" parameterType="String">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
- from sys_institution where INS_ID = #{id} and status='1'
|
|
|
|
|
|
+ from sys_institution where INS_ID = #{id} and status='0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getObjectById" resultMap="BaseResultMap" parameterType="String">
|
|
<select id="getObjectById" resultMap="BaseResultMap" parameterType="String">
|
|
SELECT ins.*, (SELECT INS_NAME FROM sys_institution WHERE INS_CODE = ins.ins_parent_code limit 1) as INS_PNAME
|
|
SELECT ins.*, (SELECT INS_NAME FROM sys_institution WHERE INS_CODE = ins.ins_parent_code limit 1) as INS_PNAME
|
|
from sys_institution ins
|
|
from sys_institution ins
|
|
- where ins.INS_ID = #{id} and ins.status='1'
|
|
|
|
|
|
+ where ins.INS_ID = #{id} and ins.status='0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--分页查询基础语句返回Map-->
|
|
<!--分页查询基础语句返回Map-->
|
|
@@ -271,7 +271,7 @@
|
|
platform_code
|
|
platform_code
|
|
from sys_institution
|
|
from sys_institution
|
|
where 1 = 1
|
|
where 1 = 1
|
|
- and status = '1'
|
|
|
|
|
|
+ and status = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@@ -280,7 +280,7 @@
|
|
SELECT ins.*,(SELECT INS_NAME FROM sys_institution WHERE INS_CODE = ins.ins_parent_code limit 1) as INS_PNAME,
|
|
SELECT ins.*,(SELECT INS_NAME FROM sys_institution WHERE INS_CODE = ins.ins_parent_code limit 1) as INS_PNAME,
|
|
(SELECT app_name FROM sys_app WHERE app_id = ins.APP_ID LIMIT 1) AS APP_NAME
|
|
(SELECT app_name FROM sys_app WHERE app_id = ins.APP_ID LIMIT 1) AS APP_NAME
|
|
from sys_institution ins
|
|
from sys_institution ins
|
|
- where status='1'
|
|
|
|
|
|
+ where status='0'
|
|
<!--条件-->
|
|
<!--条件-->
|
|
<if test="insName != null and insName!='' ">
|
|
<if test="insName != null and insName!='' ">
|
|
and INS_NAME like CONCAT('%',trim(#{insName}),'%')
|
|
and INS_NAME like CONCAT('%',trim(#{insName}),'%')
|
|
@@ -320,7 +320,7 @@
|
|
<select id="getSysInstitutionByOryCateGory" parameterType="SysInstitution" resultMap="BaseResultMap">
|
|
<select id="getSysInstitutionByOryCateGory" parameterType="SysInstitution" resultMap="BaseResultMap">
|
|
SELECT INS_ID,INS_CODE,INS_NAME, ins_parent_code
|
|
SELECT INS_ID,INS_CODE,INS_NAME, ins_parent_code
|
|
from sys_institution
|
|
from sys_institution
|
|
- where 1=1 and status='1'
|
|
|
|
|
|
+ where 1=1 and status='0'
|
|
<!--条件-->
|
|
<!--条件-->
|
|
<if test="insCategory != null and insCategory!='' ">
|
|
<if test="insCategory != null and insCategory!='' ">
|
|
and INS_CATEGORY = #{insCategory}
|
|
and INS_CATEGORY = #{insCategory}
|
|
@@ -338,7 +338,7 @@
|
|
<select id="getInsCountByIns" resultType="Integer" parameterType="String">
|
|
<select id="getInsCountByIns" resultType="Integer" parameterType="String">
|
|
SELECT count(*)
|
|
SELECT count(*)
|
|
from sys_institution
|
|
from sys_institution
|
|
- where status = '1' and APP_ID = #{appId} and INS_CODE = #{insCode}
|
|
|
|
|
|
+ where status = '0' and APP_ID = #{appId} and INS_CODE = #{insCode}
|
|
<if test="insId != null and insId!='' ">
|
|
<if test="insId != null and insId!='' ">
|
|
and INS_ID !=#{insId}
|
|
and INS_ID !=#{insId}
|
|
</if>
|
|
</if>
|
|
@@ -354,7 +354,7 @@
|
|
s.ins_parent_code insParentCode
|
|
s.ins_parent_code insParentCode
|
|
FROM
|
|
FROM
|
|
sys_institution AS s
|
|
sys_institution AS s
|
|
- where s.status = '1'
|
|
|
|
|
|
+ where s.status = '0'
|
|
<if test="appId != null and appId != ''">
|
|
<if test="appId != null and appId != ''">
|
|
and s.APP_ID = #{appId}
|
|
and s.APP_ID = #{appId}
|
|
</if>
|
|
</if>
|
|
@@ -368,7 +368,7 @@
|
|
<select id="getInsByIns" resultMap="BaseResultMap" parameterType="SysInstitution">
|
|
<select id="getInsByIns" resultMap="BaseResultMap" parameterType="SysInstitution">
|
|
SELECT *
|
|
SELECT *
|
|
from sys_institution
|
|
from sys_institution
|
|
- where status = '1'
|
|
|
|
|
|
+ where status = '0'
|
|
<if test="insId != null and insId!='' ">
|
|
<if test="insId != null and insId!='' ">
|
|
and INS_ID =#{insId}
|
|
and INS_ID =#{insId}
|
|
</if>
|
|
</if>
|
|
@@ -394,7 +394,7 @@
|
|
street_name dcStreet,
|
|
street_name dcStreet,
|
|
INS_ADDRESS dcAddress
|
|
INS_ADDRESS dcAddress
|
|
from sys_institution
|
|
from sys_institution
|
|
- where status = '1'
|
|
|
|
|
|
+ where status = '0'
|
|
<if test="appId != null and appId!='' ">
|
|
<if test="appId != null and appId!='' ">
|
|
and APP_ID =#{appId}
|
|
and APP_ID =#{appId}
|
|
</if>
|
|
</if>
|