Commit 6b1c50ad authored by huyuchen's avatar huyuchen

实缴修改

parent c6eee457
...@@ -1820,47 +1820,34 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -1820,47 +1820,34 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
domainMap.clear(); domainMap.clear();
//批量插入数据 //批量插入数据
//养老 //养老
List<TPaymentInfo> list;
if (!batchYlInsertList.isEmpty()) { if (!batchYlInsertList.isEmpty()) {
list = new ArrayList<>(batchYlInsertList.values()); this.saveBatch(batchYlInsertList.values());
this.saveBatch(list);
batchYlInsertList.clear(); batchYlInsertList.clear();
list.clear();
} }
//工伤 //工伤
if (!batchGsInsertList.isEmpty()) { if (!batchGsInsertList.isEmpty()) {
list = new ArrayList<>(batchGsInsertList.values()); this.saveBatch(batchGsInsertList.values());
this.saveBatch(list);
batchGsInsertList.clear(); batchGsInsertList.clear();
list.clear();
} }
//医疗 //医疗
if (!batchYyInsertList.isEmpty()) { if (!batchYyInsertList.isEmpty()) {
list = new ArrayList<>(batchYyInsertList.values()); this.saveBatch(batchYyInsertList.values());
this.saveBatch(list);
batchYyInsertList.clear(); batchYyInsertList.clear();
list.clear();
} }
//失业 //失业
if (!batchSyInsertList.isEmpty()) { if (!batchSyInsertList.isEmpty()) {
list = new ArrayList<>(batchSyInsertList.values()); this.saveBatch(batchSyInsertList.values());
this.saveBatch(list);
batchSyInsertList.clear(); batchSyInsertList.clear();
list.clear();
} }
//大病 //大病
if (!batchBigInsertList.isEmpty()) { if (!batchBigInsertList.isEmpty()) {
list = new ArrayList<>(batchBigInsertList.values()); this.saveBatch(batchBigInsertList.values());
this.saveBatch(list);
batchBigInsertList.clear(); batchBigInsertList.clear();
list.clear();
} }
//生育 //生育
if (!batchBirthInsertList.isEmpty()) { if (!batchBirthInsertList.isEmpty()) {
list = new ArrayList<>(batchBirthInsertList.values()); this.saveBatch(batchBirthInsertList.values());
this.saveBatch(list);
batchBirthInsertList.clear(); batchBirthInsertList.clear();
list.clear();
} }
} catch (Exception e) { } catch (Exception e) {
log.error(CommonConstants.IMPORT_DATA_ANALYSIS_ERROR, e); log.error(CommonConstants.IMPORT_DATA_ANALYSIS_ERROR, e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment