Commit 6e3cffdd authored by 赵啸非's avatar 赵啸非

更新申报次数

parent 21858a81
......@@ -70,6 +70,7 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
@Override
protected void findAfter(DeclareEntity params, PageInfo pageInfo, Context context, List<DeclareEntity> list) throws AppException {
updateUserPhone(list);
fillSubData(list);
super.findAfter(params, pageInfo, context, list);
}
......@@ -77,6 +78,13 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
@Override
protected void findAfter(DeclareEntity params, Context context, List<DeclareEntity> list) throws AppException {
updateUserPhone(list);
fillSubData(list);
super.findAfter(params, context, list);
}
private void updateUserPhone(List<DeclareEntity> list) {
for (DeclareEntity declareEntity : list) {
Long applyId = declareEntity.getApplyId();
if (!ObjectUtils.isEmpty(applyId)) {
......@@ -84,9 +92,6 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
declareEntity.setPhone(userCache == null ? "" : userCache.getPhone());
}
}
fillSubData(list);
super.findAfter(params, context, list);
}
private void fillSubData(List<DeclareEntity> 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