|
@@ -327,26 +327,18 @@ public class BizArchiveInputController extends BaseController {
|
|
if (one != null) {
|
|
if (one != null) {
|
|
list = workOrderRecordService.list(new LambdaQueryWrapper<BizWorkOrderRecord>()
|
|
list = workOrderRecordService.list(new LambdaQueryWrapper<BizWorkOrderRecord>()
|
|
.eq(BizWorkOrderRecord::getWorkOrderId, one.getWorkOrderId()));
|
|
.eq(BizWorkOrderRecord::getWorkOrderId, one.getWorkOrderId()));
|
|
- if (CollectionUtils.isNotEmpty(list)) {
|
|
|
|
- detail.setDisabled(true);
|
|
|
|
- } else {
|
|
|
|
- detail.setDisabled(false);
|
|
|
|
- }
|
|
|
|
|
|
+ detail.setDisabled(CollectionUtils.isNotEmpty(list));
|
|
}
|
|
}
|
|
if (bizArchiveInput.getServiceType() == 1) {
|
|
if (bizArchiveInput.getServiceType() == 1) {
|
|
TimeVo time = getTime(detail.getContractId(), detail.getId(), detail.getTaskTypeId(), detail.getCompanyId());
|
|
TimeVo time = getTime(detail.getContractId(), detail.getId(), detail.getTaskTypeId(), detail.getCompanyId());
|
|
if (time != null) {
|
|
if (time != null) {
|
|
detail.setTimeVo(time);
|
|
detail.setTimeVo(time);
|
|
- if (list != null &&
|
|
|
|
|
|
+ detail.setMonthDisabled(list != null &&
|
|
list.stream()
|
|
list.stream()
|
|
.anyMatch(record ->
|
|
.anyMatch(record ->
|
|
DateTime.of(detail.getTimeVo().getStartTime())
|
|
DateTime.of(detail.getTimeVo().getStartTime())
|
|
.toString("yyyyMM")
|
|
.toString("yyyyMM")
|
|
- .compareTo(record.getYear() + record.getMonth()) <= 0)) {
|
|
|
|
- detail.setMonthDisabled(true);
|
|
|
|
- }else{
|
|
|
|
- detail.setMonthDisabled(false);
|
|
|
|
- }
|
|
|
|
|
|
+ .compareTo(record.getYear() + record.getMonth()) <= 0));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|