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