Commit 815e97af by huangshunlin

即期结售汇相关mapper

parent 92168b11
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
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
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
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
<?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>
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