Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-10-28 11:49:32 +08:00
commit 7a3900d9a7
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -122,6 +123,8 @@ public class ActTaskService extends BaseServiceImpl {
private ResourceDao resourceDao;
@Autowired
private SysNoticeService sysNoticeService;
@Autowired
private JdbcTemplate jdbcTemplate;
/**
* 根据参数获取当前运行的任务信息
@ -685,6 +688,7 @@ public class ActTaskService extends BaseServiceImpl {
pvmTransitionListC.clear();
pvmTransitionListC.addAll(oriPvmTransitionList);
}
jdbcTemplate.update(String.format("UPDATE t_ability_application SET del_flag = 1 WHERE instance_id = %s ;", task.getProcessInstanceId()));
sysNoticeService.updateApplyStateById(task.getProcessInstanceId(), 1);
}
@ -743,6 +747,7 @@ public class ActTaskService extends BaseServiceImpl {
pvmTransitionListC.clear();
pvmTransitionListC.addAll(oriPvmTransitionList);
}
jdbcTemplate.update(String.format("UPDATE t_ability_application SET del_flag = 1 WHERE instance_id = %s ;", instanceId));
sysNoticeService.updateApplyStateById(instanceId, 1);
}

View File

@ -274,6 +274,7 @@
AND t_ability_application.user_id = #{userId}
AND t_ability_application.resource_id = #{resourceId}
AND tb_data_resource.type != '基础设施'
AND t_ability_application.del_flag = 0
</select>
<select id="getDeptInfrastructureApply" resultType="java.lang.Integer">