| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.sxkj.gd.workorder.entity.GdClueEventEntity; |
| | | import org.sxkj.gd.workorder.param.GdClueEventRejectParam; |
| | | import org.sxkj.gd.workorder.vo.GdClueEventListVO; |
| | | import org.sxkj.gd.workorder.vo.GdClueEventVO; |
| | | import org.sxkj.gd.workorder.excel.GdClueEventExcel; |
| | | import org.sxkj.gd.workorder.wrapper.GdClueEventWrapper; |
| | | import org.sxkj.gd.workorder.service.IGdClueEventService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | |
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入gdClueEvent") |
| | | public R<GdClueEventVO> detail(GdClueEventEntity gdClueEvent) { |
| | | GdClueEventEntity detail = gdClueEventService.getOne(Condition.getQueryWrapper(gdClueEvent)); |
| | | return R.data(GdClueEventWrapper.build().entityVO(detail)); |
| | | @ApiOperation(value = "详情", notes = "传入事件ID") |
| | | public R<GdClueEventVO> detail(@ApiParam(value = "事件ID", required = true) @RequestParam Long id) { |
| | | return R.data(gdClueEventService.getGdClueEventDetail(id)); |
| | | } |
| | | |
| | | /** |
| | | * 事件表(线索事件) 分页 |
| | | * 事件表(线索事件) 列表 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入gdClueEvent") |
| | | public R<IPage<GdClueEventVO>> list(@ApiIgnore @RequestParam Map<String, Object> gdClueEvent, Query query) { |
| | | QueryWrapper<GdClueEventEntity> queryWrapper = Condition.getQueryWrapper(gdClueEvent, GdClueEventEntity.class); |
| | | queryWrapper.lambda().eq(GdClueEventEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | IPage<GdClueEventVO> pages = gdClueEventService.selectGdClueEventList(Condition.getPage(query), queryWrapper); |
| | | return R.data(pages); |
| | | @ApiOperation(value = "列表", notes = "固定过滤本部门,onlyMine=1时仅我的数据") |
| | | public R<List<GdClueEventListVO>> list(@ApiParam(value = "是否仅我的数据,1为是,0为否") |
| | | @RequestParam(value = "onlyMine", required = false, defaultValue = "0") Integer onlyMine) { |
| | | List<GdClueEventListVO> list = gdClueEventService.listGdClueEventByDept(onlyMine); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |