注解形式的sql语句如何快速转换为可读性强的sql语句
sql语句是注解的形式,可读性差,而且中间哪个字符有问题都不知道
具体代码类似这种,还有比这更复杂的,以前用xml里写的 直接粘出来一运行就知道哪里有问题了,现在粘出来还要挑" +的
@Select(value = " <script>" +
" select a.id from at_account a " +
" left join at_account_owner b " +
" on a.owner_id = b.id " +
" where a.dr=0 and b.dr=0 and b.customer_platform_Id in " +
" <foreach item='customerPlatformId' index='index' collection='customerPlatformIds' open='(' separator=',' close=')'> " +
" #{customerPlatformId} " +
" </foreach> " +
" </script> ")
List<Long> queryIdByCustomerPlatformIds(@Param("customerPlatformIds") List<String> customerPlatformIds)