import com.alibaba.fastjson.*;
String response_dataCheckHw = prev.getResponseDataAsString();
JSONObject subTmpCheckHw= new JSONObject();
JSONObject boxFinishCheckHw= new JSONObject();
JSONObject CheckHwRspObj1= new JSONObject();
JSONObject CheckHwDataObj2= new JSONObject();
JSONObject CheckHwDataObj3= new JSONObject();
JSONArray DataList = new JSONArray();
JSONArray matList = new JSONArray();
CheckHwRspObj1 = JSON.parseObject(response_dataCheckHw);
int i=0;
// log.info("\n\n response_dataCheckHw is \n\n "+CheckHwRspObj1.toString()+"\n\n\n\n");
DataList = (JSONArray) CheckHwRspObj1.get("data");
int outSizea= DataList.size();
int outInt=0;
// log.info("\n\n outSizea is \n\n "+outSizea+"\n\n\n\n");
CheckHwDataObj2 = (JSONObject) DataList.get(i);
matList = (JSONArray) CheckHwDataObj2.get("matList");
int InSizea=0;
for (outInt=0;outInt<outSizea;outInt++)
{
CheckHwDataObj3= new JSONObject();
if (InSizea==0)
{
CheckHwDataObj3 = (JSONObject) DataList.get(outInt);
matList = (JSONArray) CheckHwDataObj3.get("matList");
InSizea= matList.size();
};
if (InSizea>0) break;
// log.info("\n\n InSizea is \n\n "+InSizea+"\n\n\n\n");
// log.info("\n\n outInt is \n\n "+outInt+"\n\n\n\n");
};
String CheckHwcode = CheckHwDataObj3.get("checkCode");
int intCheckHwshelfBoxId = Integer.parseInt(CheckHwDataObj3.get("shelfBoxId").toString() );
// log.info("\n\n checkCode is \n\n "+CheckHwcode +"\n\n\n\n");
//log.info("\n\n boxId matList is \n\n "+ CheckHwDataObj3.get("matList")+"\n\n\n\n");
JSONObject o = (JSONObject) matList.get(0);
JSONObject ot1 = new JSONObject();
ot1 = (JSONObject) matList.get(i);
int intCheckHwnumber = Integer.parseInt(ot1.getString("number").toString() );
int intCheckHwMaterialId = Integer.parseInt(ot1.getString("materialId").toString() );
subTmpCheckHw.put("number", ""+intCheckHwnumber+"");
subTmpCheckHw.put("materialId", intCheckHwMaterialId);
subTmpCheckHw.put("code", CheckHwcode );
subTmpCheckHw.put("shelfBoxId", intCheckHwshelfBoxId );
boxFinishCheckHw.put("shelfBoxId", intCheckHwshelfBoxId );
boxFinishCheckHw.put("code", CheckHwcode );
String StrTmpCheckHw=subTmpCheckHw.toString();
String StrboxFinishCheckHw=boxFinishCheckHw.toString();
props.put( "subTmpCheckHw" ,StrTmpCheckHw);
props.put( "boxFinishCheckHw" ,StrboxFinishCheckHw);
// log.info( "\n\n subTmpCheckHw " +StrTmpCheckHw);
// log.info( "\n\n StrboxFinishCheckHw " +StrboxFinishCheckHw);