标签内容-数据值修改
This commit is contained in:
+2
@@ -15,6 +15,7 @@ import com.jero.modules.system.service.ISysDictItemService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.RandomUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
@@ -76,6 +77,7 @@ public class SysDictItemController {
|
||||
try {
|
||||
sysDictItem.setCreateTime(new Date());
|
||||
sysDictItem.setDelFlag(CommonConstant.DEL_FLAG_0);
|
||||
sysDictItem.setItemValue(String.valueOf(RandomUtils.nextLong()));
|
||||
sysDictItem.setStatus(1);
|
||||
sysDictItemService.save(sysDictItem);
|
||||
result.success("保存成功!");
|
||||
|
||||
+2
-7
@@ -20,6 +20,7 @@ import com.jero.modules.system.model.TreeSelectModel;
|
||||
import com.jero.modules.system.service.ISysCategoryService;
|
||||
import com.jero.modules.system.util.TreeUtils;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.RandomUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -65,6 +66,7 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
|
||||
//update-end--Author:baihailong Date:20191209 for:分类字典编码规则生成器做成公用配置
|
||||
sysCategory.setCode(categoryCode);
|
||||
sysCategory.setPid(categoryPid);
|
||||
sysCategory.setItemValue(String.valueOf(RandomUtils.nextLong()));
|
||||
sysCategory.setIsTagDict(1);
|
||||
sysCategory.setDelFlag(CommonConstant.DEL_FLAG_0);
|
||||
baseMapper.insert(sysCategory);
|
||||
@@ -229,13 +231,6 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
|
||||
return result;
|
||||
}
|
||||
|
||||
/**搜索条件*//*
|
||||
@Override
|
||||
public List<SysCategory> queryBySysName(String sysName) {
|
||||
QueryWrapper<SysCategory> queryWrapper=new QueryWrapper<>();
|
||||
queryWrapper.like("name",sysName).eq("del_flag", CommonConstant.DEL_FLAG_0);
|
||||
return list(queryWrapper);
|
||||
}*/
|
||||
@Override
|
||||
public List<SysCategoryTreeVO> getSysCategoryTree() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user