Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
remit
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
gechengyang
remit
Commits
1eab7759
Commit
1eab7759
authored
Dec 17, 2018
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事务管理
parent
e7e39cee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
19 deletions
+55
-19
DbUtil.java
src/main/java/com/brilliance/remit/common/util/DbUtil.java
+15
-0
RemitServiceImp.java
...ava/com/brilliance/remit/service/imp/RemitServiceImp.java
+22
-5
init.sql
src/main/resources/init.sql
+13
-13
spring-applicationContext.xml
src/main/resources/spring-applicationContext.xml
+5
-1
No files found.
src/main/java/com/brilliance/remit/common/util/DbUtil.java
0 → 100644
View file @
1eab7759
package
com
.
brilliance
.
remit
.
common
.
util
;
import
org.springframework.transaction.TransactionDefinition
;
import
org.springframework.transaction.support.DefaultTransactionDefinition
;
public
class
DbUtil
{
public
static
DefaultTransactionDefinition
getDbDefinition
()
{
DefaultTransactionDefinition
def
=
new
DefaultTransactionDefinition
();
// 设置事务隔离级别,开启新事务
def
.
setPropagationBehavior
(
TransactionDefinition
.
PROPAGATION_REQUIRES_NEW
);
return
def
;
}
}
src/main/java/com/brilliance/remit/service/imp/RemitServiceImp.java
View file @
1eab7759
package
com
.
brilliance
.
remit
.
service
.
imp
;
package
com
.
brilliance
.
remit
.
service
.
imp
;
import
javax.annotation.Resource
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jdbc.datasource.DataSourceTransactionManager
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.TransactionStatus
;
import
com.brilliance.remit.common.util.DbUtil
;
import
com.brilliance.remit.db.dao.CpdMapper
;
import
com.brilliance.remit.db.dao.CpdMapper
;
import
com.brilliance.remit.db.dao.TrnMapper
;
import
com.brilliance.remit.db.dao.TrnMapper
;
import
com.brilliance.remit.db.model.Cpd
;
import
com.brilliance.remit.db.model.Cpd
;
...
@@ -15,15 +20,27 @@ public class RemitServiceImp implements RemitService {
...
@@ -15,15 +20,27 @@ public class RemitServiceImp implements RemitService {
@Autowired
@Autowired
private
TrnMapper
trnMapper
;
private
TrnMapper
trnMapper
;
private
static
int
i
=
10
;
private
static
int
i
=
10
;
@Resource
(
name
=
"txManager"
)
private
DataSourceTransactionManager
transactionManager
;
@Override
@Override
public
void
test
()
{
public
void
test
()
{
// 事务操作
TransactionStatus
status
=
transactionManager
.
getTransaction
(
DbUtil
.
getDbDefinition
());
try
{
Cpd
cpd
=
new
Cpd
();
cpd
.
setINR
(
String
.
valueOf
(
i
));
i
++;
cpdMapper
.
insert
(
cpd
);
transactionManager
.
commit
(
status
);
cpdMapper
.
insert
(
cpd
);
System
.
out
.
println
(
"insert cpd success !!!"
);
transactionManager
.
commit
(
status
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
transactionManager
.
rollback
(
status
);
}
Cpd
cpd
=
new
Cpd
();
cpd
.
setINR
(
String
.
valueOf
(
i
));
i
++;
cpdMapper
.
insert
(
cpd
);
System
.
out
.
println
(
"insert cpd success !!!"
);
}
}
}
}
src/main/resources/init.sql
View file @
1eab7759
CREATE
TABLE
CPD
(
INR
CHAR
(
8
),
OWNREF
CHAR
(
16
),
NAM
CHAR
(
40
),
PYEPTYINR
CHAR
(
8
),
PYEPTAINR
CHAR
(
8
),
PYENAM
CHAR
(
40
),
PYEREF
CHAR
(
16
),
PYBPTYINR
CHAR
(
8
),
PYBPTAINR
CHAR
(
8
),
PYBNAM
CHAR
(
40
),
PYBREF
CHAR
(
16
),
ORCPTYINR
CHAR
(
8
),
ORCPTAINR
CHAR
(
8
),
ORCNAM
CHAR
(
50
),
ORCREF
CHAR
(
16
),
ORIPTYINR
CHAR
(
8
),
ORIPTAINR
CHAR
(
8
),
ORINAM
CHAR
(
40
),
ORIREF
CHAR
(
16
),
VALDAT
TIMESTAMP
,
OPNDAT
TIMESTAMP
,
CLSDAT
TIMESTAMP
,
CHATO
CHAR
(
1
),
CREDAT
TIMESTAMP
,
OWNUSR
VARCHAR2
(
12
),
VER
CHAR
(
4
),
DETCHGCOD
CHAR
(
3
),
PAYTYP
CHAR
(
1
),
STAGOD
CHAR
(
6
),
STACTY
CHAR
(
3
),
ATTRSN
CHAR
(
20
),
ETYEXTKEY
CHAR
(
8
),
REGREF
CHAR
(
16
),
SHJRAT
DECIMAL
(
14
,
6
),
SHJSETTYP
CHAR
(
1
),
SHJPWD
CHAR
(
8
),
SHJTEL
CHAR
(
20
),
SHJIDTYP
CHAR
(
3
),
SHJIDCOD
CHAR
(
20
),
SHJFLG
CHAR
(
1
),
SYSNO
CHAR
(
21
),
GORS
CHAR
(
1
),
FEECUR
CHAR
(
3
),
FEEAMT
DECIMAL
(
16
,
3
),
TRNTYP
CHAR
(
1
),
PAYTYPE
CHAR
(
1
),
CLITYP
CHAR
(
1
),
CURF33B
CHAR
(
3
),
CUR71F
CHAR
(
3
),
AMT71F
DECIMAL
(
16
,
3
),
AMTF33B
DECIMAL
(
16
,
3
),
F36
DECIMAL
(
12
,
6
),
F23E
CHAR
(
35
),
F23B
CHAR
(
4
),
SWFTYP
CHAR
(
3
),
TRDINR
CHAR
(
8
),
BRANCHINR
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
),
SZTYP
CHAR
(
1
),
ORCACT
CHAR
(
35
),
PYEACT
CHAR
(
35
),
CUSTYP
CHAR
(
2
),
DIPTYP
CHAR
(
2
),
PAYFLG
CHAR
(
2
),
ISSTYP
CHAR
(
1
),
PLACE
CHAR
(
1
),
NXTDIPTYP
CHAR
(
2
),
DRAFTNO
CHAR
(
16
),
OTHCURFLG
CHAR
(
1
),
OTHTXCUR
CHAR
(
3
),
OTHTXAMT
DECIMAL
(
18
,
3
),
OTHTXRAT
DECIMAL
(
12
,
6
),
FINFLG
CHAR
(
1
),
INTACT
CHAR
(
35
),
FODINR
CHAR
(
8
),
ORCPTYEXTKEY
CHAR
(
24
),
CUSPRO
CHAR
(
2
),
CUSSEG
CHAR
(
2
),
CORREF
CHAR
(
18
),
ATTDAT
TIMESTAMP
,
ISQNAM
CHAR
(
1
),
OPPCUSPRO
CHAR
(
2
),
CASHREF
CHAR
(
20
),
RATCAL
CHAR
(
1
),
LIQTYP
CHAR
(
2
),
ISFINANCE
CHAR
(
1
),
FEEAMT2
DECIMAL
(
16
,
3
),
FEECUR2
CHAR
(
3
),
DELTYP
CHAR
(
2
),
AMEREF
CHAR
(
20
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
FKTYP
CHAR
(
1
),
STANAM
VARCHAR2
(
244
),
OFFREF
CHAR
(
20
),
OFFDAT
TIMESTAMP
,
ISOFFHAND
CHAR
(
1
),
OPPBCHKEY
CHAR
(
8
),
AMENUM
DECIMAL
(
2
,
0
),
REMARK
VARCHAR2
(
216
),
FINREF
CHAR
(
40
));
CREATE
TABLE
CPD
(
INR
CHAR
(
8
),
OWNREF
CHAR
(
16
),
NAM
CHAR
(
40
),
PYEPTYINR
CHAR
(
8
),
PYEPTAINR
CHAR
(
8
),
PYENAM
CHAR
(
40
),
PYEREF
CHAR
(
16
),
PYBPTYINR
CHAR
(
8
),
PYBPTAINR
CHAR
(
8
),
PYBNAM
CHAR
(
40
),
PYBREF
CHAR
(
16
),
ORCPTYINR
CHAR
(
8
),
ORCPTAINR
CHAR
(
8
),
ORCNAM
CHAR
(
50
),
ORCREF
CHAR
(
16
),
ORIPTYINR
CHAR
(
8
),
ORIPTAINR
CHAR
(
8
),
ORINAM
CHAR
(
40
),
ORIREF
CHAR
(
16
),
VALDAT
TIMESTAMP
,
OPNDAT
TIMESTAMP
,
CLSDAT
TIMESTAMP
,
CHATO
CHAR
(
1
),
CREDAT
TIMESTAMP
,
OWNUSR
VARCHAR2
(
12
),
VER
CHAR
(
4
),
DETCHGCOD
CHAR
(
3
),
PAYTYP
CHAR
(
1
),
STAGOD
CHAR
(
6
),
STACTY
CHAR
(
3
),
ATTRSN
CHAR
(
20
),
ETYEXTKEY
CHAR
(
8
),
REGREF
CHAR
(
16
),
SHJRAT
DECIMAL
(
14
,
6
),
SHJSETTYP
CHAR
(
1
),
SHJPWD
CHAR
(
8
),
SHJTEL
CHAR
(
20
),
SHJIDTYP
CHAR
(
3
),
SHJIDCOD
CHAR
(
20
),
SHJFLG
CHAR
(
1
),
SYSNO
CHAR
(
21
),
GORS
CHAR
(
1
),
FEECUR
CHAR
(
3
),
FEEAMT
DECIMAL
(
16
,
3
),
TRNTYP
CHAR
(
1
),
PAYTYPE
CHAR
(
1
),
CLITYP
CHAR
(
1
),
CURF33B
CHAR
(
3
),
CUR71F
CHAR
(
3
),
AMT71F
DECIMAL
(
16
,
3
),
AMTF33B
DECIMAL
(
16
,
3
),
F36
DECIMAL
(
12
,
6
),
F23E
CHAR
(
35
),
F23B
CHAR
(
4
),
SWFTYP
CHAR
(
3
),
TRDINR
CHAR
(
8
),
BRANCHINR
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
),
SZTYP
CHAR
(
1
),
ORCACT
CHAR
(
35
),
PYEACT
CHAR
(
35
),
CUSTYP
CHAR
(
2
),
DIPTYP
CHAR
(
2
),
PAYFLG
CHAR
(
2
),
ISSTYP
CHAR
(
1
),
PLACE
CHAR
(
1
),
NXTDIPTYP
CHAR
(
2
),
DRAFTNO
CHAR
(
16
),
OTHCURFLG
CHAR
(
1
),
OTHTXCUR
CHAR
(
3
),
OTHTXAMT
DECIMAL
(
18
,
3
),
OTHTXRAT
DECIMAL
(
12
,
6
),
FINFLG
CHAR
(
1
),
INTACT
CHAR
(
35
),
FODINR
CHAR
(
8
),
ORCPTYEXTKEY
CHAR
(
24
),
CUSPRO
CHAR
(
2
),
CUSSEG
CHAR
(
2
),
CORREF
CHAR
(
18
),
ATTDAT
TIMESTAMP
,
ISQNAM
CHAR
(
1
),
OPPCUSPRO
CHAR
(
2
),
CASHREF
CHAR
(
20
),
RATCAL
CHAR
(
1
),
LIQTYP
CHAR
(
2
),
ISFINANCE
CHAR
(
1
),
FEEAMT2
DECIMAL
(
16
,
3
),
FEECUR2
CHAR
(
3
),
DELTYP
CHAR
(
2
),
AMEREF
CHAR
(
20
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
FKTYP
CHAR
(
1
),
STANAM
VARCHAR2
(
244
),
OFFREF
CHAR
(
20
),
OFFDAT
TIMESTAMP
,
ISOFFHAND
CHAR
(
1
),
OPPBCHKEY
CHAR
(
8
),
AMENUM
DECIMAL
(
2
,
0
),
REMARK
VARCHAR2
(
216
),
FINREF
CHAR
(
40
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
CPT
(
INR
CHAR
(
8
),
FLDMODBLK
VARCHAR2
(
4000
),
NARHIS
VARCHAR2
(
4000
),
CONTAG72
VARCHAR2
(
4000
),
CONTAG79
VARCHAR2
(
4000
),
CONTAG70
VARCHAR2
(
4000
),
REMARK
VARCHAR2
(
1080
));
CREATE
TABLE
CPT
(
INR
CHAR
(
8
),
FLDMODBLK
VARCHAR2
(
4000
),
NARHIS
VARCHAR2
(
4000
),
CONTAG72
VARCHAR2
(
4000
),
CONTAG79
VARCHAR2
(
4000
),
CONTAG70
VARCHAR2
(
4000
),
REMARK
VARCHAR2
(
1080
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
ADR
(
INR
CHAR
(
8
),
EXTKEY
CHAR
(
16
),
NAM
CHAR
(
40
),
BIC
CHAR
(
11
),
BICAUT
CHAR
(
1
),
BID
CHAR
(
35
),
BLZ
CHAR
(
8
),
CLC
CHAR
(
35
),
DPT
CHAR
(
35
),
EML
CHAR
(
80
),
FAX1
CHAR
(
20
),
FAX2
CHAR
(
20
),
NAM1
CHAR
(
35
),
NAM2
CHAR
(
35
),
NAM3
CHAR
(
35
),
STR1
VARCHAR2
(
108
),
STR2
CHAR
(
35
),
LOCZIP
CHAR
(
10
),
LOCTXT
CHAR
(
25
),
LOC2
CHAR
(
35
),
LOCCTY
CHAR
(
3
),
CORTYP
CHAR
(
3
),
POB
CHAR
(
35
),
POBZIP
CHAR
(
10
),
POBTXT
CHAR
(
25
),
TEL1
CHAR
(
20
),
TEL2
CHAR
(
20
),
TID
CHAR
(
23
),
TLX
CHAR
(
20
),
TLXAUT
CHAR
(
1
),
UIL
CHAR
(
2
),
VER
CHAR
(
4
),
MANMOD
CHAR
(
1
),
TARFLG
CHAR
(
1
),
DTACID
CHAR
(
23
),
DTECID
CHAR
(
23
),
TIDTCX
CHAR
(
23
),
DTGCID
CHAR
(
23
),
ETGEXTKEY
CHAR
(
8
),
ADRCN1
VARCHAR2
(
205
),
ADRCN2
CHAR
(
40
),
ADRCN3
VARCHAR2
(
205
),
ADRCN4
CHAR
(
40
),
TIDBUS
CHAR
(
40
),
TIDTCXBUS
CHAR
(
40
),
ISBCHFLG
CHAR
(
1
),
BCHIDN
CHAR
(
6
),
ADR1
CHAR
(
40
),
ADR2
CHAR
(
40
),
ADR3
CHAR
(
40
),
ADR4
CHAR
(
40
),
EDICID
CHAR
(
10
),
DPTTYP
CHAR
(
2
));
CREATE
TABLE
ADR
(
INR
CHAR
(
8
),
EXTKEY
CHAR
(
16
),
NAM
CHAR
(
40
),
BIC
CHAR
(
11
),
BICAUT
CHAR
(
1
),
BID
CHAR
(
35
),
BLZ
CHAR
(
8
),
CLC
CHAR
(
35
),
DPT
CHAR
(
35
),
EML
CHAR
(
80
),
FAX1
CHAR
(
20
),
FAX2
CHAR
(
20
),
NAM1
CHAR
(
35
),
NAM2
CHAR
(
35
),
NAM3
CHAR
(
35
),
STR1
VARCHAR2
(
108
),
STR2
CHAR
(
35
),
LOCZIP
CHAR
(
10
),
LOCTXT
CHAR
(
25
),
LOC2
CHAR
(
35
),
LOCCTY
CHAR
(
3
),
CORTYP
CHAR
(
3
),
POB
CHAR
(
35
),
POBZIP
CHAR
(
10
),
POBTXT
CHAR
(
25
),
TEL1
CHAR
(
20
),
TEL2
CHAR
(
20
),
TID
CHAR
(
23
),
TLX
CHAR
(
20
),
TLXAUT
CHAR
(
1
),
UIL
CHAR
(
2
),
VER
CHAR
(
4
),
MANMOD
CHAR
(
1
),
TARFLG
CHAR
(
1
),
DTACID
CHAR
(
23
),
DTECID
CHAR
(
23
),
TIDTCX
CHAR
(
23
),
DTGCID
CHAR
(
23
),
ETGEXTKEY
CHAR
(
8
),
ADRCN1
VARCHAR2
(
205
),
ADRCN2
CHAR
(
40
),
ADRCN3
VARCHAR2
(
205
),
ADRCN4
CHAR
(
40
),
TIDBUS
CHAR
(
40
),
TIDTCXBUS
CHAR
(
40
),
ISBCHFLG
CHAR
(
1
),
BCHIDN
CHAR
(
6
),
ADR1
CHAR
(
40
),
ADR2
CHAR
(
40
),
ADR3
CHAR
(
40
),
ADR4
CHAR
(
40
),
EDICID
CHAR
(
10
),
DPTTYP
CHAR
(
2
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
BCH
(
INR
CHAR
(
8
),
ETYEXTKEY
CHAR
(
8
),
BRANCH
CHAR
(
8
),
LEV
CHAR
(
1
),
UPBRANCH
CHAR
(
8
),
VER
CHAR
(
4
),
ACCBCH
CHAR
(
8
),
BCHUSR
CHAR
(
20
),
BCHLST
VARCHAR2
(
3240
),
STA
CHAR
(
1
),
PTYINR
CHAR
(
8
),
CORFLG
CHAR
(
1
),
NAMCN
VARCHAR2
(
41
),
ADRCN
CHAR
(
40
),
ADRCN2
CHAR
(
40
),
UPBCHKEY
CHAR
(
8
),
DECNUM
CHAR
(
12
),
RMBRPT
CHAR
(
12
),
OWNBCHCOD
CHAR
(
5
),
FXQDIR
CHAR
(
40
),
HVPSNAM
CHAR
(
40
));
CREATE
TABLE
BCH
(
INR
CHAR
(
8
),
ETYEXTKEY
CHAR
(
8
),
BRANCH
CHAR
(
8
),
LEV
CHAR
(
1
),
UPBRANCH
CHAR
(
8
),
VER
CHAR
(
4
),
ACCBCH
CHAR
(
8
),
BCHUSR
CHAR
(
20
),
BCHLST
VARCHAR2
(
3240
),
STA
CHAR
(
1
),
PTYINR
CHAR
(
8
),
CORFLG
CHAR
(
1
),
NAMCN
VARCHAR2
(
41
),
ADRCN
CHAR
(
40
),
ADRCN2
CHAR
(
40
),
UPBCHKEY
CHAR
(
8
),
DECNUM
CHAR
(
12
),
RMBRPT
CHAR
(
12
),
OWNBCHCOD
CHAR
(
5
),
FXQDIR
CHAR
(
40
),
HVPSNAM
CHAR
(
40
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
PTA
(
INR
CHAR
(
8
),
PTYINR
CHAR
(
8
),
NAM
CHAR
(
40
),
PRI
CHAR
(
1
),
ENO
CHAR
(
3
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
OBJKEY
CHAR
(
24
),
USG
CHAR
(
3
),
VER
CHAR
(
4
),
BIC
CHAR
(
11
),
ADRSTA
CHAR
(
1
),
PTYTYP
CHAR
(
15
),
PTYEXTKEY
CHAR
(
24
),
TID
CHAR
(
23
),
LOCCTY
CHAR
(
3
),
CLC
CHAR
(
35
),
ETGEXTKEY
CHAR
(
8
),
BRANCHINR
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
),
CUSPRO
CHAR
(
2
),
CUSSEG
CHAR
(
2
),
ATTDAT
TIMESTAMP
,
ATTRSN
CHAR
(
20
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
PTYCORE
CHAR
(
24
),
GJDELFLG
CHAR
(
3
),
BEIZHU1
CHAR
(
20
),
BEIZHU2
CHAR
(
20
));
CREATE
TABLE
PTA
(
INR
CHAR
(
8
),
PTYINR
CHAR
(
8
),
NAM
CHAR
(
40
),
PRI
CHAR
(
1
),
ENO
CHAR
(
3
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
OBJKEY
CHAR
(
24
),
USG
CHAR
(
3
),
VER
CHAR
(
4
),
BIC
CHAR
(
11
),
ADRSTA
CHAR
(
1
),
PTYTYP
CHAR
(
15
),
PTYEXTKEY
CHAR
(
24
),
TID
CHAR
(
23
),
LOCCTY
CHAR
(
3
),
CLC
CHAR
(
35
),
ETGEXTKEY
CHAR
(
8
),
BRANCHINR
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
),
CUSPRO
CHAR
(
2
),
CUSSEG
CHAR
(
2
),
ATTDAT
TIMESTAMP
,
ATTRSN
CHAR
(
20
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
PTYCORE
CHAR
(
24
),
GJDELFLG
CHAR
(
3
),
BEIZHU1
CHAR
(
20
),
BEIZHU2
CHAR
(
20
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
PTE
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
SUBID
CHAR
(
4
),
CBTPFX
CHAR
(
3
),
GRPKEY
CHAR
(
6
),
EXTID
CHAR
(
16
),
LIAPTYINR
CHAR
(
8
),
LIAPTAINR
CHAR
(
8
),
CDTPTSINR
CHAR
(
8
),
OWNREF
CHAR
(
20
),
NAM
CHAR
(
40
),
FEEINR
CHAR
(
8
),
BEGDAT
TIMESTAMP
,
CLSDAT
TIMESTAMP
,
SETDAT
TIMESTAMP
,
NXTCOMDAT
TIMESTAMP
,
ROLPAY
CHAR
(
3
),
MATDAT
TIMESTAMP
,
COVTYP
CHAR
(
1
),
PRC
DECIMAL
(
8
,
5
),
AMTFLG
CHAR
(
1
),
VER
CHAR
(
4
),
LSBTYP
CHAR
(
50
),
CCVROL
CHAR
(
3
),
PTPTYP
CHAR
(
3
),
ASGTXT
VARCHAR2
(
410
),
ASBTXT
VARCHAR2
(
410
),
INVISSDAT
TIMESTAMP
,
SYSAMT
DECIMAL
(
18
,
3
),
SYSRAT
DECIMAL
(
14
,
6
),
INVMATDAT
TIMESTAMP
);
CREATE
TABLE
PTE
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
SUBID
CHAR
(
4
),
CBTPFX
CHAR
(
3
),
GRPKEY
CHAR
(
6
),
EXTID
CHAR
(
16
),
LIAPTYINR
CHAR
(
8
),
LIAPTAINR
CHAR
(
8
),
CDTPTSINR
CHAR
(
8
),
OWNREF
CHAR
(
20
),
NAM
CHAR
(
40
),
FEEINR
CHAR
(
8
),
BEGDAT
TIMESTAMP
,
CLSDAT
TIMESTAMP
,
SETDAT
TIMESTAMP
,
NXTCOMDAT
TIMESTAMP
,
ROLPAY
CHAR
(
3
),
MATDAT
TIMESTAMP
,
COVTYP
CHAR
(
1
),
PRC
DECIMAL
(
8
,
5
),
AMTFLG
CHAR
(
1
),
VER
CHAR
(
4
),
LSBTYP
CHAR
(
50
),
CCVROL
CHAR
(
3
),
PTPTYP
CHAR
(
3
),
ASGTXT
VARCHAR2
(
410
),
ASBTXT
VARCHAR2
(
410
),
INVISSDAT
TIMESTAMP
,
SYSAMT
DECIMAL
(
18
,
3
),
SYSRAT
DECIMAL
(
14
,
6
),
INVMATDAT
TIMESTAMP
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
PTM
(
INR
CHAR
(
8
),
PTAINR
CHAR
(
8
),
CORTYP
CHAR
(
3
),
CORADR
CHAR
(
80
),
AUTFLG
CHAR
(
1
),
AUTDET
CHAR
(
40
),
VER
CHAR
(
4
),
ETGEXTKEY
CHAR
(
8
));
CREATE
TABLE
PTM
(
INR
CHAR
(
8
),
PTAINR
CHAR
(
8
),
CORTYP
CHAR
(
3
),
CORADR
CHAR
(
80
),
AUTFLG
CHAR
(
1
),
AUTDET
CHAR
(
40
),
VER
CHAR
(
4
),
ETGEXTKEY
CHAR
(
8
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
PTS
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
ROL
CHAR
(
3
),
PTAINR
CHAR
(
8
),
PTYINR
CHAR
(
8
),
EXTKEY
CHAR
(
16
),
ADRBLK
VARCHAR2
(
144
),
REF
CHAR
(
16
),
NAM
CHAR
(
40
),
OWNREF
CHAR
(
20
),
DFTCUR
CHAR
(
3
),
DFTDSP
CHAR
(
3
),
DFTACT
CHAR
(
34
),
DFTFEECUR
CHAR
(
3
),
DFTACTPTAINR
CHAR
(
8
),
GLGGRPFLG
CHAR
(
3
),
EXTACT
CHAR
(
34
),
VER
CHAR
(
4
),
DFTSETROL
CHAR
(
3
),
SETXRTINF
VARCHAR2
(
4000
),
CLIBANTYP
CHAR
(
1
),
PTCNAM
CHAR
(
35
),
PTCOE
CHAR
(
35
),
ADRBLKCN
VARCHAR2
(
144
),
BNKNAMCN
CHAR
(
40
),
BNKCOD
CHAR
(
12
),
PTYNAM
CHAR
(
40
),
CUSPRO
CHAR
(
2
),
CUSSEG
CHAR
(
2
),
ATTDAT
TIMESTAMP
,
ATTRSN
CHAR
(
20
),
CUSTYP
CHAR
(
2
),
LOCZIP
CHAR
(
10
),
TELNUM
CHAR
(
20
),
RMBRPT
CHAR
(
12
));
CREATE
TABLE
PTS
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
ROL
CHAR
(
3
),
PTAINR
CHAR
(
8
),
PTYINR
CHAR
(
8
),
EXTKEY
CHAR
(
16
),
ADRBLK
VARCHAR2
(
144
),
REF
CHAR
(
16
),
NAM
CHAR
(
40
),
OWNREF
CHAR
(
20
),
DFTCUR
CHAR
(
3
),
DFTDSP
CHAR
(
3
),
DFTACT
CHAR
(
34
),
DFTFEECUR
CHAR
(
3
),
DFTACTPTAINR
CHAR
(
8
),
GLGGRPFLG
CHAR
(
3
),
EXTACT
CHAR
(
34
),
VER
CHAR
(
4
),
DFTSETROL
CHAR
(
3
),
SETXRTINF
VARCHAR2
(
4000
),
CLIBANTYP
CHAR
(
1
),
PTCNAM
CHAR
(
35
),
PTCOE
CHAR
(
35
),
ADRBLKCN
VARCHAR2
(
144
),
BNKNAMCN
CHAR
(
40
),
BNKCOD
CHAR
(
12
),
PTYNAM
CHAR
(
40
),
CUSPRO
CHAR
(
2
),
CUSSEG
CHAR
(
2
),
ATTDAT
TIMESTAMP
,
ATTRSN
CHAR
(
20
),
CUSTYP
CHAR
(
2
),
LOCZIP
CHAR
(
10
),
TELNUM
CHAR
(
20
),
RMBRPT
CHAR
(
12
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
PTY
(
INR
CHAR
(
8
),
EXTKEY
CHAR
(
24
),
NAM
CHAR
(
40
),
PTYTYP
CHAR
(
15
),
ACCUSR
CHAR
(
8
),
HBKACCFLG
CHAR
(
1
),
HBKCONFLG
CHAR
(
1
),
HBKINR
CHAR
(
8
),
HEQACCFLG
CHAR
(
1
),
HEQCONFLG
CHAR
(
1
),
HEQINR
CHAR
(
8
),
PRFCTR
CHAR
(
6
),
RESUSR
CHAR
(
8
),
RSKCLS
CHAR
(
6
),
RSKCTY
CHAR
(
3
),
RSKTXT
CHAR
(
35
),
UIL
CHAR
(
2
),
VER
CHAR
(
4
),
AKKBRA
CHAR
(
3
),
AKKCOM
CHAR
(
8
),
AKKREG
CHAR
(
2
),
LIDCNDFLG
CHAR
(
1
),
LIDMAXDUR
DECIMAL
(
4
,
0
),
TRDCNDFLG
CHAR
(
1
),
TRDTENTOT
DECIMAL
(
5
,
0
),
TRDTENINI
DECIMAL
(
5
,
0
),
TRDTENEXT
DECIMAL
(
5
,
0
),
TRDEXTNMB
DECIMAL
(
5
,
0
),
BADCNDFLG
CHAR
(
1
),
BADTENEXT
DECIMAL
(
4
,
0
),
ADRSTA
CHAR
(
1
),
SELTYP
CHAR
(
1
),
BUYTYP
CHAR
(
1
),
SLA
CHAR
(
6
),
ETYEXTKEY
CHAR
(
8
),
ATTRSN
CHAR
(
20
),
FRNAM
CHAR
(
10
),
ETGEXTKEY
CHAR
(
8
),
CUSTYP
CHAR
(
2
),
IDTYPE
CHAR
(
3
),
IDCODE
CHAR
(
30
),
JUSCOD
CHAR
(
20
),
FRIDCODE
CHAR
(
30
),
FRIDTYPE
CHAR
(
3
),
BNKTYP
CHAR
(
3
),
TYBCNO
CHAR
(
11
),
NETRPT
CHAR
(
1
),
CUSSEG
CHAR
(
2
),
ATTDAT
TIMESTAMP
,
BCHKEYINR
CHAR
(
8
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
OPPCTY
VARCHAR2
(
1010
),
OTHINF
VARCHAR2
(
366
),
FRBIRDAT
TIMESTAMP
,
BIRDAT
TIMESTAMP
,
NAMCN
VARCHAR2
(
205
),
ADRCN
VARCHAR2
(
205
),
ISDISC
CHAR
(
1
),
DSFLG
CHAR
(
1
),
MDYDAT
TIMESTAMP
,
PTYXH
CHAR
(
3
),
PTYCORE
CHAR
(
24
),
TELNO
CHAR
(
20
),
FAXNO
CHAR
(
20
),
ISZMQ
CHAR
(
1
),
ADRBW
VARCHAR2
(
108
),
NAMCHN
VARCHAR2
(
205
),
ADRCHN
VARCHAR2
(
205
),
NAMBW
VARCHAR2
(
108
),
SOCCOD
CHAR
(
18
),
GJEXTKEY
CHAR
(
24
));
CREATE
TABLE
PTY
(
INR
CHAR
(
8
),
EXTKEY
CHAR
(
24
),
NAM
CHAR
(
40
),
PTYTYP
CHAR
(
15
),
ACCUSR
CHAR
(
8
),
HBKACCFLG
CHAR
(
1
),
HBKCONFLG
CHAR
(
1
),
HBKINR
CHAR
(
8
),
HEQACCFLG
CHAR
(
1
),
HEQCONFLG
CHAR
(
1
),
HEQINR
CHAR
(
8
),
PRFCTR
CHAR
(
6
),
RESUSR
CHAR
(
8
),
RSKCLS
CHAR
(
6
),
RSKCTY
CHAR
(
3
),
RSKTXT
CHAR
(
35
),
UIL
CHAR
(
2
),
VER
CHAR
(
4
),
AKKBRA
CHAR
(
3
),
AKKCOM
CHAR
(
8
),
AKKREG
CHAR
(
2
),
LIDCNDFLG
CHAR
(
1
),
LIDMAXDUR
DECIMAL
(
4
,
0
),
TRDCNDFLG
CHAR
(
1
),
TRDTENTOT
DECIMAL
(
5
,
0
),
TRDTENINI
DECIMAL
(
5
,
0
),
TRDTENEXT
DECIMAL
(
5
,
0
),
TRDEXTNMB
DECIMAL
(
5
,
0
),
BADCNDFLG
CHAR
(
1
),
BADTENEXT
DECIMAL
(
4
,
0
),
ADRSTA
CHAR
(
1
),
SELTYP
CHAR
(
1
),
BUYTYP
CHAR
(
1
),
SLA
CHAR
(
6
),
ETYEXTKEY
CHAR
(
8
),
ATTRSN
CHAR
(
20
),
FRNAM
CHAR
(
10
),
ETGEXTKEY
CHAR
(
8
),
CUSTYP
CHAR
(
2
),
IDTYPE
CHAR
(
3
),
IDCODE
CHAR
(
30
),
JUSCOD
CHAR
(
20
),
FRIDCODE
CHAR
(
30
),
FRIDTYPE
CHAR
(
3
),
BNKTYP
CHAR
(
3
),
TYBCNO
CHAR
(
11
),
NETRPT
CHAR
(
1
),
CUSSEG
CHAR
(
2
),
ATTDAT
TIMESTAMP
,
BCHKEYINR
CHAR
(
8
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
OPPCTY
VARCHAR2
(
1010
),
OTHINF
VARCHAR2
(
366
),
FRBIRDAT
TIMESTAMP
,
BIRDAT
TIMESTAMP
,
NAMCN
VARCHAR2
(
205
),
ADRCN
VARCHAR2
(
205
),
ISDISC
CHAR
(
1
),
DSFLG
CHAR
(
1
),
MDYDAT
TIMESTAMP
,
PTYXH
CHAR
(
3
),
PTYCORE
CHAR
(
24
),
TELNO
CHAR
(
20
),
FAXNO
CHAR
(
20
),
ISZMQ
CHAR
(
1
),
ADRBW
VARCHAR2
(
108
),
NAMCHN
VARCHAR2
(
205
),
ADRCHN
VARCHAR2
(
205
),
NAMBW
VARCHAR2
(
108
),
SOCCOD
CHAR
(
18
),
GJEXTKEY
CHAR
(
24
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
PTYRAT
(
ETYEXTKEY
CHAR
(
8
),
INR
CHAR
(
8
),
VER
CHAR
(
4
),
PTYINR
CHAR
(
8
),
PTYKEY
CHAR
(
24
),
ACC
CHAR
(
34
),
BEGDAT
TIMESTAMP
,
ENDDAT
TIMESTAMP
,
CUR
CHAR
(
3
),
BUYTYP
CHAR
(
1
),
BUYRAT
DECIMAL
(
11
,
6
),
SELRAT
DECIMAL
(
11
,
6
),
CBYRAT
DECIMAL
(
11
,
6
),
MIDRAT
DECIMAL
(
11
,
6
),
NAMCHN
VARCHAR2
(
205
),
STA
CHAR
(
1
),
BRANCHINR
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
));
CREATE
TABLE
PTYRAT
(
ETYEXTKEY
CHAR
(
8
),
INR
CHAR
(
8
),
VER
CHAR
(
4
),
PTYINR
CHAR
(
8
),
PTYKEY
CHAR
(
24
),
ACC
CHAR
(
34
),
BEGDAT
TIMESTAMP
,
ENDDAT
TIMESTAMP
,
CUR
CHAR
(
3
),
BUYTYP
CHAR
(
1
),
BUYRAT
DECIMAL
(
11
,
6
),
SELRAT
DECIMAL
(
11
,
6
),
CBYRAT
DECIMAL
(
11
,
6
),
MIDRAT
DECIMAL
(
11
,
6
),
NAMCHN
VARCHAR2
(
205
),
STA
CHAR
(
1
),
BRANCHINR
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
TRN
(
INR
CHAR
(
8
),
INIDATTIM
TIMESTAMP
,
INIFRM
CHAR
(
6
),
INIUSR
VARCHAR2
(
12
),
ININAM
CHAR
(
40
),
OWNREF
CHAR
(
16
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
OBJNAM
CHAR
(
40
),
SSNINR
CHAR
(
8
),
SMHNXT
DECIMAL
(
3
,
0
),
USG
CHAR
(
6
),
USR
VARCHAR2
(
12
),
CPLDATTIM
TIMESTAMP
,
INFDSP
CHAR
(
1
),
INFTXT
VARCHAR2
(
1320
),
RELFLG
CHAR
(
1
),
COMFLG
CHAR
(
1
),
COMDAT
TIMESTAMP
,
CORTRNINR
CHAR
(
8
),
XREFLG
CHAR
(
1
),
XRECURBLK
VARCHAR2
(
40
),
RELCUR
CHAR
(
3
),
RELAMT
DECIMAL
(
18
,
3
),
RELORICUR
CHAR
(
3
),
RELORIAMT
DECIMAL
(
18
,
3
),
RELREQ
CHAR
(
40
),
RELRES
CHAR
(
40
),
CNFFLG
CHAR
(
1
),
EVTTXT
VARCHAR2
(
4000
),
RPRUSR
CHAR
(
12
),
ORDINR
CHAR
(
8
),
EXEDAT
TIMESTAMP
,
PDXDAT
TIMESTAMP
,
PRCMOD
CHAR
(
1
),
RELUSR
CHAR
(
12
),
LSTUPDTIM
TIMESTAMP
,
ETYEXTKEY
CHAR
(
8
),
NXTBCHKEY
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
),
BRANCHINR
CHAR
(
8
),
CLRFLG
CHAR
(
1
),
STADATTIM
TIMESTAMP
,
RELDAT
TIMESTAMP
,
INITRSINR
CHAR
(
8
),
VALDAT
TIMESTAMP
,
RELTIM
DECIMAL
(
6
,
4
),
PRTNBR
DECIMAL
(
8
,
0
),
OWNEXTKEY
CHAR
(
5
),
ACCCHS
CHAR
(
1
),
ACCFLG
CHAR
(
1
),
ACCSEQ
CHAR
(
8
),
BCHREF
CHAR
(
3
),
CDCGRP
CHAR
(
8
),
REGID
CHAR
(
16
),
MANACTTRSINR
CHAR
(
8
),
MANACTUSR
CHAR
(
8
),
RECSEQ
CHAR
(
10
),
PRTNUM
DECIMAL
(
3
,
0
),
PROITY
CHAR
(
1
),
WRKUSR
CHAR
(
8
),
SMHINR
CHAR
(
8
),
UNDFLG
CHAR
(
1
),
BERTXACT
CHAR
(
32
),
REGFLG
CHAR
(
1
),
TFCCOD
CHAR
(
8
),
PTYINR
CHAR
(
8
),
LAMFLG
CHAR
(
2
),
WHBFLG
CHAR
(
2
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
AMEFLG
CHAR
(
1
),
AMLFLG
CHAR
(
1
),
WRKUSG
CHAR
(
6
));
CREATE
TABLE
TRN
(
INR
CHAR
(
8
),
INIDATTIM
TIMESTAMP
,
INIFRM
CHAR
(
6
),
INIUSR
VARCHAR2
(
12
),
ININAM
CHAR
(
40
),
OWNREF
CHAR
(
16
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
OBJNAM
CHAR
(
40
),
SSNINR
CHAR
(
8
),
SMHNXT
DECIMAL
(
3
,
0
),
USG
CHAR
(
6
),
USR
VARCHAR2
(
12
),
CPLDATTIM
TIMESTAMP
,
INFDSP
CHAR
(
1
),
INFTXT
VARCHAR2
(
1320
),
RELFLG
CHAR
(
1
),
COMFLG
CHAR
(
1
),
COMDAT
TIMESTAMP
,
CORTRNINR
CHAR
(
8
),
XREFLG
CHAR
(
1
),
XRECURBLK
VARCHAR2
(
40
),
RELCUR
CHAR
(
3
),
RELAMT
DECIMAL
(
18
,
3
),
RELORICUR
CHAR
(
3
),
RELORIAMT
DECIMAL
(
18
,
3
),
RELREQ
CHAR
(
40
),
RELRES
CHAR
(
40
),
CNFFLG
CHAR
(
1
),
EVTTXT
VARCHAR2
(
4000
),
RPRUSR
CHAR
(
12
),
ORDINR
CHAR
(
8
),
EXEDAT
TIMESTAMP
,
PDXDAT
TIMESTAMP
,
PRCMOD
CHAR
(
1
),
RELUSR
CHAR
(
12
),
LSTUPDTIM
TIMESTAMP
,
ETYEXTKEY
CHAR
(
8
),
NXTBCHKEY
CHAR
(
8
),
BCHKEYINR
CHAR
(
8
),
BRANCHINR
CHAR
(
8
),
CLRFLG
CHAR
(
1
),
STADATTIM
TIMESTAMP
,
RELDAT
TIMESTAMP
,
INITRSINR
CHAR
(
8
),
VALDAT
TIMESTAMP
,
RELTIM
DECIMAL
(
6
,
4
),
PRTNBR
DECIMAL
(
8
,
0
),
OWNEXTKEY
CHAR
(
5
),
ACCCHS
CHAR
(
1
),
ACCFLG
CHAR
(
1
),
ACCSEQ
CHAR
(
8
),
BCHREF
CHAR
(
3
),
CDCGRP
CHAR
(
8
),
REGID
CHAR
(
16
),
MANACTTRSINR
CHAR
(
8
),
MANACTUSR
CHAR
(
8
),
RECSEQ
CHAR
(
10
),
PRTNUM
DECIMAL
(
3
,
0
),
PROITY
CHAR
(
1
),
WRKUSR
CHAR
(
8
),
SMHINR
CHAR
(
8
),
UNDFLG
CHAR
(
1
),
BERTXACT
CHAR
(
32
),
REGFLG
CHAR
(
1
),
TFCCOD
CHAR
(
8
),
PTYINR
CHAR
(
8
),
LAMFLG
CHAR
(
2
),
WHBFLG
CHAR
(
2
),
CUSMAN
CHAR
(
8
),
CPMAN
CHAR
(
8
),
AMEFLG
CHAR
(
1
),
AMLFLG
CHAR
(
1
),
WRKUSG
CHAR
(
6
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
CBB
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
CBC
CHAR
(
6
),
EXTID
CHAR
(
16
),
BEGDAT
TIMESTAMP
,
ENDDAT
TIMESTAMP
,
CUR
CHAR
(
3
),
AMT
DECIMAL
(
18
,
3
),
CBEINR
CHAR
(
8
),
XRFCUR
CHAR
(
3
),
XRFAMT
DECIMAL
(
18
,
3
),
COMCUR
CHAR
(
3
),
COMAMT
DECIMAL
(
18
,
3
),
XCOCUR
CHAR
(
3
),
XCOAMT
DECIMAL
(
18
,
3
));
CREATE
TABLE
CBB
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
CBC
CHAR
(
6
),
EXTID
CHAR
(
16
),
BEGDAT
TIMESTAMP
,
ENDDAT
TIMESTAMP
,
CUR
CHAR
(
3
),
AMT
DECIMAL
(
18
,
3
),
CBEINR
CHAR
(
8
),
XRFCUR
CHAR
(
3
),
XRFAMT
DECIMAL
(
18
,
3
),
COMCUR
CHAR
(
3
),
COMAMT
DECIMAL
(
18
,
3
),
XCOCUR
CHAR
(
3
),
XCOAMT
DECIMAL
(
18
,
3
)
,
PRIMARY
KEY
(
inr
)
);
CREATE
TABLE
CBE
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
EXTID
CHAR
(
16
),
CBT
CHAR
(
6
),
TRNTYP
CHAR
(
6
),
TRNINR
CHAR
(
8
),
DAT
TIMESTAMP
,
CUR
CHAR
(
3
),
AMT
DECIMAL
(
18
,
3
),
RELFLG
CHAR
(
1
),
CREDAT
TIMESTAMP
,
XRFCUR
CHAR
(
3
),
XRFAMT
DECIMAL
(
18
,
3
),
NAM
CHAR
(
40
),
ACC
CHAR
(
34
),
ACC2
CHAR
(
34
),
OPTDAT
TIMESTAMP
,
RELCSHPCT
DECIMAL
(
7
,
4
),
NOMPCT
DECIMAL
(
7
,
4
),
GLEDAT
TIMESTAMP
);
CREATE
TABLE
CBE
(
INR
CHAR
(
8
),
OBJTYP
CHAR
(
6
),
OBJINR
CHAR
(
8
),
EXTID
CHAR
(
16
),
CBT
CHAR
(
6
),
TRNTYP
CHAR
(
6
),
TRNINR
CHAR
(
8
),
DAT
TIMESTAMP
,
CUR
CHAR
(
3
),
AMT
DECIMAL
(
18
,
3
),
RELFLG
CHAR
(
1
),
CREDAT
TIMESTAMP
,
XRFCUR
CHAR
(
3
),
XRFAMT
DECIMAL
(
18
,
3
),
NAM
CHAR
(
40
),
ACC
CHAR
(
34
),
ACC2
CHAR
(
34
),
OPTDAT
TIMESTAMP
,
RELCSHPCT
DECIMAL
(
7
,
4
),
NOMPCT
DECIMAL
(
7
,
4
),
GLEDAT
TIMESTAMP
,
PRIMARY
KEY
(
inr
)
);
src/main/resources/spring-applicationContext.xml
View file @
1eab7759
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<!-- 自动扫描注解的bean -->
<!-- 自动扫描注解的bean -->
<context:component-scan
base-package=
"com.brilliance.remit.service"
/>
<context:component-scan
base-package=
"com.brilliance.remit.service"
/>
<!-- 配置数据源 -->
<!-- 配置数据源 -->
<bean
id=
"dataSource"
class=
"org.apache.commons.dbcp.BasicDataSource"
>
<bean
id=
"dataSource"
class=
"org.apache.commons.dbcp.BasicDataSource"
destroy-method=
"close"
>
<property
name=
"driverClassName"
value=
"oracle.jdbc.driver.OracleDriver"
/>
<property
name=
"driverClassName"
value=
"oracle.jdbc.driver.OracleDriver"
/>
<property
name=
"url"
value=
"jdbc:oracle:thin:@172.17.2.4:1521:orcl"
/>
<property
name=
"url"
value=
"jdbc:oracle:thin:@172.17.2.4:1521:orcl"
/>
<property
name=
"username"
value=
"xxremit"
/>
<property
name=
"username"
value=
"xxremit"
/>
...
@@ -30,6 +30,10 @@
...
@@ -30,6 +30,10 @@
<property
name=
"mapperLocations"
value=
"classpath*:com/brilliance/remit/db/mapper/**/*.xml"
/>
<property
name=
"mapperLocations"
value=
"classpath*:com/brilliance/remit/db/mapper/**/*.xml"
/>
</bean>
</bean>
<!-- 事务管理器 -->
<bean
id=
"txManager"
class=
"org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
</bean>
<!-- 配置mapper对应的dao和mybatis工厂 -->
<!-- 配置mapper对应的dao和mybatis工厂 -->
...
...
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