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
cf4df257
Commit
cf4df257
authored
Mar 30, 2022
by
xxxxxwwwww
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fd8bc5e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
src/main/java/com/pms/ocp/mapper/OcpTenantBaseMapper.java
src/main/java/com/pms/ocp/mapper/OcpTenantBaseMapper.java
+2
-0
src/main/resources/mapper/OcpTenantBaseMapper.xml
src/main/resources/mapper/OcpTenantBaseMapper.xml
+6
-7
No files found.
src/main/java/com/pms/ocp/mapper/OcpTenantBaseMapper.java
View file @
cf4df257
...
@@ -24,4 +24,6 @@ public interface OcpTenantBaseMapper extends BaseMapper<OcpTenantBase> {
...
@@ -24,4 +24,6 @@ public interface OcpTenantBaseMapper extends BaseMapper<OcpTenantBase> {
List
<
OcpTenantBase
>
selcctCodeList
(
String
ocpTenantGroup
);
List
<
OcpTenantBase
>
selcctCodeList
(
String
ocpTenantGroup
);
int
queryName
(
String
appName
);
}
}
src/main/resources/mapper/OcpTenantBaseMapper.xml
View file @
cf4df257
<?xml version="1.0" encoding="utf-8" ?>
<?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" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.pms.ocp.mapper.OcpTenantBaseMapper"
>
<mapper
namespace=
"com.pms.ocp.mapper.OcpTenantBaseMapper"
>
<select
id=
"getOtbList"
resultType=
"com.pms.ocp.model.entity.OcpTenantBase"
>
select *
from ocp_tenant_base otb
LEFT JOIN ocp_tenant_extent ote
on otb.tenant_code = ote.tenant_code
where otb.obj_id = #{objId}
</select>
<select
id=
"updataIsDelect"
resultType=
"com.pms.ocp.model.entity.OcpTenantBase"
>
<select
id=
"updataIsDelect"
resultType=
"com.pms.ocp.model.entity.OcpTenantBase"
>
UPDATE ocp_tenant_base
UPDATE ocp_tenant_base
...
@@ -32,5 +25,11 @@
...
@@ -32,5 +25,11 @@
where tenant_code = #{appCode}
where tenant_code = #{appCode}
</select>
</select>
<select
id=
"queryName"
resultType=
"java.lang.Integer"
>
select count(0)
from ocp_tenant_base
where tenant_name = #{appName}
</select>
</mapper>
</mapper>
\ No newline at end of file
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