Ver Fonte

存货接口取消分配

pancy há 11 meses atrás
pai
commit
efcde3c7d7
1 ficheiros alterados com 11 adições e 12 exclusões
  1. 11 12
      mmpac/mmpac/src/private/u8c/impl/mmpac/mmpac/InvAddImpl.java

+ 11 - 12
mmpac/mmpac/src/private/u8c/impl/mmpac/mmpac/InvAddImpl.java

@@ -268,19 +268,18 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
 						invbasVo.setAssistunit(UFBoolean.FALSE);
 					}
 					pk_inv = ivo.insertVO(invbasVo);
+					//查看当前存货是否有对应的存货管理档案
+					String pk_invman = IsExist(pk_inv);
+					if(pk_invman.equals("")) {
+						pk_invman = saveInvman(invbasVo,pk_inv,wholemanaflag);
+					}
+					
+//					List<String> listpk = new ArrayList<String>();
+//					listpk.add(pk_invman);
+//					
+//					//分配,这里的主键对应bd_calbody.pk_calbody
+//					iassign.assignInvmandocByPkList(new String[] {"1001V51000000000034G"}, listpk, null);
 				}
-				//查看当前存货是否有对应的存货管理档案
-				String pk_invman = IsExist(pk_inv);
-				if(pk_invman.equals("")) {
-					pk_invman = saveInvman(invbasVo,pk_inv,wholemanaflag);
-				}
-				
-				List<String> listpk = new ArrayList<String>();
-				listpk.add(pk_invman);
-				
-//			//分配,这里的主键对应bd_calbody.pk_calbody
-				iassign.assignInvmandocByPkList(new String[] {"1001V51000000000034G"}, listpk, null);
-				
 				
 				result.add(formatRSJsonData("成功",
 					     "",invCode));