bug修复

This commit is contained in:
guoshengxiong 2024-08-05 10:08:07 +08:00
parent 7b0a7e8aaa
commit 3a5d30950c
3 changed files with 12 additions and 2 deletions

View File

@ -382,11 +382,12 @@ public class DownloadController {
@ApiImplicitParam(name = "inspectManId", value = "检查人", paramType = "query", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectManId", value = "检查人", paramType = "query", required = false, dataType = "String"),
@ApiImplicitParam(name = "inspectStartTime", value = "检查开始时间", paramType = "query", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectStartTime", value = "检查开始时间", paramType = "query", required = false, dataType = "String"),
@ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "query", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "query", required = false, dataType = "String"),
@ApiImplicitParam(name = "enterpriseId", value = "合作单位id", paramType = "query", required = false, dataType = "String"),
}) })
@GetMapping(value = "/exporExcelQualityInspectionRecord") @GetMapping(value = "/exporExcelQualityInspectionRecord")
public void exporExcelQualityInspectionRecord(HttpServletResponse response, String projectSn, String regionId, Integer status, Integer recordStatus, Integer urgentLevel, public void exporExcelQualityInspectionRecord(HttpServletResponse response, String projectSn, String regionId, Integer status, Integer recordStatus, Integer urgentLevel,
Integer level, String changeId, String creatorId, String reviewId, String verifyManId, String inspectManId, Integer level, String changeId, String creatorId, String reviewId, String verifyManId, String inspectManId,
String inspectStartTime, String inspectEndTime) { String inspectStartTime, String inspectEndTime,String enterpriseId) {
Map<String, Object> map = new HashMap<>(16); Map<String, Object> map = new HashMap<>(16);
map.put("projectSn", projectSn); map.put("projectSn", projectSn);
map.put("regionId", regionId); map.put("regionId", regionId);
@ -401,6 +402,7 @@ public class DownloadController {
map.put("status", status); map.put("status", status);
map.put("inspectStartTime", inspectStartTime); map.put("inspectStartTime", inspectStartTime);
map.put("inspectEndTime", inspectEndTime); map.put("inspectEndTime", inspectEndTime);
map.put("enterpriseId", enterpriseId);
qualityInspectionRecordService.exporExcelQualityInspectionRecord(response, map); qualityInspectionRecordService.exporExcelQualityInspectionRecord(response, map);
} }
@ -419,11 +421,12 @@ public class DownloadController {
@ApiImplicitParam(name = "inspectManId", value = "检查人", paramType = "query", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectManId", value = "检查人", paramType = "query", required = false, dataType = "String"),
@ApiImplicitParam(name = "inspectStartTime", value = "检查开始时间", paramType = "query", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectStartTime", value = "检查开始时间", paramType = "query", required = false, dataType = "String"),
@ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "query", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "query", required = false, dataType = "String"),
@ApiImplicitParam(name = "enterpriseId", value = "合作单位id", paramType = "query", required = false, dataType = "String"),
}) })
@GetMapping(value = "/exportExcelXzSecurityQualityInspectionRecord") @GetMapping(value = "/exportExcelXzSecurityQualityInspectionRecord")
public void exportExcelXzSecurityQualityInspectionRecord(HttpServletResponse response, String projectSn, String regionId, Integer status, Integer recordStatus, Integer urgentLevel, public void exportExcelXzSecurityQualityInspectionRecord(HttpServletResponse response, String projectSn, String regionId, Integer status, Integer recordStatus, Integer urgentLevel,
Integer level, String changeId, String creatorId, String reviewId, String verifyManId, String inspectManId, Integer level, String changeId, String creatorId, String reviewId, String verifyManId, String inspectManId,
String inspectStartTime, String inspectEndTime) { String inspectStartTime, String inspectEndTime,String enterpriseId) {
Map<String, Object> map = new HashMap<>(16); Map<String, Object> map = new HashMap<>(16);
map.put("projectSn", projectSn); map.put("projectSn", projectSn);
map.put("regionId", regionId); map.put("regionId", regionId);
@ -438,6 +441,7 @@ public class DownloadController {
map.put("status", status); map.put("status", status);
map.put("inspectStartTime", inspectStartTime); map.put("inspectStartTime", inspectStartTime);
map.put("inspectEndTime", inspectEndTime); map.put("inspectEndTime", inspectEndTime);
map.put("enterpriseId", enterpriseId);
qualityInspectionRecordService.exportExcelXzSecurityQualityInspectionRecord(response, map); qualityInspectionRecordService.exportExcelXzSecurityQualityInspectionRecord(response, map);
} }

View File

@ -491,6 +491,9 @@
WHERE t.project_sn = #{param.projectSn} WHERE t.project_sn = #{param.projectSn}
<include refid="whereCondition"> <include refid="whereCondition">
</include> </include>
<if test="param.enterpriseId != null and param.enterpriseId != ''">
and t.enterprise_id = #{param.enterpriseId}
</if>
order by t.create_time desc order by t.create_time desc
</select> </select>

View File

@ -519,6 +519,9 @@
WHERE t.project_sn = #{param.projectSn} WHERE t.project_sn = #{param.projectSn}
<include refid="whereCondition"> <include refid="whereCondition">
</include> </include>
<if test="param.enterpriseId != null and param.enterpriseId != ''">
and t.enterprise_id = #{param.enterpriseId}
</if>
order by t.create_time desc order by t.create_time desc
</select> </select>