|
@@ -308,7 +308,7 @@ public class FinanceRecordController extends BaseController {
|
|
|
String amout =zcFinanceProduct.getZfpShortestPeriod();
|
|
|
//取得指定时间间隔后的系统时间
|
|
|
GregorianCalendar calendar = (GregorianCalendar) Calendar.getInstance();
|
|
|
- calendar.add( Calendar.DAY_OF_MONTH, Integer.valueOf(amout));
|
|
|
+ calendar.add( Calendar.DAY_OF_MONTH, Integer.valueOf(amout)-1);
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
if(formatter.format(calendar.getTime()).compareTo(formatter.format(financeInf.getZfiExpireDate()))>0){
|
|
|
throw new BaseException("当前融信融资期限小于最短可融资期限,已被锁定,请等待核心企业正常结算该笔业务。");
|