Browse Source

Merge branch '1.0' of http://gogs.tcmbrain.com/zjh/pre_paramater into 1.0

zjh 2 years ago
parent
commit
f9506b84a3

BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/service/dic/TDicBaseService.java


+ 1 - 1
cbkj_web_parameter/src/main/resources/mappers/sysApp/SysAppMapper.xml

@@ -168,7 +168,7 @@
         SELECT
         app_id,app_name
         from sys_app
-        where status = '1'
+        where status = '0'
         <if test="appId != null  and appId!=''">
             and app_id = #{ appId }
         </if>

+ 5 - 5
cbkj_web_parameter/src/main/resources/mappers/sysApp/SysDepartmentMapper.xml

@@ -124,9 +124,9 @@
     <select id="getPageListByObj" parameterType="SysDepartment" resultMap="BaseResultMap">
         SELECT dep.*,app.app_name, ins.ins_name, ins.ins_parent_code
         from sys_department dep
-        left join sys_app app on dep.app_id = app.app_id AND app.status = '1' AND app.status = '1'
-        left join sys_institution ins on dep.ins_code = ins.ins_code AND ins.status = '1'
-        where dep.status = '1'
+        left join sys_app app on dep.app_id = app.app_id AND app.status = '0' AND app.status = '0'
+        left join sys_institution ins on dep.ins_code = ins.ins_code AND ins.status = '0'
+        where dep.status = '0'
         <if test="appName != null and appName!='' ">
             and app.APP_NAME like CONCAT('%',trim(#{appName}),'%')
         </if>
@@ -145,7 +145,7 @@
 
     <select id="getDepCountByName" resultType="Integer" parameterType="SysDepartment">
         select count(*)
-        from sys_department where dept_name = #{deptName} and status = '1'
+        from sys_department where dept_name = #{deptName} and status = '0'
         <if test="appId != null and appId!='' ">
             and APP_ID =#{appId}
         </if>
@@ -160,7 +160,7 @@
     <select id="getDepCountByParent" parameterType="SysDepartment" resultType="Integer">
         SELECT count(*)
         from sys_department
-        where status = '1'
+        where status = '0'
           and dept_parent_id = #{depParentId}
     </select>
 

+ 10 - 10
cbkj_web_parameter/src/main/resources/mappers/sysApp/SysInstitutionMapper.xml

@@ -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>