From 07ff3643547bcb06ea73de9240724afeafecd16d Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Fri, 18 Feb 2022 19:07:34 +0800
Subject: [PATCH] 1.培训单位许可设立,分公司备案,跨区域备案,法人变更备案详情查询接口新增 2.培训单位许可设立,分公司备案,跨区域备案,法人变更备案审批进度查询
---
src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml | 90 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 90 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml b/src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml
index 99dfabd..02d38b4 100644
--- a/src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml
+++ b/src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml
@@ -83,4 +83,94 @@
#{permit.representativecell}, #{permit.contacts}, #{permit.contactscell})
</insert>
+ <select id="selectRecordDetail" resultType="org.springblade.modules.permit.dto.PermitDTO">
+ select
+ id,
+ ptype,
+ type,
+ permitime,
+ cardid,
+ representativecell,
+ contacts,
+ contactscell,
+ jurisdiction,
+ industry,
+ registration,
+ creditcode,
+ enterprisename,
+ representative,
+ address,
+ overtime
+ from sys_permit
+ where cardid = #{permit.cardid}
+ and ptype = #{permit.ptype}
+ </select>
+
+ <sql id="permitRecord">
+ id,
+ ptype,
+ type,
+ permitime,
+ cardid,
+ enterprisename,
+ approve,
+ representative,
+ overtime
+ </sql>
+
+ <!--查询分公司,自招保安单位备案集合信息-->
+ <select id="selectRecordList" resultType="org.springblade.modules.permit.dto.PermitRecordDTO">
+ select
+ <include refid="permitRecord"/>
+ from sys_record
+ where 1=1
+ <if test="permit.cardid!=null and permit.cardid!=''">
+ and cardid = #{permit.cardid}
+ </if>
+ <if test="permit.ptype!=null and permit.ptype!=''">
+ and ptype = #{permit.ptype}
+ </if>
+ </select>
+
+ <!--查询保安服务公司,培训单位许可设立集合信息-->
+ <select id="selectPermitList" resultType="org.springblade.modules.permit.dto.PermitRecordDTO">
+ select
+ <include refid="permitRecord"/>
+ from sys_permit
+ where 1=1
+ <if test="permit.cardid!=null and permit.cardid!=''">
+ and cardid = #{permit.cardid}
+ </if>
+ <if test="permit.ptype!=null and permit.ptype!=''">
+ and ptype = #{permit.ptype}
+ </if>
+ </select>
+
+ <!--查询跨区域经营备案集合信息-->
+ <select id="selectRecordkList" resultType="org.springblade.modules.permit.dto.PermitRecordDTO">
+ select
+ <include refid="permitRecord"/>
+ from sys_recordk
+ where 1=1
+ <if test="permit.cardid!=null and permit.cardid!=''">
+ and cardid = #{permit.cardid}
+ </if>
+ <if test="permit.ptype!=null and permit.ptype!=''">
+ and ptype = #{permit.ptype}
+ </if>
+ </select>
+
+ <!--查询保安单位法人变更集合信息-->
+ <select id="selectRecordLegalpersonList" resultType="org.springblade.modules.permit.dto.PermitRecordDTO">
+ select
+ <include refid="permitRecord"/>
+ from sys_record_legalperson
+ where 1=1
+ <if test="permit.cardid!=null and permit.cardid!=''">
+ and cardid = #{permit.cardid}
+ </if>
+ <if test="permit.ptype!=null and permit.ptype!=''">
+ and ptype = #{permit.ptype}
+ </if>
+ </select>
</mapper>
--
Gitblit v1.9.3