Commit f1d136e6 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

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