| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Slf4j |
| | | @Api(tags = "DNC流程配置") |
| | | @Api(tags = "DNC指派设备流程配置") |
| | | @RestController |
| | | @RequestMapping("/nc/definition") |
| | | public class ActivitiDefinitionController { |
| | | @Autowired |
| | | private IActivitiDefinitionService definitionService; |
| | | |
| | | @AutoLog(value = "DNC流程配置-添加配置") |
| | | @ApiOperation(value = "DNC流程配置-添加配置", notes = "DNC流程配置-添加配置") |
| | | @AutoLog(value = "DNC指派设备流程配置-添加配置") |
| | | @ApiOperation(value = "DNC指派设备流程配置-添加配置", notes = "DNC指派设备流程配置-添加配置") |
| | | @PostMapping("/add") |
| | | public ResponseResult addDefinition(@RequestBody ActivitiDefinition definition) { |
| | | boolean b = definitionService.addDefinition(definition); |
| | |
| | | return new ResponseResult(CommonCode.FAIL); |
| | | } |
| | | |
| | | @AutoLog(value = "DNC流程配置-修改配置") |
| | | @ApiOperation(value = "DNC流程配置-修改配置", notes = "DNC流程配置-修改配置") |
| | | @AutoLog(value = "DNC指派设备流程配置-修改配置") |
| | | @ApiOperation(value = "DNC指派设备流程配置-修改配置", notes = "DNC指派设备流程配置-修改配置") |
| | | @PutMapping("/edit") |
| | | public ResponseResult editDefinition( @RequestBody ActivitiDefinition definition) { |
| | | boolean b = definitionService.updateById(definition); |
| | |
| | | return new ResponseResult(CommonCode.FAIL); |
| | | } |
| | | |
| | | @AutoLog(value = "DNC流程配置-删除配置") |
| | | @ApiOperation(value = "DNC流程配置-删除配置", notes = "DNC流程配置-删除配置") |
| | | @AutoLog(value = "DNC指派设备流程配置-删除配置") |
| | | @ApiOperation(value = "DNC指派设备流程配置-删除配置", notes = "DNC指派设备流程配置-删除配置") |
| | | @DeleteMapping("/delete") |
| | | public ResponseResult deleteDefinition(@RequestParam("id") String id) { |
| | | boolean b = definitionService.deleteDefinition(id); |
| | |
| | | return new ResponseResult(CommonCode.FAIL); |
| | | } |
| | | |
| | | @AutoLog(value = "DNC流程配置-分页查询配置列表") |
| | | @ApiOperation(value = "DNC流程配置-分页查询配置列表", notes = "DNC流程配置-分页查询配置列表") |
| | | @AutoLog(value = "DNC指派设备流程配置-分页查询配置列表") |
| | | @ApiOperation(value = "DNC指派设备流程配置-分页查询配置列表", notes = "DNC指派设备流程配置-分页查询配置列表") |
| | | @GetMapping("/find/page") |
| | | public Result<?> findPageList(@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |