<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lframework.xingyun.template.gen.mappers.GenDataObjDetailMapper">

  <select id="entityDetailIsRela" resultType="java.lang.Boolean">
    SELECT COUNT(*) > 0
    FROM gen_data_obj_detail
    WHERE FIND_IN_SET(#{entityDetailId}, main_table_detail_ids)
    OR FIND_IN_SET(#{entityDetailId}, sub_table_detail_ids)
  </select>
</mapper>