|
|
|
@ -145,7 +145,6 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
|
|
|
|
|
|
|
|
|
qcCheckTaskIncome.setCheckNo(bpDD+liushuiStr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**取检测项**/
|
|
|
|
|
QcCheckTypeProject qctp= new QcCheckTypeProject();
|
|
|
|
|
qctp.setTypeId(qcCheckTaskIncome.getCheckType());//生产过程检验
|
|
|
|
@ -157,10 +156,19 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
|
|
|
|
//共性
|
|
|
|
|
if(group == null){//默认
|
|
|
|
|
group = new QcMaterialGroupDetail();
|
|
|
|
|
group.setGroupId("729971295b734782b544f9d6d06fb8b9");
|
|
|
|
|
QcProjectType initGroup = qcCheckTypeProjectMapper.getProductGroup(qcCheckTaskIncome.getMaterialCode());
|
|
|
|
|
if(initGroup != null){
|
|
|
|
|
group.setGroupId(initGroup.getGroupId());
|
|
|
|
|
}else{
|
|
|
|
|
return 0;//没有找到检测项目
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
List<QcCheckTaskDetail> itemsGG = null;
|
|
|
|
|
if(StringUtils.isNotBlank(group.getGroupId())){
|
|
|
|
|
qctp.setGroupId(group.getGroupId());
|
|
|
|
|
List<QcCheckTaskDetail> itemsGG = qcCheckTypeProjectMapper.getTPByTypeGroup(qctp);
|
|
|
|
|
itemsGG = qcCheckTypeProjectMapper.getTPByTypeGroup(qctp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
items.addAll(itemsGG);
|
|
|
|
|
|
|
|
|
|
/**qc_check_task_detail**/
|
|
|
|
|