returnrawQueryGetDtoList("select * from t_content where delivery_end_date<? and content_id in (select content_id from t_content_id_conv a inner join m_contract b on a.site_id=b.site_id and a.contract_id=b.contract_id where b.undeliverable_delete='Y')",newString[]{(curDate)},ContentDto.class);
returnrawQueryGetDtoList("select mc.* from m_contract mc inner join (select site_id, contract_id from t_content_id_conv group by site_id, contract_id ) tcic on mc.site_id = tcic.site_id and mc.contract_id = tcic.contract_id where mc.usable_push_message = 'Y' order by mc.company_name ",null,ContractDto.class);
returnrawQueryGetDtoList("select * from t_subscription_history where sent_flg=0",null,SubscriptionHistoryDto.class);
}
publicvoidupdateAsSent(intsubscriptionHistoryId){
update("update t_subscription_history set sent_flg=1, update_date=CURRENT_TIMESTAMP where subscription_history_id=?",newObject[]{subscriptionHistoryId});
returnrawQueryGetDto("select * from t_subscription_history where subscription_history_id=?",newString[]{""+subscriptionHistoryId},SubscriptionHistoryDto.class);
}
publicbooleanexists(StringpurchaseToken){
returnrawQueryGetString("select purchase_history_id from t_subscription_history where purchase_token=?",newString[]{""+purchaseToken})!=null;
update("update t_subscription_history set start_time_millis=?, expiry_time_millis=?, del_flg=?, update_date=CURRENT_TIMESTAMP where product_id=? and purchase_token=?",
settings.setPluginState(PluginState.ON);// 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setPluginState(PluginState.ON);// 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setPluginState(PluginState.ON);// 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setPluginState(PluginState.ON);// 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)