Browse Source

修改成品的json取值

pancy 11 months ago
parent
commit
59b1b5ae49
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mmpac/mmpac/src/private/u8c/impl/mmpac/mmpac/OrderAddImpl.java

+ 2 - 2
mmpac/mmpac/src/private/u8c/impl/mmpac/mmpac/OrderAddImpl.java

@@ -123,8 +123,8 @@ public class OrderAddImpl extends BaseServlet implements IHttpServletAdaptor{
 				headvo.setBillstatus(IBillStatus.FREE);
 				String pk_order = dao.insertVO(headvo);
 				//入库赋值
-				if(bodyObject.getJSONArray("in")!=null) {
-					JSONArray inArray = bodyObject.getJSONArray("in");
+				if(bodyObject.getJSONArray("product")!=null) {
+					JSONArray inArray = bodyObject.getJSONArray("product");
 					for(int i = 0;i < inArray.size();i++) {
 						Object inobj = inArray.get(i);
 						JSONObject injsobj = JSONObject.parseObject(inobj.toString());