|
|
@ -980,6 +980,19 @@ public class LoanSecondarySalesApplyService extends MybatisBaseService<LoanSecon |
|
|
|
} |
|
|
|
} |
|
|
|
loanSecondarySalesApplyDetailsVo.setLoanSecondarySalesCost(loanSecondarySalesCost); |
|
|
|
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
Date date = new Date(); |
|
|
|
String nowtime = sdf.format(date);//当前时间
|
|
|
|
String endtime = loanSecondarySalesApply.getValidityDate(); //到期时间
|
|
|
|
try { |
|
|
|
if (sdf.parse(nowtime).getTime() > sdf.parse(endtime).getTime()) {//转成long类型比较
|
|
|
|
loanSecondarySalesApplyDetailsVo.setValidate(false); |
|
|
|
} else if (sdf.parse(nowtime).getTime() <= sdf.parse(endtime).getTime()) { |
|
|
|
loanSecondarySalesApplyDetailsVo.setValidate(true); |
|
|
|
} |
|
|
|
} catch (ParseException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
return rb.success().setData(loanSecondarySalesApplyDetailsVo); |
|
|
|
} |
|
|
|