|
|
@ -201,7 +201,7 @@ public class QcCheckUnqualifiedServiceImpl implements IQcCheckUnqualifiedService
|
|
|
|
mainObject.append("\"SQR\":"+"\""+task.getSqr()+"\"");//申请人--
|
|
|
|
mainObject.append("\"SQR\":"+"\""+task.getSqr()+"\"");//申请人--
|
|
|
|
mainObject.append(",\"CQ\":"+task.getOaFactory());//厂区--
|
|
|
|
mainObject.append(",\"CQ\":"+task.getOaFactory());//厂区--
|
|
|
|
mainObject.append(",\"LLLB\":"+task.getMaterialType());//来料类别【0、1】
|
|
|
|
mainObject.append(",\"LLLB\":"+task.getMaterialType());//来料类别【0、1】
|
|
|
|
mainObject.append(",\"MATNR\":"+"\""+task.getMaterialCode().replace("0000000","")+"\"");//物料编码
|
|
|
|
mainObject.append(",\"MATNR\":"+"\""+task.getMaterialCode().substring(7)+"\"");//物料编码
|
|
|
|
mainObject.append(",\"MAKTX\":"+"\""+task.getMaterialName()+"\"");//物料名称
|
|
|
|
mainObject.append(",\"MAKTX\":"+"\""+task.getMaterialName()+"\"");//物料名称
|
|
|
|
mainObject.append(",\"suppliernum\":"+"\""+task.getSupplierCode()+"\"");//供应商编码
|
|
|
|
mainObject.append(",\"suppliernum\":"+"\""+task.getSupplierCode()+"\"");//供应商编码
|
|
|
|
mainObject.append(",\"supplier\":"+"\""+task.getSupplierName()+"\"");//供应商名称
|
|
|
|
mainObject.append(",\"supplier\":"+"\""+task.getSupplierName()+"\"");//供应商名称
|
|
|
@ -262,7 +262,7 @@ public class QcCheckUnqualifiedServiceImpl implements IQcCheckUnqualifiedService
|
|
|
|
detailObject.append("\"colNames\":\"PROCODE,PRONAME,SCCODE,SCTOTAL,BJDATE,JYCODE,JYDATE,JYRESULT,CPCYS,JYBHGMS\"");
|
|
|
|
detailObject.append("\"colNames\":\"PROCODE,PRONAME,SCCODE,SCTOTAL,BJDATE,JYCODE,JYDATE,JYRESULT,CPCYS,JYBHGMS\"");
|
|
|
|
detailObject.append(",\"details\":[");
|
|
|
|
detailObject.append(",\"details\":[");
|
|
|
|
|
|
|
|
|
|
|
|
detailObject.append("{\"PROCODE\":\""+detailInfo.getMaterialCode().replace("0000000","")+"\"},");//产品编码
|
|
|
|
detailObject.append("{\"PROCODE\":\""+detailInfo.getMaterialCode().substring(7)+"\"},");//产品编码
|
|
|
|
detailObject.append("{\"PRONAME\":\""+detailInfo.getMaterialName()+"\"},");//产品名称
|
|
|
|
detailObject.append("{\"PRONAME\":\""+detailInfo.getMaterialName()+"\"},");//产品名称
|
|
|
|
detailObject.append("{\"SCCODE\":\""+detailInfo.getIncomeBatchNo()+"\"},");//批次号
|
|
|
|
detailObject.append("{\"SCCODE\":\""+detailInfo.getIncomeBatchNo()+"\"},");//批次号
|
|
|
|
detailObject.append("{\"SCTOTAL\":\""+detailInfo.getQuality()+"\"},");//数量
|
|
|
|
detailObject.append("{\"SCTOTAL\":\""+detailInfo.getQuality()+"\"},");//数量
|
|
|
@ -348,7 +348,7 @@ public class QcCheckUnqualifiedServiceImpl implements IQcCheckUnqualifiedService
|
|
|
|
StringBuffer mainObject = new StringBuffer();
|
|
|
|
StringBuffer mainObject = new StringBuffer();
|
|
|
|
mainObject.append("{");
|
|
|
|
mainObject.append("{");
|
|
|
|
mainObject.append("\"CPMC\":"+"\""+detailInfo.getMaterialName()+"\"");//产品名称
|
|
|
|
mainObject.append("\"CPMC\":"+"\""+detailInfo.getMaterialName()+"\"");//产品名称
|
|
|
|
mainObject.append(",\"CPBM\":"+"\""+detailInfo.getMaterialCode().replace("0000000","")+"\"");//产品编码
|
|
|
|
mainObject.append(",\"CPBM\":"+"\""+detailInfo.getMaterialCode().substring(7)+"\"");//产品编码
|
|
|
|
mainObject.append(",\"SQBM\":"+"\""+task.getSqbm()+"\"");//0品质保障部
|
|
|
|
mainObject.append(",\"SQBM\":"+"\""+task.getSqbm()+"\"");//0品质保障部
|
|
|
|
mainObject.append(",\"SQR\":"+"\""+task.getSqr()+"\"");//申请人:默认当前用户
|
|
|
|
mainObject.append(",\"SQR\":"+"\""+task.getSqr()+"\"");//申请人:默认当前用户
|
|
|
|
mainObject.append(",\"SQSJ\":"+"\""+DateUtils.parseDateToStr("yyyy-MM-dd",detailInfo.getCheckTime())+"\"");//申请时间
|
|
|
|
mainObject.append(",\"SQSJ\":"+"\""+DateUtils.parseDateToStr("yyyy-MM-dd",detailInfo.getCheckTime())+"\"");//申请时间
|
|
|
@ -377,4 +377,8 @@ public class QcCheckUnqualifiedServiceImpl implements IQcCheckUnqualifiedService
|
|
|
|
logger.info("流程Id 113455:"+ JSONObject.toJSONString(oaR));
|
|
|
|
logger.info("流程Id 113455:"+ JSONObject.toJSONString(oaR));
|
|
|
|
return oaR;
|
|
|
|
return oaR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void main(String args[]){
|
|
|
|
|
|
|
|
String ss = "000000010101065500";
|
|
|
|
|
|
|
|
System.out.println(ss.substring(7));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|