|
|
|
@ -7,6 +7,7 @@ import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.common.Pager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.model.platform.LabelTemplatePagerModel;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.SessionUser;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.SysLabelTemplate;
|
|
|
|
|
import cn.estsh.impp.framework.base.controller.CoreBaseController;
|
|
|
|
@ -21,8 +22,14 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -58,7 +65,9 @@ public class SysLabelTemplateController extends CoreBaseController {
|
|
|
|
|
.notNull("templateCode", sysLabelTemplate.getTemplateCode())
|
|
|
|
|
.notNull("templateName", sysLabelTemplate.getTemplateName())
|
|
|
|
|
.notNull("paramsPack", sysLabelTemplate.getParamsPack())
|
|
|
|
|
.notNull("templateContent", sysLabelTemplate.getTemplateContent());
|
|
|
|
|
.notNull("templateContent", sysLabelTemplate.getTemplateContent())
|
|
|
|
|
.notNull("templateSoftType", sysLabelTemplate.getTemplateSoftType())
|
|
|
|
|
.notNull("templateGroupId", sysLabelTemplate.getTemplateGroupId());
|
|
|
|
|
|
|
|
|
|
//修改初始化
|
|
|
|
|
ConvertBean.modelInitialize(sysLabelTemplate, user);
|
|
|
|
@ -120,7 +129,9 @@ public class SysLabelTemplateController extends CoreBaseController {
|
|
|
|
|
.notNull("templateCode", sysLabelTemplate.getTemplateCode())
|
|
|
|
|
.notNull("templateName", sysLabelTemplate.getTemplateName())
|
|
|
|
|
.notNull("paramsPack", sysLabelTemplate.getParamsPack())
|
|
|
|
|
.notNull("templateContent", sysLabelTemplate.getTemplateContent());
|
|
|
|
|
.notNull("templateContent", sysLabelTemplate.getTemplateContent())
|
|
|
|
|
.notNull("templateSoftType", sysLabelTemplate.getTemplateSoftType())
|
|
|
|
|
.notNull("templateGroupId", sysLabelTemplate.getTemplateGroupId());
|
|
|
|
|
|
|
|
|
|
//添加初始化
|
|
|
|
|
ConvertBean.modelUpdate(sysLabelTemplate, user);
|
|
|
|
@ -205,7 +216,7 @@ public class SysLabelTemplateController extends CoreBaseController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/query")
|
|
|
|
|
@ApiOperation(value = "打印模板复杂查询,分页,排序",notes = "打印模板复杂查询,分页,排序")
|
|
|
|
|
public ResultBean querySysLabelTemplateByPager(SysLabelTemplate sysLabelTemplate,Pager pager) {
|
|
|
|
|
public ResultBean<SysLabelTemplate> querySysLabelTemplateByPager(SysLabelTemplate sysLabelTemplate,Pager pager) {
|
|
|
|
|
try {
|
|
|
|
|
ListPager sysConfigListPager = sysLabelTemplateService.querySysLabelTemplateByPager(sysLabelTemplate,pager);
|
|
|
|
|
return ResultBean.success("操作成功").setListPager(sysConfigListPager).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
@ -217,6 +228,17 @@ public class SysLabelTemplateController extends CoreBaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 微服务打印模板复杂查询,分页,排序
|
|
|
|
|
* @param labelTemplatePagerModel 查询条件,分页信息
|
|
|
|
|
* @return 处理结果
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/cloud-query")
|
|
|
|
|
@ApiOperation(value = "微服务打印模板复杂查询,分页,排序",notes = "微服务打印模板复杂查询,分页,排序")
|
|
|
|
|
public ResultBean<SysLabelTemplate> querySysLabelTemplateByPager(@RequestBody LabelTemplatePagerModel labelTemplatePagerModel) {
|
|
|
|
|
return querySysLabelTemplateByPager(labelTemplatePagerModel.getLabelTemplate(), labelTemplatePagerModel.getPager());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据打印模板编号查询模板参数
|
|
|
|
|
* @param id 打印模板id
|
|
|
|
|
* @return 处理结果
|
|
|
|
|