| | |
| | | } |
| | | |
| | | /** |
| | | * 执行任务 |
| | | * @param id 实体ID |
| | | * @return 数量 |
| | | */ |
| | | @Transactional |
| | | public int execute(Long id){ |
| | | return this.dao.executeById(id) ; |
| | | } |
| | | |
| | | /** |
| | | * 结束任务 |
| | | * @param id 实体ID |
| | | * @return 数量 |
| | | */ |
| | | @Transactional |
| | | public int over(Long id){ |
| | | return this.dao.overById(id) ; |
| | | } |
| | | |
| | | /** |
| | | * 执行任务 |
| | | * @param id 实体ID |
| | | * @return 数量 |
| | | */ |
| | | @Transactional |
| | | public int isExecute(Long id){ |
| | | return this.dao.isExecuteById(id) ; |
| | | } |
| | | |
| | | /** |
| | | * 结束任务 |
| | | * @param id 实体ID |
| | | * @return 数量 |
| | | */ |
| | | @Transactional |
| | | public int isOver(Long id){ |
| | | return this.dao.isOverById(id) ; |
| | | } |
| | | |
| | | /** |
| | | * 逻辑删除实体 |
| | | * @param id 实体ID |
| | | * @return 数量 |