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
fc1d94b8
Commit
fc1d94b8
authored
Jun 01, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增:气瓶信息同步方法
parent
a5b898f0
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
24 deletions
+17
-24
SyncCylinderDataService.java
...mos/api/openapi/face/service/SyncCylinderDataService.java
+9
-8
TmCylinderFillingCheckService.java
...i/openapi/face/service/TmCylinderFillingCheckService.java
+1
-2
TmCylinderFillingExamineService.java
...openapi/face/service/TmCylinderFillingExamineService.java
+1
-2
TmCylinderFillingRecordService.java
.../openapi/face/service/TmCylinderFillingRecordService.java
+1
-2
TmCylinderFillingService.java
...os/api/openapi/face/service/TmCylinderFillingService.java
+1
-2
TmCylinderInfoService.java
.../amos/api/openapi/face/service/TmCylinderInfoService.java
+1
-2
TmCylinderInspectionService.java
...api/openapi/face/service/TmCylinderInspectionService.java
+1
-2
TmCylinderTagsService.java
.../amos/api/openapi/face/service/TmCylinderTagsService.java
+1
-2
TmCylinderUnitService.java
.../amos/api/openapi/face/service/TmCylinderUnitService.java
+1
-2
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/SyncCylinderDataService.java
View file @
fc1d94b8
package
com
.
yeejoin
.
amos
.
api
.
openapi
.
face
.
service
;
import
com.yeejoin.amos.api.openapi.face.model.*
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
@@ -69,7 +70,7 @@ public class SyncCylinderDataService
private
CylinderInspectionMapper
cylinderInspectionMapper
;
@DS
(
"tzs"
)
public
void
syncCylinderUnit
(
List
<
CylinderUnitDto
>
cylinderUnitDto
)
{
public
void
syncCylinderUnit
(
List
<
TmCylinderUnitModel
>
cylinderUnitDto
)
{
// List<CylinderUnit> cylinderUnits = Bean.toModels(cylinderUnitDto,CylinderUnit.class);
// LambdaQueryWrapper<CylinderUnit> wrapper = new LambdaQueryWrapper<>();
// List<CylinderUnit> cylinderUnitList = this.getBaseMapper().selectList(wrapper);
...
...
@@ -77,26 +78,26 @@ public class SyncCylinderDataService
cylinderUnitMapper
.
saveOrUpdateBatch
(
cylinderUnitList
);
}
public
void
syncCylinderInfo
(
final
List
<
CylinderInfoDto
>
cylinderInfoDto
)
{
public
void
syncCylinderInfo
(
final
List
<
TmCylinderInfoModel
>
cylinderInfoDto
)
{
List
<
CylinderInfo
>
cylinderUnitList
=
Bean
.
toModels
(
cylinderInfoDto
,
CylinderInfo
.
class
);
cylinderInfoMapper
.
saveOrUpdateBatch
(
cylinderUnitList
);
}
public
void
syncCylinderFillingExamine
(
List
<
CylinderFillingExamineDto
>
cylinderFillingExamineDto
)
{
public
void
syncCylinderFillingExamine
(
List
<
TmCylinderFillingExamineModel
>
cylinderFillingExamineDto
)
{
}
public
void
syncCylinderFillingRecord
(
List
<
CylinderFillingRecordDto
>
cylinderFillingRecordDtos
)
{
public
void
syncCylinderFillingRecord
(
List
<
TmCylinderFillingRecordModel
>
cylinderFillingRecordDtos
)
{
}
public
void
syncCylinderInspection
(
List
<
CylinderInspectionDto
>
cylinderInspectionDto
)
{
public
void
syncCylinderInspection
(
List
<
TmCylinderInspectionModel
>
cylinderInspectionDto
)
{
}
public
void
syncCylinderTag
(
List
<
CylinderTagsDto
>
cylinderTagsDtos
)
{
public
void
syncCylinderTag
(
List
<
TmCylinderTagsModel
>
cylinderTagsDtos
)
{
}
public
void
syncCylinderFillingBefore
(
List
<
CylinderFillingDto
>
cylinderFillingDtos
)
{
public
void
syncCylinderFillingBefore
(
List
<
TmCylinderFillingModel
>
cylinderFillingDtos
)
{
}
public
void
syncCylinderFillingAfter
(
List
<
CylinderFillingCheckDto
>
cylinderFillingCheckDtos
)
{
public
void
syncCylinderFillingAfter
(
List
<
TmCylinderFillingCheckModel
>
cylinderFillingCheckDtos
)
{
}
}
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingCheckService.java
View file @
fc1d94b8
...
...
@@ -52,8 +52,7 @@ public class TmCylinderFillingCheckService extends BaseService<TmCylinderFilling
}
private
void
syncCylinderFillingAfter
(
List
<
TmCylinderFillingCheckModel
>
model
)
{
List
<
CylinderFillingCheckDto
>
cylinderFillingCheckDtos
=
Bean
.
toModels
(
model
,
CylinderFillingCheckDto
.
class
);
syncCylinderDataService
.
syncCylinderFillingAfter
(
cylinderFillingCheckDtos
);
syncCylinderDataService
.
syncCylinderFillingAfter
(
model
);
}
private
String
getAppId
()
{
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingExamineService.java
View file @
fc1d94b8
...
...
@@ -64,7 +64,6 @@ public class TmCylinderFillingExamineService extends BaseService<TmCylinderFilli
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
private
void
syncCylinderFillingExamine
(
List
<
TmCylinderFillingExamineModel
>
model
)
{
List
<
CylinderFillingExamineDto
>
cylinderFillingExamineDto
=
Bean
.
toModels
(
model
,
CylinderFillingExamineDto
.
class
);
syncCylinderDataService
.
syncCylinderFillingExamine
(
cylinderFillingExamineDto
);
syncCylinderDataService
.
syncCylinderFillingExamine
(
model
);
}
}
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingRecordService.java
View file @
fc1d94b8
...
...
@@ -70,8 +70,7 @@ public class TmCylinderFillingRecordService extends BaseService<TmCylinderFillin
}
private
void
syncCylinderFilling
(
List
<
TmCylinderFillingRecordModel
>
model
)
{
List
<
CylinderFillingRecordDto
>
cylinderFillingRecordDtos
=
Bean
.
toModels
(
model
,
CylinderFillingRecordDto
.
class
);
syncCylinderDataService
.
syncCylinderFillingRecord
(
cylinderFillingRecordDtos
);
syncCylinderDataService
.
syncCylinderFillingRecord
(
model
);
}
private
String
getAppId
()
{
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingService.java
View file @
fc1d94b8
...
...
@@ -56,8 +56,7 @@ public class TmCylinderFillingService extends BaseService<TmCylinderFillingModel
}
private
void
syncCylinderFillingBefore
(
List
<
TmCylinderFillingModel
>
model
)
{
List
<
CylinderFillingDto
>
cylinderFillingDtos
=
Bean
.
toModels
(
model
,
CylinderFillingDto
.
class
);
syncCylinderDataService
.
syncCylinderFillingBefore
(
cylinderFillingDtos
);
syncCylinderDataService
.
syncCylinderFillingBefore
(
model
);
}
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderInfoService.java
View file @
fc1d94b8
...
...
@@ -73,8 +73,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
}
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
private
void
syncCylinderInfo
(
List
<
TmCylinderInfoModel
>
model
)
{
List
<
CylinderInfoDto
>
cylinderInfoDto
=
Bean
.
toModels
(
model
,
CylinderInfoDto
.
class
);
syncCylinderDataService
.
syncCylinderInfo
(
cylinderInfoDto
);
syncCylinderDataService
.
syncCylinderInfo
(
model
);
}
private
String
getAppId
()
{
String
tokenKey
=
Redis
.
genKey
(
Constant
.
TOKEN_PREFIX
,
RequestContext
.
getToken
());
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderInspectionService.java
View file @
fc1d94b8
...
...
@@ -53,8 +53,7 @@ public class TmCylinderInspectionService extends BaseService<TmCylinderInspectio
}
private
void
syncCylinderInspectionModel
(
List
<
TmCylinderInspectionModel
>
model
)
{
List
<
CylinderInspectionDto
>
cylinderUnitDto
=
Bean
.
toModels
(
model
,
CylinderInspectionDto
.
class
);
syncCylinderDataService
.
syncCylinderInspection
(
cylinderUnitDto
);
syncCylinderDataService
.
syncCylinderInspection
(
model
);
}
private
String
getAppId
()
{
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderTagsService.java
View file @
fc1d94b8
...
...
@@ -55,8 +55,7 @@ public class TmCylinderTagsService extends BaseService<TmCylinderTagsModel, TmCy
}
private
void
syncCylinderTag
(
List
<
TmCylinderTagsModel
>
model
)
{
List
<
CylinderTagsDto
>
cylinderTagsDtos
=
Bean
.
toModels
(
model
,
CylinderTagsDto
.
class
);
syncCylinderDataService
.
syncCylinderTag
(
cylinderTagsDtos
);
syncCylinderDataService
.
syncCylinderTag
(
model
);
}
private
String
getAppId
()
{
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderUnitService.java
View file @
fc1d94b8
...
...
@@ -53,8 +53,7 @@ public class TmCylinderUnitService extends BaseService<TmCylinderUnitModel, TmCy
}
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
private
void
syncCylinderUnitModel
(
List
<
TmCylinderUnitModel
>
model
)
{
List
<
CylinderUnitDto
>
cylinderUnitDto
=
Bean
.
toModels
(
model
,
CylinderUnitDto
.
class
);
syncCylinderDataService
.
syncCylinderUnit
(
cylinderUnitDto
);
syncCylinderDataService
.
syncCylinderUnit
(
model
);
}
private
String
getAppId
()
{
String
tokenKey
=
Redis
.
genKey
(
Constant
.
TOKEN_PREFIX
,
RequestContext
.
getToken
());
...
...
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