Commit cc45a34b by s_guodong

调试 acdopn.save交易

parent 8e3d76d0
...@@ -103,6 +103,13 @@ ...@@ -103,6 +103,13 @@
<scope>system</scope> <scope>system</scope>
<systemPath>${pom.basedir}/lib/eibs-container-3.5.0.jar</systemPath> <systemPath>${pom.basedir}/lib/eibs-container-3.5.0.jar</systemPath>
</dependency> </dependency>
<dependency>
<groupId>com.brilliance</groupId>
<artifactId>be-esb-core</artifactId>
<version>2.0</version>
<scope>system</scope>
<systemPath>${pom.basedir}/lib/be-esb-core-2.0.jar</systemPath>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -4,6 +4,8 @@ import java.util.*; ...@@ -4,6 +4,8 @@ import java.util.*;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import com.alibaba.fastjson.JSON;
import com.brilliance.mda.runtime.mda.*; import com.brilliance.mda.runtime.mda.*;
import com.brilliance.mda.runtime.mda.impl.*; import com.brilliance.mda.runtime.mda.impl.*;
import com.brilliance.mda.runtime.annotation.*; import com.brilliance.mda.runtime.annotation.*;
...@@ -147,8 +149,8 @@ public class Acdopn extends AbstractTransaction{ ...@@ -147,8 +149,8 @@ public class Acdopn extends AbstractTransaction{
} }
//组织报文发给预约开户系统,等待返回 //组织报文发给预约开户系统,等待返回
Map yymap = new HashMap(); Map yymap = new HashMap();
String seq =MdaUtils.format(ctx.getDaoSession().dbCounter("WindowsLSH"),"0000000000"); // String seq =MdaUtils.format(ctx.getDaoSession().dbCounter("WindowsLSH"),"0000000000");
String transid = "270"+seq; String transid = "270"+"11111111111111";
yymap.put("TransID",transid); yymap.put("TransID",transid);
yymap.put("EntName",this.getAcdgrp().getRec().getEntname()); yymap.put("EntName",this.getAcdgrp().getRec().getEntname());
...@@ -179,17 +181,22 @@ public class Acdopn extends AbstractTransaction{ ...@@ -179,17 +181,22 @@ public class Acdopn extends AbstractTransaction{
yymap.put("ContactAddress",this.getAcdgrp().getRec().getContactaddress());//新增 yymap.put("ContactAddress",this.getAcdgrp().getRec().getContactaddress());//新增
yymap.put("AppointmentDate",MdaUtils.format(this.getAcdgrp().getRec().getAppointmentdate(),"yyyyMMdd"));//新增 yymap.put("AppointmentDate",MdaUtils.format(this.getAcdgrp().getRec().getAppointmentdate(),"yyyyMMdd"));//新增
yymap.put("openaccRegion",bk);//新增 yymap.put("openaccRegion",bk);//新增
Object resMsg = MdaUtils.invoke("com.brilliance.eibs.main.Client","scall","w414","w414",new Object[]{yymap}); // Object resMsg = MdaUtils.invoke("com.brilliance.eibs.main.Client","scall","w414","w414",new Object[]{yymap});
Map yyrst = null; Map yyrst = new HashMap();
if((Boolean)MdaUtils.invoke(resMsg,"isSuccess")) yyrst.put("code","1");
{ yyrst.put("exeTaskResult","1");
yyrst = (Map)MdaUtils.invoke(resMsg,"getContent"); yyrst.put("promptInfo","1");
} yyrst.put("accountSerialNo","1");
else yyrst.put("openaccBizId","1");
{ // if((Boolean)MdaUtils.invoke(resMsg,"isSuccess"))
ctx.setMessage(MdaUtils.getI18NString("acdopn","CT000051"),MdaUtils.getI18NString("acdopn","CT000052")); // {
return false; // yyrst = (Map)MdaUtils.invoke(resMsg,"getContent");
} // }
// else
// {
// ctx.setMessage(MdaUtils.getI18NString("acdopn","CT000051"),MdaUtils.getI18NString("acdopn","CT000052"));
// return false;
// }
//判断处理结果,给出提示 //判断处理结果,给出提示
String yycode = (String) yyrst.get("code"); String yycode = (String) yyrst.get("code");
if(MdaUtils.isEmpty(yycode)) if(MdaUtils.isEmpty(yycode))
...@@ -334,8 +341,8 @@ public class Acdopn extends AbstractTransaction{ ...@@ -334,8 +341,8 @@ public class Acdopn extends AbstractTransaction{
ctx.getDaoSession().dbBegin(); ctx.getDaoSession().dbBegin();
//05:开户失败 ; //05:开户失败 ;
this.getAcdgrp().getRec().setStatus("05");//直接返回开户失败 this.getAcdgrp().getRec().setStatus("05");//直接返回开户失败
String seq =MdaUtils.format(ctx.getDaoSession().dbCounter("WindowsLSH"),"0000000000"); //String seq =MdaUtils.format(ctx.getDaoSession().dbCounter("WindowsLSH"),"0000000000");
String transid = "270"+seq; String transid = "270"+"2131243124";
this.getAcdgrp().getRec().setTransid(transid); this.getAcdgrp().getRec().setTransid(transid);
if(MdaUtils.isEmpty(this.getAcdgrp().getRec().getInr())) if(MdaUtils.isEmpty(this.getAcdgrp().getRec().getInr()))
{ {
...@@ -397,7 +404,7 @@ public class Acdopn extends AbstractTransaction{ ...@@ -397,7 +404,7 @@ public class Acdopn extends AbstractTransaction{
this.getAcdgrp().getRec().copyValue(acd); this.getAcdgrp().getRec().copyValue(acd);
this.getAcdgrp().getRec().setCredat(MdaUtils.today()); this.getAcdgrp().getRec().setCredat(MdaUtils.today());
this.getAcdgrp().getRec().setSocialcrdtcd("1");
ctx.getDaoSession().dbRead(this.getAcdgrp().getPty(),new Argument<String>("cifno",EQ,this.getAcdgrp().getRec().getSocialcrdtcd())); ctx.getDaoSession().dbRead(this.getAcdgrp().getPty(),new Argument<String>("cifno",EQ,this.getAcdgrp().getRec().getSocialcrdtcd()));
this.getAcdgrp().getRec().setNcid(this.getAcdgrp().getPty().getCid()); this.getAcdgrp().getRec().setNcid(this.getAcdgrp().getPty().getCid());
...@@ -441,7 +448,8 @@ public class Acdopn extends AbstractTransaction{ ...@@ -441,7 +448,8 @@ public class Acdopn extends AbstractTransaction{
String objinr = this.getAcdp().getAcdgrp().getRec().getInr(); String objinr = this.getAcdp().getAcdgrp().getRec().getInr();
String objtyp = "acd"; String objtyp = "acd";
MdaUtils.clear(this.getTrnmod().getBnktrn()); MdaUtils.clear(this.getTrnmod().getBnktrn());
ctx.getDaoSession().dbRead(this.getTrnmod().getBnktrn(),new Argument<String>("objinr",objinr),new Argument<String>("objtyp",objtyp)); // 6-16-update
ctx.getDaoSession().dbRead(this.getTrnmod().getBnktrn(),new Argument<String>("objinr","00000686"),new Argument<String>("objtyp",objtyp));
return true; return true;
} }
...@@ -918,7 +926,27 @@ public class Acdopn extends AbstractTransaction{ ...@@ -918,7 +926,27 @@ public class Acdopn extends AbstractTransaction{
public static void main(String[] args) {
AcdopnVO acdopnVO = new AcdopnVO();
acdopnVO.setAcdgrp_rec_acdno("1");
acdopnVO.setAcdgrp_rec_account("2");
acdopnVO.setAcdgrp_rec_accounttype("3");
acdopnVO.setAcdgrp_rec_appointmentdate(new Date());
acdopnVO.setAcdgrp_rec_bchcod("4");
acdopnVO.setAcdgrp_rec_busiscope("5");
acdopnVO.setAcdgrp_rec_busistatus("6");
acdopnVO.setAcdgrp_rec_credat(new Date());
acdopnVO.setAcdgrp_rec_contactaddress("7");
acdopnVO.setAcdgrp_rec_entname("8");
acdopnVO.setAcdgrp_rec_enttel("9");
acdopnVO.setAcdgrp_rec_enttype("10");
System.out.println(JSON.toJSONString(acdopnVO));
}
} }
...@@ -1133,7 +1133,7 @@ public class MdaUtils { ...@@ -1133,7 +1133,7 @@ public class MdaUtils {
public static boolean prompt(Object... o) { public static boolean prompt(Object... o) {
return true; return false;
} }
public static String generateSerialNum() { public static String generateSerialNum() {
...@@ -1323,7 +1323,14 @@ public class MdaUtils { ...@@ -1323,7 +1323,14 @@ public class MdaUtils {
* @param o * @param o
*/ */
public static void setValues(Object... o) { public static void setValues(Object... o) {
// if (o.length == 3) {
// Object o1 = o[0];
// Object o2 = o[1];
// Object o3 = o[2];
// if (o1 instanceof IModule && o2 instanceof String) {
// Datas.setFieldValue((IModule) o1, (String) o2, o3);
// }
// }
} }
/** /**
...@@ -1555,7 +1562,7 @@ public class MdaUtils { ...@@ -1555,7 +1562,7 @@ public class MdaUtils {
BufferedReader br = new BufferedReader(new StringReader(block)); BufferedReader br = new BufferedReader(new StringReader(block));
String _line; String _line;
for(int count = 0; (_line = br.readLine()) != null; ++count) { for (int count = 0; (_line = br.readLine()) != null; ++count) {
if (count == line) { if (count == line) {
return _line; return _line;
} }
...@@ -1565,6 +1572,7 @@ public class MdaUtils { ...@@ -1565,6 +1572,7 @@ public class MdaUtils {
return null; return null;
} }
public static String getServerName() { public static String getServerName() {
InetAddress addr = null; InetAddress addr = null;
String serverName = ""; String serverName = "";
...@@ -1582,20 +1590,21 @@ public class MdaUtils { ...@@ -1582,20 +1590,21 @@ public class MdaUtils {
/** /**
* todo 解决evt.getData()问题 * todo 解决evt.getData()问题
*
* @return * @return
*/ */
public static Object getEventData(){ public static Object getEventData() {
return "-1"; return "-1";
} }
/** /**
* todo 解决evt.getTarget问题 * todo 解决evt.getTarget问题
*
* @return * @return
*/ */
public static IAttribute getEventTarget(){ public static IAttribute getEventTarget() {
return new AttributeValue(); return new AttributeValue();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment