| package com.dy.dyFile.download; | 
|   | 
|   | 
| import com.dy.common.util.NumUtil; | 
| import com.dy.pmsGlobal.daoOth.OthFileMapper; | 
| import com.dy.pmsGlobal.pojoOth.OthFile; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
| @Slf4j | 
| @Service | 
| public class DownloadFileSv { | 
|     @Autowired | 
|     private OthFileMapper dao; | 
|   | 
|     /** | 
|      * 用ID查询 | 
|      * @param id | 
|      * @return | 
|      */ | 
|     public OthFile selectById(String id){ | 
|         if(NumUtil.isPlusIntNumber(id)){ | 
|             return dao.selectByPrimaryKey(Long.parseLong(id)) ; | 
|         }else{ | 
|             return null ; | 
|         } | 
|     } | 
|   | 
| } |