Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
84f2138a
Commit
84f2138a
authored
Nov 07, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口问题
parent
0e5728e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
SuperviseRuleController.java
...ot/module/ugp/biz/controller/SuperviseRuleController.java
+7
-1
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+4
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/SuperviseRuleController.java
View file @
84f2138a
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.ugp.biz.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.OrgServiceImpl
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
...
...
@@ -70,7 +71,12 @@ public class SuperviseRuleController extends BaseController {
//外网调不到内网 暂时预留
OrgUsr
orgUsr
=
orgServiceImpl
.
getOrgUsr
();
model
.
setCreateUnitId
(
orgUsr
.
getSequenceNbr
());
model
=
superviseRuleServiceImpl
.
createWithModel
(
model
);
try
{
model
=
superviseRuleServiceImpl
.
createWithModel
(
model
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
"该区域已经有规则了,请勿重复添加"
);
}
return
ResponseHelper
.
buildResponse
(
model
);
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
View file @
84f2138a
...
...
@@ -40,6 +40,9 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
ProjectMapper
projectMapper
;
@Autowired
ProjectResourceServiceImpl
projectResourceService
;
@Autowired
AttachmentServiceImpl
attachmentService
;
@Autowired
...
...
@@ -113,7 +116,7 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
LambdaQueryWrapper
<
Project
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
Project:
:
getCompanyId
,
companySequenceNbr
);
//查询所有项目
List
<
Project
>
projects
=
project
Mapper
.
selectList
(
wrapper
);
List
<
Project
>
projects
=
project
ResourceService
.
getProjectList
(
);
for
(
Project
i
:
projects
)
{
JSONObject
name
=
new
JSONObject
();
name
.
put
(
"name"
,
i
.
getName
());
...
...
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