磅单号时间try

product
bawei 1 year ago
parent f435bed3d2
commit c25a68ca02

@ -235,7 +235,12 @@ public class TradeuploadController {
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
if(StringUtils.isNotEmpty(PrintTime) && PrintTime.length() == 10){
tradeuploadCrForm.setPoundDate(sdf.parse(PrintTime));
try {
tradeuploadCrForm.setPoundDate(sdf.parse(PrintTime));
}catch (Exception e){
tradeuploadCrForm.setPoundDate(new Date());
}
// tradeuploadCrForm.setPoundDate(sdf.parse(PrintTime));
}else{
tradeuploadCrForm.setPoundDate(new Date());
}

Loading…
Cancel
Save