|
@@ -7,14 +7,19 @@ import com.fjhx.common.service.coding.CodingRuleService;
|
|
import com.fjhx.flow.core.FlowDelegate;
|
|
import com.fjhx.flow.core.FlowDelegate;
|
|
import com.fjhx.flow.enums.FlowStatusEnum;
|
|
import com.fjhx.flow.enums.FlowStatusEnum;
|
|
import com.fjhx.oa.entity.seal.dto.SealUseDto;
|
|
import com.fjhx.oa.entity.seal.dto.SealUseDto;
|
|
|
|
+import com.fjhx.oa.entity.seal.po.SealConfig;
|
|
import com.fjhx.oa.entity.seal.po.SealUse;
|
|
import com.fjhx.oa.entity.seal.po.SealUse;
|
|
|
|
+import com.fjhx.oa.service.seal.SealConfigService;
|
|
import com.fjhx.oa.service.seal.SealUseService;
|
|
import com.fjhx.oa.service.seal.SealUseService;
|
|
import com.ruoyi.common.core.domain.BasePo;
|
|
import com.ruoyi.common.core.domain.BasePo;
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@Component
|
|
@Component
|
|
public class SealUseFlow extends FlowDelegate {
|
|
public class SealUseFlow extends FlowDelegate {
|
|
@@ -23,6 +28,8 @@ public class SealUseFlow extends FlowDelegate {
|
|
private SealUseService sealUseService;
|
|
private SealUseService sealUseService;
|
|
@Autowired
|
|
@Autowired
|
|
private CodingRuleService codingRuleService;
|
|
private CodingRuleService codingRuleService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private SealConfigService sealConfigService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public String getFlowKey() {
|
|
public String getFlowKey() {
|
|
@@ -71,4 +78,13 @@ public class SealUseFlow extends FlowDelegate {
|
|
public void cancellation(Long flowId, Long businessId, FlowStatusEnum flowStatus) {
|
|
public void cancellation(Long flowId, Long businessId, FlowStatusEnum flowStatus) {
|
|
sealUseService.cancellation(businessId);
|
|
sealUseService.cancellation(businessId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<Long> getHandlingUserList(Long flowId, JSONObject submitData) {
|
|
|
|
+ SealUseDto dto = submitData.toJavaObject(SealUseDto.class);
|
|
|
|
+ List<Long> sealIds = Arrays.stream(dto.getSealIds().split(",")).distinct().map(Long::valueOf).collect(Collectors.toList());
|
|
|
|
+ //返回印章管理人列表
|
|
|
|
+ List<Long> custodyUserId = sealConfigService.listObject(SealConfig::getCustodyUserId, q -> q.in(SealConfig::getId, sealIds));
|
|
|
|
+ return custodyUserId.stream().distinct().collect(Collectors.toList());
|
|
|
|
+ }
|
|
}
|
|
}
|