| | |
| | | <mapper namespace="cn.gistack.sm.sjztmd.mapper.AttAdBaseMapper"> |
| | | |
| | | <resultMap id="treeNodeResultMap" type="org.springblade.core.tool.node.TreeNode"> |
| | | <!-- <resultMap id="treeNodeResultMap" type="cn.gistack.sm.sjztmd.vo.AttAdBaseVO">--> |
| | | <id column="id" property="id"/> |
| | | <result column="parent_id" property="parentId"/> |
| | | <result column="title" property="title"/> |
| | |
| | | region."order_id" AS orderId, |
| | | ( SELECT CASE WHEN count( 1 ) > 0 THEN 1 ELSE 0 END FROM "SJZT_MD"."att_ad_base" WHERE "p_ad_code" = region."ad_code" ) AS "has_children" |
| | | FROM "SJZT_MD"."att_ad_base" region |
| | | WHERE region."guid" = #{attAdBase.guid} |
| | | WHERE |
| | | 1=1 |
| | | <if test="attAdBase.guid != null and attAdBase.guid !='' "> |
| | | AND region."guid" = #{attAdBase.guid} |
| | | </if> |
| | | <if test="attAdBase.adName != null and attAdBase.adName !='' "> |
| | | AND region."ad_name" = #{attAdBase.adName} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |