| | |
| | | and IF(#{param2.showFour} = 'true',region."ad_grad" != 5,region."ad_grad" != 4) |
| | | </if> |
| | | </where> |
| | | ORDER BY region."ad_code" |
| | | ORDER BY region."order_id" |
| | | </select> |
| | | |
| | | <select id="selectAttAdBaseTree" resultType="cn.gistack.common.node.TreeNode"> |
| | |
| | | </if> |
| | | and region."ad_grad" != 4 |
| | | </where> |
| | | ORDER BY region."ad_code" |
| | | ORDER BY region."order_id" |
| | | </select> |
| | | |
| | | <select id="lazyTreeAll" resultMap="treeNodeResultMap"> |
| | |
| | | and region."ad_name" like concat(concat('%', #{param2.name}),'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY region."ad_code" |
| | | ORDER BY region."order_id" |
| | | </select> |
| | | |
| | | <!--根据水库编号查询除责任人之外的人员信息--> |
| | |
| | | region."ad_name", |
| | | region."ad_grad", |
| | | region."p_ad_name" AS pAdName, |
| | | 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} |