| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.api.ApiController; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.example.jz.dao.GroupDao; |
| | | import com.example.jz.dao.GroupUserDao; |
| | | import com.example.jz.dao.MessageDao; |
| | | import com.example.jz.dao.ReportDao; |
| | | import com.example.jz.modle.R; |
| | | import com.example.jz.modle.dto.AddReportDto; |
| | | import com.example.jz.modle.dto.CauseDto; |
| | | import com.example.jz.modle.dto.ReportParamDto; |
| | | import com.example.jz.modle.dto.*; |
| | | import com.example.jz.modle.entity.Cause; |
| | | import com.example.jz.modle.entity.GroupUser; |
| | | import com.example.jz.modle.entity.User; |
| | | import com.example.jz.modle.vo.NewCauseVo; |
| | | import com.example.jz.modle.vo.ReportListVo; |
| | | import com.example.jz.service.CauseService; |
| | | import com.example.jz.service.GroupService; |
| | | import com.example.jz.service.ReportService; |
| | | import com.example.jz.utils.EasyExcelUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import lombok.SneakyThrows; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 案件表(Cause)表控制层 |
| | |
| | | return R.ok(causeService.getCauserListByCondition(cause, status, size, current)); |
| | | } |
| | | |
| | | @GetMapping("/getVxCauseList") |
| | | @ApiOperation(httpMethod = "GET", value = "微信找案件") |
| | | public R<List<NewCauseVo>> getVxCauseList(@RequestParam String phone){ |
| | | List<NewCauseVo> res = causeService.getVxCauseList(phone); |
| | | return R.ok(res); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "GET", value = "案件台-案件录入-案件录入列表") |
| | | @GetMapping("/getCause") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R getReporterList(Integer causeId) { |
| | | return R.ok(causeService.getReporterList(causeId)); |
| | | } |
| | | |
| | | @PostMapping("/exp") |
| | | @ApiImplicitParam(name = "causeId", value = "案件id", required = true, dataType = "Integer") |
| | | @ApiOperation(httpMethod = "POST", value = "群成员信息导出") |
| | | public void ReporterListExp(@RequestParam Integer causeId,HttpServletResponse response){ |
| | | Cause one = causeService.getOne(Wrappers.<Cause>lambdaQuery().eq(Cause::getId, causeId)); |
| | | List<CauseReportExpDto> res = causeService.getExpList(causeId); |
| | | String sheetName = "用户导出"; |
| | | EasyExcelUtils.export1(response, sheetName, CauseReportExpDto.class, res, one.getName() + "案件用户导出"); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "GET", value = "案件台-案件录入-获取案件群公告") |
| | |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | @SneakyThrows |
| | | public R uploadReporter(@RequestParam(value = "multipartFile") MultipartFile multipartFile,Integer causeId) { |
| | | causeService.loadFileReport(multipartFile,causeId); |
| | | causeService.loadFileReport(multipartFile,causeId); |
| | | return R.ok(); |
| | | } |
| | | |