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
7044fe28
Commit
7044fe28
authored
Mar 28, 2022
by
diaoruifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5c8a02f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
src/main/java/com/pms/ocp/model/entity/OcpTenantIocn.java
src/main/java/com/pms/ocp/model/entity/OcpTenantIocn.java
+3
-0
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
...java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
+1
-2
src/main/resources/mapper/AppRegisterMapper.xml
src/main/resources/mapper/AppRegisterMapper.xml
+10
-10
No files found.
src/main/java/com/pms/ocp/model/entity/OcpTenantIocn.java
View file @
7044fe28
...
@@ -42,6 +42,9 @@ public class OcpTenantIocn implements Serializable {
...
@@ -42,6 +42,9 @@ public class OcpTenantIocn implements Serializable {
@ApiModelProperty
(
value
=
"应用调用的服务数量图标数据"
)
@ApiModelProperty
(
value
=
"应用调用的服务数量图标数据"
)
private
Object
iocn
;
private
Object
iocn
;
@ApiModelProperty
(
value
=
"图片类型"
)
private
Object
iocnKind
;
/**
/**
* 所属公司可能会根据公司分区
* 所属公司可能会根据公司分区
*/
*/
...
...
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
View file @
7044fe28
...
@@ -51,8 +51,6 @@ public class AppRegisterServiceImpl implements AppRegisterService {
...
@@ -51,8 +51,6 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantIocn
.
setIocnType
(
"tenant"
);
ocpTenantIocn
.
setIocnType
(
"tenant"
);
ocpTenantIocn
.
setCodeNo
(
appRegisterDTO
.
getAppCode
());
ocpTenantIocn
.
setCodeNo
(
appRegisterDTO
.
getAppCode
());
ocpTenantIocn
.
setIocn
(
appRegisterDTO
.
getImgUrl
());
ocpTenantIocn
.
setIocn
(
appRegisterDTO
.
getImgUrl
());
// 加字段
int
n
=
ocpTenantIocnMapper
.
insert
(
ocpTenantIocn
);
int
n
=
ocpTenantIocnMapper
.
insert
(
ocpTenantIocn
);
...
@@ -110,6 +108,7 @@ public class AppRegisterServiceImpl implements AppRegisterService {
...
@@ -110,6 +108,7 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantIocn
.
setIocnType
(
"tenant"
);
ocpTenantIocn
.
setIocnType
(
"tenant"
);
ocpTenantIocn
.
setCodeNo
(
item
.
getCodeNo
());
ocpTenantIocn
.
setCodeNo
(
item
.
getCodeNo
());
ocpTenantIocn
.
setIocn
(
item
.
getImg
());
ocpTenantIocn
.
setIocn
(
item
.
getImg
());
ocpTenantIocn
.
setIocnKind
(
"Tenant_swiper"
);
list
.
add
(
ocpTenantIocn
);
list
.
add
(
ocpTenantIocn
);
}
}
int
count
=
appRegisterMapper
.
batchInsert
(
list
);
int
count
=
appRegisterMapper
.
batchInsert
(
list
);
...
...
src/main/resources/mapper/AppRegisterMapper.xml
View file @
7044fe28
...
@@ -14,23 +14,23 @@
...
@@ -14,23 +14,23 @@
INNER JOIN ocp_tenant_iocn icon ON base.tenant_code = icon.code_no
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_extent extent ON extent.tenant_code = base.tenant_code
INNER JOIN ocp_tenant_group g ON g.tenant_group_code = base.tenant_group_code
INNER JOIN ocp_tenant_group g ON g.tenant_group_code = base.tenant_group_code
<where>
WHERE icon.iocn_type = 'tenant' and icon.iocn_kind is null
<if
test=
"dto.kind != null and dto.kind != ''"
>
<if
test=
"dto.kind != null and dto.kind != ''"
>
base.professional_kind like CONCAT('%', #{dto.kind}, '%')
base.professional_kind like CONCAT('%', #{dto.kind}, '%')
</if>
</if>
<if
test=
"dto.type != null and dto.type != ''"
>
<if
test=
"dto.type != null and dto.type != ''"
>
and g.tenant_group_name like CONCAT('%', #{dto.type}, '%')
and g.tenant_group_name like CONCAT('%', #{dto.type}, '%')
</if>
</if>
</where>
</select>
</select>
<insert
id=
"batchInsert"
>
<insert
id=
"batchInsert"
>
insert into ocp_tenant_iocn(obj_id, iocn_type, code_no, iocn, company_code)
insert into ocp_tenant_iocn(obj_id, iocn_type, code_no, iocn, company_code
,iocn_kind
)
values
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.objId,jdbcType=VARCHAR},
(#{item.objId,jdbcType=VARCHAR},
#{item.iocnType,jdbcType=VARCHAR},
#{item.iocnType,jdbcType=VARCHAR},
#{item.codeNo},#{item.iocn},#{item.companyCode,jdbcType=VARCHAR})
#{item.codeNo},#{item.iocn},#{item.companyCode,jdbcType=VARCHAR}
,#{item.iocnKind,jdbcType=VARCHAR}
)
</foreach>
</foreach>
</insert>
</insert>
</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