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
bb0cb3f8
Commit
bb0cb3f8
authored
Jun 01, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增:升级多数据源3.4.1
parent
95fdb43e
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
26 additions
and
14 deletions
+26
-14
pom.xml
amos-boot-data/amos-boot-data-openapi/pom.xml
+1
-1
SyncCylinderDataService.java
...mos/api/openapi/face/service/SyncCylinderDataService.java
+1
-0
TmCylinderFillingCheckService.java
...i/openapi/face/service/TmCylinderFillingCheckService.java
+3
-1
TmCylinderFillingExamineService.java
...openapi/face/service/TmCylinderFillingExamineService.java
+2
-1
TmCylinderFillingRecordService.java
.../openapi/face/service/TmCylinderFillingRecordService.java
+3
-1
TmCylinderFillingService.java
...os/api/openapi/face/service/TmCylinderFillingService.java
+2
-1
TmCylinderInfoService.java
.../amos/api/openapi/face/service/TmCylinderInfoService.java
+2
-1
TmCylinderInspectionService.java
...api/openapi/face/service/TmCylinderInspectionService.java
+3
-1
TmCylinderTagsService.java
.../amos/api/openapi/face/service/TmCylinderTagsService.java
+2
-1
TmCylinderUnitService.java
.../amos/api/openapi/face/service/TmCylinderUnitService.java
+3
-1
CylCylinderFillingCheckMapper.java
...ylinder/flc/api/mapper/CylCylinderFillingCheckMapper.java
+1
-1
CylinderUnitMapper.java
...ot/module/cylinder/flc/api/mapper/CylinderUnitMapper.java
+1
-0
CylCylinderFillingCheckMapper.xml
...c/main/resources/mapper/CylCylinderFillingCheckMapper.xml
+2
-4
No files found.
amos-boot-data/amos-boot-data-openapi/pom.xml
View file @
bb0cb3f8
...
...
@@ -31,7 +31,7 @@
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
<version>
3.
1.0
</version>
<version>
3.
4.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/SyncCylinderDataService.java
View file @
bb0cb3f8
...
...
@@ -32,6 +32,7 @@ import com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylinderUnitMapper;
import
java.util.List
;
@Component
@DS
(
"tzs"
)
public
class
SyncCylinderDataService
{
/**
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingCheckService.java
View file @
bb0cb3f8
...
...
@@ -4,6 +4,7 @@ package com.yeejoin.amos.api.openapi.face.service;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderFillingCheckDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderFillingDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -37,7 +38,8 @@ public class TmCylinderFillingCheckService extends BaseService<TmCylinderFilling
private
RedisTemplate
redisTemplate
;
@Autowired
private
SyncCylinderDataService
syncCylinderDataService
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderFillingAfter
(
List
<
TmCylinderFillingCheckModel
>
model
)
{
// TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingExamineService.java
View file @
bb0cb3f8
...
...
@@ -4,6 +4,7 @@ package com.yeejoin.amos.api.openapi.face.service;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.yeejoin.amos.api.openapi.face.model.TmCylinderUnitModel
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderFillingExamineDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderUnitDto
;
...
...
@@ -42,7 +43,7 @@ public class TmCylinderFillingExamineService extends BaseService<TmCylinderFilli
private
SyncCylinderDataService
syncCylinderDataService
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderFillingExamine
(
List
<
TmCylinderFillingExamineModel
>
model
)
{
// TODO Auto-generated method stub
if
(
ValidationUtil
.
isEmpty
(
model
))
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingRecordService.java
View file @
bb0cb3f8
...
...
@@ -8,6 +8,7 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.yeejoin.amos.api.openapi.face.orm.dao.ESCylinderFillingRecordRepository
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.module.cylinder.api.entity.ESCylinderFillingRecordDto
;
...
...
@@ -55,7 +56,7 @@ public class TmCylinderFillingRecordService extends BaseService<TmCylinderFillin
@Autowired
private
SyncCylinderDataService
syncCylinderDataService
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderFilling
(
List
<
TmCylinderFillingRecordModel
>
model
)
{
// TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
...
...
@@ -73,6 +74,7 @@ public class TmCylinderFillingRecordService extends BaseService<TmCylinderFillin
return
"OK"
;
}
@DS
(
"tzs"
)
private
void
syncCylinderFilling
(
List
<
TmCylinderFillingRecordModel
>
model
)
{
syncCylinderDataService
.
syncCylinderFillingRecord
(
model
);
}
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderFillingService.java
View file @
bb0cb3f8
...
...
@@ -4,6 +4,7 @@ package com.yeejoin.amos.api.openapi.face.service;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.yeejoin.amos.api.openapi.face.model.TmCylinderUnitModel
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderFillingDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInfoDto
;
...
...
@@ -40,7 +41,7 @@ public class TmCylinderFillingService extends BaseService<TmCylinderFillingModel
@Autowired
private
SyncCylinderDataService
syncCylinderDataService
;
@
Transactional
(
rollbackFor
=
{
Exception
.
class
})
@
DSTransactional
public
String
createCylinderFillingBefore
(
List
<
TmCylinderFillingModel
>
model
)
{
// TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderInfoService.java
View file @
bb0cb3f8
...
...
@@ -6,6 +6,7 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.api.openapi.face.model.TmCylinderUnitModel
;
import
com.yeejoin.amos.api.openapi.face.orm.dao.ESCylinderInfoRepository
;
...
...
@@ -58,7 +59,7 @@ public class TmCylinderInfoService extends BaseService<TmCylinderInfoModel, TmCy
@Autowired
ESCylinderInfoRepository
esCylinderInfoRepository
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderInfo
(
List
<
TmCylinderInfoModel
>
model
)
{
// TODO Auto-generated method stub
if
(
ValidationUtil
.
isEmpty
(
model
))
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderInspectionService.java
View file @
bb0cb3f8
...
...
@@ -4,6 +4,7 @@ package com.yeejoin.amos.api.openapi.face.service;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInspectionDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderUnitDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -39,7 +40,8 @@ public class TmCylinderInspectionService extends BaseService<TmCylinderInspectio
private
RedisTemplate
redisTemplate
;
@Autowired
private
SyncCylinderDataService
syncCylinderDataService
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderInspection
(
List
<
TmCylinderInspectionModel
>
model
)
{
if
(
ValidationUtil
.
isEmpty
(
model
))
throw
new
BadRequest
(
"气瓶检验信息为空."
);
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderTagsService.java
View file @
bb0cb3f8
...
...
@@ -4,6 +4,7 @@ package com.yeejoin.amos.api.openapi.face.service;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInspectionDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderTagsDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -40,7 +41,7 @@ public class TmCylinderTagsService extends BaseService<TmCylinderTagsModel, TmCy
@Autowired
private
SyncCylinderDataService
syncCylinderDataService
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderTag
(
List
<
TmCylinderTagsModel
>
model
)
{
// TODO Auto-generated method stub
if
(
ValidationUtil
.
isEmpty
(
model
))
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TmCylinderUnitService.java
View file @
bb0cb3f8
...
...
@@ -4,6 +4,7 @@ package com.yeejoin.amos.api.openapi.face.service;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.dynamic.datasource.annotation.DSTransactional
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Component
;
...
...
@@ -39,7 +40,8 @@ public class TmCylinderUnitService extends BaseService<TmCylinderUnitModel, TmCy
private
RedisTemplate
redisTemplate
;
@Autowired
private
SyncCylinderDataService
syncCylinderDataService
;
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@DSTransactional
public
String
createCylinderUnit
(
List
<
TmCylinderUnitModel
>
model
)
{
if
(
ValidationUtil
.
isEmpty
(
model
))
throw
new
BadRequest
(
"气瓶企业信息数据为空."
);
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/mapper/CylCylinderFillingCheckMapper.java
View file @
bb0cb3f8
...
...
@@ -34,7 +34,7 @@ public interface CylCylinderFillingCheckMapper extends BaseMapper<CylinderFillin
boolean
updataSyncFilling
(
@Param
(
"ids"
)
List
<
Long
>
appIds
);
boolean
saveAndBatchInsert
(
@Param
(
"list"
)
List
<
CylinderFilling
>
list
);
void
saveAndBatchInsert
(
@Param
(
"list"
)
List
<
CylinderFilling
>
list
);
Long
selectCountTotal
();
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/mapper/CylinderUnitMapper.java
View file @
bb0cb3f8
...
...
@@ -55,5 +55,6 @@ public interface CylinderUnitMapper extends BaseMapper<CylinderUnit> {
* @return list
*/
List
<
CityCylinderInfoDto
>
getCylinderDataByLevel
(
@Param
(
"level"
)
String
level
);
void
saveOrUpdateBatch
(
@Param
(
"list"
)
List
<
CylinderUnit
>
list
);
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylCylinderFillingCheckMapper.xml
View file @
bb0cb3f8
...
...
@@ -141,10 +141,8 @@
LIMIT 1000
</select>
<insert
id=
"saveAndBatchInsert"
>
INSERT INTO "tz_cylinder_filling"
(
sequence_nbr,
<insert
id=
"saveAndBatchInsert"
parameterType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.entity.CylinderFillingRecord"
>
INSERT INTO tz_cylinder_filling( sequence_nbr,
filling_before_id,
filling_unit_name,
sequence_code,
...
...
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