标签:ESS 不可 als acea highlight class return under port
1、freemarker 获得当前时间戳
.now?long?replaceAll(",","")
2、业务场景支付时效为两个小时,超过即不可支付的校验
import java.util.Date; if(SERVERPARAM.IN_PARAM.UNDERPASSTIME!=null && SERVERPARAM.IN_PARAM.UNDERPASSTIME!=‘‘){ long currentTime = new Date().getTime();//当前时间戳 long underpasstime = Long.valueOf(SERVERPARAM.IN_PARAM.UNDERPASSTIME); //核保通过时间戳 if(currentTime - underpasstime >= 7200000){ //支付时效为两个小时 , 7200000 = 2*60*60*1000 RETURN.FLAG = false; RETURN.MESSAGE = "已过支付时效,请重新投保!"; }else{ RETURN.FLAG = true; } }else{ RETURN.FLAG = true; }
标签:ESS 不可 als acea highlight class return under port
原文地址:https://www.cnblogs.com/Small-sunshine/p/11196330.html