白坯报表新增其他缺陷字段

master
FCD 2 days ago
parent f2c88e0ecf
commit 09a95bf36c

@ -1776,6 +1776,7 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
@DS("#header.poolName") @DS("#header.poolName")
public List<Map<String,String>> getMonthOfDataDefectV2(QcStaticTable qcStaticTable) { public List<Map<String,String>> getMonthOfDataDefectV2(QcStaticTable qcStaticTable) {
List<String> bpDefects = qcStaticTableMapper.getBpDefects(qcStaticTable); List<String> bpDefects = qcStaticTableMapper.getBpDefects(qcStaticTable);
bpDefects.add("其他");
List<QcCheckTaskDefect> list = qcStaticTableMapper.getBPDefectList(qcStaticTable); List<QcCheckTaskDefect> list = qcStaticTableMapper.getBPDefectList(qcStaticTable);
List<Map<String,String>> result = new ArrayList<>(); List<Map<String,String>> result = new ArrayList<>();
for (String defect : bpDefects){ for (String defect : bpDefects){

@ -1414,7 +1414,7 @@
<select id="getBPDefectList" resultType="com.op.quality.domain.QcCheckTaskDefect"> <select id="getBPDefectList" resultType="com.op.quality.domain.QcCheckTaskDefect">
SELECT SELECT
tc.class_name defectSubclass, ISNULL(tc.class_name,'其他') defectSubclass,
FORMAT ( qct.create_time, 'yyyy-MM-dd' ) attr1, FORMAT ( qct.create_time, 'yyyy-MM-dd' ) attr1,
SUM(td.noOk_quality) attr2, SUM(td.noOk_quality) attr2,
SUM(qct.sample_quality) attr3 SUM(qct.sample_quality) attr3

Loading…
Cancel
Save