|
@@ -1,6 +1,8 @@
|
|
|
package com.platform.service.custom.impl;
|
|
|
|
|
|
import com.platform.common.bean.AbstractPageResultBean;
|
|
|
+import com.platform.common.exception.DeniedException;
|
|
|
+import com.platform.common.util.StringUtils;
|
|
|
import com.platform.dao.bean.MyPage;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.platform.dao.vo.query.custom.CustomFormBomFieldVO;
|
|
@@ -15,6 +17,7 @@ import tk.mybatis.mapper.weekend.Weekend;
|
|
|
import tk.mybatis.mapper.weekend.WeekendCriteria;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -42,6 +45,17 @@ public class CustomFormBomFieldServiceImpl extends BaseServiceImpl<CustomFormBom
|
|
|
return new MyPage(mapper.selectList(record));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<CustomFormBomFieldVO> selectByCategoryType(CustomFormBomFieldDTO dto) {
|
|
|
+ if(StringUtils.isBlank(dto.getType())){
|
|
|
+ throw new DeniedException("表单类型不能为空");
|
|
|
+ }
|
|
|
+ if(StringUtils.isBlank(dto.getCategory())){
|
|
|
+ throw new DeniedException("归属分类不能为空");
|
|
|
+ }
|
|
|
+ return mapper.selectByCategoryType(dto);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public AbstractPageResultBean<CustomFormBomField> selectPageInfo(CustomFormBomFieldDTO record, int pageNum, int pageSize) {
|
|
|
PageHelper.startPage(pageNum, pageSize);
|