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
Show 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
package
com
.
adc
.
da
.
system
.
controller
;
package
com
.
adc
.
da
.
system
.
controller
;
import
com.adc.da.dto.reqDTO.CertificationDTO
;
import
com.adc.da.dto.reqDTO.CheckRealVehicleVerificationDto
;
import
com.adc.da.dto.reqDTO.CheckRealVehicleVerificationDto
;
import
com.adc.da.dto.reqDTO.RVVObdDTO
;
import
com.adc.da.dto.reqDTO.RegulationsDTO
;
import
com.adc.da.dto.reqDTO.ScanCodeDTO
;
import
com.adc.da.excel.poi.excel.ExcelExportUtil
;
import
com.adc.da.excel.poi.excel.entity.ExportParams
;
import
com.adc.da.excel.poi.excel.entity.enums.ExcelType
;
import
com.adc.da.system.entity.CheckModelSeriesList
;
import
com.adc.da.system.entity.CheckRealVehicleVerification
;
import
com.adc.da.system.entity.CheckRealVehicleVerification
;
import
com.adc.da.system.service.ICheckRealVehicleVerificationService
;
import
com.adc.da.system.service.ICheckRealVehicleVerificationService
;
import
com.adc.da.util.FileUtil
;
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.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
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.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -21,6 +35,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -21,6 +35,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.OutputStream
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
/**
/**
* 实车核查第三页面
* 实车核查第三页面
...
@@ -347,147 +366,147 @@ public class CheckRealVehicleVerificationController {
...
@@ -347,147 +366,147 @@ public class CheckRealVehicleVerificationController {
return
Result
.
success
(
"200"
,
"待解决核查分页查询"
,
return
Result
.
success
(
"200"
,
"待解决核查分页查询"
,
checkRealVehicleVerificationService
.
getCheckRealVehicleVerPage
(
checkRealVehicleVer
));
checkRealVehicleVerificationService
.
getCheckRealVehicleVerPage
(
checkRealVehicleVer
));
}
}
//
// /**
/**
// * 导出
* 导出
// * @param response
* @param response
// * @param request
* @param request
// * @return
* @return
// */
*/
// @ApiOperation(value ="导出")
@ApiOperation
(
value
=
"导出"
)
// @GetMapping("/downTemplate")
@GetMapping
(
"/downTemplate"
)
// public ResponseMessage exportObdDetail(HttpServletResponse response, HttpServletRequest request,
public
ResponseMessage
exportObdDetail
(
HttpServletResponse
response
,
HttpServletRequest
request
,
// String id,String checkType,String handleType,String parameterName,
String
id
,
String
checkType
,
String
handleType
,
String
parameterName
,
// String project){
String
project
){
// OutputStream os = null;
OutputStream
os
=
null
;
// Workbook workbook = null;
Workbook
workbook
=
null
;
// List<String> ids = new ArrayList<>();
List
<
String
>
ids
=
new
ArrayList
<>();
// try {
try
{
// if("1".equals(checkType)){
if
(
"1"
.
equals
(
checkType
)){
// response.setHeader("Content-Disposition",
response
.
setHeader
(
"Content-Disposition"
,
// "attachment; filename=" + ReadExcel.encodeFileName( "OBD核查待解决问题.xlsx", request));
"attachment; filename="
+
ReadExcel
.
encodeFileName
(
"OBD核查待解决问题.xlsx"
,
request
));
// }else if("2".equals(checkType)){
}
else
if
(
"2"
.
equals
(
checkType
)){
// response.setHeader("Content-Disposition",
response
.
setHeader
(
"Content-Disposition"
,
// "attachment; filename=" + ReadExcel.encodeFileName( "扫码核查待解决问题.xlsx", request));
"attachment; filename="
+
ReadExcel
.
encodeFileName
(
"扫码核查待解决问题.xlsx"
,
request
));
// }else if("3".equals(checkType)){
}
else
if
(
"3"
.
equals
(
checkType
)){
// response.setHeader("Content-Disposition",
response
.
setHeader
(
"Content-Disposition"
,
// "attachment; filename=" + ReadExcel.encodeFileName( "认证一致性待解决问题.xlsx", request));
"attachment; filename="
+
ReadExcel
.
encodeFileName
(
"认证一致性待解决问题.xlsx"
,
request
));
// }else if("4".equals(checkType)){
}
else
if
(
"4"
.
equals
(
checkType
)){
// response.setHeader("Content-Disposition",
response
.
setHeader
(
"Content-Disposition"
,
// "attachment; filename=" + ReadExcel.encodeFileName( "法规待解决问题.xlsx", request));
"attachment; filename="
+
ReadExcel
.
encodeFileName
(
"法规待解决问题.xlsx"
,
request
));
// }
}
// response.setContentType("application/force-download");
response
.
setContentType
(
"application/force-download"
);
// ExportParams exportParams = new ExportParams();
ExportParams
exportParams
=
new
ExportParams
();
// exportParams.setType(ExcelType.XSSF);
exportParams
.
setType
(
ExcelType
.
XSSF
);
// if(StringUtils.isNotBlank(id)){
if
(
StringUtils
.
isNotBlank
(
id
)){
// ids = Arrays.asList(id.split(","));
ids
=
Arrays
.
asList
(
id
.
split
(
","
));
// }
}
// if("1".equals(checkType)) {
if
(
"1"
.
equals
(
checkType
))
{
// List<RVVObdDTO> dates = checkRealVehicleVerificationService.getCheckRealVehicleVer(ids,checkType,
List
<
RVVObdDTO
>
dates
=
checkRealVehicleVerificationService
.
getCheckRealVehicleVer
(
ids
,
checkType
,
// handleType,parameterName);
handleType
,
parameterName
);
// if(dates.size() != 0) {
if
(
dates
.
size
()
!=
0
)
{
// for (RVVObdDTO c : dates) {
for
(
RVVObdDTO
c
:
dates
)
{
// if (StringUtils.isNotBlank(c.getHandleType())) {
if
(
StringUtils
.
isNotBlank
(
c
.
getHandleType
()))
{
// switch (c.getHandleType()) {
switch
(
c
.
getHandleType
())
{
// case "0":
case
"0"
:
// c.setHandleType("未处理");
c
.
setHandleType
(
"未处理"
);
// break;
break
;
// case "1":
case
"1"
:
// c.setHandleType("已处理");
c
.
setHandleType
(
"已处理"
);
// break;
break
;
// }
}
// }
}
// if (c.getCheckPicturePathTwo() != null){
if
(
c
.
getCheckPicturePathTwo
()
!=
null
){
// c.setCheckPictureTwo(FileUtil.readFileByBytes(uploadFile+c.getCheckPicturePathTwo()));
c
.
setCheckPictureTwo
(
FileUtil
.
readFileByBytes
(
uploadFile
+
c
.
getCheckPicturePathTwo
()));
// }
}
// if (c.getCheckPicturePath() != null){
if
(
c
.
getCheckPicturePath
()
!=
null
){
// c.setCheckPictureOne(FileUtil.readFileByBytes(uploadFile+c.getCheckPicturePath()));
c
.
setCheckPictureOne
(
FileUtil
.
readFileByBytes
(
uploadFile
+
c
.
getCheckPicturePath
()));
// }
}
// }
}
// }else {
}
else
{
// dates = new ArrayList<>();
dates
=
new
ArrayList
<>();
// }
}
// workbook = ExcelExportUtil.exportExcel(exportParams, RVVObdDTO.class, dates);
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
RVVObdDTO
.
class
,
dates
);
// }
}
// if("2".equals(checkType)) {
if
(
"2"
.
equals
(
checkType
))
{
// List<ScanCodeDTO> dates = checkRealVehicleVerificationService.getCheckRealVehicleVer1(ids,checkType,handleType,parameterName);
List
<
ScanCodeDTO
>
dates
=
checkRealVehicleVerificationService
.
getCheckRealVehicleVer1
(
ids
,
checkType
,
handleType
,
parameterName
);
if
(
dates
.
size
()
!=
0
)
{
for
(
ScanCodeDTO
c
:
dates
)
{
if
(
StringUtils
.
isNotBlank
(
c
.
getType
()))
{
switch
(
c
.
getType
())
{
case
"0"
:
c
.
setType
(
"是"
);
break
;
case
"1"
:
c
.
setType
(
"否"
);
break
;
}
}
if
(
StringUtils
.
isNotBlank
(
c
.
getCheckPicturePathTwo
()))
{
switch
(
c
.
getCheckPicturePathTwo
())
{
case
"0"
:
c
.
setCheckPicturePathTwo
(
"是"
);
break
;
case
"1"
:
c
.
setCheckPicturePathTwo
(
"否"
);
break
;
}
}
}
}
else
{
dates
=
new
ArrayList
<>();
}
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
ScanCodeDTO
.
class
,
dates
);
}
if
(
"4"
.
equals
(
checkType
))
{
List
<
RegulationsDTO
>
dates
=
checkRealVehicleVerificationService
.
getCheckRealVehicleVer2
(
ids
,
checkType
,
handleType
,
parameterName
,
project
);
if
(
dates
.
size
()
==
0
)
{
dates
=
new
ArrayList
<>();
}
for
(
RegulationsDTO
regulationsDTO
:
dates
)
{
if
(
regulationsDTO
.
getCheckPicturePathTwo
()
!=
null
){
regulationsDTO
.
setCheckPictureTwo
(
FileUtil
.
readFileByBytes
(
uploadFile
+
regulationsDTO
.
getCheckPicturePathTwo
()));
}
if
(
regulationsDTO
.
getCheckPicturePath
()
!=
null
){
regulationsDTO
.
setCheckPictureOne
(
FileUtil
.
readFileByBytes
(
uploadFile
+
regulationsDTO
.
getCheckPicturePath
()));
}
}
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
RegulationsDTO
.
class
,
dates
);
}
if
(
"3"
.
equals
(
checkType
))
{
List
<
CertificationDTO
>
dates
=
checkRealVehicleVerificationService
.
getCheckRealVehicleVer3
(
ids
,
checkType
,
handleType
,
parameterName
);
// if(dates.size() != 0) {
// if(dates.size() != 0) {
// for (ScanCodeDTO c : dates) {
// if (StringUtils.isNotBlank(c.getType())) {
// switch (c.getType()) {
// case "0":
// c.setType("是");
// break;
// case "1":
// c.setType("否");
// break;
// }
// }
// if (StringUtils.isNotBlank(c.getCheckPicturePathTwo())) {
// switch (c.getCheckPicturePathTwo()) {
// case "0":
// c.setCheckPicturePathTwo("是");
// break;
// case "1":
// c.setCheckPicturePathTwo("否");
// break;
// }
// }
// }
// }else {
// dates = new ArrayList<>();
// }
// workbook = ExcelExportUtil.exportExcel(exportParams, ScanCodeDTO.class, dates);
// }
// if("4".equals(checkType)) {
// List<RegulationsDTO> dates = checkRealVehicleVerificationService.getCheckRealVehicleVer2(ids,checkType,handleType,parameterName,project);
// if(dates.size() == 0) {
// dates = new ArrayList<>();
// dates = new ArrayList<>();
// }
// }
// for (RegulationsDTO regulationsDTO : dates) {
for
(
CertificationDTO
regulationsDTO
:
dates
)
{
// if (regulationsDTO.getCheckPicturePathTwo() != null){
if
(
regulationsDTO
.
getCheckPicturePathTwo
()
!=
null
){
// regulationsDTO.setCheckPictureTwo(FileUtil.readFileByBytes(uploadFile+regulationsDTO.getCheckPicturePathTwo()));
regulationsDTO
.
setCheckPictureTwo
(
FileUtil
.
readFileByBytes
(
uploadFile
+
regulationsDTO
.
getCheckPicturePathTwo
()));
// }
}
// if (regulationsDTO.getCheckPicturePath() != null){
if
(
regulationsDTO
.
getCheckPicturePath
()
!=
null
){
// regulationsDTO.setCheckPictureOne(FileUtil.readFileByBytes(uploadFile+regulationsDTO.getCheckPicturePath()));
regulationsDTO
.
setCheckPictureOne
(
FileUtil
.
readFileByBytes
(
uploadFile
+
regulationsDTO
.
getCheckPicturePath
()));
// }
}
// }
}
// workbook = ExcelExportUtil.exportExcel(exportParams, RegulationsDTO.class, dates);
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
CertificationDTO
.
class
,
dates
);
// }
}
// if("3".equals(checkType)) {
os
=
response
.
getOutputStream
();
// List<CertificationDTO> dates = checkRealVehicleVerificationService.getCheckRealVehicleVer3(ids,checkType,handleType,parameterName);
workbook
.
write
(
os
);
//// if(dates.size() != 0) {
os
.
flush
();
//// dates = new ArrayList<>();
}
catch
(
Exception
e
)
{
//// }
e
.
printStackTrace
();
// for (CertificationDTO regulationsDTO : dates) {
throw
new
AdcDaBaseException
(
"下载文件失败,请重试"
);
// if (regulationsDTO.getCheckPicturePathTwo() != null){
}
finally
{
// regulationsDTO.setCheckPictureTwo(FileUtil.readFileByBytes(uploadFile+regulationsDTO.getCheckPicturePathTwo()));
IOUtils
.
closeQuietly
(
os
);
// }
}
// if (regulationsDTO.getCheckPicturePath() != null){
return
Result
.
success
(
"0"
,
"操作成功"
);
// regulationsDTO.setCheckPictureOne(FileUtil.readFileByBytes(uploadFile+regulationsDTO.getCheckPicturePath()));
}
// }
/**
// }
* 查询上次改动不一致性的数据
// workbook = ExcelExportUtil.exportExcel(exportParams, CertificationDTO.class, dates);
* @param
// }
* @return
// os = response.getOutputStream();
*/
// workbook.write(os);
@GetMapping
(
"/getLastCheckRealVehicleVer"
)
// os.flush();
public
ResponseMessage
getLastCheckRealVehicleVer
(
CheckModelSeriesList
checkModelSeriesList
){
// } catch (Exception e) {
return
Result
.
success
(
"200"
,
"查询成功"
,
checkRealVehicleVerificationService
.
getLastCheckRealVehicleVer
(
checkModelSeriesList
));
// e.printStackTrace();
// throw new AdcDaBaseException("下载文件失败,请重试");
}
// } finally {
// IOUtils.closeQuietly(os);
// }
// return Result.success("0", "操作成功");
// }
// /**
// * 查询上次改动不一致性的数据
// * @param
// * @return
// */
// @GetMapping("/getLastCheckRealVehicleVer")
// public ResponseMessage getLastCheckRealVehicleVer(CheckModelSeriesList checkModelSeriesList){
// return Result.success("200","查询成功",checkRealVehicleVerificationService.getLastCheckRealVehicleVer(checkModelSeriesList));
//
// }
}
}
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