package com.sercurityControl.decision.controller; import com.securityControl.common.core.web.controller.BaseController; import com.securityControl.common.core.web.domain.AjaxResult; import com.securityControl.common.core.web.page.TableDataInfo; import com.securityControl.common.log.annotation.Log; import com.securityControl.common.log.enums.BusinessType; import com.sercurityControl.decision.domain.qo.IntellQo; import com.sercurityControl.decision.domain.qo.SgxcQo; import com.sercurityControl.decision.domain.vo.NoWorkNoticeVo; import com.sercurityControl.decision.service.JjIntellService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; /** * 智能管控控制层 * * @author makejava * @since 2022-12-06 14:31:54 */ @RestController @RequestMapping("/jjIntell") @Api(tags = "智能管控") public class JjIntellController extends BaseController{ @Resource private JjIntellService intellService; @ApiOperation("智能管控图片数量") @GetMapping("/getPhotoTeamNum") @Log(title = "智能管控", businessType = BusinessType.QUERY, details = "智能管控图片数量") public AjaxResult getPhotoTeamNum() { return AjaxResult.success(intellService.getPhotoTeamNum()); } /** * 关键措施照片不足数量 * * @param intellQo 筛选条件 * @return 查询结果 */ @ApiOperation(value = "关键措施照片") @GetMapping("/queryByPage") @Log(title = "智能管控", businessType = BusinessType.QUERY, details = "关键措施照片") public TableDataInfo queryByPage(IntellQo intellQo) { intellQo.setShouldImage(intellService.getJjPhotoCode(intellQo.getImageType())); startPage(); return getDataTable(intellService.queryByPage(intellQo)); } /** * 施工现场安全隐患 * * @return 查询结果 */ @ApiOperation(value = "施工现场安全隐患") @GetMapping("/querySgxcPage") @Log(title = "智能管控", businessType = BusinessType.QUERY, details = "施工现场安全隐患") public TableDataInfo querySgxcPage(SgxcQo sgxcQo) { startPage(); return getDataTable(intellService.querySgxcPage(sgxcQo)); } @GetMapping("/queryQjStatus") public AjaxResult queryQj() { return AjaxResult.success(intellService.queryQjStatus()); } @GetMapping("/queryQjDetail") public TableDataInfo queryQjDetail(SgxcQo sgxcQo) { startPage(); List list = intellService.queryQjDetail(sgxcQo); return getDataTable(list); } }