| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.modules.activiti.entity.ActivitiDefinition; |
| | | import org.jeecg.modules.activiti.request.ActivitiDefinitionRequest; |
| | |
| | | |
| | | @AutoLog(value = "DNC流程配置-修改配置") |
| | | @ApiOperation(value = "DNC流程配置-修改配置", notes = "DNC流程配置-修改配置") |
| | | @PutMapping("/edit/{id}") |
| | | public ResponseResult editDefinition(@PathVariable("id") String id, @RequestBody ActivitiDefinition definition) { |
| | | boolean b = definitionService.editDefinition(id, definition); |
| | | @PutMapping("/edit") |
| | | public ResponseResult editDefinition( @RequestBody ActivitiDefinition definition) { |
| | | boolean b = definitionService.updateById(definition); |
| | | if(b) |
| | | return new ResponseResult(CommonCode.SUCCESS); |
| | | return new ResponseResult(CommonCode.FAIL); |
| | |
| | | |
| | | @AutoLog(value = "DNC流程配置-分页查询配置列表") |
| | | @ApiOperation(value = "DNC流程配置-分页查询配置列表", notes = "DNC流程配置-分页查询配置列表") |
| | | @GetMapping("/find/page/{page}/{size}") |
| | | public QueryPageResponseResult<ActivitiDefinition> findPageList(@PathVariable("page") int page, @PathVariable("size") int size, ActivitiDefinitionRequest request) { |
| | | return definitionService.findPageList(page, size, request); |
| | | @GetMapping("/find/page") |
| | | public Result<?> findPageList(@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | ActivitiDefinitionRequest request) { |
| | | return definitionService.findPageList(pageNo, pageSize, request); |
| | | } |
| | | } |