yang_shj
1 year ago
8 changed files with 102 additions and 100 deletions
@ -0,0 +1,15 @@ |
|||||||
|
package com.hnac.hzims.ticket.repair.vo; |
||||||
|
|
||||||
|
import com.hnac.hzims.ticket.repair.entity.WorkTaskEntity; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author ysj |
||||||
|
*/ |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@Data |
||||||
|
public class WorkTaskVO extends WorkTaskEntity { |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,53 @@ |
|||||||
|
package com.hnac.hzims.ticket.repair.controller; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
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.repair.entity.RepairEntity; |
||||||
|
import com.hnac.hzims.ticket.repair.service.IOperRepairService; |
||||||
|
import com.hnac.hzims.ticket.repair.service.IWorkTaskService; |
||||||
|
import com.hnac.hzims.ticket.repair.service.impl.WorkTaskServiceImpl; |
||||||
|
import com.hnac.hzims.ticket.repair.vo.RepairVO; |
||||||
|
import com.hnac.hzims.ticket.repair.vo.WorkTaskVO; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import io.swagger.annotations.ApiParam; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.boot.ctrl.BladeController; |
||||||
|
import org.springblade.core.mp.support.Query; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.flow.core.vo.ComleteTask; |
||||||
|
import org.springframework.validation.annotation.Validated; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import javax.validation.constraints.NotNull; |
||||||
|
|
||||||
|
import static com.alibaba.nacos.api.cmdb.pojo.PreservedEntityTypes.service; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author ysj |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/workTask") |
||||||
|
@Api(value = "工作任务单", tags = "工作任务单") |
||||||
|
@Validated |
||||||
|
public class WorkTaskController extends BladeController { |
||||||
|
|
||||||
|
private final IWorkTaskService workTaskService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工作任务单-开启流程 |
||||||
|
* @param workTask |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
@PostMapping("/startProcess") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "工作任务单") |
||||||
|
public R startV4(@RequestBody WorkTaskVO workTask) { |
||||||
|
return R.status(workTaskService.startProcess(workTask)); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue