|
|
|
@ -163,18 +163,18 @@ public class QcCheckTaskWarehousingServiceImpl implements IQcCheckTaskWarehousin
|
|
|
|
|
qctp.setTypeId(qcCheckTaskWarehousing.getCheckType());//生产过程检验
|
|
|
|
|
qctp.setMaterialCode(qcCheckTaskWarehousing.getMaterialCode());//特性
|
|
|
|
|
/**qc_check_type_project**/
|
|
|
|
|
List<QcCheckTaskDetail> items = qcCheckTypeProjectMapper.getTPByTypeMaterial(qctp);
|
|
|
|
|
if(CollectionUtils.isEmpty(items)){
|
|
|
|
|
/**qc_material_group_detail**/
|
|
|
|
|
QcMaterialGroupDetail group = qcMaterialGroupDetailMapper.getGroupByMaterial(qcCheckTaskWarehousing.getMaterialCode());
|
|
|
|
|
if(group == null){
|
|
|
|
|
group = new QcMaterialGroupDetail();
|
|
|
|
|
group.setGroupId("3dc0655fea3449c59c76a01cc5b91565");//成品蚊香物料组
|
|
|
|
|
}
|
|
|
|
|
qctp.setGroupId(group.getGroupId());//共性
|
|
|
|
|
List<QcCheckTaskDetail> itemsGG = qcCheckTypeProjectMapper.getTPByTypeGroup(qctp);
|
|
|
|
|
items.addAll(itemsGG);
|
|
|
|
|
List<QcCheckTaskDetail> items = new ArrayList<>();
|
|
|
|
|
List<QcCheckTaskDetail> items0 = qcCheckTypeProjectMapper.getTPByTypeMaterial(qctp);//个性
|
|
|
|
|
items.addAll(items0);
|
|
|
|
|
/**qc_material_group_detail**/
|
|
|
|
|
QcMaterialGroupDetail group = qcMaterialGroupDetailMapper.getGroupByMaterial(qcCheckTaskWarehousing.getMaterialCode());
|
|
|
|
|
if(group == null){
|
|
|
|
|
group = new QcMaterialGroupDetail();
|
|
|
|
|
group.setGroupId("3dc0655fea3449c59c76a01cc5b91565");//成品蚊香物料组
|
|
|
|
|
}
|
|
|
|
|
qctp.setGroupId(group.getGroupId());//共性
|
|
|
|
|
List<QcCheckTaskDetail> itemsGG = qcCheckTypeProjectMapper.getTPByTypeGroup(qctp);
|
|
|
|
|
items.addAll(itemsGG);
|
|
|
|
|
|
|
|
|
|
/**qc_check_task_detail**/
|
|
|
|
|
if(CollectionUtils.isEmpty(items)){
|
|
|
|
@ -270,6 +270,8 @@ public class QcCheckTaskWarehousingServiceImpl implements IQcCheckTaskWarehousin
|
|
|
|
|
SysNoticeGroup noticeQo = new SysNoticeGroup();
|
|
|
|
|
if(qcCheckTaskWarehousing.getCheckType().equals("checkTypeCP")){
|
|
|
|
|
noticeQo.setNoticeId(7L);//成品检验
|
|
|
|
|
}else if(qcCheckTaskWarehousing.getCheckType().equals("checkTypeCPPC")){
|
|
|
|
|
noticeQo.setNoticeId(12L);//批次成品检验
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<SysNoticeGroup> notices = qcCheckTaskIncomeMapper.getNoticesGroup(noticeQo);
|
|
|
|
@ -286,11 +288,11 @@ public class QcCheckTaskWarehousingServiceImpl implements IQcCheckTaskWarehousin
|
|
|
|
|
wechart0.setText(contentInfo);
|
|
|
|
|
wecharts.add(wechart0);
|
|
|
|
|
}
|
|
|
|
|
logger.info("来料检验企业微信提醒请求:" + JSONObject.toJSONString(wecharts));
|
|
|
|
|
logger.info("成品检验企业微信提醒请求:" + JSONObject.toJSONString(wecharts));
|
|
|
|
|
if (!CollectionUtils.isEmpty(wecharts)) {
|
|
|
|
|
new Thread(() -> {
|
|
|
|
|
AjaxResult wxresult = remoteOpenService.sendWeChartMessage(wecharts);
|
|
|
|
|
logger.info("来料检验企业微信提醒结果:" + JSONObject.toJSONString(wxresult));
|
|
|
|
|
logger.info("成品检验企业微信提醒结果:" + JSONObject.toJSONString(wxresult));
|
|
|
|
|
|
|
|
|
|
}).start();
|
|
|
|
|
}
|
|
|
|
|