msg.sql.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <das-client>
  3. <Sqls>
  4. <Sql name='test'><![CDATA[
  5. select 1
  6. ]]></Sql>
  7. <Sql name='M_QueryMsgTempView'><![CDATA[
  8. select @a from m_msgtemp_view where 1=1 @b
  9. ]]></Sql>
  10. <Sql name='M_QueryMsgPush'><![CDATA[
  11. select @a from M_MSGPUSH where 1=1 @b
  12. ]]></Sql>
  13. <Sql name='M_QueryMsgTemp'><![CDATA[
  14. select @a from M_MSGTEMP where 1=1 @b order by begin desc
  15. ]]></Sql>
  16. <Sql name='M_QuerySendTemp'><![CDATA[
  17. select @a from M_SENDTEMP where 1=1 @b
  18. ]]></Sql>
  19. <!-- 异常提醒设置 -->
  20. <Sql name='M_QueryYctxsz'><![CDATA[
  21. select * from M_YCTXSZ t where 1=1 @a
  22. ]]></Sql>
  23. <Sql name='M_QueryCountYctxsz'><![CDATA[
  24. select count(*) from M_YCTXSZ t
  25. ]]></Sql>
  26. <!-- 删除 -->
  27. <Sql name='M_Delete_MsgTemp'><![CDATA[
  28. delete from M_MSGTEMP where 1=1 @b
  29. ]]></Sql>
  30. <Sql name='M_QueryMsgMobile'><![CDATA[
  31. select msgid,mobile,msg,state,orderid,comefrom,remark
  32. from M_MSG_MOBILE
  33. where 1=1
  34. and state=1
  35. order by inserttime desc
  36. ]]></Sql>
  37. <Sql name='M_UpdateMsgMobile'><![CDATA[
  38. update M_MSG_MOBILE set state=?,remark=?,sendtime=?
  39. where 1=1
  40. and msgid=?
  41. ]]></Sql>
  42. <Sql name='M_UpdateMsgPush'><![CDATA[
  43. update M_MSGPUSH set pushresult=?
  44. where 1=1
  45. and msgpushid=?
  46. ]]></Sql>
  47. </Sqls>
  48. </das-client>