Browse Source

生产总订单接口加num字段

pancy 11 months ago
parent
commit
b38e7b7537
1 changed files with 9 additions and 0 deletions
  1. 9 0
      mmpac/mmpac/src/private/u8c/impl/mmpac/mmpac/OrderAddImpl.java

+ 9 - 0
mmpac/mmpac/src/private/u8c/impl/mmpac/mmpac/OrderAddImpl.java

@@ -36,6 +36,7 @@ import java.sql.SQLException;
 
 import nc.vo.pub.BusinessException;
 import nc.vo.pub.lang.UFDate;
+import nc.vo.pub.lang.UFDouble;
 import nc.vo.trade.pub.IBillStatus;
 import u8c.bs.servlet.service.BaseServlet;
 import u8c.bs.servlet.service.GetBaseDAOUtil;
@@ -133,6 +134,7 @@ public class OrderAddImpl extends BaseServlet implements IHttpServletAdaptor{
 						String prjtypename = GetBaseDAOUtil.getprjtypename(prjcode);
 						String vbatchcode = injsobj.getString("vbatchcode");
 						String cmaterialcode = injsobj.getString("cmaterialcode");
+						
 						String invname = GetBaseDAOUtil.getinvname(cmaterialcode);
 						String invspec = GetBaseDAOUtil.getinvspec(cmaterialcode);
 						String invtype = GetBaseDAOUtil.getinvtype(cmaterialcode);
@@ -154,6 +156,10 @@ public class OrderAddImpl extends BaseServlet implements IHttpServletAdaptor{
 						invo.setUnitid(measname);
 						invo.setPk_order(pk_order);
 						invo.setDr(0);
+						if(injsobj.getString("num")!=null) {
+							invo.setNum(new UFDouble(injsobj.getString("num")));
+						}
+						
 						dao.insertVO(invo);
 					}
 				}
@@ -190,6 +196,9 @@ public class OrderAddImpl extends BaseServlet implements IHttpServletAdaptor{
 						issuevo.setUnitid(measname);
 						issuevo.setPk_order(pk_order);
 						issuevo.setDr(0);
+						if(issuejsobj.getString("num")!=null) {
+							issuevo.setNum(new UFDouble(issuejsobj.getString("num")));
+						}
 						dao.insertVO(issuevo);
 					}
 				}