Commit 21858a81 authored by 赵啸非's avatar 赵啸非

更新申报次数

parent a366b911
......@@ -4,6 +4,8 @@ import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import com.mortals.framework.common.Rest;
import com.mortals.framework.model.PageInfo;
import com.mortals.xhx.base.system.user.model.UserEntity;
import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.code.DeclareStatusEnum;
import com.mortals.xhx.module.category.model.CategoryEntity;
import com.mortals.xhx.module.category.service.CategoryService;
......@@ -62,6 +64,8 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
private ParkService parkService;
@Autowired
private CompanyService companyService;
@Autowired
private UserService userService;
@Override
......@@ -73,7 +77,13 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
@Override
protected void findAfter(DeclareEntity params, Context context, List<DeclareEntity> list) throws AppException {
for (DeclareEntity declareEntity : list) {
Long applyId = declareEntity.getApplyId();
if (!ObjectUtils.isEmpty(applyId)) {
UserEntity userCache = userService.getCache(applyId.toString());
declareEntity.setPhone(userCache == null ? "" : userCache.getPhone());
}
}
fillSubData(list);
super.findAfter(params, context, 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