|
|
@ -34,6 +34,7 @@ import com.shuili.common.utils.BeanUtils; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Objects; |
|
|
|
import java.util.Optional; |
|
|
@ -206,7 +207,7 @@ public class SzYhV2Service extends DefaultApprovalBusinessService<SzYhV2Mapper, |
|
|
|
List<SzYhV2> list = list(new LambdaQueryWrapper<SzYhV2>().eq(SzYhV2::getRecordId, byId.getRecordId())); |
|
|
|
if (CollectionUtils.isNotEmpty(list) && !list.isEmpty()) { |
|
|
|
long count = list.stream().filter(e -> Objects.equals(DfYhV2StatusEnum.ACCEPTED.getValue(), e.getStatus())).count(); |
|
|
|
if (count+1==list.size()) { |
|
|
|
if (count+1==list.size()|| Objects.equals(1,list.size())) { |
|
|
|
Wrapper<SzCheckingRecord> wp = Wrappers.<SzCheckingRecord>lambdaUpdate() |
|
|
|
.eq(SzCheckingRecord::getId, byId.getRecordId()) |
|
|
|
.set(SzCheckingRecord::getStatus, status); |
|
|
@ -214,6 +215,7 @@ public class SzYhV2Service extends DefaultApprovalBusinessService<SzYhV2Mapper, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String formStatus(String formId) { |
|
|
|
return ApprovalStatusEnum.SUBMITTING.getValue(); |
|
|
|