Browse Source

fix: 巡检模板与项目绑定表去除tenantId筛选条件拼接

zhongwei
haungxing 3 months ago
parent
commit
c0c9157a61
  1. 3
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java

3
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java

@ -1,5 +1,6 @@
package com.hnac.hzinfo.inspect.obj.mapper; package com.hnac.hzinfo.inspect.obj.mapper;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.annotation.UserDataAuth;
import com.hnac.hzinfo.inspect.obj.vo.TemplateProjectVo; import com.hnac.hzinfo.inspect.obj.vo.TemplateProjectVo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@ -20,6 +21,7 @@ public interface ObjectTemplateMapper extends BaseMapper<ObjectTemplateEntity> {
* 根据对象id获取模板list * 根据对象id获取模板list
* @return * @return
*/ */
@InterceptorIgnore(tenantLine = "true")
List<ObjectTemplateEntity> getListByObjectId(@Param("objectId") Long objectId, @Param("type") String type); List<ObjectTemplateEntity> getListByObjectId(@Param("objectId") Long objectId, @Param("type") String type);
/** /**
@ -27,6 +29,7 @@ public interface ObjectTemplateMapper extends BaseMapper<ObjectTemplateEntity> {
* 根据对象id获取模板项目内容 * 根据对象id获取模板项目内容
* @param objectId * @param objectId
*/ */
@InterceptorIgnore(tenantLine = "true")
List<TemplateProjectVo> getTemplateByObjectId(Long objectId); List<TemplateProjectVo> getTemplateByObjectId(Long objectId);

Loading…
Cancel
Save