Browse Source

添加查询结果

master
shenzhouyu 1 month ago
parent
commit
11d768d011
  1. 1
      src/main/java/com/xujie/sys/modules/pms/service/Impl/DmServiceImpl.java
  2. 4
      src/main/resources/mapper/pms/DmFaiMapper.xml
  3. 8
      src/main/resources/mapper/pms/DmMapper.xml

1
src/main/java/com/xujie/sys/modules/pms/service/Impl/DmServiceImpl.java

@ -928,7 +928,6 @@ public class DmServiceImpl implements DmService {
partData.setBuNo(data.getBuNo()); partData.setBuNo(data.getBuNo());
partData.setAttributeNo(data.getAttributeNo()); partData.setAttributeNo(data.getAttributeNo());
partData.setAttributeType(data.getAttributeType()); partData.setAttributeType(data.getAttributeType());
partData.setInspectionTypeNo(data.getInspectionTypeNo());
// 查询模板的基础数据沿用 qc_template 的内容 // 查询模板的基础数据沿用 qc_template 的内容
DmTemplateData templateData2 = dmMapper.selectDmTemplateData(partData); DmTemplateData templateData2 = dmMapper.selectDmTemplateData(partData);

4
src/main/resources/mapper/pms/DmFaiMapper.xml

@ -156,8 +156,8 @@
c.method_name, c.method_name,
c.method_remark c.method_remark
FROM dm_fai_detailed_record as a FROM dm_fai_detailed_record as a
LEFT JOIN qc_method_item as b on a.site = b.site and a.item_no = b.ItemNo and a.bu_no = b.bu_no
LEFT JOIN qc_method as c on b.site = c.site and b.method_no = c.method_no and b.bu_no = c.bu_no
LEFT JOIN dm_properties_item as b on a.site = b.site and a.item_no = b.ItemNo and a.bu_no = b.bu_no
LEFT JOIN dm_method as c on b.site = c.site and b.check_type = c.method_no and b.bu_no = c.bu_no
WHERE a.inspection_no = #{inspectionNo} and a.site = #{site} and a.bu_no = #{buNo} WHERE a.inspection_no = #{inspectionNo} and a.site = #{site} and a.bu_no = #{buNo}
order by a.order_id order by a.order_id
</select> </select>

8
src/main/resources/mapper/pms/DmMapper.xml

@ -278,8 +278,8 @@
c.method_name, c.method_name,
c.method_remark c.method_remark
FROM dm_ipqc_detailed_record as a FROM dm_ipqc_detailed_record as a
LEFT JOIN qc_method_item as b on a.site = b.site and a.item_no = b.ItemNo and a.bu_no = b.bu_no
LEFT JOIN qc_method as c on b.site = c.site and b.method_no = c.method_no and b.bu_no = c.bu_no
LEFT JOIN dm_properties_item as b on a.site = b.site and a.item_no = b.ItemNo and a.bu_no = b.bu_no
LEFT JOIN dm_method as c on b.site = c.site and b.check_type = c.method_no and b.bu_no = c.bu_no
WHERE a.inspection_no = #{inspectionNo} and a.site = #{site} and a.bu_no = #{buNo} WHERE a.inspection_no = #{inspectionNo} and a.site = #{site} and a.bu_no = #{buNo}
order by a.order_id order by a.order_id
</select> </select>
@ -1164,7 +1164,8 @@
SELECT SELECT
qt.template_id, qt.template_id,
qt.template_name, qt.template_name,
qit.inspection_type_name
qt.inspection_type_no,
dbo.dm_get_inspection_type_name(qt.site, qt.inspection_type_no) as inspectionTypeName
FROM dm_template as qt FROM dm_template as qt
LEFT JOIN qc_inspection_type AS qit ON qt.inspection_type_no = qit.inspection_type_no and qt.site = qit.site LEFT JOIN qc_inspection_type AS qit ON qt.inspection_type_no = qit.inspection_type_no and qt.site = qit.site
<where> <where>
@ -1274,6 +1275,7 @@
AND epi.inspection_type_no = #{query.inspectionTypeNo} AND epi.inspection_type_no = #{query.inspectionTypeNo}
</if> </if>
</where> </where>
order by epi.ItemNo
</select> </select>
<select id="getDmPropertiesItemNo" resultType="string" parameterType="com.xujie.sys.modules.pms.data.QcItemData"> <select id="getDmPropertiesItemNo" resultType="string" parameterType="com.xujie.sys.modules.pms.data.QcItemData">

Loading…
Cancel
Save