/**
* @description: 查询前一天的日期
* @param [billDate 当天的日期 yyyyMMdd]
* @return {@link String}
* @throws
* @author ZhangHaiWen
* @version 2.0
* @date 2020/12/9 10:04
*/
private static String getBeforeDateStr(String billDate){
String b_tx_dt = "";
try {
SimpleDateFormat yearDateFormat = new SimpleDateFormat("yyyyMMdd");
Date dt = yearDateFormat.parse(billDate);
Calendar calendar = Calendar.getInstance();
calendar.setTime(dt);
calendar.add(Calendar.DAY_OF_YEAR,-1);
b_tx_dt = yearDateFormat.format(calendar.getTime());
} catch (ParseException e) {
e.printStackTrace();
}
return b_tx_dt;
}