Commit eb1e1cd4 authored by hongguangwu's avatar hongguangwu

MVP1.7.4-花名册

parent fcc73e6d
...@@ -150,8 +150,9 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap ...@@ -150,8 +150,9 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
@Override @Override
public void everyMonthUpdateRoster() { public void everyMonthUpdateRoster() {
// 清空重新生成 // 清空重新生成
String dataMonth = DateUtil.addMonth(-1);
baseMapper.delete(Wrappers.<TPersonnelRoster>query().lambda() baseMapper.delete(Wrappers.<TPersonnelRoster>query().lambda()
.eq(TPersonnelRoster::getDataCreateMonth,DateUtil.getYearAndMonth(LocalDateTime.now(),0))); .eq(TPersonnelRoster::getDataCreateMonth, dataMonth));
TPersonnelRosterSearchVo searchVo = new TPersonnelRosterSearchVo(); TPersonnelRosterSearchVo searchVo = new TPersonnelRosterSearchVo();
long count = baseMapper.getTPersonnelRosterCount(searchVo); long count = baseMapper.getTPersonnelRosterCount(searchVo);
List<TPersonnelRoster> list; List<TPersonnelRoster> list;
...@@ -186,7 +187,7 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap ...@@ -186,7 +187,7 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
r.setBankProvince(rosterVo.getBankProvince()); r.setBankProvince(rosterVo.getBankProvince());
} }
} }
r.setDataCreateMonth(DateUtil.getYearAndMonth(LocalDateTime.now(),0)); r.setDataCreateMonth(dataMonth);
} }
this.saveBatch(list); this.saveBatch(list);
} }
......
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