个性检验方案生效

master
zhaoxiaolin 1 month ago
parent 7361313e08
commit 35399d7b1b

@ -155,7 +155,6 @@ public class QcCheckTaskWarehousingServiceImpl implements IQcCheckTaskWarehousin
Date nowDate= DateUtils.getNowDate();
String factoryCode = qcCheckTaskWarehousing.getFactoryCode();
qcCheckTaskWarehousing.setCheckNo(bpDD+liushuiStr);
/**取检测项**/
@ -170,7 +169,12 @@ public class QcCheckTaskWarehousingServiceImpl implements IQcCheckTaskWarehousin
QcMaterialGroupDetail group = qcMaterialGroupDetailMapper.getGroupByMaterial(qcCheckTaskWarehousing.getMaterialCode());
if(group == null){
group = new QcMaterialGroupDetail();
group.setGroupId("3dc0655fea3449c59c76a01cc5b91565");//成品蚊香物料组
QcProjectType initGroup = qcCheckTypeProjectMapper.getProductGroup(qcCheckTaskWarehousing.getMaterialCode());
if(initGroup != null){//包材共性
group.setGroupId(initGroup.getGroupId());
}else {//成品蚊香物料组
group.setGroupId("3dc0655fea3449c59c76a01cc5b91565");
}
}
qctp.setGroupId(group.getGroupId());//共性
List<QcCheckTaskDetail> itemsGG = qcCheckTypeProjectMapper.getTPByTypeGroup(qctp);

@ -324,7 +324,7 @@
select top 1 qmg.id groupId
from base_product bp
left join qc_material_group qmg on qmg.group_code = bp.mvgr5
left join qc_material_group qmg on qmg.group_code = bp.mvgr5
where bp.product_code like concat('%',#{materialCode},'%')
and bp.del_flag = '0' and qmg.del_flag = '0'
order by qmg.create_time desc

Loading…
Cancel
Save