Commit a3d88d30 by huangshunlin

1、补充清算CBB处理,loadSettleSessionInfo 2、补充兜底wrkbch 参考HLJ 的matbut.getWrkBranch代码,

3、复核 将cbb的cbc字段去除空格读取CBSCONF.INI配置,保存时createCbbEntries函数使用 cbb.setCbc( Strings.mid(blk,2,6));可能存在空格4、setmodservice补充setDefDsp函数
parent c18902c6
...@@ -34,6 +34,7 @@ COD31=NID ...@@ -34,6 +34,7 @@ COD31=NID
COD31=NCD COD31=NCD
COD33=FXD COD33=FXD
COD34=FTD COD34=FTD
COD35=CRD
[CBCCOD] [CBCCOD]
COD1=ACRACR COD1=ACRACR
...@@ -1324,4 +1325,14 @@ OPN=- ...@@ -1324,4 +1325,14 @@ OPN=-
UTLSUM=+ UTLSUM=+
[FTD-UTLAMT-COL] [FTD-UTLAMT-COL]
COD1=OPN COD1=OPN
COD2=UTLSUM COD2=UTLSUM
\ No newline at end of file ;清算模块
[CRD-MAXAMT]
OPR1=+MAXSUM
OPR2=+OPN
[CRD-MAXAMT-OPR]
MAXSUM=+
OPN=+
[CRD-MAXAMT-COL]
COD1=MAXSUM
COD2=OPN
...@@ -15,6 +15,7 @@ import com.brilliance.isc.mda.dao.CbeMapper; ...@@ -15,6 +15,7 @@ import com.brilliance.isc.mda.dao.CbeMapper;
import com.brilliance.mda.runtime.mda.impl.Argument; import com.brilliance.mda.runtime.mda.impl.Argument;
import com.brilliance.mda.runtime.mda.util.*; import com.brilliance.mda.runtime.mda.util.*;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -386,8 +387,8 @@ public class CbsmodServiceImpl implements CbsmodService { ...@@ -386,8 +387,8 @@ public class CbsmodServiceImpl implements CbsmodService {
} }
String cbsConfKey = cbeArg.getObjtyp() + "-" + cbeArg.getCbt() + "-OPR"; String cbsConfKey = cbeArg.getObjtyp() + "-" + cbeArg.getCbt() + "-OPR";
cbbList.forEach(cbb -> { cbbList.forEach(cbb -> {
String opr = Inis.getIniStr("CBSCONF.INI",cbsConfKey,cbb.getCbc()); String opr = Inis.getIniStr("CBSCONF.INI",cbsConfKey, StringUtils.trimToEmpty(cbb.getCbc()));
logger.info("commitCbbEntries读取CBSCONF.INI,key:{},value:{}",cbsConfKey+"#"+"OPR",cbb.getCbc()); logger.info("commitCbbEntries读取CBSCONF.INI,key:{},value:{}",cbsConfKey+"#"+"OPR",StringUtils.trimToEmpty(cbb.getCbc()));
updateCbbAmounts( cbeArg, cbb, opr, "C" ); updateCbbAmounts( cbeArg, cbb, opr, "C" );
cbbMapper.updateByPrimaryKey(cbb); cbbMapper.updateByPrimaryKey(cbb);
List<Cbb> afterCbbList = cbsRange.sdbRngSelectAfterEntry(cbb); List<Cbb> afterCbbList = cbsRange.sdbRngSelectAfterEntry(cbb);
......
...@@ -331,6 +331,14 @@ public class SettleContext { ...@@ -331,6 +331,14 @@ public class SettleContext {
} }
} }
} }
//HLJ matbut.getWrkBranch
//进交易时业务所属行默认为业务经办行
if (Objects.nonNull(settleSession.getBch()) &&
(Objects.isNull(settleSession.getWrkbch()) || StringUtils.isEmpty(settleSession.getWrkbch().getInr()))
) {
Bch wrkbch = MdaUtils.deepClone(settleSession.getBch());
settleSession.setWrkbch(wrkbch);
}
//20240131 满足海口自贸区上收到总行的业务 //20240131 满足海口自贸区上收到总行的业务
setAccBch4Zmq(settleSession, bizInfoVo, ptsList); setAccBch4Zmq(settleSession, bizInfoVo, ptsList);
......
...@@ -40,7 +40,7 @@ public interface SetmodService { ...@@ -40,7 +40,7 @@ public interface SetmodService {
String getGllRol(String argrol); String getGllRol(String argrol);
void setglgAllValDat ( SetmodVo setmodVo, Date argValdat , String argFlag ); void setglgAllValDat(SetmodVo setmodVo, Date argValdat, String argFlag);
//获取币种的节假日,目前前端组件已实现,后端使用isHoliday方法 //获取币种的节假日,目前前端组件已实现,后端使用isHoliday方法
@Deprecated @Deprecated
...@@ -145,4 +145,7 @@ public interface SetmodService { ...@@ -145,4 +145,7 @@ public interface SetmodService {
void updateSetfelObjmod(List<SetfelVo> setfels, String feecod, SimpleModuleVo linkModule); void updateSetfelObjmod(List<SetfelVo> setfels, String feecod, SimpleModuleVo linkModule);
BigDecimal getSettlementAmount(SetmodVo setmodVo, String argCur); BigDecimal getSettlementAmount(SetmodVo setmodVo, String argCur);
void setDefDsp(SetmodVo setmodVo, String rol, String dcflag, String dspLst);
} }
...@@ -100,14 +100,14 @@ public class SetmodVo extends AbstractCommonVo { ...@@ -100,14 +100,14 @@ public class SetmodVo extends AbstractCommonVo {
private String ref = NULLSTR; private String ref = NULLSTR;
//开立日期 //开立日期
@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date opndat; private Date opndat;
//到期日期 //到期日期
@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date expdat; private Date expdat;
@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date matdat; private Date matdat;
//Charges to by contract //Charges to by contract
...@@ -141,9 +141,9 @@ public class SetmodVo extends AbstractCommonVo { ...@@ -141,9 +141,9 @@ public class SetmodVo extends AbstractCommonVo {
// 结算信息,需要赋值 // 结算信息,需要赋值
private Map<String, Wrksum> wrksumMap; private Map<String, Wrksum> wrksumMap;
//Current total in detailled settlement //Current total in detailled settlement
private BigDecimal prtdetamt = Decimals.ZERO_SCALE2; private BigDecimal prtdetamt = Decimals.ZERO_SCALE2;
//Count of positions in PrintDetailledSettlement //Count of positions in PrintDetailledSettlement
private int prtdetcnt; private int prtdetcnt;
private List<Fale01Vo> fale01List; private List<Fale01Vo> fale01List;
...@@ -189,6 +189,9 @@ public class SetmodVo extends AbstractCommonVo { ...@@ -189,6 +189,9 @@ public class SetmodVo extends AbstractCommonVo {
return Decimals.add(Decimals.sub(docamt, redamt), othdocamt); return Decimals.add(Decimals.sub(docamt, redamt), othdocamt);
} }
//trnmod.trnism.parstm HLJ 在defSetDsp使用
private String trnismParstm = NULLSTR;
@Override @Override
public void reset() { public void reset() {
if (rec == null) { if (rec == null) {
......
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