Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ADC-uniformity
Project
Project
Details
Activity
Releases
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
凡昌松
ADC-uniformity
Commits
e0a79fa6
Commit
e0a79fa6
authored
Dec 09, 2021
by
qk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update:参数核查无法导出,导出添加处理措施和处理时间。
parent
244d2479
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
195 additions
and
156 deletions
+195
-156
CertificationDTO.java
...src/main/java/com/adc/da/dto/reqDTO/CertificationDTO.java
+7
-2
DownCheckFalseDTO.java
...rc/main/java/com/adc/da/dto/resDTO/DownCheckFalseDTO.java
+6
-0
CheckDataCheckResultController.java
.../da/system/controller/CheckDataCheckResultController.java
+1
-0
CheckRealVehicleVerificationController.java
...em/controller/CheckRealVehicleVerificationController.java
+159
-140
VehicleDatabaseController.java
...m/adc/da/system/controller/VehicleDatabaseController.java
+12
-0
CheckDataCheckResultMapper.xml
...rces/mybatis/mapper/system/CheckDataCheckResultMapper.xml
+2
-0
CheckObdMapper.xml
...c/main/resources/mybatis/mapper/system/CheckObdMapper.xml
+2
-2
CheckRealVehicleVerificationDao.xml
...mybatis/mapper/system/CheckRealVehicleVerificationDao.xml
+6
-12
No files found.
adcbs-check/src/main/java/com/adc/da/dto/reqDTO/CertificationDTO.java
View file @
e0a79fa6
...
@@ -165,7 +165,7 @@ public class CertificationDTO extends BaseReqPageEntity {
...
@@ -165,7 +165,7 @@ public class CertificationDTO extends BaseReqPageEntity {
/**
/**
* 操作人名称
* 操作人名称
*/
*/
@Excel
(
name
=
"操作人"
,
width
=
50
)
//
@Excel(name ="操作人",width = 50)
private
transient
String
usname
;
private
transient
String
usname
;
/**
/**
...
@@ -178,6 +178,11 @@ public class CertificationDTO extends BaseReqPageEntity {
...
@@ -178,6 +178,11 @@ public class CertificationDTO extends BaseReqPageEntity {
/**
/**
* 事业部
* 事业部
*/
*/
@Excel
(
name
=
"事业部"
,
width
=
50
)
//
@Excel(name ="事业部",width = 50)
private
transient
String
orgName
;
private
transient
String
orgName
;
@Excel
(
name
=
"处理措施"
,
width
=
50
)
private
String
checkEnd
;
@Excel
(
name
=
"处理时间"
,
width
=
50
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
private
Date
endDate
;
}
}
adcbs-check/src/main/java/com/adc/da/dto/resDTO/DownCheckFalseDTO.java
View file @
e0a79fa6
...
@@ -28,6 +28,12 @@ public class DownCheckFalseDTO {
...
@@ -28,6 +28,12 @@ public class DownCheckFalseDTO {
private
String
fromData
;
private
String
fromData
;
@Excel
(
name
=
"核查结果"
,
orderNum
=
"1"
,
width
=
50
)
@Excel
(
name
=
"核查结果"
,
orderNum
=
"1"
,
width
=
50
)
private
String
checkResult
;
private
String
checkResult
;
@Excel
(
name
=
"处理措施"
,
orderNum
=
"1"
,
width
=
50
)
private
String
checkEnd
;
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
endDate
;
@Excel
(
name
=
"处理时间"
,
orderNum
=
"1"
,
width
=
50
)
private
String
endDateStr
;
@Excel
(
name
=
"核查时间"
,
orderNum
=
"1"
,
width
=
50
)
@Excel
(
name
=
"核查时间"
,
orderNum
=
"1"
,
width
=
50
)
private
String
checkTimeStr
;
private
String
checkTimeStr
;
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
...
...
adcbs-check/src/main/java/com/adc/da/system/controller/CheckDataCheckResultController.java
View file @
e0a79fa6
...
@@ -117,6 +117,7 @@ public class CheckDataCheckResultController extends BaseController {
...
@@ -117,6 +117,7 @@ public class CheckDataCheckResultController extends BaseController {
carGroup
,
editionCode
,
paramName
);
carGroup
,
editionCode
,
paramName
);
for
(
DownCheckFalseDTO
downCheckFalseDTO
:
datas
)
{
for
(
DownCheckFalseDTO
downCheckFalseDTO
:
datas
)
{
downCheckFalseDTO
.
setCheckTimeStr
(
DateUtils
.
dateToString
(
downCheckFalseDTO
.
getCheckTime
(),
"yyyy-MM-dd HH:mm:ss"
));
downCheckFalseDTO
.
setCheckTimeStr
(
DateUtils
.
dateToString
(
downCheckFalseDTO
.
getCheckTime
(),
"yyyy-MM-dd HH:mm:ss"
));
downCheckFalseDTO
.
setEndDateStr
(
DateUtils
.
dateToString
(
downCheckFalseDTO
.
getEndDate
(),
"yyyy-MM-dd HH:mm:ss"
));
downCheckFalseDTO
.
setCheckResult
(
downCheckFalseDTO
.
getCheckResult
().
equals
(
"2"
)?
"处理完成"
:
"不一致"
);
downCheckFalseDTO
.
setCheckResult
(
downCheckFalseDTO
.
getCheckResult
().
equals
(
"2"
)?
"处理完成"
:
"不一致"
);
}
}
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
DownCheckFalseDTO
.
class
,
datas
);
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
DownCheckFalseDTO
.
class
,
datas
);
...
...
adcbs-check/src/main/java/com/adc/da/system/controller/CheckRealVehicleVerificationController.java
View file @
e0a79fa6
This diff is collapsed.
Click to expand it.
adcbs-check/src/main/java/com/adc/da/system/controller/VehicleDatabaseController.java
View file @
e0a79fa6
package
com
.
adc
.
da
.
system
.
controller
;
package
com
.
adc
.
da
.
system
.
controller
;
import
cn.afterturn.easypoi.excel.ExcelExportUtil
;
import
cn.afterturn.easypoi.excel.entity.ExportParams
;
import
cn.afterturn.easypoi.excel.entity.enmus.ExcelType
;
import
com.adc.da.dto.resDTO.VehicleDatabaseDetailsDto
;
import
com.adc.da.system.entity.VehicleDatabase
;
import
com.adc.da.system.entity.VehicleDatabase
;
import
com.adc.da.system.entity.VehicleDatabaseDetails
;
import
com.adc.da.system.entity.VehicleDatabaseDetails
;
import
com.adc.da.system.service.IVehicleDatabaseDetailsService
;
import
com.adc.da.system.service.IVehicleDatabaseDetailsService
;
import
com.adc.da.system.service.IVehicleDatabaseService
;
import
com.adc.da.system.service.IVehicleDatabaseService
;
import
com.adc.da.util.ReadExcel
;
import
com.adc.da.util.exception.AdcDaBaseException
;
import
com.adc.da.util.http.ResponseMessage
;
import
com.adc.da.util.http.ResponseMessage
;
import
com.adc.da.util.http.Result
;
import
com.adc.da.util.http.Result
;
import
com.adc.da.util.utils.IOUtils
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
...
@@ -21,7 +29,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -21,7 +29,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* 车型库控制器
* 车型库控制器
...
...
adcbs-check/src/main/resources/mybatis/mapper/system/CheckDataCheckResultMapper.xml
View file @
e0a79fa6
...
@@ -73,6 +73,8 @@
...
@@ -73,6 +73,8 @@
CDCR.PARAM_NAME as paramName,
CDCR.PARAM_NAME as paramName,
CDCR.CHECK_FORM_DATA AS fromData,
CDCR.CHECK_FORM_DATA AS fromData,
CDCR.CHECK_RESULT AS checkResult,
CDCR.CHECK_RESULT AS checkResult,
CDCR.CHECK_END AS checkEnd,
CDCR.END_DATE AS endDate,
CASE CDCR.CHECK_TYPE
CASE CDCR.CHECK_TYPE
WHEN '2' THEN
WHEN '2' THEN
'合格证'
'合格证'
...
...
adcbs-check/src/main/resources/mybatis/mapper/system/CheckObdMapper.xml
View file @
e0a79fa6
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
AND t3.USNAME LIKE '%'||#{operator}||'%'
AND t3.USNAME LIKE '%'||#{operator}||'%'
</if>
</if>
<if
test=
"startTime != null and startTime != ''"
>
<if
test=
"startTime != null and startTime != ''"
>
and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD')
>
= #{startTime}
and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD
hh:ss:mm
')
>
= #{startTime}
</if>
</if>
<if
test=
"endTime != null and endTime != ''"
>
<if
test=
"endTime != null and endTime != ''"
>
and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD')
<
= #{endTime}
and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD
hh:ss:mm
')
<
= #{endTime}
</if>
</if>
<if
test=
"list.size() !=0"
>
<if
test=
"list.size() !=0"
>
AND t1.ID IN
AND t1.ID IN
...
...
adcbs-check/src/main/resources/mybatis/mapper/system/CheckRealVehicleVerificationDao.xml
View file @
e0a79fa6
...
@@ -309,19 +309,13 @@
...
@@ -309,19 +309,13 @@
<select
id=
"getCheckRealVehicleVer3"
resultType=
"com.adc.da.dto.reqDTO.CertificationDTO"
>
<select
id=
"getCheckRealVehicleVer3"
resultType=
"com.adc.da.dto.reqDTO.CertificationDTO"
>
SELECT
SELECT
t1.ID,t2.VEHICLE_SERIES,t1.VEHICLE_TYPE,t1.PARAMETER_NAME,t1.PARAMETER,t1.DISCHARGE_STAGE,t1.TYPE,t1.RECORD_FAULT_CODE,
t1.ID,t2.VEHICLE_SERIES,t1.VEHICLE_TYPE,t1.PARAMETER_NAME,t1.PARAMETER,t1.DISCHARGE_STAGE,t1.TYPE,t1.RECORD_FAULT_CODE,
t1.HANDLE_TYPE,t1.CHECK_PICTURE_PATH_TWO,t1.REMARKS,t
3.USNAME,t2.CREATE_TIME,t4.ORG_NA
ME,t1.PROJECT,t1.REGULATORY_REQUIREMENTS,
t1.HANDLE_TYPE,t1.CHECK_PICTURE_PATH_TWO,t1.REMARKS,t
2.CREATE_TI
ME,t1.PROJECT,t1.REGULATORY_REQUIREMENTS,
t1.VEHICLE_TYPE_NAME,t1.STANDARD_NAME,t1.CHECK_RESULT,t1.CHECK_PICTURE_PATH
t1.VEHICLE_TYPE_NAME,t1.STANDARD_NAME,t1.CHECK_RESULT,t1.CHECK_PICTURE_PATH
,t1.PARAM_CONFIG,t1.CHECK_END,t1.END_DATE
FROM
FROM
NERDS.CHECK_REAL_VEHICLE_VER t1
NERDS.CHECK_REAL_VEHICLE_VER t1
LEFT JOIN
LEFT JOIN
CHECK_MODEL_SERIES_LIST t2
NERDS.
CHECK_MODEL_SERIES_LIST t2
ON t1.VEHICLE_SERIES_ID = t2.ID
ON t1.VEHICLE_SERIES_ID = t2.ID
LEFT JOIN
TS_USER t3
ON t3.USID = t2.OPERATOR
LEFT JOIN
TS_ORG t4
ON t2.BASE = t4.ID
WHERE
WHERE
1=1
1=1
AND t1.CHECK_TYPE is null
AND t1.CHECK_TYPE is null
...
@@ -345,7 +339,7 @@
...
@@ -345,7 +339,7 @@
SELECT
SELECT
ID
ID
FROM
FROM
CHECK_MODEL_SERIES_LIST
NERDS.
CHECK_MODEL_SERIES_LIST
WHERE
WHERE
VEHICLE_TYPE_AND_GROUP LIKE '%'||#{vehicleTypeAndGroup}||'%'
VEHICLE_TYPE_AND_GROUP LIKE '%'||#{vehicleTypeAndGroup}||'%'
...
@@ -359,7 +353,7 @@
...
@@ -359,7 +353,7 @@
</if>
</if>
<if
test=
"detailType == 3"
>
<if
test=
"detailType == 3"
>
AND CREATE_TIME=(SELECT MAX(CREATE_TIME) FROM
AND CREATE_TIME=(SELECT MAX(CREATE_TIME) FROM
CHECK_MODEL_SERIES_LIST WHERE REAL_MOULD_STATUS = '0' and VEHICLE_TYPE_AND_GROUP LIKE '%'||#{vehicleTypeAndGroup}||'%')
NERDS.
CHECK_MODEL_SERIES_LIST WHERE REAL_MOULD_STATUS = '0' and VEHICLE_TYPE_AND_GROUP LIKE '%'||#{vehicleTypeAndGroup}||'%')
</if>
</if>
<if
test=
"detailType == 4"
>
<if
test=
"detailType == 4"
>
AND STAND_TIME=(SELECT MAX(STAND_TIME) FROM
AND STAND_TIME=(SELECT MAX(STAND_TIME) FROM
...
@@ -375,7 +369,7 @@
...
@@ -375,7 +369,7 @@
t2.VEHICLE_TYPE_AND_GROUP
t2.VEHICLE_TYPE_AND_GROUP
FROM
FROM
NERDS.CHECK_REAL_VEHICLE_VER t1
NERDS.CHECK_REAL_VEHICLE_VER t1
LEFT JOIN CHECK_MODEL_SERIES_LIST t2
LEFT JOIN
NERDS.
CHECK_MODEL_SERIES_LIST t2
ON t2.ID = t1.VEHICLE_SERIES_ID
ON t2.ID = t1.VEHICLE_SERIES_ID
WHERE
WHERE
...
...
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