Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
s_guodong
gjjs-bd-common
Commits
cc45a34b
Commit
cc45a34b
authored
Jun 16, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试 acdopn.save交易
parent
8e3d76d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
23 deletions
+67
-23
be-esb-core-2.0.jar
gjjs-bd-business/lib/be-esb-core-2.0.jar
+0
-0
pom.xml
gjjs-bd-business/pom.xml
+7
-0
Platform.java
...iness/src/main/java/com/ceb/gjjs/mda/global/Platform.java
+0
-0
Acdopn.java
...siness/src/main/java/com/ceb/gjjs/mda/manager/Acdopn.java
+45
-17
MdaUtils.java
...in/java/com/brilliance/mda/runtime/mda/util/MdaUtils.java
+15
-6
No files found.
gjjs-bd-business/lib/be-esb-core-2.0.jar
0 → 100644
View file @
cc45a34b
File added
gjjs-bd-business/pom.xml
View file @
cc45a34b
...
...
@@ -103,6 +103,13 @@
<scope>
system
</scope>
<systemPath>
${pom.basedir}/lib/eibs-container-3.5.0.jar
</systemPath>
</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>
<build>
...
...
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/global/Platform.java
View file @
cc45a34b
This diff is collapsed.
Click to expand it.
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/manager/Acdopn.java
View file @
cc45a34b
...
...
@@ -4,6 +4,8 @@ import java.util.*;
import
java.math.BigDecimal
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
com.alibaba.fastjson.JSON
;
import
com.brilliance.mda.runtime.mda.*
;
import
com.brilliance.mda.runtime.mda.impl.*
;
import
com.brilliance.mda.runtime.annotation.*
;
...
...
@@ -147,8 +149,8 @@ public class Acdopn extends AbstractTransaction{
}
//组织报文发给预约开户系统,等待返回
Map
yymap
=
new
HashMap
();
String
seq
=
MdaUtils
.
format
(
ctx
.
getDaoSession
().
dbCounter
(
"WindowsLSH"
),
"0000000000"
);
String
transid
=
"270"
+
seq
;
//
String seq =MdaUtils.format(ctx.getDaoSession().dbCounter("WindowsLSH"),"0000000000");
String
transid
=
"270"
+
"11111111111111"
;
yymap
.
put
(
"TransID"
,
transid
);
yymap
.
put
(
"EntName"
,
this
.
getAcdgrp
().
getRec
().
getEntname
());
...
...
@@ -179,17 +181,22 @@ public class Acdopn extends AbstractTransaction{
yymap
.
put
(
"ContactAddress"
,
this
.
getAcdgrp
().
getRec
().
getContactaddress
());
//新增
yymap
.
put
(
"AppointmentDate"
,
MdaUtils
.
format
(
this
.
getAcdgrp
().
getRec
().
getAppointmentdate
(),
"yyyyMMdd"
));
//新增
yymap
.
put
(
"openaccRegion"
,
bk
);
//新增
Object
resMsg
=
MdaUtils
.
invoke
(
"com.brilliance.eibs.main.Client"
,
"scall"
,
"w414"
,
"w414"
,
new
Object
[]{
yymap
});
Map
yyrst
=
null
;
if
((
Boolean
)
MdaUtils
.
invoke
(
resMsg
,
"isSuccess"
))
{
yyrst
=
(
Map
)
MdaUtils
.
invoke
(
resMsg
,
"getContent"
);
}
else
{
ctx
.
setMessage
(
MdaUtils
.
getI18NString
(
"acdopn"
,
"CT000051"
),
MdaUtils
.
getI18NString
(
"acdopn"
,
"CT000052"
));
return
false
;
}
// Object resMsg = MdaUtils.invoke("com.brilliance.eibs.main.Client","scall","w414","w414",new Object[]{yymap});
Map
yyrst
=
new
HashMap
();
yyrst
.
put
(
"code"
,
"1"
);
yyrst
.
put
(
"exeTaskResult"
,
"1"
);
yyrst
.
put
(
"promptInfo"
,
"1"
);
yyrst
.
put
(
"accountSerialNo"
,
"1"
);
yyrst
.
put
(
"openaccBizId"
,
"1"
);
// if((Boolean)MdaUtils.invoke(resMsg,"isSuccess"))
// {
// 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"
);
if
(
MdaUtils
.
isEmpty
(
yycode
))
...
...
@@ -334,8 +341,8 @@ public class Acdopn extends AbstractTransaction{
ctx
.
getDaoSession
().
dbBegin
();
//05:开户失败 ;
this
.
getAcdgrp
().
getRec
().
setStatus
(
"05"
);
//直接返回开户失败
String
seq
=
MdaUtils
.
format
(
ctx
.
getDaoSession
().
dbCounter
(
"WindowsLSH"
),
"0000000000"
);
String
transid
=
"270"
+
seq
;
//
String seq =MdaUtils.format(ctx.getDaoSession().dbCounter("WindowsLSH"),"0000000000");
String
transid
=
"270"
+
"2131243124"
;
this
.
getAcdgrp
().
getRec
().
setTransid
(
transid
);
if
(
MdaUtils
.
isEmpty
(
this
.
getAcdgrp
().
getRec
().
getInr
()))
{
...
...
@@ -397,7 +404,7 @@ public class Acdopn extends AbstractTransaction{
this
.
getAcdgrp
().
getRec
().
copyValue
(
acd
);
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
()));
this
.
getAcdgrp
().
getRec
().
setNcid
(
this
.
getAcdgrp
().
getPty
().
getCid
());
...
...
@@ -441,7 +448,8 @@ public class Acdopn extends AbstractTransaction{
String
objinr
=
this
.
getAcdp
().
getAcdgrp
().
getRec
().
getInr
();
String
objtyp
=
"acd"
;
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
;
}
...
...
@@ -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
));
}
}
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/util/MdaUtils.java
View file @
cc45a34b
...
...
@@ -1133,7 +1133,7 @@ public class MdaUtils {
public
static
boolean
prompt
(
Object
...
o
)
{
return
tru
e
;
return
fals
e
;
}
public
static
String
generateSerialNum
()
{
...
...
@@ -1323,7 +1323,14 @@ public class MdaUtils {
* @param 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 {
BufferedReader
br
=
new
BufferedReader
(
new
StringReader
(
block
));
String
_line
;
for
(
int
count
=
0
;
(
_line
=
br
.
readLine
())
!=
null
;
++
count
)
{
for
(
int
count
=
0
;
(
_line
=
br
.
readLine
())
!=
null
;
++
count
)
{
if
(
count
==
line
)
{
return
_line
;
}
...
...
@@ -1565,6 +1572,7 @@ public class MdaUtils {
return
null
;
}
public
static
String
getServerName
()
{
InetAddress
addr
=
null
;
String
serverName
=
""
;
...
...
@@ -1582,20 +1590,21 @@ public class MdaUtils {
/**
* todo 解决evt.getData()问题
*
* @return
*/
public
static
Object
getEventData
(){
public
static
Object
getEventData
()
{
return
"-1"
;
}
/**
* todo 解决evt.getTarget问题
*
* @return
*/
public
static
IAttribute
getEventTarget
(){
public
static
IAttribute
getEventTarget
()
{
return
new
AttributeValue
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment