|
@@ -1,6 +1,7 @@
|
|
package com.fdkankan.fusion.service.impl;
|
|
package com.fdkankan.fusion.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
import com.fdkankan.fusion.entity.CaseTag;
|
|
import com.fdkankan.fusion.entity.CaseTag;
|
|
import com.fdkankan.fusion.entity.CaseTagPoint;
|
|
import com.fdkankan.fusion.entity.CaseTagPoint;
|
|
@@ -70,6 +71,7 @@ public class CaseTagPointServiceImpl extends ServiceImpl<ICaseTagPointMapper, Ca
|
|
}
|
|
}
|
|
LambdaQueryWrapper<CaseTagPoint> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<CaseTagPoint> wrapper = new LambdaQueryWrapper<>();
|
|
wrapper.eq(CaseTagPoint::getTagId,tagId);
|
|
wrapper.eq(CaseTagPoint::getTagId,tagId);
|
|
|
|
+ wrapper.eq(CaseTagPoint::getBindHide,0);
|
|
wrapper.orderByDesc(CaseTagPoint::getCreateTime);
|
|
wrapper.orderByDesc(CaseTagPoint::getCreateTime);
|
|
List<CaseTagPoint> list = this.list(wrapper);
|
|
List<CaseTagPoint> list = this.list(wrapper);
|
|
List<CaseTagPointVo> caseTagPointVoList = new ArrayList<>();
|
|
List<CaseTagPointVo> caseTagPointVoList = new ArrayList<>();
|
|
@@ -83,10 +85,10 @@ public class CaseTagPointServiceImpl extends ServiceImpl<ICaseTagPointMapper, Ca
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void deleteByFusionNumIds(List<Integer> FusionNumIds) {
|
|
|
|
- if(FusionNumIds.size() >0){
|
|
|
|
|
|
+ public void deleteByFusionNumIds(List<Integer> fusionNumIds) {
|
|
|
|
+ if(fusionNumIds.size() >0){
|
|
LambdaQueryWrapper<CaseTagPoint> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<CaseTagPoint> wrapper = new LambdaQueryWrapper<>();
|
|
- wrapper.in(CaseTagPoint::getFusionNumId,FusionNumIds);
|
|
|
|
|
|
+ wrapper.in(CaseTagPoint::getFusionNumId,fusionNumIds);
|
|
this.remove(wrapper);
|
|
this.remove(wrapper);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -99,4 +101,14 @@ public class CaseTagPointServiceImpl extends ServiceImpl<ICaseTagPointMapper, Ca
|
|
this.remove(wrapper);
|
|
this.remove(wrapper);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void hideOrShow(List<Integer> fusionNumIds, Integer hide) {
|
|
|
|
+ if(fusionNumIds.size() >0){
|
|
|
|
+ LambdaUpdateWrapper<CaseTagPoint> wrapper = new LambdaUpdateWrapper<>();
|
|
|
|
+ wrapper.in(CaseTagPoint::getFusionNumId,fusionNumIds);
|
|
|
|
+ wrapper.set(CaseTagPoint::getBindHide,hide);
|
|
|
|
+ this.update(wrapper);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|