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
a00a6cc8
Commit
a00a6cc8
authored
Jul 25, 2024
by
李松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改安装告知bug
parent
4fe9ccef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+3
-3
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+4
-3
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
a00a6cc8
...
...
@@ -1374,7 +1374,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// 安装告知设备选择 - 业务限制
// 根据设备类别(EQU_CATEGORY)、安装单位过滤设备(USC_UNIT_CREDIT_CODE) 下面过滤条件已有
// 设备类别为工业管道(8300)时,用工程装置名称过滤
if
(!
ValidationUtil
.
isEmpty
(
EQU_CATEGORY_CODE
)
&&
ValidationUtil
.
equals
(
EQU_CATEGORY_CODE
,
"8300"
))
{
if
(!
ValidationUtil
.
isEmpty
(
map
.
get
(
EQU_CATEGORY_CODE
))
&&
ValidationUtil
.
equals
(
map
.
get
(
EQU_CATEGORY_CODE
)
,
"8300"
))
{
if
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"projectContraption"
)))
{
throw
new
BadRequest
(
"请先选择工程装置信息!"
);
}
...
...
@@ -1405,7 +1405,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
syBuilder
.
must
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
boolMust
.
must
(
syBuilder
);
// 设备类别为工业管道(8300)时,用工程装置名称过滤
if
(!
ValidationUtil
.
isEmpty
(
EQU_CATEGORY_CODE
)
&&
ValidationUtil
.
equals
(
EQU_CATEGORY_CODE
,
"8300"
))
{
if
(!
ValidationUtil
.
isEmpty
(
map
.
get
(
EQU_CATEGORY_CODE
))
&&
ValidationUtil
.
equals
(
map
.
get
(
EQU_CATEGORY_CODE
)
,
"8300"
))
{
if
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"projectContraption"
)))
{
throw
new
BadRequest
(
"请先选择工程装置信息!"
);
}
...
...
@@ -1596,7 +1596,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
PROJECT_CONTRAPTION
)))
{
BoolQueryBuilder
pBuilder
=
QueryBuilders
.
boolQuery
();
String
test
=
QueryParser
.
escape
(
map
.
getString
(
PROJECT_CONTRAPTION
));
pBuilder
.
must
(
QueryBuilders
.
wildcardQuery
(
PROJECT_CONTRAPTION
,
"*"
+
QueryParser
.
escape
(
test
.
toLowerCase
())
+
"*"
));
pBuilder
.
must
(
QueryBuilders
.
matchQuery
(
PROJECT_CONTRAPTION
,
test
.
toLowerCase
()
));
boolMust
.
must
(
pBuilder
);
}
builder
.
query
(
boolMust
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
a00a6cc8
...
...
@@ -765,7 +765,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
BeanUtils
.
copyProperties
(
obj
,
taskMessageDto
);
dto
.
setModel
(
taskMessageDto
);
// 摘要 按原有规则组装
dto
.
setTaskContent
(
String
.
format
(
"
来自%s【%s】的业务办理"
,
obj
.
getEquList
(),
StringUtils
.
isEmpty
(
obj
.
getFactoryNum
())
?
""
:
obj
.
getFactoryNum
()));
dto
.
setTaskContent
(
String
.
format
(
"
发起了【安装告知】的业务办理,【申请单号:%s】"
,
obj
.
getApplyNo
()));
// 申请单号
dto
.
setTaskCode
(
obj
.
getApplyNo
());
// 业务类型枚举code值
...
...
@@ -798,7 +798,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
taskModelDto
.
setStartUserCompanyName
(
item
.
getCreateUserCompanyName
());
// 任务发起人所在单位
taskModelDto
.
setStartDate
(
item
.
getCreateDate
());
taskModelDto
.
setNextExecuteUser
(
item
.
getNextExecuteIds
());
taskModelDto
.
setTaskContent
(
String
.
format
(
"
来自%s【%s】的业务办理,【申请单号:%s】"
,
item
.
getEquList
(),
StringUtils
.
isEmpty
(
item
.
getFactoryNum
())
?
""
:
item
.
getFactoryNum
(),
item
.
getApplyNo
()));
taskModelDto
.
setTaskContent
(
String
.
format
(
"
发起了【安装告知】的业务办理,【申请单号:%s】"
,
item
.
getApplyNo
()));
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
BeanUtils
.
copyProperties
(
item
,
taskMessageDto
);
taskModelDto
.
setModel
(
taskMessageDto
);
...
...
@@ -821,6 +821,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
dto
.
setNoticeDate
(
new
Date
());
// 统计使用
dto
.
setReceiveCompanyOrgCode
(
companyBo
.
getOrgCode
());
dto
.
setEquList
(
String
.
valueOf
(
deviceList
.
get
(
0
).
get
(
"EQU_LIST"
)));
if
(
SUBMIT_TYPE_FLOW
.
equals
(
submitType
))
{
dto
.
setNextExecuteIds
(
workflowResultList
.
get
(
0
).
getNextExecutorRoleIds
());
dto
.
setNextExecuteUserIds
(
workflowResultList
.
get
(
0
).
getNextExecutorUserIds
());
...
...
@@ -1622,7 +1623,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
if
(!
ObjectUtils
.
isEmpty
(
registerInfo
)
&&
!
ObjectUtils
.
isEmpty
(
registerInfo
.
getEquList
())
&&
!
ObjectUtils
.
isEmpty
(
registerInfo
.
getEquCategory
())){
equ
.
setEquListCode
(
registerInfo
.
getEquList
());
equ
.
setEquCategoryCode
(
registerInfo
.
getEquCategory
());
if
(
ObjectUtils
.
isEmpty
(
item
.
getEquList
())
||
ObjectUtils
.
isEmpty
(
item
.
getEquCategoryCode
())){
if
(
ObjectUtils
.
isEmpty
(
item
.
getEquList
Code
())
||
ObjectUtils
.
isEmpty
(
item
.
getEquCategoryCode
())){
item
.
setEquListCode
(
registerInfo
.
getEquList
());
item
.
setEquCategoryCode
(
registerInfo
.
getEquCategory
());
if
(
"8300"
.
equals
(
item
.
getEquCategoryCode
())){
...
...
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