|
|
|
@ -310,10 +310,10 @@
|
|
|
|
|
GROUP by t.source_id
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDLTableTitle" resultType="com.op.quality.domain.QcStaticTable">
|
|
|
|
|
select t0.* ,bp.product_desc_zh materialName from(
|
|
|
|
|
SELECT
|
|
|
|
|
concat(q.material_code,'-',q.project_no,'-',CONVERT(varchar(10),q.ymdms, 120)) yearMonth,
|
|
|
|
|
material_code materialCode,
|
|
|
|
|
material_name materialName,
|
|
|
|
|
ymdms,rule_name ruleName,
|
|
|
|
|
project_no projectNo,
|
|
|
|
|
STUFF(
|
|
|
|
@ -354,7 +354,7 @@
|
|
|
|
|
) quality
|
|
|
|
|
FROM (
|
|
|
|
|
select
|
|
|
|
|
qct.material_code,qct.material_name,
|
|
|
|
|
qct.material_code,
|
|
|
|
|
CONVERT(varchar(10),qct.income_time, 120) ymdms,
|
|
|
|
|
qctd.rule_name,qctd.project_no,qctd.actual_value
|
|
|
|
|
from qc_check_task qct
|
|
|
|
@ -382,7 +382,9 @@
|
|
|
|
|
and qct.supplier_code = #{supplierCode}
|
|
|
|
|
</if>
|
|
|
|
|
) q
|
|
|
|
|
GROUP BY q.material_code,q.material_name, q.ymdms,q.rule_name,q.project_no
|
|
|
|
|
GROUP BY q.material_code, q.ymdms,q.rule_name,q.project_no
|
|
|
|
|
) t0 left join base_product bp on bp.product_code = t0.materialCode
|
|
|
|
|
where t0.quality is not null
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getProjectList" resultType="com.op.quality.domain.QcStaticTable">
|
|
|
|
|
select qcp.id recordId,
|
|
|
|
@ -390,6 +392,6 @@
|
|
|
|
|
from qc_check_type_project qctp
|
|
|
|
|
left join qc_check_project qcp on qctp.project_id = qcp.id
|
|
|
|
|
where qctp.type_id = #{checkType} and qctp.property_code = '1'
|
|
|
|
|
and qctp.material_code is null
|
|
|
|
|
and qctp.material_code is null and qcp.rule_name is not null
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|