Skip to content

Commit

Permalink
mysql下act模块事务提交bug修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Mar 23, 2016
1 parent 11e536c commit 4074f81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Binary file modified doc/8.内容管理模块功能说明.docx
Binary file not shown.
Expand Up @@ -161,6 +161,7 @@ public void export(String id, HttpServletResponse response) {
/**
* 更新Model分类
*/
@Transactional(readOnly = false)
public void updateCategory(String id, String category) {
org.activiti.engine.repository.Model modelData = repositoryService.getModel(id);
modelData.setCategory(category);
Expand All @@ -172,6 +173,7 @@ public void updateCategory(String id, String category) {
* @param id
* @return
*/
@Transactional(readOnly = false)
public void delete(String id) {
repositoryService.deleteModel(id);
}
Expand Down
Expand Up @@ -428,6 +428,7 @@ public Task getTask(String taskId){
* @param taskId 任务ID
* @param deleteReason 删除原因
*/
@Transactional(readOnly = false)
public void deleteTask(String taskId, String deleteReason){
taskService.deleteTask(taskId, deleteReason);
}
Expand Down Expand Up @@ -487,6 +488,7 @@ public void complete(String taskId, String procInsId, String comment, String tit
* 完成第一个任务
* @param procInsId
*/
@Transactional(readOnly = false)
public void completeFirstTask(String procInsId){
completeFirstTask(procInsId, null, null, null);
}
Expand All @@ -498,6 +500,7 @@ public void completeFirstTask(String procInsId){
* @param title
* @param vars
*/
@Transactional(readOnly = false)
public void completeFirstTask(String procInsId, String comment, String title, Map<String, Object> vars){
String userId = UserUtils.getUser().getLoginName();
Task task = taskService.createTaskQuery().taskAssignee(userId).processInstanceId(procInsId).active().singleResult();
Expand Down
Expand Up @@ -36,6 +36,7 @@ public Page<Comment> findPage(Page<Comment> page, Comment comment) {
return super.findPage(page, comment);
}

@Transactional(readOnly = false)
public void delete(Comment entity, Boolean isRe) {
super.delete(entity);
}
Expand Down

0 comments on commit 4074f81

Please sign in to comment.