Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
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
isc-v3.1-tmp
isc-core
Commits
815e97af
Commit
815e97af
authored
Oct 09, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
即期结售汇相关mapper
parent
92168b11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
312 additions
and
0 deletions
+312
-0
Fxd.java
isc-common-core/src/main/java/com/brilliance/isc/bo/Fxd.java
+129
-0
Fxt.java
isc-common-core/src/main/java/com/brilliance/isc/bo/Fxt.java
+26
-0
FxdMapper.java
...e/src/main/java/com/brilliance/isc/mda/dao/FxdMapper.java
+35
-0
FxtMapper.java
...e/src/main/java/com/brilliance/isc/mda/dao/FxtMapper.java
+35
-0
fxdmapper.xml
isc-common-core/src/main/resources/mapper/fxdmapper.xml
+0
-0
fxtmapper.xml
isc-common-core/src/main/resources/mapper/fxtmapper.xml
+87
-0
No files found.
isc-common-core/src/main/java/com/brilliance/isc/bo/Fxd.java
0 → 100644
View file @
815e97af
package
com
.
brilliance
.
isc
.
bo
;
import
com.brilliance.isc.common.vo.AbstractCommonVo
;
import
com.brilliance.mda.runtime.mda.util.Decimals
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLDATE
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* TABLE:fxd:
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Fxd
extends
AbstractCommonVo
{
//Internal Unique ID of Import L/C
private
String
inr
=
NULLSTR
;
//Reference
private
String
ownref
=
NULLSTR
;
//Externally Displayed Name to Identify the Contract
private
String
nam
=
NULLSTR
;
//Date Foreign Exchange Opened/Issued
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
opndat
=
NULLDATE
;
//Responsible User
private
String
ownusr
=
NULLSTR
;
//Foreign Exchange Type
private
String
fxtyp
=
NULLSTR
;
//Rate
private
BigDecimal
rat
=
Decimals
.
ZERO_SCALE6
;
//Middle Rate
private
BigDecimal
midrat
=
Decimals
.
ZERO_SCALE6
;
//Quote Reference
private
String
quoref
=
NULLSTR
;
//Fund Department Reference
private
String
fudref
=
NULLSTR
;
//Value date
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
valdat
=
NULLDATE
;
//Date of confirmation
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
cnfdat
=
NULLDATE
;
//Settlement Date
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
setdat
=
NULLDATE
;
//Settlemt date from
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
setdatfrm
=
NULLDATE
;
//Settlement date to
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
setdatto
=
NULLDATE
;
//Date of Closed
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
clsdat
=
NULLDATE
;
//Version
private
String
ver
=
NULLSTR
;
//Branch INR
private
String
branchinr
=
NULLSTR
;
//Branch INR
private
String
bchkeyinr
=
NULLSTR
;
//TRADE IN
private
String
trdint
=
NULLSTR
;
//TRADE OUT
private
String
trdout
=
NULLSTR
;
//交易主体
private
String
trnman
=
NULLSTR
;
//Foreign Account
private
String
acc
=
NULLSTR
;
//CNY Account
private
String
acc2
=
NULLSTR
;
//Clearing Department Responsible User
private
String
usr
=
NULLSTR
;
//Disposition
private
String
dsp
=
NULLSTR
;
//Disposition
private
String
dsp2
=
NULLSTR
;
//Cash cover percent
private
BigDecimal
cshpct
=
Decimals
.
ZERO_SCALE2
;
//Rate
private
BigDecimal
rat1
=
Decimals
.
ZERO_SCALE6
;
//Account manager
private
String
accmng
=
NULLSTR
;
//客户经理部门
private
String
hdbch
=
NULLSTR
;
//Entity KEY of Entry
private
String
etyextkey
=
NULLSTR
;
}
\ No newline at end of file
isc-common-core/src/main/java/com/brilliance/isc/bo/Fxt.java
0 → 100644
View file @
815e97af
package
com
.
brilliance
.
isc
.
bo
;
import
com.brilliance.isc.common.vo.AbstractCommonVo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
static
com
.
brilliance
.
mda
.
runtime
.
mda
.
Constants
.
NULLSTR
;
/**
* TABLE:fxt:
*/
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Fxt
extends
AbstractCommonVo
{
//Internal Unique ID
private
String
inr
=
NULLSTR
;
//Remark
private
String
remark
=
NULLSTR
;
}
\ No newline at end of file
isc-common-core/src/main/java/com/brilliance/isc/mda/dao/FxdMapper.java
0 → 100644
View file @
815e97af
package
com
.
brilliance
.
isc
.
mda
.
dao
;
import
com.brilliance.isc.bo.Fxd
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
public
interface
FxdMapper
{
int
insert
(
Fxd
record
);
int
insertSelective
(
Fxd
record
);
int
updateByPrimaryKeySelective
(
Fxd
record
);
int
updateByPrimaryKey
(
Fxd
record
);
int
deleteByPrimaryKey
(
Fxd
record
);
int
deleteByIds
(
Collection
<
Object
>
collection
);
//修改语句
int
dyncUpdate
(
Map
<
String
,
Object
>
dyncMap
);
Fxd
selectByPrimaryKey
(
Fxd
record
);
int
dyncDelete
(
Map
<
String
,
Object
>
dyncMap
);
List
<
Fxd
>
dyncRead
(
Map
<
String
,
Object
>
dyncMap
);
}
\ No newline at end of file
isc-common-core/src/main/java/com/brilliance/isc/mda/dao/FxtMapper.java
0 → 100644
View file @
815e97af
package
com
.
brilliance
.
isc
.
mda
.
dao
;
import
com.brilliance.isc.bo.Fxt
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
public
interface
FxtMapper
{
int
insert
(
Fxt
record
);
int
insertSelective
(
Fxt
record
);
int
updateByPrimaryKeySelective
(
Fxt
record
);
int
updateByPrimaryKey
(
Fxt
record
);
int
deleteByPrimaryKey
(
Fxt
record
);
int
deleteByIds
(
Collection
<
Object
>
collection
);
//修改语句
int
dyncUpdate
(
Map
<
String
,
Object
>
dyncMap
);
Fxt
selectByPrimaryKey
(
Fxt
record
);
int
dyncDelete
(
Map
<
String
,
Object
>
dyncMap
);
List
<
Fxt
>
dyncRead
(
Map
<
String
,
Object
>
dyncMap
);
}
\ No newline at end of file
isc-common-core/src/main/resources/mapper/fxdmapper.xml
0 → 100644
View file @
815e97af
This diff is collapsed.
Click to expand it.
isc-common-core/src/main/resources/mapper/fxtmapper.xml
0 → 100644
View file @
815e97af
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.brilliance.isc.mda.dao.FxtMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.brilliance.isc.bo.Fxt"
>
<result
property=
"inr"
column=
"inr"
jdbcType=
"VARCHAR"
/>
<result
property=
"remark"
column=
"remark"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
inr,remark
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from fxt
where inr = #{inr,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
>
delete from fxt
where inr = #{inr,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
>
insert into fxt (
<include
refid=
"Base_Column_List"
/>
)
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{inr,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert
id=
"insertSelective"
>
insert into fxt
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"inr != null"
>
inr,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"inr != null"
>
#{inr,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
>
update fxt
<set>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where inr = #{inr,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
>
update fxt
<set>
remark = #{remark,jdbcType=VARCHAR},
</set>
where inr = #{inr,jdbcType=VARCHAR}
</update>
<delete
id=
"deleteByIds"
>
delete from act where inr in
<foreach
item=
"item"
index=
"index"
collection=
"collection"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</delete>
<update
id=
"dyncUpdate"
>
update fxt
<set>
<if
test=
"module.remark != null"
>
remark = #{module.remark,jdbcType=VARCHAR},
</if>
</set>
${conditions}
</update>
<delete
id=
"dyncDelete"
>
${sql}
</delete>
<select
id=
"dyncRead"
resultMap=
"BaseResultMap"
>
${sql}
</select>
</mapper>
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