|
|
@ -25,6 +25,7 @@ import org.apache.ibatis.annotations.Param; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.bind.Name; |
|
|
|
import org.springframework.cache.annotation.CacheConfig; |
|
|
|
import org.springframework.cache.annotation.CacheConfig; |
|
|
|
import org.springframework.cache.annotation.CacheEvict; |
|
|
|
import org.springframework.cache.annotation.CacheEvict; |
|
|
|
import org.springframework.cache.annotation.Cacheable; |
|
|
|
import org.springframework.cache.annotation.Cacheable; |
|
|
@ -51,8 +52,8 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
/** |
|
|
|
/** |
|
|
|
* update |
|
|
|
* update |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@CacheEvict |
|
|
|
@CacheEvict(key = "#processTaskRelation.projectCode + '_' + #processTaskRelation.processDefinitionCode") |
|
|
|
int updateById(@Param("et") ProcessTaskRelation processTaskRelation); |
|
|
|
int updateById(@Name("processTaskRelation") @Param("et") ProcessTaskRelation processTaskRelation); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* process task relation by taskCode |
|
|
|
* process task relation by taskCode |
|
|
@ -77,9 +78,9 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
* @param processCode processCode |
|
|
|
* @param processCode processCode |
|
|
|
* @return int |
|
|
|
* @return int |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@CacheEvict |
|
|
|
@CacheEvict(key = "#projectCode + '_' + #processCode") |
|
|
|
int deleteByCode(@Param("projectCode") long projectCode, |
|
|
|
int deleteByCode(@Name("projectCode") @Param("projectCode") long projectCode, |
|
|
|
@Param("processCode") long processCode); |
|
|
|
@Name("processCode") @Param("processCode") long processCode); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* batch insert process task relation |
|
|
|
* batch insert process task relation |
|
|
@ -101,7 +102,7 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
* query upstream process task relation by taskCode |
|
|
|
* query upstream process task relation by taskCode |
|
|
|
* |
|
|
|
* |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @return ProcessTaskRelation |
|
|
|
* @return ProcessTaskRelation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<ProcessTaskRelation> queryUpstreamByCode(@Param("projectCode") long projectCode, @Param("taskCode") long taskCode); |
|
|
|
List<ProcessTaskRelation> queryUpstreamByCode(@Param("projectCode") long projectCode, @Param("taskCode") long taskCode); |
|
|
@ -110,7 +111,7 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
* query downstream process task relation by taskCode |
|
|
|
* query downstream process task relation by taskCode |
|
|
|
* |
|
|
|
* |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @return ProcessTaskRelation |
|
|
|
* @return ProcessTaskRelation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<ProcessTaskRelation> queryDownstreamByCode(@Param("projectCode") long projectCode, @Param("taskCode") long taskCode); |
|
|
|
List<ProcessTaskRelation> queryDownstreamByCode(@Param("projectCode") long projectCode, @Param("taskCode") long taskCode); |
|
|
@ -118,24 +119,24 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
/** |
|
|
|
/** |
|
|
|
* query task relation by codes |
|
|
|
* query task relation by codes |
|
|
|
* |
|
|
|
* |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @param preTaskCodes preTaskCode list |
|
|
|
* @param preTaskCodes preTaskCode list |
|
|
|
* @return ProcessTaskRelation |
|
|
|
* @return ProcessTaskRelation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<ProcessTaskRelation> queryUpstreamByCodes(@Param("projectCode") long projectCode, @Param("taskCode") long taskCode,@Param("preTaskCodes") Long[] preTaskCodes); |
|
|
|
List<ProcessTaskRelation> queryUpstreamByCodes(@Param("projectCode") long projectCode, @Param("taskCode") long taskCode, @Param("preTaskCodes") Long[] preTaskCodes); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* count upstream by codes |
|
|
|
* count upstream by codes |
|
|
|
* |
|
|
|
* |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @param taskCode taskCode |
|
|
|
* @param processDefinitionCodes processDefinitionCodes |
|
|
|
* @param processDefinitionCodes processDefinitionCodes |
|
|
|
* @return upstream count list group by process definition code |
|
|
|
* @return upstream count list group by process definition code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<Map<String, Long>> countUpstreamByCodeGroupByProcessDefinitionCode(@Param("projectCode") long projectCode, |
|
|
|
List<Map<String, Long>> countUpstreamByCodeGroupByProcessDefinitionCode(@Param("projectCode") long projectCode, |
|
|
|
@Param("processDefinitionCodes") Long[] processDefinitionCodes, |
|
|
|
@Param("processDefinitionCodes") Long[] processDefinitionCodes, |
|
|
|
@Param("taskCode") long taskCode); |
|
|
|
@Param("taskCode") long taskCode); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* batch update process task relation pre task |
|
|
|
* batch update process task relation pre task |
|
|
@ -148,10 +149,10 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
/** |
|
|
|
/** |
|
|
|
* query by code |
|
|
|
* query by code |
|
|
|
* |
|
|
|
* |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param processDefinitionCode processDefinitionCode |
|
|
|
* @param processDefinitionCode processDefinitionCode |
|
|
|
* @param preTaskCode preTaskCode |
|
|
|
* @param preTaskCode preTaskCode |
|
|
|
* @param postTaskCode postTaskCode |
|
|
|
* @param postTaskCode postTaskCode |
|
|
|
* @return ProcessTaskRelation |
|
|
|
* @return ProcessTaskRelation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<ProcessTaskRelation> queryByCode(@Param("projectCode") long projectCode, |
|
|
|
List<ProcessTaskRelation> queryByCode(@Param("projectCode") long projectCode, |
|
|
@ -162,7 +163,7 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
/** |
|
|
|
/** |
|
|
|
* delete process task relation |
|
|
|
* delete process task relation |
|
|
|
* |
|
|
|
* |
|
|
|
* @param processTaskRelationLog processTaskRelationLog |
|
|
|
* @param processTaskRelationLog processTaskRelationLog |
|
|
|
* @return int |
|
|
|
* @return int |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
int deleteRelation(@Param("processTaskRelationLog") ProcessTaskRelationLog processTaskRelationLog); |
|
|
|
int deleteRelation(@Param("processTaskRelationLog") ProcessTaskRelationLog processTaskRelationLog); |
|
|
@ -170,10 +171,10 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio |
|
|
|
/** |
|
|
|
/** |
|
|
|
* count by code |
|
|
|
* count by code |
|
|
|
* |
|
|
|
* |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param projectCode projectCode |
|
|
|
* @param processDefinitionCode processDefinitionCode |
|
|
|
* @param processDefinitionCode processDefinitionCode |
|
|
|
* @param preTaskCode preTaskCode |
|
|
|
* @param preTaskCode preTaskCode |
|
|
|
* @param postTaskCode postTaskCode |
|
|
|
* @param postTaskCode postTaskCode |
|
|
|
* @return ProcessTaskRelation |
|
|
|
* @return ProcessTaskRelation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
int countByCode(@Param("projectCode") long projectCode, |
|
|
|
int countByCode(@Param("projectCode") long projectCode, |
|
|
|