Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
f93e2657
提交
f93e2657
authored
6月 11, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
ssh://git.mmcuav.cn:8222/iuav/pms
into develop
上级
ccd6152e
770aed43
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
8 行删除
+22
-8
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
DirectoryDO.java
src/main/java/com/mmc/pms/entity/DirectoryDO.java
+16
-2
CategoriesServiceImpl.java
.../java/com/mmc/pms/service/Impl/CategoriesServiceImpl.java
+1
-1
CategoriesDao.xml
src/main/resources/mapper/CategoriesDao.xml
+4
-4
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
f93e2657
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newTag
:
1
00b04645cd4830000932be2c847c3b98202480e
newTag
:
1
7b51a7f10ed3f62402eaeb980ee72c2baab2211
src/main/java/com/mmc/pms/entity/DirectoryDO.java
浏览文件 @
f93e2657
...
@@ -9,7 +9,10 @@ import org.apache.commons.collections4.CollectionUtils;
...
@@ -9,7 +9,10 @@ import org.apache.commons.collections4.CollectionUtils;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* 目录管理表(Directory)实体类
* 目录管理表(Directory)实体类
...
@@ -43,7 +46,7 @@ public class DirectoryDO implements Serializable {
...
@@ -43,7 +46,7 @@ public class DirectoryDO implements Serializable {
public
DirectoryDO
(
DirectoryInfoVO
param
)
{
public
DirectoryDO
(
DirectoryInfoVO
param
)
{
if
(
CollectionUtils
.
isNotEmpty
(
param
.
getShow
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
param
.
getShow
()))
{
String
show
=
StringUtils
.
join
(
param
.
getShow
(),
","
);
String
show
=
param
.
getShow
().
stream
().
map
(
Object:
:
toString
).
collect
(
Collectors
.
joining
(
","
)
);
this
.
show
=
show
;
this
.
show
=
show
;
}
}
this
.
id
=
param
.
getId
();
this
.
id
=
param
.
getId
();
...
@@ -52,7 +55,18 @@ public class DirectoryDO implements Serializable {
...
@@ -52,7 +55,18 @@ public class DirectoryDO implements Serializable {
}
}
public
DirectoryInfoVO
buildDirectoryInfoVO
()
{
public
DirectoryInfoVO
buildDirectoryInfoVO
()
{
return
DirectoryInfoVO
.
builder
().
id
(
id
).
directoryName
(
directoryName
).
type
(
type
).
build
();
List
<
Integer
>
show
=
null
;
if
(!
StringUtils
.
isBlank
(
this
.
show
))
{
String
[]
split
=
this
.
show
.
split
(
","
);
show
=
Arrays
.
stream
(
split
).
map
(
Integer:
:
parseInt
).
collect
(
Collectors
.
toList
());
}
return
DirectoryInfoVO
.
builder
()
.
id
(
id
)
.
directoryName
(
directoryName
)
.
show
(
show
)
.
type
(
type
)
.
build
();
}
}
public
AllCategoryDTO
buildAllCategoryDTO
()
{
public
AllCategoryDTO
buildAllCategoryDTO
()
{
...
...
src/main/java/com/mmc/pms/service/Impl/CategoriesServiceImpl.java
浏览文件 @
f93e2657
...
@@ -52,7 +52,7 @@ public class CategoriesServiceImpl implements CategoriesService {
...
@@ -52,7 +52,7 @@ public class CategoriesServiceImpl implements CategoriesService {
}
else
{
}
else
{
// 获取默认目录信息
// 获取默认目录信息
DirectoryDO
directoryDO
=
categoriesDao
.
selectDirectoryById
(
param
.
getId
());
DirectoryDO
directoryDO
=
categoriesDao
.
selectDirectoryById
(
param
.
getId
());
if
(!
directoryDO
.
getDirectoryName
().
equals
(
param
.
getDirectoryName
()))
{
if
(
directoryDO
!=
null
&&
!
directoryDO
.
getDirectoryName
().
equals
(
param
.
getDirectoryName
()))
{
return
ResultBody
.
error
(
ResultEnum
.
DEFAULT_DIRECTORY
);
return
ResultBody
.
error
(
ResultEnum
.
DEFAULT_DIRECTORY
);
}
}
categoriesDao
.
updateDirectory
(
directory
);
categoriesDao
.
updateDirectory
(
directory
);
...
...
src/main/resources/mapper/CategoriesDao.xml
浏览文件 @
f93e2657
...
@@ -25,8 +25,7 @@
...
@@ -25,8 +25,7 @@
is_deleted
is_deleted
</sql>
</sql>
<insert
id=
"insertDirectory"
>
<insert
id=
"insertDirectory"
>
insert into directory(directory_name,
insert into directory (directory_name, `type`, `show`)
`type`, show)
values (#{directoryName}, #{type}, #{show})
values (#{directoryName}, #{type}, #{show})
</insert>
</insert>
<insert
id=
"insertClassification"
>
<insert
id=
"insertClassification"
>
...
@@ -43,7 +42,7 @@
...
@@ -43,7 +42,7 @@
update directory
update directory
set directory_name = #{directoryName},
set directory_name = #{directoryName},
`type` = #{type},
`type` = #{type},
show
= #{show}
`show`
= #{show}
where id = #{id}
where id = #{id}
</update>
</update>
<update
id=
"removeDirectory"
>
<update
id=
"removeDirectory"
>
...
@@ -88,7 +87,8 @@
...
@@ -88,7 +87,8 @@
SELECT d.id,
SELECT d.id,
d.directory_name,
d.directory_name,
d.`type`,
d.`type`,
d.create_time
d.create_time,
d.show
FROM `directory` d
FROM `directory` d
<where>
<where>
d.is_deleted = 0
d.is_deleted = 0
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论