| | |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.util.FileUtils; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.system.ApplicationHome; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | * @since 2022-01-12 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class SupervisionServiceImpl extends ServiceImpl<SupervisionMapper, Supervision> implements SupervisionService { |
| | | |
| | | @Autowired |
| | |
| | | for (String image : images) { |
| | | String realPath = path + File.separator + image; |
| | | File file = new File(realPath); |
| | | log.info(realPath); |
| | | if (file.exists() && file.isFile()) { |
| | | file.delete(); |
| | | } |