Commit 4f92653e by zhoujunpeng

Fttfmt修改

parent 06553d70
......@@ -7,8 +7,8 @@ import com.brilliance.isc.common.register.diasav.common.LiaallDiasavZZZRegister;
import com.brilliance.isc.common.register.diasav.common.TrtcreDiasavRegister;
import com.brilliance.isc.common.trndia.service.TrndiaService;
import com.brilliance.isc.common.trndia.vo.TrndiaVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.brilliance.isc.vo.funds.FtdBizInfoVo;import com.brilliance.mda.runtime.mda.util.Dates;import com.brilliance.mda.runtime.mda.util.MdaUtils;import com.brilliance.mda.runtime.mda.util.Strings;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;import java.util.Date;import static com.brilliance.mda.runtime.mda.Constants.DiaToReplace;import static com.brilliance.mda.runtime.mda.Constants.NULLDATE;
@Component("fttfmt.diasavRegister")
......@@ -36,7 +36,17 @@ public class FttfmtDiasavRegister implements IDiasavRegister {
private void trnDiasav(TrndiaVo trndiaVo) {
//Sets all open diaries to closed
//this.getTrnmod().getTrndia().trnDiaSetDone ( this.getFtdgrp(), "FTDMAT" );
FtdBizInfoVo ftdBizInfoVo=(FtdBizInfoVo)trndiaVo.getRec();
Date date = null;
if (!MdaUtils.isEmpty(ftdBizInfoVo.getMatdat())) {
date = NULLDATE;
if (Dates.diff(ftdBizInfoVo.getMatdat(), Dates.today()) < 3) {
date = Dates.today();
} else {
date = Dates.add(ftdBizInfoVo.getMatdat(), -3);
}
trndiaService.trnDiaSet(trndiaVo, "FTDMAT", date, "EXP",
Strings.getText("资金拆借到期提示:", ftdBizInfoVo.getOwnref()), "FTTFMT", DiaToReplace);
}
}
}
\ No newline at end of file
......@@ -122,10 +122,8 @@ public class FttfmtSettleRegister implements ISettleRegister {
dbtKey2 = setglgService.setglgAddAmount(setglgVo,"TRN","TRO",setmodVo.getDoccur(),
ftdgrp.getCbs().getIns().getAmt(), "","FBD","C","","");
cdtKey = setglgService.setglgAddAmount(setglgVo,"TRN","TRO",setmodVo.getDoccur(),setmodVo.getSetamt().negate(),"",
"FBD","C","","");
//dbtKey = this.getSetmod().getSetglg().setglgAddAmount ( "TRN", "OWN", this.getSetmod().getDoccur(), this.getFtdgrp().getCbs().getMax().getAmt(), "", dsp, "C", acc1, "" );
//dbtKey2 = this.getSetmod().getSetglg().setglgAddAmount ( "TRN", "TRO", this.getSetmod().getDoccur(), this.getIntamt(), "", "FID", "C", "", "" );
//cdtKey = this.getSetmod().getSetglg().setglgAddAmount ( "TRN", "TRO", this.getSetmod().getDoccur(), this.getSetmod().getSetamt().negate(), "", "PAC", "C", "", "" );
"PAC","C","","");
setmodVo.setFeeclirol("TRO");
break;
}
......
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