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
3fec433b
Commit
3fec433b
authored
Oct 14, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改待办
parent
5ac4e7c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
TaskV2FeignService.java
...n/amos/boot/module/hygf/biz/feign/TaskV2FeignService.java
+28
-0
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/feign/TaskV2FeignService.java
View file @
3fec433b
...
...
@@ -35,6 +35,28 @@ public interface TaskV2FeignService {
* @return TaskV2Model
* @throws InnerInvokException e
*/
@RequestMapping
(
value
=
"/batch/addString"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
List
<
TaskV2Model
>>
batchAddString
(
@RequestBody
String
modelList
)
throws
InnerInvokException
;
/**
* 批量新增任务
*
* @param modelList 新增待办
* @return TaskV2Model
* @throws InnerInvokException e
*/
@RequestMapping
(
value
=
"/batch/addString"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
List
<
TaskV2Model
>>
batchAddStringNew
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
@RequestHeader
(
name
=
"token"
,
required
=
true
)
String
token
,
@RequestBody
String
modelList
)
throws
InnerInvokException
;
/**
* 批量新增任务
*
* @param modelList 新增待办
* @return TaskV2Model
* @throws InnerInvokException e
*/
@RequestMapping
(
value
=
"/batch/add"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
List
<
TaskV2Model
>>
batchAddNew
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
...
...
@@ -87,4 +109,10 @@ public interface TaskV2FeignService {
*/
@RequestMapping
(
value
=
"/batch/update"
,
method
=
RequestMethod
.
PUT
)
FeignClientResult
<
List
<
TaskV2Model
>>
batchUpdate
(
@RequestBody
List
<
TaskV2Model
>
modelList
)
throws
InnerInvokException
;
/**
* 批量修改任务
*/
@RequestMapping
(
value
=
"/batch/updateString"
,
method
=
RequestMethod
.
PUT
)
FeignClientResult
<
List
<
TaskV2Model
>>
batchUpdateString
(
@RequestBody
String
modelList
)
throws
InnerInvokException
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/CommonServiceImpl.java
View file @
3fec433b
...
...
@@ -221,9 +221,9 @@ public class CommonServiceImpl {
}
//如果使用的是机器人则使用机器人的token、appkey、product进行调用
if
(
amosRequestContext
.
getUserId
().
equals
(
RequestContext
.
getExeUserId
()))
{
taskV2FeignService
.
batchAdd
New
(
amosRequestContext
.
getAppKey
(),
amosRequestContext
.
getProduct
(),
amosRequestContext
.
getToken
(),
taskV2Models
);
taskV2FeignService
.
batchAdd
StringNew
(
amosRequestContext
.
getAppKey
(),
amosRequestContext
.
getProduct
(),
amosRequestContext
.
getToken
(),
JSONArray
.
toJSONString
(
taskV2Models
)
);
}
else
{
taskV2FeignService
.
batchAdd
(
taskV2Models
);
taskV2FeignService
.
batchAdd
String
(
JSONArray
.
toJSONString
(
taskV2Models
)
);
}
}
catch
(
Exception
e
){
log
.
error
(
e
.
getMessage
(),
e
);
...
...
@@ -297,7 +297,7 @@ public class CommonServiceImpl {
taskV2Model
.
setFlowStatusLabel
((
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()));
taskV2Model
.
setFlowStatus
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
}
taskV2FeignService
.
batchUpdate
(
collect
);
taskV2FeignService
.
batchUpdate
String
(
JSONArray
.
toJSONString
(
collect
)
);
}
else
{
collect
.
get
(
0
).
setRoutePath
(
collect
.
get
(
0
).
getRoutePath
().
replace
(
"roleIds="
,
"roleIds=55555&fq="
));
taskV2FeignService
.
update
(
collect
.
get
(
0
),
collect
.
get
(
0
).
getSequenceNbr
());
...
...
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