guidePrice_total.fmt 240 B

12345678910111213
  1. select
  2. count(p.id) as total
  3. from ds_guide_price p
  4. left join db_price_community pc on p.communityId=pc.id
  5. where 1=1
  6. <#if batchNO?has_content>
  7. AND p.batchNO=:batchNO
  8. </#if>
  9. <#if name?has_content>
  10. AND pc.houses like :name
  11. </#if>