bug修改

This commit is contained in:
hzj
2024-07-17 10:53:44 +08:00
parent be8edfd4cf
commit a573c17886
2 changed files with 5 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import com.njcn.advance.mapper.carrycapacity.CarryCapacityUserPOMapper;
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityUserParam;
import com.njcn.advance.pojo.carrycapacity.po.CarryCapacityUserPO;
import com.njcn.advance.service.carrycapacity.CarryCapacityUserPOService;
import com.njcn.common.pojo.constant.LogInfo;
import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.user.api.UserFeignClient;
import com.njcn.user.pojo.vo.UserVO;
@@ -77,7 +78,7 @@ public class CarryCapacityUserPOServiceImpl extends ServiceImpl<CarryCapacityUse
page.getRecords().stream().forEach(temp->{
UserVO user = userFeignClient.getUserById(temp.getCreateBy()).getData();
temp.setCreateBy(user.getName());
temp.setCreateBy(Objects.isNull(user)? LogInfo.UNKNOWN_USER:user.getName());
});
return page;
}