Commit 3869434b authored by 陈祥烨's avatar 陈祥烨

修订

parent 9f37b934
...@@ -111,6 +111,7 @@ public class TplResource { ...@@ -111,6 +111,7 @@ public class TplResource {
page.setCurrent(current); page.setCurrent(current);
page.setSize(size); page.setSize(size);
return ResponseHelper.buildResponse(tplService.queryForTplPage(page, categorySeq, displayName)); return ResponseHelper.buildResponse(tplService.queryForTplPage(page, categorySeq, displayName));
// return ResponseHelper.buildResponse(tplService.queryForTplPageByVisualDesigner(page,categorySeq));
} }
/** /**
*列表全部数据查询 *列表全部数据查询
......
package com.yeejoin.amos.api.tool.face.service; package com.yeejoin.amos.api.tool.face.service;
import com.yeejoin.amos.api.tool.face.model.TplCateModel; import com.yeejoin.amos.api.tool.face.model.TplCateModel;
import com.yeejoin.amos.api.tool.face.model.TplCateTreeModel;
import com.yeejoin.amos.api.tool.face.model.VisualDesignerModel;
import com.yeejoin.amos.api.tool.face.orm.dao.TplCateMapper; import com.yeejoin.amos.api.tool.face.orm.dao.TplCateMapper;
import com.yeejoin.amos.api.tool.face.orm.entity.TplCate; import com.yeejoin.amos.api.tool.face.orm.entity.TplCate;
import org.springframework.beans.factory.annotation.Autowired;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
@Service @Service
public class TplCateService extends BaseService<TplCateModel, TplCate, TplCateMapper> { public class TplCateService extends BaseService<TplCateModel, TplCate, TplCateMapper> {
@Autowired
VisualDesignerService visualDesignerService;
/** /**
* 列表查询 示例 * 列表查询 示例
...@@ -18,6 +27,14 @@ public class TplCateService extends BaseService<TplCateModel, TplCate, TplCateMa ...@@ -18,6 +27,14 @@ public class TplCateService extends BaseService<TplCateModel, TplCate, TplCateMa
return this.queryForList("", false); return this.queryForList("", false);
} }
// /**
// * 列表查询 示例
// */
// public List<TplCateModel> queryForTplCateListByVisualDesigner(Long sequenceNbr) {
// List<TplCateModel> result = new ArrayList<>();
// List<TplCateTreeModel>
// }
} }
...@@ -2,12 +2,14 @@ package com.yeejoin.amos.api.tool.face.service; ...@@ -2,12 +2,14 @@ package com.yeejoin.amos.api.tool.face.service;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.api.tool.face.model.TplCateModel;
import com.yeejoin.amos.api.tool.face.model.TplModel; import com.yeejoin.amos.api.tool.face.model.TplModel;
import com.yeejoin.amos.api.tool.face.model.TplVoModel; import com.yeejoin.amos.api.tool.face.model.TplVoModel;
import com.yeejoin.amos.api.tool.face.orm.dao.TplMapper; import com.yeejoin.amos.api.tool.face.orm.dao.TplMapper;
import com.yeejoin.amos.api.tool.face.orm.entity.Tpl; import com.yeejoin.amos.api.tool.face.orm.entity.Tpl;
import org.apache.commons.beanutils.ConvertUtils; import org.apache.commons.beanutils.ConvertUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
...@@ -19,12 +21,28 @@ import java.util.List; ...@@ -19,12 +21,28 @@ import java.util.List;
@Service @Service
public class TplService extends BaseService<TplModel, Tpl, TplMapper> { public class TplService extends BaseService<TplModel, Tpl, TplMapper> {
@Autowired
TplService tplService;
@Autowired
TplCateService tplCateService;
/** /**
* 分页查询 * 分页查询
*/ */
public Page<TplModel> queryForTplPage(Page<TplModel> page, Long categorySeq, String displayName) { public Page<TplModel> queryForTplPage(Page<TplModel> page, Long categorySeq, String displayName) {
return this.queryForPage(page, null, false, categorySeq, displayName); return this.queryForPage(page, null, false, categorySeq, displayName);
} }
/**
* 根据设计器分页查询
*/
// public Page<TplModel> queryForTplPageByVisualDesigner(Page<TplModel> page, Long sequenceNbr){
// List<TplCateModel> tplCateModels = tplCateService.queryForTplCateListByVisualDesigner(sequenceNbr);
// for(TplCateModel tplCateModel:tplCateModels){
// page.getRecords().addAll(tplService.queryForTplListByCategorySeq(tplCateModel.getSequenceNbr()));
// }
// return page;
// }
/** /**
......
...@@ -8,14 +8,11 @@ import com.yeejoin.amos.api.tool.face.orm.dao.VisualDesignerMapper; ...@@ -8,14 +8,11 @@ import com.yeejoin.amos.api.tool.face.orm.dao.VisualDesignerMapper;
import com.yeejoin.amos.api.tool.face.orm.entity.VisualDesigner; import com.yeejoin.amos.api.tool.face.orm.entity.VisualDesigner;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@Service @Service
public class VisualDesignerService extends BaseService<VisualDesignerModel, VisualDesigner, VisualDesignerMapper> { public class VisualDesignerService extends BaseService<VisualDesignerModel, VisualDesigner, VisualDesignerMapper> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment