@ -177,15 +177,21 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( qcStaticTable . getShiftId ( ) . equals ( "2" ) ) {
detailMap = qcStaticTableMapper . getProjectDetailNight ( qcStaticTable ) ;
}
Map < String , QcStaticTable > picsMap = qcStaticTableMapper . picsMap ( qcStaticTable ) ;
Map < String , QcStaticTable > defectMap = qcStaticTableMapper . defectMap ( qcStaticTable ) ;
if ( defectMap . size ( ) = = 0 ) {
defectMap . put ( "0" , null ) ;
}
for ( QcStaticTable project : projects ) {
this . getDataFromMap ( detailMap , project , picsMap ) ;
this . getDataFromMap ( detailMap , project , picsMap ,defectMap );
}
return projects ;
}
private void getDataFromMap ( Map < String , QcStaticTable > detailMap , QcStaticTable project , Map < String , QcStaticTable > picsMap ) {
private void getDataFromMap ( Map < String , QcStaticTable > detailMap , QcStaticTable project , Map < String , QcStaticTable > picsMap ,
Map < String , QcStaticTable > defectMap ) {
String keystr = project . getProjectId ( ) + "08" ;
QcStaticTable detail = detailMap . get ( keystr ) ;
if ( detail ! = null ) {
@ -194,6 +200,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn080090 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn080090 ( project . getColumn080090 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn080090 ( project . getColumn080090 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -210,6 +222,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn090100 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn090100 ( project . getColumn090100 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn090100 ( project . getColumn090100 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -226,6 +244,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn100110 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn100110 ( project . getColumn100110 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn100110 ( project . getColumn100110 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -242,6 +266,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn110120 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn110120 ( project . getColumn110120 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn110120 ( project . getColumn110120 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -258,6 +288,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn123133 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn123133 ( project . getColumn123133 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn123133 ( project . getColumn123133 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -274,6 +310,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn133143 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn133143 ( project . getColumn133143 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn133143 ( project . getColumn133143 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -290,6 +332,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn143153 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn143153 ( project . getColumn143153 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn143153 ( project . getColumn143153 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -306,6 +354,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn153163 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn153163 ( project . getColumn153163 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn153163 ( project . getColumn153163 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -322,6 +376,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn163173 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn163173 ( project . getColumn163173 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn163173 ( project . getColumn163173 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -338,6 +398,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn180190 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn180190 ( project . getColumn180190 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn180190 ( project . getColumn180190 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -354,6 +420,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn190200 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn190200 ( project . getColumn190200 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn190200 ( project . getColumn190200 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径
@ -370,6 +442,12 @@ public class QcStaticTableServiceImpl implements IQcStaticTableService {
} else if ( detail ! = null & & StringUtils . isNotBlank ( detail . getStatus ( ) ) ) {
project . setColumn200210 ( detail . getStatus ( ) . equals ( "Y" ) ? "✓" : "✘" ) ;
}
QcStaticTable defect = defectMap . get ( detail . getDetailId ( ) ) ;
if ( defect ! = null & & StringUtils . isNotBlank ( defect . getRemark ( ) ) ) {
project . setColumn200210 ( project . getColumn200210 ( ) + " " + defect . getRemark ( ) ) ;
}
QcStaticTable urlDTO = picsMap . get ( detail . getRecordId ( ) ) ;
if ( urlDTO ! = null ) {
project . setColumn200210 ( project . getColumn200210 ( ) + "," + urlDTO . getProjectId ( ) . replace ( "&" , "&" ) ) ; //projectId存的照片路径