标签修改
This commit is contained in:
+3
@@ -73,6 +73,9 @@ public class SysDictController {
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req) {
|
||||
Result<IPage<SysDict>> result = new Result<IPage<SysDict>>();
|
||||
QueryWrapper<SysDict> queryWrapper = QueryGenerator.initQueryWrapper(sysDict, req.getParameterMap());
|
||||
if(StringUtils.isNotBlank("create_time")) {
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
}
|
||||
Page<SysDict> page = new Page<SysDict>(pageNo, pageSize);
|
||||
IPage<SysDict> pageList = sysDictService.page(page, queryWrapper);
|
||||
log.debug("查询当前页:"+pageList.getCurrent());
|
||||
|
||||
+6
-2
@@ -91,8 +91,7 @@ public class SysDict implements Serializable {
|
||||
/**
|
||||
* 是否为标签内容-数据字典(1是 0否)
|
||||
*/
|
||||
@Excel(name = "是否为标签内容", width = 15)/*, dictTable = "sys_dict", dicText = "is_tag_dict", dicCode = "is_tag_dict")
|
||||
@Dict(dictTable = "onl_cgform_field", dicText = "is_tag_dict", dicCode = "is_tag_dict")*/
|
||||
@Excel(name = "是否为标签内容", width = 15)
|
||||
private java.lang.Integer isTagDict;
|
||||
|
||||
/**
|
||||
@@ -110,4 +109,9 @@ public class SysDict implements Serializable {
|
||||
@ApiModelProperty(value = "标签类型 1下拉选择 2树形结构")
|
||||
@Dict(dicCode = "attribute_type")
|
||||
private java.lang.String attributeType;
|
||||
|
||||
/**逻辑删除标识 0未删 1已删*/
|
||||
@Excel(name = "逻辑删除标识 0未删 1已删", width = 15)
|
||||
@ApiModelProperty(value = "逻辑删除标识 0未删 1已删")
|
||||
private Integer isDelete;
|
||||
}
|
||||
+6
-3
@@ -64,7 +64,6 @@ public class SysDictItem implements Serializable {
|
||||
@Excel(name = "排序", width = 15,type=4)
|
||||
private Integer sortOrder;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private String dictCode;
|
||||
|
||||
@@ -83,8 +82,7 @@ public class SysDictItem implements Serializable {
|
||||
private Date updateTime;
|
||||
|
||||
/**是否为标签内容-数据字典(1是 0否)*/
|
||||
@Excel(name = "是否为标签内容", width = 15)/*, dictTable = "sys_dict", dicText = "is_tag_dict", dicCode = "is_tag_dict")
|
||||
@Dict(dictTable = "onl_cgform_field", dicText = "is_tag_dict", dicCode = "is_tag_dict")*/
|
||||
@Excel(name = "是否为标签内容", width = 15)
|
||||
private java.lang.Integer isTagDict;
|
||||
|
||||
/**是否是只读(2字段固定,内部可配1固定字段 0非固定字段)*/
|
||||
@@ -98,4 +96,9 @@ public class SysDictItem implements Serializable {
|
||||
@ApiModelProperty(value = "标签类型 1下拉选择 2树形结构")
|
||||
@Dict(dicCode = "attribute_type")
|
||||
private java.lang.String attributeType;
|
||||
|
||||
/**逻辑删除标识 0未删 1已删*/
|
||||
@Excel(name = "逻辑删除标识 0未删 1已删", width = 15)
|
||||
@ApiModelProperty(value = "逻辑删除标识 0未删 1已删")
|
||||
private Integer isDelete;
|
||||
}
|
||||
|
||||
+9
-2
@@ -60,6 +60,9 @@ public class OnlCgformTagController extends JeroController<OnlCgformTag, IOnlCgf
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<OnlCgformTag> queryWrapper = QueryGenerator.initQueryWrapper(onlCgformTag, req.getParameterMap());
|
||||
Page<OnlCgformTag> page = new Page<OnlCgformTag>(pageNo, pageSize);
|
||||
if(StringUtils.isNotBlank("create_time")) {
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
}
|
||||
IPage<OnlCgformTag> pageList = onlCgformTagService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
@@ -115,8 +118,12 @@ public class OnlCgformTagController extends JeroController<OnlCgformTag, IOnlCgf
|
||||
@ApiOperation(value="标签管理-添加", notes="标签管理-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add(@Validated @RequestBody OnlCgformTag onlCgformTag) {
|
||||
onlCgformTagService.queryExitData(onlCgformTag);
|
||||
onlCgformTagService.add(onlCgformTag);
|
||||
Integer count=onlCgformTagService.queryExitData(onlCgformTag);
|
||||
if (count > 0) {
|
||||
onlCgformTag.setIsDelete(0);
|
||||
} else {
|
||||
onlCgformTagService.add(onlCgformTag);
|
||||
}
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
|
||||
+9
-8
@@ -1,9 +1,6 @@
|
||||
package com.jero.modules.tag.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jero.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
@@ -66,16 +63,15 @@ public class OnlCgformTag implements Serializable {
|
||||
private java.lang.String sysOrgCode;
|
||||
|
||||
/**所属模块(1文档库,0文档拆分)*/
|
||||
@TableField(exist = false)
|
||||
@Excel(name = "所属模块(1文档库,0文档拆分", width = 15, dicCode = "module")
|
||||
@Dict(dicCode = "module")
|
||||
@ApiModelProperty(value = "所属模块(1文档库,0文档拆分")
|
||||
private java.lang.String isModel;
|
||||
|
||||
/**字段备注*/
|
||||
@Excel(name = "字段备注", width = 15,dictTable = "onl_cgform_field", dicText = "db_field_txt", dicCode = "db_field_txt")
|
||||
/**属性名称*/
|
||||
@Excel(name = "属性名称", width = 15,dictTable = "onl_cgform_field", dicText = "db_field_txt", dicCode = "db_field_txt")
|
||||
@Dict(dictTable = "onl_cgform_field", dicText = "db_field_txt", dicCode = "db_field_txt")
|
||||
@ApiModelProperty(value = "字段备注")
|
||||
@ApiModelProperty(value = "属性名称")
|
||||
private java.lang.String dbFieldTxt;
|
||||
|
||||
/**字段英文名称描述*/
|
||||
@@ -159,4 +155,9 @@ public class OnlCgformTag implements Serializable {
|
||||
@ApiModelProperty(value = "搜索中心是否展示0否 1是")
|
||||
private java.lang.Integer isShowSearch;
|
||||
|
||||
/**逻辑删除标识 0未删 1已删*/
|
||||
@Excel(name = "逻辑删除标识 0未删 1已删", width = 15,dictTable = "onl_cgform_field", dicText = "is_delete", dicCode = "is_delete")
|
||||
@Dict(dictTable = "onl_cgform_field", dicText = "is_delete", dicCode = "is_delete")
|
||||
@ApiModelProperty(value = "逻辑删除标识 0未删 1已删")
|
||||
private Integer isDelete;
|
||||
}
|
||||
|
||||
+1
@@ -24,5 +24,6 @@
|
||||
<result column="is_query" property="isQuery" />
|
||||
<result column="is_show_laws_list" property="isShowLawsList" />
|
||||
<result column="is_show_search" property="isShowSearch" />
|
||||
<result column="is_delete" property="isDelete" />
|
||||
</resultMap>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user