From 0914ca657bc604a23f9e6ef8d030259066e3bfec Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 09 Jul 2021 08:35:22 +0800
Subject: [PATCH] 1.单位信息调整
---
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml | 26 +++++++++++++++++++++++---
1 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
index 7e64de1..670e8d8 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -8,7 +8,7 @@
<result column="creditCode" property="creditcode"/>
<result column="enterpriseName" property="enterprisename"/>
<result column="representative" property="representative"/>
- <result column="registrationStatus" property="registrationstatus"/>
+ <result column="regstsat" property="regstsat"/>
<result column="establishTime" property="establishtime"/>
<result column="registeredCapital" property="registeredcapital"/>
<result column="capital" property="capital"/>
@@ -21,12 +21,32 @@
<result column="region" property="region"/>
<result column="registration" property="registration"/>
<result column="industry" property="industry"/>
- <result column="identification" property="identification"/>
+ <result column="tenantId" property="tenantid"/>
+ <result column="stats" property="stats"/>
</resultMap>
<select id="selectInformationPage" resultMap="informationResultMap">
- select * from sys_information where is_deleted = 0
+ select * from sys_information where 1=1
+ <if test="information.enterprisename!=null and information.enterprisename!=''">
+ and enterpriseName like concat(concat('%', #{information.enterprisename}),'%')
+ </if>
+ <if test="information.representative!=null and information.representative!=''">
+ and representative like concat(concat('%', #{information.representative}),'%')
+ </if>
+ <if test="information.stats!=null and information.stats!=''">
+ and stats=#{stats}
+ </if>
</select>
+ <delete id="deleteIn">
+ delete from sys_information where creditCode=#{creditcode}
+ </delete>
+ <delete id="deleteSh">
+ delete from sys_shareholder where creditCode=#{creditcode}
+ </delete>
+ <delete id="deleteMe">
+ delete from sys_member where creditCode=#{creditcode}
+ </delete>
+
</mapper>
--
Gitblit v1.9.3