Commit 14930631 authored by Data-王博's avatar Data-王博

湖北消金 - 解决提前还款异常文件小数点后多位问题 以及文件名生成时间改成当日。

parent 428d760c
......@@ -626,7 +626,7 @@ public class HuBeiServiceImpl implements IHuBeiService {
huBeiJsonBean.setReallyRepayAmount(reallyPayment.setScale(2,RoundingMode.HALF_UP));
huBeiJsonBean.setChannel(HubeiCFCField.repayChannel);
huBeiJsonBean.setApplyRepayDate(applyRepayDateFormat);
huBeiJsonBean.setRepayTotalAmount(reallyPayment);
huBeiJsonBean.setRepayTotalAmount(reallyPayment.setScale(2,RoundingMode.HALF_UP));
advanceHuiBeiHistory.setHappenTime(new Date());
advanceHuiBeiHistory.setData(huBeiJsonBean);
advanceHuiBeiList.add(advanceHuiBeiHistory);
......
......@@ -178,9 +178,7 @@ public class HubeiCFCUtil {
public static String getDocName(HubeiCFCDataType hubeiCFCDataType,Byte seqNo){
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.DATE,calendar.get(Calendar.DATE)-1);
int hour = calendar.get(Calendar.HOUR);
int minute = calendar.get(Calendar.MINUTE);
// calendar.set(Calendar.DATE,calendar.get(Calendar.DATE)-1);
//yyyyMMdd DateUtil.sampleDateFormatFormat(calendar.getTime())
//20170222
String docName = new StringBuilder(DateUtil.sampleDateFormatFormat(calendar.getTime()))
......
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