12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0" encoding="UTF-8"?>
- <das-client>
- <Sqls>
- <Sql name='BAT_QueryBatAccount'><![CDATA[
- SELECT @a FROM BAT_ACCOUNT A WHERE @b
- ]]></Sql>
- <Sql name='BAT_QueryBatMsgSend'><![CDATA[
- SELECT @a FROM BAT_MSG_SEND S LEFT JOIN BAT_MSG_BASE B ON S.MSGID = B.MSGID
- LEFT JOIN BAT_ACCOUNT A ON S.ACCOUNTID = A.ACCOUNTID
- WHERE @b
- ]]></Sql>
- <Sql name='BAT_QueryBatUserGroup'><![CDATA[
- select @a from BAT_USER_GROUP where @b
- ]]></Sql>
- <Sql name='BAT_DeleteBatUserGroup'><![CDATA[
- delete from BAT_USER_GROUP WHERE @b
- ]]></Sql>
- <Sql name='BAT_GetBatUserCount'><![CDATA[
- select count(0) num from BAT_USER where openid=?
- ]]></Sql>
- <Sql name='BAT_GetBatUserCountByAccountId'><![CDATA[
- select count(0) num from BAT_USER where state=1 and subscribe = 1 and accountid=?
- ]]></Sql>
- <Sql name='BAT_UpdateBatUser_Single'><![CDATA[
- update BAT_USER set state=1,subscribe = ?,synctime=?,accountid=? where openid=?
- ]]></Sql>
- <Sql name='BAT_UpdateBatUser_All'><![CDATA[
- update BAT_USER set state=1,subscribe = ?,nickname=?,sex=?,city=?,country=?,province=?,
- language=?,headimgurl=?,remark=?,groupid=?,synctime=?,accountid=?
- where openid=?
- ]]></Sql>
- <Sql name='BAT_GetBatAccountid'><![CDATA[
- select accountid from BAT_ACCOUNT where appid =? limit 1
- ]]></Sql>
- <Sql name='BAT_QueryBatUser'><![CDATA[
- SELECT @a FROM BAT_USER U LEFT JOIN BAT_ACCOUNT A ON U.ACCOUNTID = A.ACCOUNTID
- WHERE @b
- ]]></Sql>
- <Sql name='BAT_GetBatUserList'><![CDATA[
- SELECT @a FROM BAT_USER U WHERE @b
- ]]></Sql>
- <Sql name='BAT_GetBatMsgItemListByIds'><![CDATA[
- SELECT @a FROM BAT_MSG_ITEM A WHERE @b
- ]]></Sql>
- </Sqls>
- </das-client>
|