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
9c7f6a51
Commit
9c7f6a51
authored
Feb 16, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配数据库
parent
76a3c6e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
119 additions
and
57 deletions
+119
-57
CylinderInfoMapper.java
...os/boot/module/tzs/flc/api/mapper/CylinderInfoMapper.java
+2
-0
CylinderFillingRecordMapper.xml
...src/main/resources/mapper/CylinderFillingRecordMapper.xml
+2
-2
CylinderInfoMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
+100
-47
TzCylinderMapper.xml
...le-tzs-api/src/main/resources/mapper/TzCylinderMapper.xml
+3
-5
InspectionServiceImpl.java
...ot/module/tzs/biz/service/impl/InspectionServiceImpl.java
+1
-1
CylinderInfoController.java
...module/tzs/flc/biz/controller/CylinderInfoController.java
+6
-2
CylinderInfoServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
+5
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderInfoMapper.java
View file @
9c7f6a51
...
...
@@ -81,4 +81,6 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
List
<
CylinderInfoDto
>
listWithRegionCode
(
Integer
regionCode
);
Page
<
CylinderInfoDto
>
cyinderInfoList
(
Page
<
CylinderInfoDto
>
page
,
CylinderInfoDto
cylinderInfoDto
,
String
sort
,
List
<
String
>
appids
);
Page
<
CylinderInfoDto
>
cyinderOutInfoList
(
Page
<
CylinderInfoDto
>
page
,
CylinderInfoDto
cylinderInfoDto
,
String
sort
,
List
<
String
>
appids
);
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderFillingRecordMapper.xml
View file @
9c7f6a51
...
...
@@ -83,9 +83,9 @@
tz_cylinder_filling_record r
left join tz_cylinder_unit u on u.app_id = r.app_id
left join tz_cylinder_filling b on b.filling_before_id = r.filling_before_id AND
date_format(
`b`.`inspection_date`,'%Y-%m-%d') = date_format(`r`.`filling_startTime`
,'%Y-%m-%d')
date_format(
b.inspection_date,'%Y-%m-%d') = date_format(r.filling_startTime
,'%Y-%m-%d')
left join tz_cylinder_filling_check af on af.filling_check_id = r.filling_check_id AND
date_format(
`af`.`inspection_date`,'%Y-%m-%d') = date_format(`r`.`filling_startTime`
,'%Y-%m-%d')
date_format(
af.inspection_date,'%Y-%m-%d') = date_format(r.filling_startTime
,'%Y-%m-%d')
left join tz_cylinder_info i on b.sequence_code = i.sequence_code
WHERE
1= 1
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
9c7f6a51
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/TzCylinderMapper.xml
View file @
9c7f6a51
...
...
@@ -186,9 +186,7 @@
<select
id=
"getTzCylinderCheckItem"
resultType=
"com.yeejoin.amos.boot.module.tzs.flc.api.dto.TzCylinderCheckDto"
>
SELECT
item,
`explain`,
`result`
*
FROM
tz_cylinder_check_item
WHERE item!=''
...
...
@@ -208,8 +206,8 @@
<select
id=
"getTzCylinderAfterCheckItem"
resultType=
"com.yeejoin.amos.boot.module.tzs.flc.api.dto.TzCylinderCheckDto"
>
SELECT
after_item AS item,
after_explain AS
`explain`
,
after_result AS
`result`
after_explain AS
"explain"
,
after_result AS
"result"
FROM
tz_cylinder_check_item
WHERE after_item!=''
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/InspectionServiceImpl.java
View file @
9c7f6a51
...
...
@@ -182,7 +182,7 @@ public class InspectionServiceImpl implements InspectionService {
@Override
public
JSONObject
getSafetySupervisionCodeMap
(
String
bizTable
,
String
mapKey
,
String
mapValue
)
{
JSONObject
jsonObject
=
new
JSONObject
();
String
sql
=
String
.
format
(
"SELECT
`%s`, `%s`
FROM %s"
,
mapKey
,
mapValue
,
bizTable
);
String
sql
=
String
.
format
(
"SELECT
%s, %s
FROM %s"
,
mapKey
,
mapValue
,
bizTable
);
List
<
Map
<
String
,
Object
>>
list
=
bizJdbcTemplate
.
queryForList
(
sql
);
list
.
forEach
(
x
->
{
jsonObject
.
put
(
x
.
get
(
mapKey
).
toString
(),
x
.
get
(
mapValue
));
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderInfoController.java
View file @
9c7f6a51
...
...
@@ -516,7 +516,7 @@ public class CylinderInfoController extends BaseController {
}
}
}
if
(
ValidationUtil
.
isEmpty
(
cylinderInfoDto
.
getRegionCode
())
&&
ValidationUtil
.
isEmpty
(
cylinderInfoDto
.
getCreditCode
())){
if
(
ValidationUtil
.
isEmpty
(
cylinderInfoDto
.
getRegionCode
())
&&
ValidationUtil
.
isEmpty
(
cylinderInfoDto
.
getCreditCode
())
&&
cylinderInfoDto
.
getIsWarn
()==
0
){
return
ResponseHelper
.
buildResponse
(
new
Page
<
CylinderInfoDto
>(
Long
.
valueOf
(
pageNum
),
Long
.
valueOf
(
pageSize
)));
}
QueryWrapper
<
CylinderInfo
>
cylinderInfoQueryWrapper
=
new
QueryWrapper
<>();
...
...
@@ -541,7 +541,11 @@ public class CylinderInfoController extends BaseController {
}
else
{
pageBean
=
new
Page
<>(
Integer
.
parseInt
(
pageNum
),
Integer
.
parseInt
(
pageSize
));
}
pageBean
=
cylinderInfoServiceImpl
.
cyinderInfoList
(
pageBean
,
cylinderInfoDto
,
sort
,
appids
);
if
(
cylinderInfoDto
.
getIsWarn
()!=
0
){
pageBean
=
cylinderInfoServiceImpl
.
cyinderOutInfoList
(
pageBean
,
cylinderInfoDto
,
sort
,
appids
);
}
else
{
pageBean
=
cylinderInfoServiceImpl
.
cyinderInfoList
(
pageBean
,
cylinderInfoDto
,
sort
,
appids
);
}
return
ResponseHelper
.
buildResponse
(
pageBean
);
// IPage<CylinderInfo> page;
// if (cylinderInfoDto.getIsWarn() == 0) {
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
9c7f6a51
...
...
@@ -847,4 +847,8 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
public
Page
<
CylinderInfoDto
>
cyinderInfoList
(
Page
<
CylinderInfoDto
>
page
,
CylinderInfoDto
cylinderInfoDto
,
String
sort
,
List
<
String
>
appids
){
return
cylinderInfoMapper
.
cyinderInfoList
(
page
,
cylinderInfoDto
,
sort
,
appids
);
}
public
Page
<
CylinderInfoDto
>
cyinderOutInfoList
(
Page
<
CylinderInfoDto
>
page
,
CylinderInfoDto
cylinderInfoDto
,
String
sort
,
List
<
String
>
appids
){
return
cylinderInfoMapper
.
cyinderOutInfoList
(
page
,
cylinderInfoDto
,
sort
,
appids
);
}
}
\ No newline at end of file
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