Compare commits

..

No commits in common. "a34c2add02bcda0acee76d65b5ddfa5a070bd70a" and "3c844bdbaca8f0a78fcdf9a48345e9523ab70dca" have entirely different histories.

2 changed files with 0 additions and 13 deletions

View File

@ -3,11 +3,8 @@ package com.bonus.canteen.core.android.service.impl;
import com.bonus.canteen.core.android.dto.AppDTO;
import com.bonus.canteen.core.android.mapper.FaceMapper;
import com.bonus.canteen.core.android.service.FaceService;
import com.bonus.canteen.core.kitchen.utils.FileCommonUtils;
import com.bonus.canteen.core.user.domain.UserFace;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.system.api.RemoteFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -21,14 +18,9 @@ import java.util.List;
public class FaceServiceImpl implements FaceService {
@Resource
private FaceMapper mapper;
@Autowired
RemoteFileService remoteFileService;
@Override
public AjaxResult getFaceFeatureList(AppDTO dto) {
List<UserFace> list = mapper.getFaceFeatureList(dto);
for (UserFace userFace : list){
userFace.setPhotoUrl(remoteFileService.getFullFileUrl(FileCommonUtils.getFullFileUrl(userFace.getPhotoUrl())));
}
return AjaxResult.success(list);
}

View File

@ -7,8 +7,6 @@ import com.bonus.canteen.core.kitchen.utils.FileCommonUtils;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils;
import com.bonus.system.api.RemoteFileService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bonus.canteen.core.kitchen.mapper.KitchenWasteMealMapper;
@ -23,7 +21,6 @@ import com.bonus.canteen.core.kitchen.service.IKitchenWasteMealService;
*/
@Service
public class KitchenWasteMealServiceImpl implements IKitchenWasteMealService {
private static final Logger log = LoggerFactory.getLogger(KitchenWasteMealServiceImpl.class);
@Autowired
private KitchenWasteMealMapper kitchenWasteMealMapper;
@ -50,10 +47,8 @@ public class KitchenWasteMealServiceImpl implements IKitchenWasteMealService {
public List<KitchenWasteMeal> selectKitchenWasteMealList(KitchenWasteMeal kitchenWasteMeal) {
List<KitchenWasteMeal> kitchenWasteMeals = kitchenWasteMealMapper.selectKitchenWasteMealList(kitchenWasteMeal);
for (KitchenWasteMeal item : kitchenWasteMeals) {
log.error("后台获取的url"+item.getFileUrl());
item.setFileUrl(remoteFileService.getFullFileUrl(
FileCommonUtils.getFullFileUrl(item.getFileUrl())));
log.error("处理之后的url"+item.getFileUrl());
}
return kitchenWasteMeals;
}