Commit f1d136e6 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent c9352d0a
...@@ -174,15 +174,17 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap ...@@ -174,15 +174,17 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
voMap.put(vo.getEmpIdcard(),vo); voMap.put(vo.getEmpIdcard(),vo);
} }
} }
if (Common.isNotNull(list) && Common.isNotNull(voMap)){ if (Common.isNotNull(list)){
for (TPersonnelRoster r:list){ for (TPersonnelRoster r:list){
rosterVo = voMap.get(r.getEmpIdcard()); if (Common.isNotNull(voMap)){
if (Common.isNotNull(rosterVo)){ rosterVo = voMap.get(r.getEmpIdcard());
r.setBankNo(rosterVo.getBankNo()); if (Common.isNotNull(rosterVo)){
r.setBankCity(rosterVo.getBankCity()); r.setBankNo(rosterVo.getBankNo());
r.setBankName(rosterVo.getBankName()); r.setBankCity(rosterVo.getBankCity());
r.setBankNameSub(rosterVo.getBankSubName()); r.setBankName(rosterVo.getBankName());
r.setBankProvince(rosterVo.getBankProvince()); r.setBankNameSub(rosterVo.getBankSubName());
r.setBankProvince(rosterVo.getBankProvince());
}
} }
r.setDataCreateMonth(DateUtil.getYearAndMonth(LocalDateTime.now(),0)); r.setDataCreateMonth(DateUtil.getYearAndMonth(LocalDateTime.now(),0));
} }
......
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