|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
package com.foreverwin.mesnac.console;
|
|
|
|
|
|
|
|
|
|
import com.foreverwin.mesnac.common.erp.ZprodordconfStruIn;
|
|
|
|
|
import com.foreverwin.mesnac.common.erp.ZprodordconfStruOut;
|
|
|
|
|
import com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruInHolder;
|
|
|
|
|
import com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruOutHolder;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.ERPAPI;
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
import org.junit.runner.RunWith;
|
|
|
|
@ -40,9 +42,15 @@ public class TmdMc {
|
|
|
|
|
struIn.setIsm05(new BigDecimal(1));
|
|
|
|
|
struIn.setIsm06(new BigDecimal(1));
|
|
|
|
|
|
|
|
|
|
ZprodordconfStruIn [] zprodordconfStruIns = new ZprodordconfStruIn[]{struIn};
|
|
|
|
|
TableOfZprodordconfStruInHolder inHolder = new TableOfZprodordconfStruInHolder(zprodordconfStruIns);
|
|
|
|
|
String erpJson = ERPAPI.erpWebService().zmesProdordconf(inHolder, null);
|
|
|
|
|
ZprodordconfStruIn [] ins = new ZprodordconfStruIn[0];
|
|
|
|
|
ins[0] = struIn;
|
|
|
|
|
TableOfZprodordconfStruInHolder inHolder = new TableOfZprodordconfStruInHolder(ins);
|
|
|
|
|
|
|
|
|
|
//返回对象
|
|
|
|
|
ZprodordconfStruOut[] outs = new ZprodordconfStruOut[0];
|
|
|
|
|
outs[0] = new ZprodordconfStruOut();
|
|
|
|
|
TableOfZprodordconfStruOutHolder outHolder = new TableOfZprodordconfStruOutHolder(outs);
|
|
|
|
|
String erpJson = ERPAPI.erpWebService().zmesProdordconf(inHolder, outHolder);
|
|
|
|
|
System.out.println("ERP接口返回:" + erpJson);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|