
com.togocms.pns.bo.Message.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of togopns Show documentation
Show all versions of togopns Show documentation
Push Notification System (Apple/Google)
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <bean cache="message"> <read name="id"> select id, title, alert, workflow, channel_id as "channelId", creation_time as "creationTime", last_modified as "lastModified" from pns_message where id = ${this.id} limit 1 </read> <read name="next"> select id from pns_message where workflow != 2 order by creation_time desc limit 1 </read> <read-list name="ios-pushes"> select id from pns_queue where platform = 1 and message_id = ${this.id} limit 200 </read-list> <read-list name="android-pushes"> select id from pns_queue where platform = 2 and message_id = ${this.id} limit 200 </read-list> <execute name="queued"> update pns_message set workflow = 1, last_modified = ${this.lastModified} where id = ${this.id} </execute> <execute name="sent"> update pns_message set workflow = 2, ios_sent = ios_sent+${this.iosSent}, ios_fails = ios_fails+${this.iosFails}, android_sent = android_sent+${this.androidSent}, android_fails = android_fails+${this.androidFails}, last_modified = ${this.lastModified} where id = ${this.id} </execute> <create> insert into pns_message ( channel_id, title, alert, workflow, ios_sent, ios_fails, android_sent, android_fails, creation_time, last_modified ) values ( ${this.channelId}, ${this.title}, ${this.alert}, ${this.workflow}, 0, 0, 0, 0, ${this.creationTime}, ${this.lastModified} ) </create> <curr-val>select LAST_INSERT_ID() as id</curr-val> </bean>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy