Commit 27a12af7 by huangshunlin

清算新增表、mapper、bo、vo等

parent 00234c6c
package com.brilliance.isc.bo;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.util.Date;
import static com.brilliance.mda.runtime.mda.Constants.NULLDATE;
import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;
/**
* TABLE:crd:
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Crd extends AbstractCommonVo {
//Internal Unique ID of Import L/C (max = 8)
private String inr = NULLSTR;
//Reference (max = 16)
private String ownref = NULLSTR;
//Externally Displayed Name to Identify the Contract (max = 40)
private String nam = NULLSTR;
//Responsible User (max = 8)
private String ownusr = NULLSTR;
//Date of Creation Opening or Registry
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date credat = NULLDATE;
//Date L/C Opened/Issued
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date opndat = NULLDATE;
//Date L/C Closed
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date clsdat = NULLDATE;
//Object Type of Associated Contract Optional (max =6)
private String rcvobjtyp = NULLSTR;
//Object INR of Associated Contract Optional (max =8)
private String rcvobjinr = NULLSTR;
//Clearing Type (max =1)
private String clrtyp = NULLSTR;
//Transaction Type (max =1)
private String trntyp = NULLSTR;
//Receiver BIC (max =12)
private String rcvbic = NULLSTR;
//Message ReferenceTag21 (max =16)
private String msgref = NULLSTR;
//Account in MessageTag59 (max =21)
private String msgact = NULLSTR;
//Message Type (max =3)
private String msgtyp = NULLSTR;
//Message InrSMH (max =8)
private String msginr = NULLSTR;
//Bound Message Type (max =8)
private String bndtyp = NULLSTR;
//Bound Message INRSMH (max =8)
private String bndinr = NULLSTR;
//Status (max =1)
private String sta = NULLSTR;
//Error Message (max =40)
private String errmsg = NULLSTR;
//Customer Type (max =1)
private String custyp = NULLSTR;
//BRANCHINR (max =8)
private String branchinr = NULLSTR;
//BRANCH CODE KEYINR (max =8)
private String bchkeyinr = NULLSTR;
//Receiver Branch Inr (max =8)
private String rcvbchinr = NULLSTR;
//Version Counter (max =4)
private String ver = NULLSTR;
//Inr for SPT (max =8)
private String sptinr = NULLSTR;
//Entity holding Contract (max =8)
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:rou:ROU - Routing
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Rou extends AbstractCommonVo {
//Internal Unique ID of ROU Routing
private String inr = NULLSTR;
//Priority Detail Level
private int pri;
//Work Group (max=6)
private String usg = NULLSTR;
//Product Type (max=2)
private String bussec = NULLSTR;
//State Code (max=2)
private String stacod = NULLSTR;
//Country (max=2)
private String cty = NULLSTR;
//Currency (max=3)
private String cur = NULLSTR;
//Entity owning routing entry (max=8)
private String etyextkey = NULLSTR;
//Work Group (max=6)
private String grp = NULLSTR;
//Branch Code (max=6)
private String bchcod = NULLSTR;
//TRNGRP (max=6)
private String trngrp = NULLSTR;
}
\ No newline at end of file
package com.brilliance.isc.bo.model;
import com.brilliance.isc.bo.Cbb;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
/**
* @program: isc-core
* @ClassName: Cracbs
* @description: 清算cbs模块
* @author: huangshunlin
* @create: 2024-10-16 20:41
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Cracbs extends AbstractCommonVo {
private Cbb max;
@Override
public void reset() {
super.reset();
if (max == null) {
max = new Cbb();
}
max.reset();
}
}
package com.brilliance.isc.bo.model;
import com.brilliance.isc.bo.Crd;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.brilliance.isc.common.vo.PtsptaVo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
/**
* @program: isc-core
* @ClassName: Crdgrp
* @description: 清算grp模块
* @author: huangshunlin
* @create: 2024-10-16 20:38
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Crdgrp extends AbstractCommonVo {
private Crd rec;
private Cracbs cbs;
private PtsptaVo snd;
private PtsptaVo rcv;
private PtsptaVo trf;
private PtsptaVo apl;
private PtsptaVo acc;
@Override
public void reset() {
if (rec == null) {
rec = new Crd();
}
if (cbs == null) {
cbs = new Cracbs();
}
cbs.reset();
if (snd == null) {
snd = new PtsptaVo();
}
snd.reset();
if (rcv == null) {
rcv = new PtsptaVo();
}
rcv.reset();
if (trf == null) {
trf = new PtsptaVo();
}
trf.reset();
if (apl == null) {
apl = new PtsptaVo();
}
apl.reset();
if (acc == null) {
acc = new PtsptaVo();
}
acc.reset();
}
}
package com.brilliance.isc.bo.model;
import com.brilliance.isc.bo.Spt;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.brilliance.mda.runtime.mda.IStream;
import com.brilliance.mda.runtime.mda.impl.StreamImpl;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;
/**
* @program: isc-core
* @ClassName: Crtmod
* @description: 清算crtmod
* @author: huangshunlin
* @create: 2024-10-17 18:24
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Crtmod extends AbstractCommonVo {
//Parameter Stream
private IStream parstm = new StreamImpl();
//Inr of SMH
private String smhinr = NULLSTR;
private Crdgrp crdgrp;
// private Sysobj crdobj;
// private Crdlod crdlod;
private Spt crtspt;
// private Crtdoc crtdoc;
@Override
public void reset() {
if (crdgrp == null) {
crdgrp = new Crdgrp();
}
crdgrp.reset();
if (crtspt == null) {
crtspt = new Spt();
}
}
}
package com.brilliance.isc.mda.dao;
import com.brilliance.isc.bo.Crd;
import com.brilliance.isc.bo.Fxd;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@Mapper
public interface CrdMapper {
int insert(Crd record);
int insertSelective(Crd record);
int updateByPrimaryKeySelective(Crd record);
int updateByPrimaryKey(Crd record);
int deleteByPrimaryKey(Crd record);
int deleteByIds(Collection<Object> collection);
Crd selectByPrimaryKey(Crd record);
int dyncDelete(Map<String, Object> dyncMap);
int dyncUpdate(Map<String, Object> dyncMap);
List<Crd> dyncRead(Map<String, Object> dyncMap);
Crd selectByInr(@Param("inr") String inr);
Crd selectByOwnref(String ownref);
}
\ No newline at end of file
package com.brilliance.isc.mda.dao;
import com.brilliance.isc.bo.Rou;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@Mapper
public interface RouMapper {
int insert(Rou record);
int insertSelective(Rou record);
int updateByPrimaryKeySelective(Rou record);
int updateByPrimaryKey(Rou record);
int deleteByPrimaryKey(Rou record);
int deleteByIds(Collection<Object> collection);
Rou selectByPrimaryKey(Rou record);
int dyncDelete(Map<String, Object> dyncMap);
int dyncUpdate(Map<String, Object> dyncMap);
List<Rou> dyncRead(Map<String, Object> dyncMap);
Rou selectByBussec(@Param("bussec") String bussec);
}
\ No newline at end of file
package com.brilliance.isc.vo.funds;
import com.brilliance.isc.common.vo.BizAmdInfoVo;
import lombok.Data;
/**
* @program: isc-core
* @ClassName: CrdBizAmdInfoVo
* @description: crd 修改业务数据
* @author: huangshunlin
* @create: 2024-10-17 20:40
*/
@Data
public class CrdBizAmdInfoVo extends BizAmdInfoVo {
}
package com.brilliance.isc.vo.funds;
import com.brilliance.isc.common.vo.BizInfoVo;
import lombok.Data;
import java.util.Date;
/**
* @program: isc-core
* @ClassName: CrdBizInfoVo
* @description: crd业务数据
* @author: huangshunlin
* @create: 2024-10-17 20:34
*/
@Data
public class CrdBizInfoVo extends BizInfoVo {
//crtp.forare
private String forare;
//crdgrp.rec.opndat
private Date opndat;
//crdgrp.rec.rcvbchinr
private String rcvbchinr;
//crdgrp.rec.custyp
private String custyp;
//rcvact.inr
private String rcvactInr;
}
<?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.CrdMapper">
<resultMap id="BaseResultMap" type="com.brilliance.isc.bo.Crd">
<result property="inr" column="inr" jdbcType="VARCHAR"/>
<result property="ownref" column="ownref" jdbcType="VARCHAR"/>
<result property="nam" column="nam" jdbcType="VARCHAR"/>
<result property="ownusr" column="ownusr" jdbcType="VARCHAR"/>
<result property="credat" column="credat" jdbcType="DATE"/>
<result property="opndat" column="opndat" jdbcType="DATE"/>
<result property="clsdat" column="clsdat" jdbcType="DATE"/>
<result property="rcvobjtyp" column="rcvobjtyp" jdbcType="VARCHAR"/>
<result property="rcvobjinr" column="rcvobjinr" jdbcType="VARCHAR"/>
<result property="clrtyp" column="clrtyp" jdbcType="VARCHAR"/>
<result property="trntyp" column="trntyp" jdbcType="VARCHAR"/>
<result property="rcvbic" column="rcvbic" jdbcType="VARCHAR"/>
<result property="msgref" column="msgref" jdbcType="VARCHAR"/>
<result property="msgact" column="msgact" jdbcType="VARCHAR"/>
<result property="msgtyp" column="msgtyp" jdbcType="VARCHAR"/>
<result property="msginr" column="msginr" jdbcType="VARCHAR"/>
<result property="bndtyp" column="bndtyp" jdbcType="VARCHAR"/>
<result property="bndinr" column="bndinr" jdbcType="VARCHAR"/>
<result property="sta" column="sta" jdbcType="VARCHAR"/>
<result property="errmsg" column="errmsg" jdbcType="VARCHAR"/>
<result property="custyp" column="custyp" jdbcType="VARCHAR"/>
<result property="branchinr" column="branchinr" jdbcType="VARCHAR"/>
<result property="bchkeyinr" column="bchkeyinr" jdbcType="VARCHAR"/>
<result property="rcvbchinr" column="rcvbchinr" jdbcType="VARCHAR"/>
<result property="ver" column="ver" jdbcType="VARCHAR"/>
<result property="sptinr" column="sptinr" jdbcType="VARCHAR"/>
<result property="etyextkey" column="etyextkey" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
inr,ownref,nam,ownusr,credat,opndat,clsdat,rcvobjtyp,rcvobjinr,clrtyp,trntyp,rcvbic,msgref,msgact,msgtyp,msginr,bndtyp,bndinr,sta,errmsg,custyp,branchinr,bchkeyinr,rcvbchinr,ver,sptinr,etyextkey
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from crd
where inr = #{inr,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey">
delete from crd
where inr = #{inr,jdbcType=VARCHAR}
</delete>
<insert id="insert">
insert into crd (<include refid="Base_Column_List"/>)
<trim prefix="values (" suffix=")" suffixOverrides=",">
#{inr,jdbcType=VARCHAR},
#{ownref,jdbcType=VARCHAR},
#{nam,jdbcType=VARCHAR},
#{ownusr,jdbcType=VARCHAR},
#{credat,jdbcType=DATE},
#{opndat,jdbcType=DATE},
#{clsdat,jdbcType=DATE},
#{rcvobjtyp,jdbcType=VARCHAR},
#{rcvobjinr,jdbcType=VARCHAR},
#{clrtyp,jdbcType=VARCHAR},
#{trntyp,jdbcType=VARCHAR},
#{rcvbic,jdbcType=VARCHAR},
#{msgref,jdbcType=VARCHAR},
#{msgact,jdbcType=VARCHAR},
#{msgtyp,jdbcType=VARCHAR},
#{msginr,jdbcType=VARCHAR},
#{bndtyp,jdbcType=VARCHAR},
#{bndinr,jdbcType=VARCHAR},
#{sta,jdbcType=VARCHAR},
#{errmsg,jdbcType=VARCHAR},
#{custyp,jdbcType=VARCHAR},
#{branchinr,jdbcType=VARCHAR},
#{bchkeyinr,jdbcType=VARCHAR},
#{rcvbchinr,jdbcType=VARCHAR},
#{ver,jdbcType=VARCHAR},
#{sptinr,jdbcType=VARCHAR},
#{etyextkey,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertSelective">
insert into crd
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="inr != null">inr,</if>
<if test="ownref != null">ownref,</if>
<if test="nam != null">nam,</if>
<if test="ownusr != null">ownusr,</if>
<if test="credat != null">credat,</if>
<if test="opndat != null">opndat,</if>
<if test="clsdat != null">clsdat,</if>
<if test="rcvobjtyp != null">rcvobjtyp,</if>
<if test="rcvobjinr != null">rcvobjinr,</if>
<if test="clrtyp != null">clrtyp,</if>
<if test="trntyp != null">trntyp,</if>
<if test="rcvbic != null">rcvbic,</if>
<if test="msgref != null">msgref,</if>
<if test="msgact != null">msgact,</if>
<if test="msgtyp != null">msgtyp,</if>
<if test="msginr != null">msginr,</if>
<if test="bndtyp != null">bndtyp,</if>
<if test="bndinr != null">bndinr,</if>
<if test="sta != null">sta,</if>
<if test="errmsg != null">errmsg,</if>
<if test="custyp != null">custyp,</if>
<if test="branchinr != null">branchinr,</if>
<if test="bchkeyinr != null">bchkeyinr,</if>
<if test="rcvbchinr != null">rcvbchinr,</if>
<if test="ver != null">ver,</if>
<if test="sptinr != null">sptinr,</if>
<if test="etyextkey != null">etyextkey,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="inr != null">#{inr,jdbcType=VARCHAR},</if>
<if test="ownref != null">#{ownref,jdbcType=VARCHAR},</if>
<if test="nam != null">#{nam,jdbcType=VARCHAR},</if>
<if test="ownusr != null">#{ownusr,jdbcType=VARCHAR},</if>
<if test="credat != null">#{credat,jdbcType=DATE},</if>
<if test="opndat != null">#{opndat,jdbcType=DATE},</if>
<if test="clsdat != null">#{clsdat,jdbcType=DATE},</if>
<if test="rcvobjtyp != null">#{rcvobjtyp,jdbcType=VARCHAR},</if>
<if test="rcvobjinr != null">#{rcvobjinr,jdbcType=VARCHAR},</if>
<if test="clrtyp != null">#{clrtyp,jdbcType=VARCHAR},</if>
<if test="trntyp != null">#{trntyp,jdbcType=VARCHAR},</if>
<if test="rcvbic != null">#{rcvbic,jdbcType=VARCHAR},</if>
<if test="msgref != null">#{msgref,jdbcType=VARCHAR},</if>
<if test="msgact != null">#{msgact,jdbcType=VARCHAR},</if>
<if test="msgtyp != null">#{msgtyp,jdbcType=VARCHAR},</if>
<if test="msginr != null">#{msginr,jdbcType=VARCHAR},</if>
<if test="bndtyp != null">#{bndtyp,jdbcType=VARCHAR},</if>
<if test="bndinr != null">#{bndinr,jdbcType=VARCHAR},</if>
<if test="sta != null">#{sta,jdbcType=VARCHAR},</if>
<if test="errmsg != null">#{errmsg,jdbcType=VARCHAR},</if>
<if test="custyp != null">#{custyp,jdbcType=VARCHAR},</if>
<if test="branchinr != null">#{branchinr,jdbcType=VARCHAR},</if>
<if test="bchkeyinr != null">#{bchkeyinr,jdbcType=VARCHAR},</if>
<if test="rcvbchinr != null">#{rcvbchinr,jdbcType=VARCHAR},</if>
<if test="ver != null">#{ver,jdbcType=VARCHAR},</if>
<if test="sptinr != null">#{sptinr,jdbcType=VARCHAR},</if>
<if test="etyextkey != null">#{etyextkey,jdbcType=VARCHAR},</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective">
update crd
<set>
<if test="ownref != null">ownref = #{ownref,jdbcType=VARCHAR},</if>
<if test="nam != null">nam = #{nam,jdbcType=VARCHAR},</if>
<if test="ownusr != null">ownusr = #{ownusr,jdbcType=VARCHAR},</if>
<if test="credat != null">credat = #{credat,jdbcType=DATE},</if>
<if test="opndat != null">opndat = #{opndat,jdbcType=DATE},</if>
<if test="clsdat != null">clsdat = #{clsdat,jdbcType=DATE},</if>
<if test="rcvobjtyp != null">rcvobjtyp = #{rcvobjtyp,jdbcType=VARCHAR},</if>
<if test="rcvobjinr != null">rcvobjinr = #{rcvobjinr,jdbcType=VARCHAR},</if>
<if test="clrtyp != null">clrtyp = #{clrtyp,jdbcType=VARCHAR},</if>
<if test="trntyp != null">trntyp = #{trntyp,jdbcType=VARCHAR},</if>
<if test="rcvbic != null">rcvbic = #{rcvbic,jdbcType=VARCHAR},</if>
<if test="msgref != null">msgref = #{msgref,jdbcType=VARCHAR},</if>
<if test="msgact != null">msgact = #{msgact,jdbcType=VARCHAR},</if>
<if test="msgtyp != null">msgtyp = #{msgtyp,jdbcType=VARCHAR},</if>
<if test="msginr != null">msginr = #{msginr,jdbcType=VARCHAR},</if>
<if test="bndtyp != null">bndtyp = #{bndtyp,jdbcType=VARCHAR},</if>
<if test="bndinr != null">bndinr = #{bndinr,jdbcType=VARCHAR},</if>
<if test="sta != null">sta = #{sta,jdbcType=VARCHAR},</if>
<if test="errmsg != null">errmsg = #{errmsg,jdbcType=VARCHAR},</if>
<if test="custyp != null">custyp = #{custyp,jdbcType=VARCHAR},</if>
<if test="branchinr != null">branchinr = #{branchinr,jdbcType=VARCHAR},</if>
<if test="bchkeyinr != null">bchkeyinr = #{bchkeyinr,jdbcType=VARCHAR},</if>
<if test="rcvbchinr != null">rcvbchinr = #{rcvbchinr,jdbcType=VARCHAR},</if>
<if test="ver != null">ver = #{ver,jdbcType=VARCHAR},</if>
<if test="sptinr != null">sptinr = #{sptinr,jdbcType=VARCHAR},</if>
<if test="etyextkey != null">etyextkey = #{etyextkey,jdbcType=VARCHAR},</if>
</set>
where inr = #{inr,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey">
update crd
<set>
ownref = #{ownref,jdbcType=VARCHAR},
nam = #{nam,jdbcType=VARCHAR},
ownusr = #{ownusr,jdbcType=VARCHAR},
credat = #{credat,jdbcType=DATE},
opndat = #{opndat,jdbcType=DATE},
clsdat = #{clsdat,jdbcType=DATE},
rcvobjtyp = #{rcvobjtyp,jdbcType=VARCHAR},
rcvobjinr = #{rcvobjinr,jdbcType=VARCHAR},
clrtyp = #{clrtyp,jdbcType=VARCHAR},
trntyp = #{trntyp,jdbcType=VARCHAR},
rcvbic = #{rcvbic,jdbcType=VARCHAR},
msgref = #{msgref,jdbcType=VARCHAR},
msgact = #{msgact,jdbcType=VARCHAR},
msgtyp = #{msgtyp,jdbcType=VARCHAR},
msginr = #{msginr,jdbcType=VARCHAR},
bndtyp = #{bndtyp,jdbcType=VARCHAR},
bndinr = #{bndinr,jdbcType=VARCHAR},
sta = #{sta,jdbcType=VARCHAR},
errmsg = #{errmsg,jdbcType=VARCHAR},
custyp = #{custyp,jdbcType=VARCHAR},
branchinr = #{branchinr,jdbcType=VARCHAR},
bchkeyinr = #{bchkeyinr,jdbcType=VARCHAR},
rcvbchinr = #{rcvbchinr,jdbcType=VARCHAR},
ver = #{ver,jdbcType=VARCHAR},
sptinr = #{sptinr,jdbcType=VARCHAR},
etyextkey = #{etyextkey,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 crd
<set>
<if test="module.ownref != null">ownref = #{module.ownref,jdbcType=VARCHAR},</if>
<if test="module.nam != null">nam = #{module.nam,jdbcType=VARCHAR},</if>
<if test="module.ownusr != null">ownusr = #{module.ownusr,jdbcType=VARCHAR},</if>
<if test="module.credat != null">credat = #{module.credat,jdbcType=DATE},</if>
<if test="module.opndat != null">opndat = #{module.opndat,jdbcType=DATE},</if>
<if test="module.clsdat != null">clsdat = #{module.clsdat,jdbcType=DATE},</if>
<if test="module.rcvobjtyp != null">rcvobjtyp = #{module.rcvobjtyp,jdbcType=VARCHAR},</if>
<if test="module.rcvobjinr != null">rcvobjinr = #{module.rcvobjinr,jdbcType=VARCHAR},</if>
<if test="module.clrtyp != null">clrtyp = #{module.clrtyp,jdbcType=VARCHAR},</if>
<if test="module.trntyp != null">trntyp = #{module.trntyp,jdbcType=VARCHAR},</if>
<if test="module.rcvbic != null">rcvbic = #{module.rcvbic,jdbcType=VARCHAR},</if>
<if test="module.msgref != null">msgref = #{module.msgref,jdbcType=VARCHAR},</if>
<if test="module.msgact != null">msgact = #{module.msgact,jdbcType=VARCHAR},</if>
<if test="module.msgtyp != null">msgtyp = #{module.msgtyp,jdbcType=VARCHAR},</if>
<if test="module.msginr != null">msginr = #{module.msginr,jdbcType=VARCHAR},</if>
<if test="module.bndtyp != null">bndtyp = #{module.bndtyp,jdbcType=VARCHAR},</if>
<if test="module.bndinr != null">bndinr = #{module.bndinr,jdbcType=VARCHAR},</if>
<if test="module.sta != null">sta = #{module.sta,jdbcType=VARCHAR},</if>
<if test="module.errmsg != null">errmsg = #{module.errmsg,jdbcType=VARCHAR},</if>
<if test="module.custyp != null">custyp = #{module.custyp,jdbcType=VARCHAR},</if>
<if test="module.branchinr != null">branchinr = #{module.branchinr,jdbcType=VARCHAR},</if>
<if test="module.bchkeyinr != null">bchkeyinr = #{module.bchkeyinr,jdbcType=VARCHAR},</if>
<if test="module.rcvbchinr != null">rcvbchinr = #{module.rcvbchinr,jdbcType=VARCHAR},</if>
<if test="module.ver != null">ver = #{module.ver,jdbcType=VARCHAR},</if>
<if test="module.sptinr != null">sptinr = #{module.sptinr,jdbcType=VARCHAR},</if>
<if test="module.etyextkey != null">etyextkey = #{module.etyextkey,jdbcType=VARCHAR},</if>
</set>
${conditions}
</update>
<delete id="dyncDelete">
${sql}
</delete>
<select id="dyncRead" resultMap="BaseResultMap">
${sql}
</select>
<select id="selectByInr" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from crd
where inr = #{inr,jdbcType=VARCHAR}
</select>
<select id="selectByOwnref" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from crd
where ownref = #{ownref,jdbcType=VARCHAR}
</select>
</mapper>
<?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.RouMapper">
<resultMap id="BaseResultMap" type="com.brilliance.isc.bo.Rou">
<result property="inr" column="inr" jdbcType="VARCHAR"/>
<result property="pri" column="pri" jdbcType="INTEGER"/>
<result property="usg" column="usg" jdbcType="VARCHAR"/>
<result property="bussec" column="bussec" jdbcType="VARCHAR"/>
<result property="stacod" column="stacod" jdbcType="VARCHAR"/>
<result property="cty" column="cty" jdbcType="VARCHAR"/>
<result property="cur" column="cur" jdbcType="VARCHAR"/>
<result property="etyextkey" column="etyextkey" jdbcType="VARCHAR"/>
<result property="grp" column="grp" jdbcType="VARCHAR"/>
<result property="bchcod" column="bchcod" jdbcType="VARCHAR"/>
<result property="trngrp" column="trngrp" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
inr,pri,usg,bussec,stacod,cty,cur,etyextkey,grp,bchcod,trngrp
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from rou
where inr = #{inr,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey">
delete from rou
where inr = #{inr,jdbcType=VARCHAR}
</delete>
<insert id="insert">
insert into rou (<include refid="Base_Column_List" />)
<trim prefix="values (" suffix=")" suffixOverrides=",">
#{inr,jdbcType=VARCHAR},
#{pri,jdbcType=INTEGER},
#{usg,jdbcType=VARCHAR},
#{bussec,jdbcType=VARCHAR},
#{stacod,jdbcType=VARCHAR},
#{cty,jdbcType=VARCHAR},
#{cur,jdbcType=VARCHAR},
#{etyextkey,jdbcType=VARCHAR},
#{grp,jdbcType=VARCHAR},
#{bchcod,jdbcType=VARCHAR},
#{trngrp,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertSelective">
insert into rou
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="inr != null">inr,</if>
<if test="pri != null">pri,</if>
<if test="usg != null">usg,</if>
<if test="bussec != null">bussec,</if>
<if test="stacod != null">stacod,</if>
<if test="cty != null">cty,</if>
<if test="cur != null">cur,</if>
<if test="etyextkey != null">etyextkey,</if>
<if test="grp != null">grp,</if>
<if test="bchcod != null">bchcod,</if>
<if test="trngrp != null">trngrp,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="inr != null">#{inr,jdbcType=VARCHAR}, </if>
<if test="pri != null">#{pri,jdbcType=INTEGER}, </if>
<if test="usg != null">#{usg,jdbcType=VARCHAR}, </if>
<if test="bussec != null">#{bussec,jdbcType=VARCHAR}, </if>
<if test="stacod != null">#{stacod,jdbcType=VARCHAR}, </if>
<if test="cty != null">#{cty,jdbcType=VARCHAR}, </if>
<if test="cur != null">#{cur,jdbcType=VARCHAR}, </if>
<if test="etyextkey != null">#{etyextkey,jdbcType=VARCHAR}, </if>
<if test="grp != null">#{grp,jdbcType=VARCHAR}, </if>
<if test="bchcod != null">#{bchcod,jdbcType=VARCHAR}, </if>
<if test="trngrp != null">#{trngrp,jdbcType=VARCHAR}, </if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective">
update rou
<set>
<if test="pri != null">pri = #{pri,jdbcType=INTEGER},</if>
<if test="usg != null">usg = #{usg,jdbcType=VARCHAR},</if>
<if test="bussec != null">bussec = #{bussec,jdbcType=VARCHAR},</if>
<if test="stacod != null">stacod = #{stacod,jdbcType=VARCHAR},</if>
<if test="cty != null">cty = #{cty,jdbcType=VARCHAR},</if>
<if test="cur != null">cur = #{cur,jdbcType=VARCHAR},</if>
<if test="etyextkey != null">etyextkey = #{etyextkey,jdbcType=VARCHAR},</if>
<if test="grp != null">grp = #{grp,jdbcType=VARCHAR},</if>
<if test="bchcod != null">bchcod = #{bchcod,jdbcType=VARCHAR},</if>
<if test="trngrp != null">trngrp = #{trngrp,jdbcType=VARCHAR},</if>
</set>
where inr = #{inr,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey">
update rou
<set>
pri = #{pri,jdbcType=INTEGER},
usg = #{usg,jdbcType=VARCHAR},
bussec = #{bussec,jdbcType=VARCHAR},
stacod = #{stacod,jdbcType=VARCHAR},
cty = #{cty,jdbcType=VARCHAR},
cur = #{cur,jdbcType=VARCHAR},
etyextkey = #{etyextkey,jdbcType=VARCHAR},
grp = #{grp,jdbcType=VARCHAR},
bchcod = #{bchcod,jdbcType=VARCHAR},
trngrp = #{trngrp,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 rou
<set>
<if test="module.pri != null">pri = #{module.pri,jdbcType=INTEGER},</if>
<if test="module.usg != null">usg = #{module.usg,jdbcType=VARCHAR},</if>
<if test="module.bussec != null">bussec = #{module.bussec,jdbcType=VARCHAR},</if>
<if test="module.stacod != null">stacod = #{module.stacod,jdbcType=VARCHAR},</if>
<if test="module.cty != null">cty = #{module.cty,jdbcType=VARCHAR},</if>
<if test="module.cur != null">cur = #{module.cur,jdbcType=VARCHAR},</if>
<if test="module.etyextkey != null">etyextkey = #{module.etyextkey,jdbcType=VARCHAR},</if>
<if test="module.grp != null">grp = #{module.grp,jdbcType=VARCHAR},</if>
<if test="module.bchcod != null">bchcod = #{module.bchcod,jdbcType=VARCHAR},</if>
<if test="module.trngrp != null">trngrp = #{module.trngrp,jdbcType=VARCHAR},</if>
</set>
${conditions}
</update>
<delete id="dyncDelete">
${sql}
</delete>
<select id="dyncRead" resultMap="BaseResultMap">
${sql}
</select>
<select id="selectByBussec" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from rou
where bussec = #{bussec}
</select>
</mapper>
...@@ -167,4 +167,5 @@ public interface SysmodService { ...@@ -167,4 +167,5 @@ public interface SysmodService {
String getClientPath(String objtyp, BizInfoVo bizInfoVo); String getClientPath(String objtyp, BizInfoVo bizInfoVo);
void getTrnUSG(Argument<String> grp);
} }
...@@ -131,6 +131,9 @@ public class SysmodServiceImpl implements SysmodService { ...@@ -131,6 +131,9 @@ public class SysmodServiceImpl implements SysmodService {
@Resource @Resource
private OffcfgMapper offcfgMapper; private OffcfgMapper offcfgMapper;
@Resource
private RouMapper rouMapper;
public String internalSetObjNam(Object recObj, BaseTransactionVo baseTransactionVo) { public String internalSetObjNam(Object recObj, BaseTransactionVo baseTransactionVo) {
String objTyp = Utils.recGetObj(recObj); String objTyp = Utils.recGetObj(recObj);
String ref = Utils.getFieldValue(recObj, "ownref"); String ref = Utils.getFieldValue(recObj, "ownref");
...@@ -1820,4 +1823,33 @@ public class SysmodServiceImpl implements SysmodService { ...@@ -1820,4 +1823,33 @@ public class SysmodServiceImpl implements SysmodService {
return path; return path;
} }
/**
* source:sysmod.0289.script
*/
public void getTrnUSG(Argument<String> grp) {
//--------根据ROU表的设置给SPT,TRN表中的OWNGRP组赋值-----
// sec = 业务类型
// BCHKEY = 业务经办行
// BRANCH = 业务所属行
// GRP = 业务分配的所属组
// USR = 业务分配的柜员
grp.value = "";
//清算交易没办法分组,CL和光票
String sec = NULLSTR;
String transName = SettleContext.getTransName();
if (MdaUtils.compareTo(transName, "CLIOPN") == 0 || MdaUtils.compareTo(transName, "CLOOPN") == 0
|| MdaUtils.compareTo(transName, "CPTMAN") == 0 || MdaUtils.compareTo(transName, "CPTBCK") == 0) {
grp.value = "CL";
} else {
sec = Strings.mid(transName, 1, 2);
if (!MdaUtils.isEmpty(sec)) {
Rou rou = rouMapper.selectByBussec(sec);
if (Objects.nonNull(rou)) {
grp.value = rou.getGrp();
}
}
}
}
} }
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