Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
a9f0d769
Commit
a9f0d769
authored
Dec 01, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决当一个基础资源被项目绑定时 不能在被别的项目绑定
parent
247f2613
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ProjectResourceController.java
.../module/ugp/biz/controller/ProjectResourceController.java
+2
-1
ProjectResourceServiceImpl.java
...dule/ugp/biz/service/impl/ProjectResourceServiceImpl.java
+0
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectResourceController.java
View file @
a9f0d769
...
@@ -212,8 +212,9 @@ public class ProjectResourceController extends BaseController {
...
@@ -212,8 +212,9 @@ public class ProjectResourceController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"绑定项目所用到的设备管材"
,
notes
=
"绑定项目所用到的设备管材"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"绑定项目所用到的设备管材"
,
notes
=
"绑定项目所用到的设备管材"
)
@PostMapping
(
value
=
"/saveId"
)
@PostMapping
(
value
=
"/saveId"
)
public
ResponseModel
<
ResponseModel
>
saveId
(
@RequestBody
JSONObject
jsonObject
)
throws
Exception
{
public
ResponseModel
<
ResponseModel
>
saveId
(
@RequestBody
JSONObject
jsonObject
)
throws
Exception
{
ResponseModel
responseModel
=
projectResourceServiceImpl
.
saveIds
(
jsonObject
);
return
ResponseHelper
.
buildResponse
(
projectResourceServiceImpl
.
saveIds
(
jsonObject
)
);
return
ResponseHelper
.
buildResponse
(
responseModel
);
}
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectResourceServiceImpl.java
View file @
a9f0d769
...
@@ -154,7 +154,6 @@ public class ProjectResourceServiceImpl extends BaseService<ProjectResourceDto,P
...
@@ -154,7 +154,6 @@ public class ProjectResourceServiceImpl extends BaseService<ProjectResourceDto,P
String
type
=
jsonObject
.
getString
(
"type"
);
String
type
=
jsonObject
.
getString
(
"type"
);
LambdaQueryWrapper
<
ProjectResource
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
ProjectResource
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
ProjectResource:
:
getResourceId
,
select
);
wrapper
.
eq
(
ProjectResource:
:
getResourceId
,
select
);
wrapper
.
eq
(
ProjectResource:
:
getProjectId
,
SequenceNbr
);
ProjectResource
projectResourceVerify
=
projectResourceMapper
.
selectOne
(
wrapper
);
ProjectResource
projectResourceVerify
=
projectResourceMapper
.
selectOne
(
wrapper
);
if
(
ValidationUtil
.
isEmpty
(
projectResourceVerify
))
{
if
(
ValidationUtil
.
isEmpty
(
projectResourceVerify
))
{
//判断资源类型并插入
//判断资源类型并插入
...
...
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