标签修改
This commit is contained in:
+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