Initial commit
This commit is contained in:
parent
bd01a0b192
commit
a2ae924b6c
@ -160,6 +160,19 @@ public class OaProcessTemplateController {
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布审批模版
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("hasAuthority('bnt.processTemplate.publish')")
|
||||
@ApiOperation(value = "发布")
|
||||
@GetMapping("/publish/{id}")
|
||||
public Result publish(@PathVariable Long id) {
|
||||
processTemplateService.publish(id);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -22,4 +22,11 @@ public interface OaProcessTemplateService extends IService<ProcessTemplate> {
|
||||
* @return
|
||||
*/
|
||||
IPage<ProcessTemplate> selectPageProcessTemplate(Page<ProcessTemplate> pageInfo);
|
||||
|
||||
/**
|
||||
* 发布审批模版
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
void publish(Long id);
|
||||
}
|
||||
|
@ -58,4 +58,18 @@ public class OaProcessTemplateServiceImpl extends ServiceImpl<OaProcessTemplateM
|
||||
|
||||
return processTemplatePage;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布审批模版
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
@Override
|
||||
public void publish(Long id) {
|
||||
ProcessTemplate processTemplate = baseMapper.selectById(id);
|
||||
processTemplate.setStatus(1);
|
||||
baseMapper.updateById(processTemplate);
|
||||
|
||||
//TODO 部署流程定义,后续完善
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user