Browse Source

考核BUG修复

chenglong
汤建军 12 months ago
parent
commit
04fb9379ca
  1. 2
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml
  2. 3
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java

2
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml

@ -56,7 +56,7 @@
</select>
<select id="selectAllClassifyList" resultType="com.logpm.supervise.vo.api.ClassifyApiVO">
SELECT * FROM sup_classify WHERE is_deleted = 0
<if test="pid != null and pid = 0">
<if test="pid != null and pid == 0">
and p_id = 0
</if>
<if test="pid != null and pid != 0">

3
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java

@ -196,11 +196,10 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif
Long pid = 0L;
List<ClassifyApiVO> classifyEntities = getClassifyList(pid);
for (ClassifyApiVO classifyEntity : classifyEntities) {
if (!classifyEntity.getPId().equals(0L)){
if (classifyEntity.getPId().equals(0L)){
List<ClassifyApiVO> classifyList = getClassifyList(classifyEntity.getId());
List<PointsEntity> list = pointsService.list(Wrappers.<PointsEntity>query().lambda()
.eq(PointsEntity::getClassifyId, classifyEntity.getId())
.ne(PointsEntity::getPoint, pid)
);
if (!Objects.isNull(classifyList)){
classifyEntity.setChildren(classifyList);

Loading…
Cancel
Save