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
792259bd
Commit
792259bd
authored
Mar 31, 2022
by
郭凡凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
487f5bf7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
src/main/java/com/pms/ocp/mapper/OcpApiGroupMapper.java
src/main/java/com/pms/ocp/mapper/OcpApiGroupMapper.java
+1
-1
src/main/java/com/pms/ocp/model/vo/OcpApiBaseVo.java
src/main/java/com/pms/ocp/model/vo/OcpApiBaseVo.java
+3
-3
src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java
...m/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java
+5
-1
src/main/resources/mapper/OcpApiGroupMapper.xml
src/main/resources/mapper/OcpApiGroupMapper.xml
+6
-8
No files found.
src/main/java/com/pms/ocp/mapper/OcpApiGroupMapper.java
View file @
792259bd
...
...
@@ -23,7 +23,7 @@ public interface OcpApiGroupMapper extends BaseMapper<OcpApiGroup> {
List
<
OcpApiBaseVo
>
selectPageLists
(
ApiBaseDto
apiBaseReq
);
List
<
OcpGroupBaseDto
>
apiTree
(
String
apiGroupCompanyCode
,
String
apiGroupPcode
,
Integer
apiGroupPromotionType
);
List
<
OcpGroupBaseDto
>
apiTree
(
OcpApiBaseVo
ocpApiBaseVo
);
List
<
OcpGroupBaseDto
>
selectBase
(
String
apiGroupCompanyCode
,
String
apiGroupPcode
,
Integer
apiGroupPromotionType
);
...
...
src/main/java/com/pms/ocp/model/vo/OcpApiBaseVo.java
View file @
792259bd
...
...
@@ -108,7 +108,7 @@ public class OcpApiBaseVo implements Serializable {
private
String
apiGroupName
;
@ApiModelProperty
(
"推广类型0统推,1自建"
)
private
long
apiGroupPromotionType
;
private
Integer
apiGroupPromotionType
;
@ApiModelProperty
(
"分类所属公司"
)
private
String
apiGroupCompanyCode
;
...
...
@@ -312,11 +312,11 @@ public class OcpApiBaseVo implements Serializable {
this
.
apiGroupName
=
apiGroupName
;
}
public
long
getApiGroupPromotionType
()
{
public
Integer
getApiGroupPromotionType
()
{
return
apiGroupPromotionType
;
}
public
void
setApiGroupPromotionType
(
long
apiGroupPromotionType
)
{
public
void
setApiGroupPromotionType
(
Integer
apiGroupPromotionType
)
{
this
.
apiGroupPromotionType
=
apiGroupPromotionType
;
}
...
...
src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java
View file @
792259bd
...
...
@@ -156,7 +156,11 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen
@Override
public
List
<
OcpGroupBaseDto
>
apiBaseTreeOther
(
String
apiGroupCompanyCode
,
String
apiGroupPcode
,
Integer
apiGroupPromotionType
,
String
apiCode
)
{
List
<
OcpGroupBaseDto
>
ocpApiGroups
=
ocpApiGroupMapper
.
apiTree
(
apiGroupCompanyCode
,
apiGroupPcode
,
apiGroupPromotionType
);
OcpApiBaseVo
ocpApiBaseVo
=
new
OcpApiBaseVo
();
ocpApiBaseVo
.
setApiGroupCompanyCode
(
apiGroupCompanyCode
);
ocpApiBaseVo
.
setApiGroupPcode
(
apiGroupPcode
);
ocpApiBaseVo
.
setApiGroupPromotionType
(
apiGroupPromotionType
);
List
<
OcpGroupBaseDto
>
ocpApiGroups
=
ocpApiGroupMapper
.
apiTree
(
ocpApiBaseVo
);
if
(
ocpApiGroups
.
size
()
!=
0
)
{
return
ocpApiGroups
;
}
else
{
...
...
src/main/resources/mapper/OcpApiGroupMapper.xml
View file @
792259bd
...
...
@@ -50,22 +50,20 @@
</select>
<select
id=
"apiTree"
resultType=
"com.pms.ocp.model.dto.OcpGroupBaseDto"
>
<select
id=
"apiTree"
resultType=
"com.pms.ocp.model.dto.OcpGroupBaseDto"
parameterType=
"com.pms.ocp.model.vo.OcpApiBaseVo"
>
select api_group_code,api_group_name as apiName,api_group_pcode,api_group_level from ocp_api_group where is_delete = 0
<if
test=
"apiGroupPcode == null "
>
and api_group_pcode is null or api_group_pcode =''
</if>
<if
test=
"apiGroupPcode!=null and apiGroupPcode!=''"
>
and api_group_pcode = #{apiGroupPcode}
</if>
<if
test=
"apiGroupCompanyCode!=null and apiGroupCompanyCode!=''"
>
and api_group_company_code =#{apiGroupCompanyCode}
</if>
<if
test=
"apiGroupPromotionType
!=null and apiGroupPromotionType!=''
"
>
<if
test=
"apiGroupPromotionType
!=null
"
>
and api_group_promotion_type =#{apiGroupPromotionType}
</if>
<if
test=
"apiGroupPcode == null "
>
and (api_group_pcode is null or api_group_pcode ='')
</if>
</select>
...
...
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