Commit f852228c by zhoujunpeng

Fttpcn修改

parent 4f92653e
......@@ -4,10 +4,16 @@ package com.brilliance.isc.funds.fttpcn.document;
import com.brilliance.isc.doc.handle.impl.AbstractTransactionDocSet;
import com.brilliance.isc.funds.bo.funds.FttpcnStoreBo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Component;import javax.annotation.PostConstruct;
@Component("fttpcn.docset")
public class FttpcnDocset extends AbstractTransactionDocSet<FttpcnStoreBo> {
@PostConstruct
public void buildMember() {
//扫描Cortype支持,必须要执行
scanDocCortypSupport();
}
}
......@@ -182,6 +182,9 @@ public class FttpcnTransactionServiceImpl extends AbstractTransactionService<Ftt
private void init950(FttpcnStoreBo fttpcnStoreBo){
Ftdgrp ftdgrp = fttpcnStoreBo.getFtdgrp();
if (!fttpcnStoreBo.isModified("canamt")){
fttpcnStoreBo.setCanamt(ftdgrp.getCbs().getOpn2().getAmt());
}
if (!fttpcnStoreBo.isModified("cancur")){
fttpcnStoreBo.setCancur(ftdgrp.getCbs().getMax().getCur());
}
......
package com.brilliance.isc.funds.vo.funds;
import com.brilliance.isc.bo.model.Ftdgrp;import com.brilliance.isc.bo.model.Fttp;import com.brilliance.isc.common.transaction.vo.BaseTransactionVo;import com.fasterxml.jackson.annotation.JsonIgnoreProperties;import lombok.Data;
import com.brilliance.isc.common.transaction.vo.BaseTransactionVo;
import com.brilliance.isc.vo.model.FtdgrpVo;
import com.brilliance.isc.vo.model.FttpVo;
import com.brilliance.mda.runtime.mda.util.Decimals;import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;import java.math.BigDecimal;import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class FttpcnStoreVo extends BaseTransactionVo{
private Ftdgrp ftdgrp;
private Fttp fttp;
private FtdgrpVo ftdgrp;
private BigDecimal canamt = Decimals.ZERO_SCALE2;
private String oldactinr= NULLSTR;
//Cancel Currency
private String cancur= NULLSTR;
private FttpVo fttp;
@Override
public void reset() {
super.reset();
if (ftdgrp == null) {
ftdgrp = new Ftdgrp();
ftdgrp = new FtdgrpVo();
}
ftdgrp.reset();
if (fttp == null) {
fttp = new Fttp();
fttp = new FttpVo();
}
fttp.reset();
}
......
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