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
bb47c8dd
Commit
bb47c8dd
authored
Jun 01, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增:气瓶标数据es保存
parent
f2d9eafe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
TmCylinderFillingRecordService.java
.../openapi/face/service/TmCylinderFillingRecordService.java
+4
-0
TmCylinderInfoService.java
.../amos/api/openapi/face/service/TmCylinderInfoService.java
+6
-1
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingRecordService.java
View file @
bb47c8dd
...
...
@@ -61,6 +61,10 @@ public class TmCylinderFillingRecordService extends BaseService<TmCylinderFillin
// if (ValidationUtil.isEmpty(model))
// throw new BadRequest("气瓶标签信息为空.");
syncCylinderFilling
(
model
);
ArrayList
<
ESCylinderFillingRecordDto
>
models
=
Bean
.
toModels
(
model
,
ESCylinderFillingRecordDto
.
class
);
createCylinderFillingRecord
(
models
);
for
(
TmCylinderFillingRecordModel
cylinderFillingRecordModel
:
model
)
{
cylinderFillingRecordModel
.
setRecDate
(
new
Date
());
cylinderFillingRecordModel
.
setAppId
(
getAppId
());
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderInfoService.java
View file @
bb47c8dd
...
...
@@ -64,9 +64,13 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
if
(
ValidationUtil
.
isEmpty
(
model
))
throw
new
BadRequest
(
"气瓶基本信息数据为空."
);
syncCylinderInfo
(
model
);
for
(
TmCylinderInfoModel
cylinderInfoModel
:
model
)
{
cylinderInfoModel
.
setRecDate
(
new
Date
());
cylinderInfoModel
.
setAppId
(
getAppId
());
createCylinderInfo2ES
(
cylinderInfoModel
);
this
.
createWithModel
(
cylinderInfoModel
);
}
return
"OK"
;
...
...
@@ -82,7 +86,8 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
}
public
void
createCylinderInfo2ES
(
CylinderInfoDto
cylinderInfoDto
)
{
public
void
createCylinderInfo2ES
(
TmCylinderInfoModel
cylinderInfoModel
)
{
CylinderInfoDto
cylinderInfoDto
=
Bean
.
toModel
(
cylinderInfoModel
,
new
CylinderInfoDto
());
List
<
ESCylinderInfoDto
>
esCylinderInfoDto
=
new
ArrayList
<>();
ESCylinderInfoDto
esCylinderInfo
=
new
ESCylinderInfoDto
();
BeanUtils
.
copyProperties
(
cylinderInfoDto
,
esCylinderInfo
);
...
...
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