|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.YwWorkorderDataDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.model.YwWorkorder; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.YwWorkorderDataVO; | 
|---|
|  |  |  | import com.doumee.service.business.YwWorkorderService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | 
|---|
|  |  |  | @CloudRequiredPermission("business:ywworkorder:create") | 
|---|
|  |  |  | public ApiResponse create(@RequestBody YwWorkorder ywWorkorder,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
|---|
|  |  |  | ywWorkorder.setLoginUserInfo(this.getLoginUser(token)); | 
|---|
|  |  |  | ywWorkorder.setOrigin(Constants.ZERO); | 
|---|
|  |  |  | return ApiResponse.success(ywWorkorderService.create(ywWorkorder)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("获取工单数量信息") | 
|---|
|  |  |  | @PostMapping("/getDataVO") | 
|---|
|  |  |  | @CloudRequiredPermission("business:ywworkorder:update") | 
|---|
|  |  |  | public ApiResponse<YwWorkorderDataVO> getDataVO(@RequestBody YwWorkorderDataDTO dto,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
|---|
|  |  |  | YwWorkorderDataVO ywWorkorderDataVO = ywWorkorderService.getDataVO(dto); | 
|---|
|  |  |  | return ApiResponse.success(ywWorkorderDataVO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("分页查询") | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | @CloudRequiredPermission("business:ywworkorder:query") | 
|---|