package me.zhengjie.archives.controller;
import java.io.File;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
<<<<<<< HEAD
import org.springframework.security.core.userdetails.UserDetails;
=======
>>>>>>> 0c389bffe198548263c292beabdd50c2415fd8f3
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.ApiOperation;
import me.zhengjie.annotation.rest.AnonymousGetMapping;
import me.zhengjie.annotation.rest.AnonymousPostMapping;
import me.zhengjie.archives.entity.ArchivesEntity;
import me.zhengjie.archives.entity.ChromeLogEntity;
import me.zhengjie.archives.entity.FileInfoEntity;
import me.zhengjie.archives.service.ArchivesService;
import me.zhengjie.archives.service.ChromeLogService;
import me.zhengjie.archives.service.FileInfoService;
import me.zhengjie.archives.vo.ArchivesVo;
import me.zhengjie.archives.vo.CaseNumVo;
import me.zhengjie.archives.vo.CasePortraitVo;
import me.zhengjie.base.ResponseDTO;
import me.zhengjie.config.FileProperties;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.mnt.service.dto.AppQueryCriteria;
import me.zhengjie.modules.security.service.dto.JwtUserDto;
import me.zhengjie.modules.system.service.DictDetailService;
import me.zhengjie.modules.system.service.dto.RoleSmallDto;
import me.zhengjie.modules.system.service.dto.UserLoginDto;
import me.zhengjie.utils.SecurityUtils;
/**
*
* 前端控制器
*
*
* @author Erwin Feng
* @since 2023-04-18
*/
@RestController
@RequestMapping("/api/archives")
public class ArchivesController {
@Autowired
DictDetailService dictDetailService;
@Autowired
ArchivesService archivesService;
@Autowired
FileInfoService fileInfoService;
@Autowired
ChromeLogService chromeLogService;
@Autowired
private FileProperties properties;
/**
* 文件和图片
*
* @return
* @throws Exception
*/
@AnonymousPostMapping("/mergeSubmit")
public ResponseDTO