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
92cf4c0e
Commit
92cf4c0e
authored
Dec 18, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
7bb10ecf
055458c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+17
-3
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+6
-2
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 @
92cf4c0e
...
@@ -51,6 +51,7 @@ import org.elasticsearch.index.query.QueryBuilders;
...
@@ -51,6 +51,7 @@ import org.elasticsearch.index.query.QueryBuilders;
import
org.elasticsearch.search.builder.SearchSourceBuilder
;
import
org.elasticsearch.search.builder.SearchSourceBuilder
;
import
org.elasticsearch.search.sort.SortOrder
;
import
org.elasticsearch.search.sort.SortOrder
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
...
@@ -158,7 +159,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -158,7 +159,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
checkEsData
(
record
);
checkEsData
(
record
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
//删除Es数据
log
.
error
(
e
.
getMessage
(),
e
);
//删除数据库数据和ES数据
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
List
<
String
>
records
=
new
ArrayList
<>();
records
.
add
(
record
);
superviseInfoMapper
.
deleteDataAll
(
records
);
esEquipmentCategory
.
deleteById
(
record
);
}
ResponseModel
<
Object
>
response
=
new
ResponseModel
<>();
response
.
setDevMessage
(
e
.
getMessage
());
response
.
setResult
(
null
);
response
.
setMessage
(
"操作失败,请检查数据输入后重新提交"
);
response
.
setStatus
(
HttpStatus
.
BAD_REQUEST
.
value
());
return
response
;
}
}
return
ResponseHelper
.
buildResponse
(
record
);
return
ResponseHelper
.
buildResponse
(
record
);
}
}
...
@@ -409,9 +423,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -409,9 +423,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if
(!
ValidationUtil
.
isEmpty
(
level
))
{
if
(!
ValidationUtil
.
isEmpty
(
level
))
{
if
(
LEVEL
.
equals
(
level
))
{
if
(
LEVEL
.
equals
(
level
))
{
//企业
//企业
if
(!
ValidationUtil
.
isEmpty
(
level
)
&&
ValidationUtil
.
equals
(
type
,
"使用单位"
)){
if
(!
ValidationUtil
.
isEmpty
(
type
)
&&
ValidationUtil
.
equals
(
type
,
"使用单位"
)){
map
.
put
(
"USE_UNIT_CREDIT_CODE"
,
companyCode
);
map
.
put
(
"USE_UNIT_CREDIT_CODE"
,
companyCode
);
}
else
if
(!
ValidationUtil
.
isEmpty
(
level
)
&&
ValidationUtil
.
equals
(
type
,
"安装改造维修单位"
)){
}
else
if
(!
ValidationUtil
.
isEmpty
(
type
)
&&
ValidationUtil
.
equals
(
type
,
"安装改造维修单位"
)){
map
.
put
(
"USC_UNIT_CREDIT_CODE"
,
companyCode
);
map
.
put
(
"USC_UNIT_CREDIT_CODE"
,
companyCode
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
92cf4c0e
...
@@ -348,19 +348,23 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -348,19 +348,23 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
if
(
ObjectUtils
.
isEmpty
(
ajaxResult1
))
{
if
(
ObjectUtils
.
isEmpty
(
ajaxResult1
))
{
}
}
updateModelByInstanceId
(
instanceId
,
"0"
.
equals
(
op
)
?
FlowStatusEnum
.
HAVE_PROCESSED
.
getCode
()
+
""
:
FlowStatusEnum
.
REJECTED
.
getCode
()
+
""
);
if
(
op
.
equals
(
"0"
))
{
if
(
op
.
equals
(
"0"
))
{
String
originalDataId
=
params
.
get
(
"originalDataId"
).
toString
();
String
originalDataId
=
params
.
get
(
"originalDataId"
).
toString
();
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationMapper
.
selectById
(
originalDataId
);
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationMapper
.
selectById
(
originalDataId
);
List
<
String
>
detectionRegion
=
Arrays
.
asList
(
params
.
get
(
"detectionRegion"
).
toString
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
split
(
","
)
);
List
<
String
>
detectionRegion
=
(
List
<
String
>)
params
.
get
(
"detectionRegion"
);
// String detectionRegionName = params.get("detectionRegionName").toString();
// String detectionRegionName = params.get("detectionRegionName").toString();
if
(!
detectionRegion
.
isEmpty
()){
jyjcOpeningApplication
.
setDetectionRegion
(
detectionRegion
);
jyjcOpeningApplication
.
setDetectionRegion
(
detectionRegion
);
}
// jyjcOpeningApplication.setDetectionRegionName(detectionRegionName);
// jyjcOpeningApplication.setDetectionRegionName(detectionRegionName);
if
(
ObjectUtils
.
isEmpty
(
jyjcOpeningApplication
.
getAcceptDate
())){
if
(
ObjectUtils
.
isEmpty
(
jyjcOpeningApplication
.
getAcceptDate
())){
jyjcOpeningApplication
.
setAcceptDate
(
new
Date
());
jyjcOpeningApplication
.
setAcceptDate
(
new
Date
());
}
}
jyjcOpeningApplicationMapper
.
updateById
(
jyjcOpeningApplication
);
jyjcOpeningApplicationMapper
.
updateById
(
jyjcOpeningApplication
);
}
}
updateModelByInstanceId
(
instanceId
,
"0"
.
equals
(
op
)
?
FlowStatusEnum
.
HAVE_PROCESSED
.
getCode
()
+
""
:
FlowStatusEnum
.
REJECTED
.
getCode
()
+
""
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
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