| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | |
| | | @RestController |
| | | @RequestMapping("/base_case") |
| | | @Api(tags = "案件池") |
| | | @Slf4j |
| | | public class BaseCaseController extends BaseController { |
| | | |
| | | private IBaseCaseService baseCaseService; |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "上传市平台") |
| | | @PostMapping("/upload-event") |
| | | public CommonResult uploadEvent(@RequestParam Long caseId, CommonResult<Object> success) { |
| | | @PostMapping("/upload-event/{caseId}") |
| | | public CommonResult uploadEvent(@PathVariable Long caseId) { |
| | | String msg = baseCaseService.uploadEvent(caseId); |
| | | if (StringUtils.isEmpty(msg)) { |
| | | return success; |
| | | return CommonResult.success(msg); |
| | | } else { |
| | | return CommonResult.failed(msg); |
| | | } |
| | |
| | | Integer state = iDisposeRecordService |
| | | .list(new LambdaQueryWrapper<DisposeRecord>() |
| | | .eq(DisposeRecord::getBaseCaseId, caseId). |
| | | orderByDesc(DisposeRecord::getCreateTime)).get(firstNum).getState(); |
| | | orderByDesc(DisposeRecord::getCreateTime)).get(firstNum).getState(); |
| | | return CommonResult.success(baseCaseService |
| | | .update(new LambdaUpdateWrapper<BaseCase>() |
| | | .eq(BaseCase::getId, caseId) |