|
|
|
@ -797,52 +797,63 @@ public class QcCheckTaskIncomeServiceImpl<QcCheckUnqualifiedService> implements
|
|
|
|
|
n = qcCheckUnqualifiedMapper.insertQcCheckUnqualified(unqualified);
|
|
|
|
|
logger.info("qc_check_unqualified:" + n);
|
|
|
|
|
if("1".equals(qcCheckTaskIncome.getStartOA())){
|
|
|
|
|
|
|
|
|
|
unqualified.setTypeCode(qcCheckTaskIncome.getTypeCode());
|
|
|
|
|
//不合格描述
|
|
|
|
|
unqualified.setRemark(qcCheckTaskIncome.getRemark());
|
|
|
|
|
//厂区(小榄固定值)
|
|
|
|
|
unqualified.setOaFactory("0");
|
|
|
|
|
//来料类别
|
|
|
|
|
unqualified.setMaterialType(qcCheckTaskIncome.getMaterialType());
|
|
|
|
|
//物料来源
|
|
|
|
|
unqualified.setMaterialFrom(qcCheckTaskIncome.getMaterialFrom());
|
|
|
|
|
//物料编号
|
|
|
|
|
unqualified.setMaterialCode(qcCheckTaskIncome.getMaterialCode());
|
|
|
|
|
//物料名称
|
|
|
|
|
unqualified.setMaterialName(qcCheckTaskIncome.getMaterialName());
|
|
|
|
|
//供应商编码
|
|
|
|
|
unqualified.setSupplierCode(qcCheckTaskIncome.getSupplierCode());
|
|
|
|
|
//供应商名称
|
|
|
|
|
unqualified.setSupplierName(qcCheckTaskIncome.getSupplierName());
|
|
|
|
|
//供应商名称
|
|
|
|
|
unqualified.setSupplierName(qcCheckTaskIncome.getSupplierName());
|
|
|
|
|
//生产批号
|
|
|
|
|
unqualified.setIncomeBatchNo(qcCheckTaskIncome.getIncomeBatchNo());
|
|
|
|
|
//来料数量
|
|
|
|
|
unqualified.setQuality(qcCheckTaskIncome.getQuality().toString());
|
|
|
|
|
//来料单位
|
|
|
|
|
unqualified.setUnit(qcCheckTaskIncome.getUnit());
|
|
|
|
|
//检验编号
|
|
|
|
|
unqualified.setCheckNo(qcCheckTaskIncome.getCheckNo());
|
|
|
|
|
//仓储报检人-李爱娟
|
|
|
|
|
unqualified.setCzbjr("284");
|
|
|
|
|
//物料类别
|
|
|
|
|
unqualified.setMaterialType(qcCheckTaskIncome.getMaterialType());
|
|
|
|
|
//物料来源
|
|
|
|
|
unqualified.setMaterialFrom(qcCheckTaskIncome.getMaterialFrom());
|
|
|
|
|
//QC主管-朱继新
|
|
|
|
|
unqualified.setQczg("660");
|
|
|
|
|
//申请人-朱继新
|
|
|
|
|
unqualified.setSqr("660");
|
|
|
|
|
unqualified.setUser(updateBy);
|
|
|
|
|
qcCheckUnqualifiedService.updateQcCheckUnqualified(unqualified);
|
|
|
|
|
this.setOaFunc(unqualified,qcCheckTaskIncome);
|
|
|
|
|
}
|
|
|
|
|
//发送企业微信
|
|
|
|
|
this.sendWX(qcCheckTaskIncome);
|
|
|
|
|
}
|
|
|
|
|
return 1 ;
|
|
|
|
|
}
|
|
|
|
|
/* 首检巡检都是品质异常流程
|
|
|
|
|
* 成品的是成品检验控制流程
|
|
|
|
|
* 来料的是来料检验不合格流程*/
|
|
|
|
|
private void setOaFunc(QcCheckUnqualified unqualified,QcCheckTaskIncome qcCheckTaskIncome){
|
|
|
|
|
//不合格描述
|
|
|
|
|
unqualified.setRemark(qcCheckTaskIncome.getRemark());
|
|
|
|
|
if("produce".equals(qcCheckTaskIncome.getTypeCode())){
|
|
|
|
|
unqualified.setSfgyswt(qcCheckTaskIncome.getSfgyswt());
|
|
|
|
|
}else if("material".equals(qcCheckTaskIncome.getTypeCode())){
|
|
|
|
|
unqualified.setTypeCode(qcCheckTaskIncome.getTypeCode());
|
|
|
|
|
|
|
|
|
|
//厂区(小榄固定值)
|
|
|
|
|
unqualified.setOaFactory("0");
|
|
|
|
|
//来料类别
|
|
|
|
|
unqualified.setMaterialType(qcCheckTaskIncome.getMaterialType());
|
|
|
|
|
//物料来源
|
|
|
|
|
unqualified.setMaterialFrom(qcCheckTaskIncome.getMaterialFrom());
|
|
|
|
|
//物料编号
|
|
|
|
|
unqualified.setMaterialCode(qcCheckTaskIncome.getMaterialCode());
|
|
|
|
|
//物料名称
|
|
|
|
|
unqualified.setMaterialName(qcCheckTaskIncome.getMaterialName());
|
|
|
|
|
//供应商编码
|
|
|
|
|
unqualified.setSupplierCode(qcCheckTaskIncome.getSupplierCode());
|
|
|
|
|
//供应商名称
|
|
|
|
|
unqualified.setSupplierName(qcCheckTaskIncome.getSupplierName());
|
|
|
|
|
//供应商名称
|
|
|
|
|
unqualified.setSupplierName(qcCheckTaskIncome.getSupplierName());
|
|
|
|
|
//生产批号
|
|
|
|
|
unqualified.setIncomeBatchNo(qcCheckTaskIncome.getIncomeBatchNo());
|
|
|
|
|
//来料数量
|
|
|
|
|
unqualified.setQuality(qcCheckTaskIncome.getQuality().toString());
|
|
|
|
|
//来料单位
|
|
|
|
|
unqualified.setUnit(qcCheckTaskIncome.getUnit());
|
|
|
|
|
//检验编号
|
|
|
|
|
unqualified.setCheckNo(qcCheckTaskIncome.getCheckNo());
|
|
|
|
|
//仓储报检人-李爱娟
|
|
|
|
|
unqualified.setCzbjr("284");
|
|
|
|
|
//物料类别
|
|
|
|
|
unqualified.setMaterialType(qcCheckTaskIncome.getMaterialType());
|
|
|
|
|
//物料来源
|
|
|
|
|
unqualified.setMaterialFrom(qcCheckTaskIncome.getMaterialFrom());
|
|
|
|
|
//QC主管-朱继新
|
|
|
|
|
unqualified.setQczg("660");
|
|
|
|
|
//申请人-朱继新
|
|
|
|
|
unqualified.setSqr("660");
|
|
|
|
|
unqualified.setUser(qcCheckTaskIncome.getUpdateBy());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
qcCheckUnqualifiedService.updateQcCheckUnqualified(unqualified);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void sendWX(QcCheckTaskIncome qcCheckTaskIncome){
|
|
|
|
|
//发企业微信--------------------开始(跟班组有关)
|
|
|
|
|