提交 3e1477f7 作者: xiaowang

修复

上级 a6461da7
......@@ -246,7 +246,7 @@ public class WebDeviceServiceImpl implements WebDeviceService {
@Override
public ResultBody getPageHomeCategories(Integer type) {
if (!type.equals(5) || !type.equals(6)) {
if (!type.equals(5) && !type.equals(6)) {
List<DirectoryDO> directoryList = categoriesDao.getDirectoryList(type);
if (CollectionUtils.isNotEmpty(directoryList)) {
List<Integer> directoryIds =
......
......@@ -246,7 +246,8 @@
create_time
FROM categories
WHERE (id = 56
OR parent_id = 56) and is deleted = 0
OR parent_id = 56)
and is_deleted = 0
</select>
<select id="listCategoryBySoftware" resultType="com.mmc.pms.entity.Categories">
SELECT id,
......@@ -259,7 +260,8 @@
create_time
FROM categories
WHERE (id = 55
OR parent_id = 55) and is deleted = 0
OR parent_id = 55)
and is_deleted = 0
</select>
<update id="deleteById">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论