|
@ -17,7 +17,10 @@ import com.kms.yxgh.common.enums.DfYhV2StatusEnum; |
|
|
import com.kms.yxgh.common.service.ApprovalService; |
|
|
import com.kms.yxgh.common.service.ApprovalService; |
|
|
import com.kms.yxgh.common.service.DefaultApprovalBusinessService; |
|
|
import com.kms.yxgh.common.service.DefaultApprovalBusinessService; |
|
|
import com.kms.yxgh.df.domain.DfYhV2; |
|
|
import com.kms.yxgh.df.domain.DfYhV2; |
|
|
import com.kms.yxgh.df.dto.v2.*; |
|
|
import com.kms.yxgh.df.dto.v2.DfRecordSearchV2Dto; |
|
|
|
|
|
import com.kms.yxgh.df.dto.v2.DfYhApproveDto; |
|
|
|
|
|
import com.kms.yxgh.df.dto.v2.DfYhDetailV2Dto; |
|
|
|
|
|
import com.kms.yxgh.df.dto.v2.DfYhListV2Dto; |
|
|
import com.kms.yxgh.df.mapper.DfYhV2Mapper; |
|
|
import com.kms.yxgh.df.mapper.DfYhV2Mapper; |
|
|
import com.shuili.common.core.domain.SearchParam; |
|
|
import com.shuili.common.core.domain.SearchParam; |
|
|
import com.shuili.common.utils.BeanUtils; |
|
|
import com.shuili.common.utils.BeanUtils; |
|
@ -70,11 +73,9 @@ public class DfYhV2Service extends DefaultApprovalBusinessService<DfYhV2Mapper, |
|
|
.ifPresent(status -> queryWrapper.like(DfYhV2::getStatus, status)); |
|
|
.ifPresent(status -> queryWrapper.like(DfYhV2::getStatus, status)); |
|
|
|
|
|
|
|
|
Optional.ofNullable(data.getStartDate()) |
|
|
Optional.ofNullable(data.getStartDate()) |
|
|
.filter(startDate -> startDate != null) |
|
|
|
|
|
.ifPresent(startDate -> queryWrapper.ge(DfYhV2::getStartDate, startDate)); |
|
|
.ifPresent(startDate -> queryWrapper.ge(DfYhV2::getStartDate, startDate)); |
|
|
|
|
|
|
|
|
Optional.ofNullable(data.getEndDate()) |
|
|
Optional.ofNullable(data.getEndDate()) |
|
|
.filter(endDate -> endDate != null) |
|
|
|
|
|
.ifPresent(endDate -> queryWrapper.ge(DfYhV2::getEndDate, endDate)); |
|
|
.ifPresent(endDate -> queryWrapper.ge(DfYhV2::getEndDate, endDate)); |
|
|
|
|
|
|
|
|
Optional.ofNullable(data.getProblemLevel()) |
|
|
Optional.ofNullable(data.getProblemLevel()) |
|
@ -183,14 +184,7 @@ public class DfYhV2Service extends DefaultApprovalBusinessService<DfYhV2Mapper, |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String formStatus(String formId) { |
|
|
public String formStatus(String formId) { |
|
|
Wrapper<DfYhV2> wp = Wrappers.<DfYhV2>lambdaQuery() |
|
|
return ApprovalStatusEnum.WAITING.getValue(); |
|
|
.eq(DfYhV2::getId, formId) |
|
|
|
|
|
.select(DfYhV2::getStatus); |
|
|
|
|
|
List<DfYhV2> list = this.list(wp); |
|
|
|
|
|
if (list != null && !list.isEmpty()) { |
|
|
|
|
|
return list.get(0).getStatus(); |
|
|
|
|
|
} |
|
|
|
|
|
return ""; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|