|
@@ -3,6 +3,7 @@ package com.qmth.sop.business.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
|
+import com.qmth.sop.business.bean.result.FormWidgetMetadataResult;
|
|
|
import com.qmth.sop.business.entity.TDFormWidgetMetadata;
|
|
|
import com.qmth.sop.business.mapper.TDFormWidgetMetadataMapper;
|
|
|
import com.qmth.sop.business.service.TDFormWidgetMetadataService;
|
|
@@ -18,6 +19,7 @@ import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
+import java.util.Objects;
|
|
|
import java.util.Set;
|
|
|
|
|
|
/**
|
|
@@ -74,11 +76,12 @@ public class TDFormWidgetMetadataServiceImpl extends ServiceImpl<TDFormWidgetMet
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<TDFormWidgetMetadata> selectAll(TFCustomTypeEnum type, Integer version) {
|
|
|
+ public List<FormWidgetMetadataResult> selectAll(TFCustomTypeEnum type, Integer version) {
|
|
|
if (type != TFCustomTypeEnum.OFFICE_SOP_FLOW && type != TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("流程类型只能为教务处或研究生");
|
|
|
}
|
|
|
- return this.list(new QueryWrapper<TDFormWidgetMetadata>().lambda().eq(TDFormWidgetMetadata::getType, type).eq(TDFormWidgetMetadata::getVersion, version).orderByAsc(TDFormWidgetMetadata::getSetup));
|
|
|
+// return this.list(new QueryWrapper<TDFormWidgetMetadata>().lambda().eq(TDFormWidgetMetadata::getType, type).eq(TDFormWidgetMetadata::getVersion, version).orderByAsc(TDFormWidgetMetadata::getSetup));
|
|
|
+ return this.baseMapper.getFormWidgetMetadataResult(Objects.nonNull(type) ? type.name() : null, version);
|
|
|
}
|
|
|
|
|
|
/**
|