|
|
@ -8,12 +8,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.hnac.hzims.common.invalid.DictInvalid; |
|
|
|
import com.hnac.hzims.common.invalid.DictInvalid; |
|
|
|
import com.hnac.hzims.common.invalid.ObjectRequiredInvalid; |
|
|
|
import com.hnac.hzims.common.invalid.ObjectRequiredInvalid; |
|
|
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
|
|
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
|
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
|
|
|
|
import com.hnac.hzims.ticket.areamonthly.vo.StandardTicketWithAreaVo; |
|
|
|
import com.hnac.hzims.ticket.areamonthly.vo.StandardTicketWithAreaVo; |
|
|
|
import com.hnac.hzims.ticket.areamonthly.vo.StandardWorkVo; |
|
|
|
import com.hnac.hzims.ticket.areamonthly.vo.StandardWorkVo; |
|
|
|
import com.hnac.hzims.ticket.constants.DictConstants; |
|
|
|
import com.hnac.hzims.ticket.constants.DictConstants; |
|
|
|
|
|
|
|
import com.hnac.hzims.ticket.constants.TicketConstants; |
|
|
|
import com.hnac.hzims.ticket.workTicket.dto.TicketAccessTaskDto; |
|
|
|
import com.hnac.hzims.ticket.workTicket.dto.TicketAccessTaskDto; |
|
|
|
import com.hnac.hzims.ticket.workTicket.dto.WorkInfoFlowDto; |
|
|
|
import com.hnac.hzims.ticket.workTicket.dto.WorkInfoFlowDto; |
|
|
|
import com.hnac.hzims.ticket.workTicket.dto.WorkTicketInfoDto; |
|
|
|
import com.hnac.hzims.ticket.workTicket.dto.WorkTicketInfoDto; |
|
|
@ -23,6 +21,10 @@ import com.hnac.hzims.ticket.workTicket.vo.WorkTicketBillVO; |
|
|
|
import com.hnac.hzims.ticket.workTicket.vo.WorkTicketExportVO; |
|
|
|
import com.hnac.hzims.ticket.workTicket.vo.WorkTicketExportVO; |
|
|
|
import com.hnac.hzims.ticket.workTicket.vo.WorkTicketInfoVO; |
|
|
|
import com.hnac.hzims.ticket.workTicket.vo.WorkTicketInfoVO; |
|
|
|
import com.hnac.hzims.ticket.workTicket.vo.WorkVO; |
|
|
|
import com.hnac.hzims.ticket.workTicket.vo.WorkVO; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.log.annotation.Business; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.log.annotation.Operate; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.log.contants.BusinessType; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.log.contants.Risk; |
|
|
|
import io.swagger.annotations.*; |
|
|
|
import io.swagger.annotations.*; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
@ -63,6 +65,7 @@ import java.util.Map; |
|
|
|
@Api(value = "工作票管理", tags = "工作票管理") |
|
|
|
@Api(value = "工作票管理", tags = "工作票管理") |
|
|
|
@AllArgsConstructor |
|
|
|
@AllArgsConstructor |
|
|
|
@Validated |
|
|
|
@Validated |
|
|
|
|
|
|
|
@Business(module = TicketConstants.APP_NAME,value = "工作票管理",ignore = false) |
|
|
|
public class WorkTicketInfoController { |
|
|
|
public class WorkTicketInfoController { |
|
|
|
private final IWorkTicketInfoService workTicketInfoService; |
|
|
|
private final IWorkTicketInfoService workTicketInfoService; |
|
|
|
|
|
|
|
|
|
|
@ -72,6 +75,7 @@ public class WorkTicketInfoController { |
|
|
|
@GetMapping("/remove") |
|
|
|
@GetMapping("/remove") |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@ApiOperation(value = "逻辑删除") |
|
|
|
@ApiOperation(value = "逻辑删除") |
|
|
|
|
|
|
|
@Operate(label = "删除工作票",type = BusinessType.DELETE,risk = Risk.MEDIUM,ignore = false) |
|
|
|
public R remove(@RequestParam Long id, @RequestParam String comment) { |
|
|
|
public R remove(@RequestParam Long id, @RequestParam String comment) { |
|
|
|
return workTicketInfoService.remove(id, comment); |
|
|
|
return workTicketInfoService.remove(id, comment); |
|
|
|
} |
|
|
|
} |
|
|
@ -102,6 +106,7 @@ public class WorkTicketInfoController { |
|
|
|
@GetMapping("/detail") |
|
|
|
@GetMapping("/detail") |
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
@ApiOperation(value = "详情") |
|
|
|
@ApiOperation(value = "详情") |
|
|
|
|
|
|
|
@Operate(label = "查询工作票详情",type = BusinessType.QUERY,ignore = false) |
|
|
|
public R<WorkTicketInfoVO> detail(@RequestParam Long id) { |
|
|
|
public R<WorkTicketInfoVO> detail(@RequestParam Long id) { |
|
|
|
return workTicketInfoService.detail(id); |
|
|
|
return workTicketInfoService.detail(id); |
|
|
|
} |
|
|
|
} |
|
|
@ -113,10 +118,7 @@ public class WorkTicketInfoController { |
|
|
|
@PostMapping("/queryList") |
|
|
|
@PostMapping("/queryList") |
|
|
|
@ApiOperationSupport(order = 50) |
|
|
|
@ApiOperationSupport(order = 50) |
|
|
|
@ApiOperation(value = "分页") |
|
|
|
@ApiOperation(value = "分页") |
|
|
|
@OperationAnnotation(moduleName = "两票管理", title = "工作票" |
|
|
|
@Operate(label = "查询工作票分页列表",type = BusinessType.QUERY,ignore = false) |
|
|
|
, operatorType = OperatorType.MOBILE, businessType = |
|
|
|
|
|
|
|
BusinessType.GENCODE, |
|
|
|
|
|
|
|
action = "分页查询工作票列表") |
|
|
|
|
|
|
|
public R<IPage<WorkTicketInfoVO>> queryList(WorkTicketInfoDto req, Query query) { |
|
|
|
public R<IPage<WorkTicketInfoVO>> queryList(WorkTicketInfoDto req, Query query) { |
|
|
|
return workTicketInfoService.queryList(req, query); |
|
|
|
return workTicketInfoService.queryList(req, query); |
|
|
|
} |
|
|
|
} |
|
|
@ -125,6 +127,7 @@ public class WorkTicketInfoController { |
|
|
|
@ApiOperationSupport(order = 60) |
|
|
|
@ApiOperationSupport(order = 60) |
|
|
|
@ApiImplicitParam(name = "req", value = "工作票dto对象,导出传参id进入即可") |
|
|
|
@ApiImplicitParam(name = "req", value = "工作票dto对象,导出传参id进入即可") |
|
|
|
@ApiOperation(value = "导出工作票pdf文档") |
|
|
|
@ApiOperation(value = "导出工作票pdf文档") |
|
|
|
|
|
|
|
@Operate(label = "导出工作票pdf文件",type = BusinessType.EXPORT,ignore = false) |
|
|
|
public void exportWorkTicketInfoPdf(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
public void exportWorkTicketInfoPdf(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
workTicketInfoService.exportWorkTicketInfoPdf(id, response); |
|
|
|
workTicketInfoService.exportWorkTicketInfoPdf(id, response); |
|
|
|
} |
|
|
|
} |
|
|
@ -134,8 +137,7 @@ public class WorkTicketInfoController { |
|
|
|
@ApiOperation(value = "工作票导出") |
|
|
|
@ApiOperation(value = "工作票导出") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
@OperationAnnotation(moduleName = "工作票导出",title = "工作票导出",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,action |
|
|
|
@Operate(label = "导出工作票",type = BusinessType.EXPORT,ignore = false) |
|
|
|
= "工作票导出") |
|
|
|
|
|
|
|
public void exportWorkTicket(HttpServletResponse response,@RequestBody WorkTicketInfoDto req) { |
|
|
|
public void exportWorkTicket(HttpServletResponse response,@RequestBody WorkTicketInfoDto req) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
// if(ObjectUtils.isEmpty(req.getStartTime())&&ObjectUtils.isEmpty(req.getEndTime())){
|
|
|
|
// if(ObjectUtils.isEmpty(req.getStartTime())&&ObjectUtils.isEmpty(req.getEndTime())){
|
|
|
@ -187,8 +189,7 @@ public class WorkTicketInfoController { |
|
|
|
@PostMapping("/completeTask") |
|
|
|
@PostMapping("/completeTask") |
|
|
|
@ApiOperationSupport(order = 70) |
|
|
|
@ApiOperationSupport(order = 70) |
|
|
|
@ApiOperation(value = "执行工作流任务") |
|
|
|
@ApiOperation(value = "执行工作流任务") |
|
|
|
public R completeTask(@RequestBody @ObjectRequiredInvalid(attributes = {"req.id", "req.status", "flow.processInstanceId", "flow.taskId", "flow.flag"}) |
|
|
|
public R completeTask(@RequestBody WorkInfoFlowDto workInfoFlowDto) { |
|
|
|
@DictInvalid(dictKey = DictConstants.FIRST_TICKET_FLOW, attribute = "req.status") WorkInfoFlowDto workInfoFlowDto) { |
|
|
|
|
|
|
|
return workTicketInfoService.completeTask(workInfoFlowDto.getReq(), workInfoFlowDto.getFlow()); |
|
|
|
return workTicketInfoService.completeTask(workInfoFlowDto.getReq(), workInfoFlowDto.getFlow()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -216,9 +217,6 @@ public class WorkTicketInfoController { |
|
|
|
@ApiLog |
|
|
|
@ApiLog |
|
|
|
@GetMapping("/userListByRoleAlias") |
|
|
|
@GetMapping("/userListByRoleAlias") |
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
@OperationAnnotation(moduleName = "两票管理", |
|
|
|
|
|
|
|
title = "工作票", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE, |
|
|
|
|
|
|
|
action = "获取某机构下角色的人员列表") |
|
|
|
|
|
|
|
@ApiOperation(value = "获取某机构下角色的人员列表") |
|
|
|
@ApiOperation(value = "获取某机构下角色的人员列表") |
|
|
|
public R userListByRoleAlias(@RequestParam("roleAlias") @ApiParam("角色别称") String roleAlias) { |
|
|
|
public R userListByRoleAlias(@RequestParam("roleAlias") @ApiParam("角色别称") String roleAlias) { |
|
|
|
IUserClient userClient = SpringUtil.getBean(IUserClient.class); |
|
|
|
IUserClient userClient = SpringUtil.getBean(IUserClient.class); |
|
|
|