Compare commits
No commits in common. "b10cb9ca42f88f87ab5fdd27fe6e42aac071a48c" and "402b6159ba35eb4457f353b1fb17a58cfe21f564" have entirely different histories.
b10cb9ca42
...
402b6159ba
|
|
@ -762,11 +762,11 @@ public class IncomingInspectionTaskControllerService {
|
||||||
.setCount(Math.min(task.getDetectionQty() - count, request.getNum()))
|
.setCount(Math.min(task.getDetectionQty() - count, request.getNum()))
|
||||||
.setPdfDrawings(
|
.setPdfDrawings(
|
||||||
inspectionStandardItemService.lambdaQuery()
|
inspectionStandardItemService.lambdaQuery()
|
||||||
.select(QmsInspectionStandardItem::getId, QmsInspectionStandardItem::getPdfDrawing)
|
.select(QmsInspectionStandardItem::getPdfDrawing)
|
||||||
.eq(QmsInspectionStandardItem::getInspectionStandardId, standard.getId())
|
.eq(QmsInspectionStandardItem::getInspectionStandardId, standard.getId())
|
||||||
.list()
|
.list()
|
||||||
.stream()
|
.stream()
|
||||||
.map(it -> new PdfDrawingVO(it.getId(), it.getPdfDrawing()))
|
.map(QmsInspectionStandardItem::getPdfDrawing)
|
||||||
.toList()
|
.toList()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.nflg.wms.common.pojo.vo;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class PdfDrawingVO {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 检测项ID
|
|
||||||
*/
|
|
||||||
private Long itemId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* pdf地址
|
|
||||||
*/
|
|
||||||
private String pdfUrl;
|
|
||||||
}
|
|
||||||
|
|
@ -12,7 +12,7 @@ public class QmsIncomingInspectionTaskCheckDetailVO {
|
||||||
/**
|
/**
|
||||||
* pdf图纸列表
|
* pdf图纸列表
|
||||||
*/
|
*/
|
||||||
private List<PdfDrawingVO> pdfDrawings;
|
private List<String> pdfDrawings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 样本数量
|
* 样本数量
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,6 @@ import lombok.Data;
|
||||||
@Data
|
@Data
|
||||||
public class QmsIncomingInspectionTaskCheckItemVO {
|
public class QmsIncomingInspectionTaskCheckItemVO {
|
||||||
|
|
||||||
/**
|
|
||||||
* 检查项ID
|
|
||||||
*/
|
|
||||||
private Long itemId;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查项内容ID
|
* 检查项内容ID
|
||||||
*/
|
*/
|
||||||
|
|
@ -39,29 +34,4 @@ public class QmsIncomingInspectionTaskCheckItemVO {
|
||||||
* 判定类型,0:直接判定;1:测量值
|
* 判定类型,0:直接判定;1:测量值
|
||||||
*/
|
*/
|
||||||
private Integer judgmentType;
|
private Integer judgmentType;
|
||||||
|
|
||||||
/**
|
|
||||||
* PDF页码
|
|
||||||
*/
|
|
||||||
private Integer pdfPageNum;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* PDF x轴起始位置
|
|
||||||
*/
|
|
||||||
private Float pdfX;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* PDF y轴起始位置
|
|
||||||
*/
|
|
||||||
private Float pdfY;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* PDF宽度
|
|
||||||
*/
|
|
||||||
private Float pdfWidth;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* PDF高度
|
|
||||||
*/
|
|
||||||
private Float pdfHeight;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,20 +90,9 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getItemsForCheck" resultType="com.nflg.wms.common.pojo.vo.QmsIncomingInspectionTaskCheckItemVO">
|
<select id="getItemsForCheck" resultType="com.nflg.wms.common.pojo.vo.QmsIncomingInspectionTaskCheckItemVO">
|
||||||
SELECT qisi.id as "itemId"
|
SELECT qisic.id as "itemContentId",qisi.item_type,CASE WHEN qisi.item_type=0 THEN qisi.name ELSE qisic.name END as "name",qisic.test_standard,qisic.legend,qisic.judgment_type
|
||||||
, qisic.id as "itemContentId"
|
|
||||||
, qisi.item_type
|
|
||||||
, CASE WHEN qisi.item_type = 0 THEN qisi.name ELSE qisic.name END as "name"
|
|
||||||
, qisic.test_standard
|
|
||||||
, qisic.legend
|
|
||||||
, qisic.judgment_type
|
|
||||||
, qisic.pdf_page_num
|
|
||||||
, qisic.pdf_x
|
|
||||||
, qisic.pdf_y
|
|
||||||
, qisic.pdf_width
|
|
||||||
, qisic.pdf_height
|
|
||||||
FROM qms_inspection_standard_item qisi
|
FROM qms_inspection_standard_item qisi
|
||||||
INNER JOIN qms_inspection_standard_item_content qisic ON qisi."id" = qisic.inspection_standard_item_id
|
INNER JOIN qms_inspection_standard_item_content qisic ON qisi."id"=qisic.inspection_standard_item_id
|
||||||
WHERE qisi.inspection_standard_id = #{id}
|
WHERE qisi.inspection_standard_id=#{id}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue