Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
553ccd2e
Commit
553ccd2e
authored
Jul 07, 2023
by
chenym
Browse files
加bean
parent
81e22019
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
View file @
553ccd2e
...
...
@@ -7,10 +7,10 @@
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* <p>
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* <p>
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
...
...
@@ -20,8 +20,6 @@
*/
package
net.mingsoft.cms.biz.impl
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -266,17 +264,19 @@ public class CategoryBizImpl extends BaseBizImpl<ICategoryDao, CategoryEntity> i
* 设置顶级id
* @param entity
*/
private
void
setTopId
(
CategoryEntity
entity
)
{
@Override
public
String
setTopId
(
CategoryEntity
entity
)
{
String
categoryParentId
=
entity
.
getCategoryParentIds
();
if
(
StrUtil
.
isNotBlank
(
categoryParentId
))
{
if
(
!
StrUtil
.
isNotBlank
(
categoryParentId
))
{
String
[]
ids
=
categoryParentId
.
split
(
","
);
//如果有ParentId就取第一个
if
(
ids
.
length
>
0
)
{
entity
.
setTopId
(
ids
[
0
]);
return
;
return
""
;
}
}
entity
.
setTopId
(
"0"
);
return
"abc"
;
}
@Override
...
...
@@ -315,4 +315,13 @@ public class CategoryBizImpl extends BaseBizImpl<ICategoryDao, CategoryEntity> i
}
}
@Override
public
boolean
checkLength
(
String
str
){
if
(
str
.
length
()>
5
){
return
true
;
}
else
{
return
false
;
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment