|
|
|
@ -163,6 +163,8 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
|
|
|
|
qcCheckTaskUser.setCheckManCode(splitCodes[i]);
|
|
|
|
|
qcCheckTaskUser.setCheckNo(qcCheckTaskIncome.getCheckNo());
|
|
|
|
|
qcCheckTaskUser.setBelongTo(beLongId);
|
|
|
|
|
qcCheckTaskUser.setFactoryCode(factoryCode);
|
|
|
|
|
|
|
|
|
|
qcCheckTaskUserList.add(qcCheckTaskUser);
|
|
|
|
|
}
|
|
|
|
|
//检验人插入
|
|
|
|
@ -407,14 +409,14 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
|
|
|
|
|
|
|
|
|
return n ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//来料检验不良OA流程
|
|
|
|
|
private AjaxResult createLLOA(QcCheckTaskIncome qcCheckTaskIncome){
|
|
|
|
|
//发起来料检验OA流程
|
|
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
|
|
paramMap.put("user","999999");//提交人工号qcCheckTaskIncome.getUpdateBy()
|
|
|
|
|
paramMap.put("requestLevel",0);//流程紧急度
|
|
|
|
|
paramMap.put("requestName","ZL0010-来料检验不合格审批流程(订单:"+qcCheckTaskIncome.getOrderNo()+")");//流程名称
|
|
|
|
|
paramMap.put("workflowId",26258);//该流程对应的唯- workFlowld
|
|
|
|
|
paramMap.put("requestName","ZL0020-来料检验不合格审批流程(订单:"+qcCheckTaskIncome.getOrderNo()+")");//流程名称
|
|
|
|
|
paramMap.put("workflowId",26234);//该流程对应的唯- workFlowld
|
|
|
|
|
|
|
|
|
|
StringBuffer mainObject = new StringBuffer();
|
|
|
|
|
mainObject.append("{");
|
|
|
|
@ -429,13 +431,41 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
|
|
|
|
//mainObject.append(",\"memo\":"+"\""+qcCheckTaskIncome.getQuality0()+"\"");//不合格情况描述
|
|
|
|
|
mainObject.append("}");
|
|
|
|
|
|
|
|
|
|
paramMap.put("mainObject",mainObject.toString());
|
|
|
|
|
logger.info("流程Id 26234:"+ JSONObject.toJSONString(paramMap));
|
|
|
|
|
AjaxResult oaR = remoteOpenService.OAInspection(paramMap);
|
|
|
|
|
logger.info("流程Id 26234:"+ JSONObject.toJSONString(oaR));
|
|
|
|
|
return oaR;
|
|
|
|
|
}
|
|
|
|
|
/*生产过程不良OA流程
|
|
|
|
|
* PGBCJ 申请部门/SSCJ 所属车间/ZRPSN报检人/GJZ关键字/SCLX生产类型/OEM OEM厂名/DH 单号/DW单位/MEMO01 不合格描述/
|
|
|
|
|
* MEMO03 备注/SFXZG 是否需要QC主管审核/PGZG QC主管
|
|
|
|
|
* PGZRJL 品管主任*/
|
|
|
|
|
private AjaxResult createProduceOA(QcCheckTaskIncome qcCheckTaskIncome){
|
|
|
|
|
//发起来料检验OA流程
|
|
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
|
|
paramMap.put("user","999999");//提交人工号qcCheckTaskIncome.getUpdateBy()
|
|
|
|
|
paramMap.put("requestLevel",0);//流程紧急度
|
|
|
|
|
paramMap.put("requestName","ZL0010-成品检验控制流程(订单:"+qcCheckTaskIncome.getOrderNo()+")");//流程名称
|
|
|
|
|
paramMap.put("workflowId",26258);//该流程对应的唯- workFlowld
|
|
|
|
|
|
|
|
|
|
StringBuffer mainObject = new StringBuffer();
|
|
|
|
|
mainObject.append("{");
|
|
|
|
|
mainObject.append("\"SSCJ\":"+qcCheckTaskIncome.getFactoryCode());//所属车间
|
|
|
|
|
mainObject.append(",\"ZRPSN\":"+"\""+qcCheckTaskIncome.getUpdateBy()+"\"");//报检人
|
|
|
|
|
mainObject.append(",\"OEM\":"+"\""+qcCheckTaskIncome.getFactoryCode()+"\"");//OEM厂名
|
|
|
|
|
mainObject.append(",\"DH\":"+"\""+qcCheckTaskIncome+"\"");//单号
|
|
|
|
|
mainObject.append(",\"MEMO01\":"+"\""+qcCheckTaskIncome.getSupplierName()+"\"");//不合格情况描述
|
|
|
|
|
mainObject.append("}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
paramMap.put("mainObject",mainObject.toString());
|
|
|
|
|
logger.info("流程Id 26258:"+ JSONObject.toJSONString(paramMap));
|
|
|
|
|
AjaxResult oaR = remoteOpenService.OAInspection(paramMap);
|
|
|
|
|
logger.info("流程Id 26258:"+ JSONObject.toJSONString(oaR));
|
|
|
|
|
return oaR;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<QcDefectType> getDefectList(QcDefectType qcDefectType) {
|
|
|
|
@ -597,7 +627,7 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
|
|
|
|
if("material".equals(qcCheckTaskIncome.getTypeCode())) {
|
|
|
|
|
oaR = this.createLLOA(qcCheckTaskIncome);
|
|
|
|
|
}else if("produce".equals(qcCheckTaskIncome.getTypeCode())){
|
|
|
|
|
|
|
|
|
|
oaR = this.createProduceOA(qcCheckTaskIncome);
|
|
|
|
|
}else if("product".equals(qcCheckTaskIncome.getTypeCode())) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|