|  |  | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.core.utils.DateUtil; | 
 |  |  | import com.doumee.core.utils.FtpUtil; | 
 |  |  | import com.doumee.core.utils.HttpsUtil; | 
 |  |  | import com.doumee.dao.business.*; | 
 |  |  | import com.doumee.dao.business.dao.MemberMapper; | 
 |  |  | import com.doumee.dao.business.model.*; | 
 |  |  | import com.doumee.dao.business.model.Member; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.commons.io.IOUtils; | 
 |  |  | import org.apache.commons.lang3.StringUtils; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  |  | 
 |  |  | import java.io.*; | 
 |  |  | import java.net.URL; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.UUID; | 
 |  |  | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     private void startDealMemberImg() { | 
 |  |  |     @Override | 
 |  |  |     public void startDealMemberImg() { | 
 |  |  |         List<Member> list = memberMapper.selectList(new QueryWrapper<Member>().lambda() | 
 |  |  |                 .eq(Member::getIsdeleted,Constants.ZERO) | 
 |  |  |                 .likeRight(Member::getFaceImg, HKConstants.IMG_INDEX)); | 
 |  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |     private void startDealPlatformEventImg() { | 
 |  |  |     @Override | 
 |  |  |     public void startDealPlatformEventImg() { | 
 |  |  |         List<PlatformEvent> list = platformEventMapper.selectList(new QueryWrapper<PlatformEvent>().lambda() | 
 |  |  |                 .eq(PlatformEvent::getIsdeleted,Constants.ZERO) | 
 |  |  |                 .isNotNull(PlatformEvent::getBackgroundImageContent) | 
 |  |  | 
 |  |  |             is = HKService.getFaceInputStream(param); | 
 |  |  |         }else if(StringUtils.equals(folder_code,Constants.PLATFORM_EVENT_IMG)){ | 
 |  |  |             //月台事件图片 | 
 |  |  |             is = HttpsUtil.connectionInputsteam(img1,"GET",null,null); | 
 |  |  |             log.info("月台图片下载开始:=========================="+img1); | 
 |  |  |             try { | 
 |  |  |                 is = new URL(img1).openStream(); | 
 |  |  |                 byte[] bytes = IOUtils.toByteArray(is); | 
 |  |  |                 is = new ByteArrayInputStream(bytes); | 
 |  |  | //              is = HttpsUtil.connectionInputsteam(img1,"GET",null,null); | 
 |  |  |             }catch (Exception e){ | 
 |  |  |                 e.printStackTrace(); | 
 |  |  |                 log.error("月台图片下载失败:=========================="+img1+"\n"+e.getMessage()); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if(is ==null){ | 
 |  |  |             return  null; |