Commit e0a79fa6 authored by qk's avatar qk

Update:参数核查无法导出,导出添加处理措施和处理时间。

parent 244d2479
...@@ -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;
} }
...@@ -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")
......
...@@ -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);
......
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;
/** /**
* 车型库控制器 * 车型库控制器
......
...@@ -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
'合格证' '合格证'
......
...@@ -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') &gt;= #{startTime} and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD hh:ss:mm') &gt;= #{startTime}
</if> </if>
<if test="endTime != null and endTime != ''"> <if test="endTime != null and endTime != ''">
and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD') &lt;= #{endTime} and TO_CHAR(t1.CREATION_TIME,'YYYY-MM-DD hh:ss:mm') &lt;= #{endTime}
</if> </if>
<if test="list.size() !=0"> <if test="list.size() !=0">
AND t1.ID IN AND t1.ID IN
......
...@@ -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,t3.USNAME,t2.CREATE_TIME,t4.ORG_NAME,t1.PROJECT,t1.REGULATORY_REQUIREMENTS, t1.HANDLE_TYPE,t1.CHECK_PICTURE_PATH_TWO,t1.REMARKS,t2.CREATE_TIME,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment