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
8fc2711d
Commit
8fc2711d
authored
May 19, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix-维保推送消息
parent
f36eab9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
MaintenanceCompanyController.java
...e/common/biz/controller/MaintenanceCompanyController.java
+1
-1
PlanRo.java
...ava/com/yeejoin/amos/maintenance/business/dto/PlanRo.java
+1
-1
PlanTaskServiceImpl.java
...aintenance/business/service/impl/PlanTaskServiceImpl.java
+1
-0
RulePlanService.java
...os/maintenance/business/service/impl/RulePlanService.java
+5
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/MaintenanceCompanyController.java
View file @
8fc2711d
...
...
@@ -338,7 +338,7 @@ public class MaintenanceCompanyController extends BaseController {
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/get/amosOrgIdsByIds"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据主键查orgIds"
,
notes
=
"根据主键查orgIds"
)
public
ResponseModel
<
List
<
String
>>
getAmosOrgIdsByIds
(
@RequestParam
(
value
=
"list"
,
required
=
true
)
List
<
String
>
list
)
{
public
ResponseModel
<
List
<
String
>>
getAmosOrgIdsByIds
getAmosOrgIdsByIds
(
@RequestParam
(
value
=
"list"
,
required
=
true
)
List
<
String
>
list
)
{
return
ResponseHelper
.
buildResponse
(
maintenanceCompanyServiceImpl
.
getAmosOrgIdsByIds
(
list
));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/dto/PlanRo.java
View file @
8fc2711d
...
...
@@ -17,7 +17,7 @@ import java.util.Map;
@RuleFact
(
value
=
"维保任务"
,
project
=
"消息规则"
)
public
class
PlanRo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1
070080521549842475
L
;
private
static
final
long
serialVersionUID
=
1
779427739908876854
L
;
@Label
(
"任务名称"
)
private
String
name
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/PlanTaskServiceImpl.java
View file @
8fc2711d
...
...
@@ -503,6 +503,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
log
.
error
(
e
.
getMessage
(),
e
);
}
if
(
CollectionUtils
.
isNotEmpty
(
extraUserIds
))
{
log
.
info
(
"接收人ID:{}"
,
extraUserIds
);
rulePlanService
.
addPlanRule
(
plan
,
null
,
RuleTypeEnum
.
任务型计划生成
,
extraUserIds
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/RulePlanService.java
View file @
8fc2711d
...
...
@@ -7,6 +7,8 @@ import com.yeejoin.amos.maintenance.business.dto.PlanRo;
import
com.yeejoin.amos.maintenance.business.feign.JCSFeignClient
;
import
com.yeejoin.amos.maintenance.business.util.DateUtil
;
import
com.yeejoin.amos.maintenance.dao.entity.Plan
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -18,10 +20,11 @@ import java.util.List;
import
java.util.Map
;
@Service
public
class
RulePlanService
{
private
final
String
packageId
=
"消息/addMaintenance"
;
private
final
String
msgType
=
"maintenance"
;
private
final
Logger
log
=
LoggerFactory
.
getLogger
(
RulePlanService
.
class
);
@Autowired
private
RuleTrigger
ruleTrigger
;
@Autowired
...
...
@@ -30,6 +33,7 @@ public class RulePlanService {
public
Boolean
addPlanRule
(
Plan
plan
,
List
<
String
>
userIds
,
RuleTypeEnum
ruleType
,
List
<
String
>
extraUserIds
)
throws
Exception
{
PlanRo
planRo
=
buildPlanRo
(
plan
,
userIds
,
ruleType
,
extraUserIds
);
//触发规则
log
.
info
(
"消防维保推规则触发消息入参:{}, packageId:{} "
,
planRo
,
packageId
);
ruleTrigger
.
publish
(
planRo
,
packageId
,
new
String
[
0
]);
return
true
;
}
...
...
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