Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
operation-control-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王锦盛
operation-control-platform
Commits
29357c18
Commit
29357c18
authored
Mar 30, 2022
by
diaoruifeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://cloud.wodcloud.com/git/wangjinsheng/operation-control-platform
parents
62b73e65
5acf550b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
src/main/java/com/pms/ocp/mapper/OcpTenantExtentMapper.java
src/main/java/com/pms/ocp/mapper/OcpTenantExtentMapper.java
+6
-0
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
...java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
+3
-2
src/main/resources/mapper/AppRegisterMapper.xml
src/main/resources/mapper/AppRegisterMapper.xml
+2
-3
src/main/resources/mapper/OcpTenantExtentMapper.xml
src/main/resources/mapper/OcpTenantExtentMapper.xml
+10
-0
No files found.
src/main/java/com/pms/ocp/mapper/OcpTenantExtentMapper.java
View file @
29357c18
...
...
@@ -6,4 +6,10 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
OcpTenantExtentMapper
extends
BaseMapper
<
OcpTenantExtent
>{
/**
*
* @param appCode
* @return
*/
int
queryCount
(
String
appCode
);
}
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
View file @
29357c18
...
...
@@ -50,8 +50,9 @@ public class AppRegisterServiceImpl implements AppRegisterService {
public
ResponseVO
addApp
(
AppRegisterDTO
appRegisterDTO
)
{
int
count
=
ocpTenantBaseMapper
.
queryCount
(
appRegisterDTO
.
getAppCode
());
if
(
count
!=
0
)
{
return
ResponseVO
.
error
(
"应用编码有重复"
);
int
c
=
ocpTenantExtentMapper
.
queryCount
(
appRegisterDTO
.
getAppCode
());
if
(
count
!=
0
||
c
!=
0
)
{
return
ResponseVO
.
error
(
"应用编码有重复/应用扩展表编码有重复"
);
}
OcpTenantIocn
ocpTenantIocn
=
new
OcpTenantIocn
();
...
...
src/main/resources/mapper/AppRegisterMapper.xml
View file @
29357c18
...
...
@@ -13,13 +13,12 @@
from ocp_tenant_base base
INNER JOIN ocp_tenant_iocn icon ON base.tenant_code = icon.code_no
INNER JOIN ocp_tenant_extent extent ON extent.tenant_code = base.tenant_code
INNER JOIN ocp_tenant_group g ON g.tenant_group_code = base.tenant_group_code
WHERE icon.iocn_type = 'tenant' and icon.iocn_kind is null
WHERE icon.iocn_type = 'tenant' and icon.iocn_kind is null and base.is_delete = '0'
<if
test=
"dto.kind != null and dto.kind != ''"
>
and base.professional_kind like '${dto.kind}'
</if>
<if
test=
"dto.type != null and dto.type != ''"
>
and
g.tenant_group_nam
e like '${dto.type}'
and
base.tenant_group_cod
e like '${dto.type}'
</if>
</select>
...
...
src/main/resources/mapper/OcpTenantExtentMapper.xml
0 → 100644
View file @
29357c18
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.pms.ocp.mapper.OcpTenantExtentMapper"
>
<select
id=
"queryCount"
resultType=
"java.lang.Integer"
>
select count(0)
from ocp_tenant_extent
where tenant_code = #{appCode}
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment