提交修改
This commit is contained in:
parent
7044bebf95
commit
d90ea0b15a
@ -33,5 +33,5 @@ public interface FlowMapper extends BaseMapper<Flow> {
|
||||
int deleteFlowById(@Param("id")Long id);
|
||||
|
||||
|
||||
List<Flow> selectByFlowId(@Param("flowId") Long flowId);
|
||||
List<Flow> selectByFlowId(@Param("flowId") Long flowId, @Param("startId") Long startId);
|
||||
}
|
||||
@ -33,7 +33,7 @@ public interface FlowService extends IService<Flow> {
|
||||
int deleteFlowById(Long id);
|
||||
|
||||
|
||||
List<Flow> selectByFlowId(Long flowId);
|
||||
List<Flow> selectByFlowId(Long flowId,Long startId);
|
||||
|
||||
FlowChart selectFlowChartByChartId(Long flowId);
|
||||
}
|
||||
@ -66,8 +66,8 @@ public class FlowServiceImpl extends ServiceImpl<FlowMapper, Flow> implements Fl
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Flow> selectByFlowId(Long flowId) {
|
||||
return flowMapper.selectByFlowId(flowId);
|
||||
public List<Flow> selectByFlowId(Long flowId,Long startId) {
|
||||
return flowMapper.selectByFlowId(flowId,startId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -245,7 +245,7 @@ public class ResultDetailServiceImpl extends ServiceImpl<ResultDetailMapper, Res
|
||||
Map<String, FlowDepartment> staffEntityMap = list.stream().collect(Collectors.toMap(FlowDepartment::getDepartmentLevel, p -> p));
|
||||
|
||||
Long flowId = flowInfo.getFirst();
|
||||
List<Flow> flows = flowService.selectByFlowId(flowId);
|
||||
List<Flow> flows = flowService.selectByFlowId(flowId,0l);
|
||||
|
||||
int flowIndex = lastFlowRecord != null ? lastFlowRecord.getFlowIndex() + 1 : 1;
|
||||
log.info("flowIndex = " + flowIndex);
|
||||
|
||||
@ -465,7 +465,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
}
|
||||
}
|
||||
log.info("approvalList approval : " + Arrays.toString(approvalList.toArray()) );
|
||||
List<Flow> flows = flowService.selectByFlowId(flowId);
|
||||
List<Flow> flows = flowService.selectByFlowId(flowId,0l);
|
||||
FlowRecord lastFlowRecord = flowRecordService.selectLastFlowRecordByRecordId(resultRecordId);
|
||||
FlowRecord notFlowRecord = flowRecordService.selectNotApprovalStaffIdFlowRecords(resultRecord.getId());
|
||||
if (notFlowRecord != null) {
|
||||
@ -757,7 +757,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
@Override
|
||||
public R initFlowRecord(Long resultRecordId) {
|
||||
ResultRecord resultRecord = resultRecordMapper.selectResultRecordById(resultRecordId);
|
||||
List<Flow> flows = flowService.selectByFlowId(resultRecord.getEvaluationId());
|
||||
List<Flow> flows = flowService.selectByFlowId(resultRecord.getEvaluationId(),resultRecord.getStartId());
|
||||
List<Long> flowIds = new ArrayList<>();
|
||||
for(Flow flow:flows){
|
||||
flowIds.add(flow.getId());
|
||||
@ -786,7 +786,6 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
}else if(FlowApprovalRoleTypeEnums.FOUR_SUPPER.getType().equals(flowApprovalRole.getType())){
|
||||
staffEntity = getDepartmentStaff(map,5);
|
||||
}
|
||||
|
||||
flowRecord.setApprovalStaffName(staffEntity.getName());
|
||||
flowRecord.setApprovalStaffId(staffEntity.getId());
|
||||
flowRecord.setFlowName(getFlow(flows,flowApprovalRole.getFlowId()).getOptDesc());
|
||||
|
||||
@ -100,7 +100,7 @@
|
||||
</update>
|
||||
|
||||
<select id="selectByFlowId" resultType="com.lz.modules.flow.entity.Flow">
|
||||
select * from lz_flow where flow_id = #{flowId} and is_delete = 0
|
||||
select * from lz_flow where flow_id = #{flowId} and is_delete = 0 and start_id = #{startId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user