优化最小费额暂停入库时,移除需要入库的文件

main
gaoshuguang 5 months ago
parent a793187cae
commit c43edbc60e

@ -73,9 +73,10 @@ public class MinFeeIntoDataBaseServiceImpl implements MinFeeIntoDataBaseService
List<AllRoadMinFee> allRoadMinFees =new ArrayList<>(); List<AllRoadMinFee> allRoadMinFees =new ArrayList<>();
if(Constant.STR_ONE.equals(isInMPay) || Constant.STR_ONE.equals(isInJTJT)){ if(Constant.STR_ONE.equals(isInMPay) || Constant.STR_ONE.equals(isInJTJT)){
allRoadMinFees = DatabaseUtil.selectAllRoadMinFee(Constant.SQLITE_DRIVER_NAME, url, Constant.SELECT_ALL_ROAD_MIN_FEE_TABLE); allRoadMinFees = DatabaseUtil.selectAllRoadMinFee(Constant.SQLITE_DRIVER_NAME, url, Constant.SELECT_ALL_ROAD_MIN_FEE_TABLE);
log.info("[uuid:{}]查询{}文件ALLROADMINFEE_TABLE表中数据条数为:{}", uuid, fileName, allRoadMinFees.size());
} }
log.info("[uuid:{}]查询{}文件ALLROADMINFEE_TABLE表中数据条数为:{}", uuid, fileName, allRoadMinFees.size());
if (!allRoadMinFees.isEmpty()) { if (!allRoadMinFees.isEmpty()) {
int listSize = allRoadMinFees.size(); int listSize = allRoadMinFees.size();
if(Constant.STR_ONE.equals(isInMPay)){ if(Constant.STR_ONE.equals(isInMPay)){
@ -100,10 +101,11 @@ public class MinFeeIntoDataBaseServiceImpl implements MinFeeIntoDataBaseService
}else { }else {
log.info("[uuid:{}]暂停入库{}数据库ALLROADMINFEE_TABLE表", uuid,JTJTConnectionStringOracle); log.info("[uuid:{}]暂停入库{}数据库ALLROADMINFEE_TABLE表", uuid,JTJTConnectionStringOracle);
} }
//删除文件
FileUtil.fileDelete(filePath);
log.info("[uuid:{}]删除已入库或者暂停入库的文件:{}", uuid, filePath);
} }
//删除文件
FileUtil.fileDelete(filePath);
log.info("[uuid:{}]删除已入库或者暂停入库的文件:{}", uuid, filePath);
} }
} }
} }

Loading…
Cancel
Save