能力申请被拒绝时 删除申请记录 del_flg 置1
This commit is contained in:
parent
f89909e42a
commit
29458b0fc9
|
@ -59,6 +59,7 @@ import org.codehaus.jackson.map.ObjectMapper;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
@ -122,6 +123,8 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
private ResourceDao resourceDao;
|
private ResourceDao resourceDao;
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysNoticeService sysNoticeService;
|
private SysNoticeService sysNoticeService;
|
||||||
|
@Autowired
|
||||||
|
private JdbcTemplate jdbcTemplate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据参数获取当前运行的任务信息
|
* 根据参数获取当前运行的任务信息
|
||||||
|
@ -685,6 +688,7 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
pvmTransitionListC.clear();
|
pvmTransitionListC.clear();
|
||||||
pvmTransitionListC.addAll(oriPvmTransitionList);
|
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);
|
sysNoticeService.updateApplyStateById(task.getProcessInstanceId(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -743,6 +747,7 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
pvmTransitionListC.clear();
|
pvmTransitionListC.clear();
|
||||||
pvmTransitionListC.addAll(oriPvmTransitionList);
|
pvmTransitionListC.addAll(oriPvmTransitionList);
|
||||||
}
|
}
|
||||||
|
jdbcTemplate.update(String.format("UPDATE t_ability_application SET del_flag = 1 WHERE instance_id = %s ;", instanceId));
|
||||||
sysNoticeService.updateApplyStateById(instanceId, 1);
|
sysNoticeService.updateApplyStateById(instanceId, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -274,6 +274,7 @@
|
||||||
AND t_ability_application.user_id = #{userId}
|
AND t_ability_application.user_id = #{userId}
|
||||||
AND t_ability_application.resource_id = #{resourceId}
|
AND t_ability_application.resource_id = #{resourceId}
|
||||||
AND tb_data_resource.type != '基础设施'
|
AND tb_data_resource.type != '基础设施'
|
||||||
|
AND t_ability_application.del_flag = 0
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getDeptInfrastructureApply" resultType="java.lang.Integer">
|
<select id="getDeptInfrastructureApply" resultType="java.lang.Integer">
|
||||||
|
|
Loading…
Reference in New Issue