bat.sql.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <das-client>
  3. <Sqls>
  4. <Sql name='BAT_QueryBatAccount'><![CDATA[
  5. SELECT @a FROM BAT_ACCOUNT A WHERE @b
  6. ]]></Sql>
  7. <Sql name='BAT_QueryBatMsgSend'><![CDATA[
  8. SELECT @a FROM BAT_MSG_SEND S LEFT JOIN BAT_MSG_BASE B ON S.MSGID = B.MSGID
  9. LEFT JOIN BAT_ACCOUNT A ON S.ACCOUNTID = A.ACCOUNTID
  10. WHERE @b
  11. ]]></Sql>
  12. <Sql name='BAT_QueryBatUserGroup'><![CDATA[
  13. select @a from BAT_USER_GROUP where @b
  14. ]]></Sql>
  15. <Sql name='BAT_DeleteBatUserGroup'><![CDATA[
  16. delete from BAT_USER_GROUP WHERE @b
  17. ]]></Sql>
  18. <Sql name='BAT_GetBatUserCount'><![CDATA[
  19. select count(0) num from BAT_USER where openid=?
  20. ]]></Sql>
  21. <Sql name='BAT_GetBatUserCountByAccountId'><![CDATA[
  22. select count(0) num from BAT_USER where state=1 and subscribe = 1 and accountid=?
  23. ]]></Sql>
  24. <Sql name='BAT_UpdateBatUser_Single'><![CDATA[
  25. update BAT_USER set state=1,subscribe = ?,synctime=?,accountid=? where openid=?
  26. ]]></Sql>
  27. <Sql name='BAT_UpdateBatUser_All'><![CDATA[
  28. update BAT_USER set state=1,subscribe = ?,nickname=?,sex=?,city=?,country=?,province=?,
  29. language=?,headimgurl=?,remark=?,groupid=?,synctime=?,accountid=?
  30. where openid=?
  31. ]]></Sql>
  32. <Sql name='BAT_GetBatAccountid'><![CDATA[
  33. select accountid from BAT_ACCOUNT where appid =? limit 1
  34. ]]></Sql>
  35. <Sql name='BAT_QueryBatUser'><![CDATA[
  36. SELECT @a FROM BAT_USER U LEFT JOIN BAT_ACCOUNT A ON U.ACCOUNTID = A.ACCOUNTID
  37. WHERE @b
  38. ]]></Sql>
  39. <Sql name='BAT_GetBatUserList'><![CDATA[
  40. SELECT @a FROM BAT_USER U WHERE @b
  41. ]]></Sql>
  42. <Sql name='BAT_GetBatMsgItemListByIds'><![CDATA[
  43. SELECT @a FROM BAT_MSG_ITEM A WHERE @b
  44. ]]></Sql>
  45. </Sqls>
  46. </das-client>