use of cn.cerc.jmis.message.JPushRecord in project summer-mis by cn-cerc.
the class SvrUserMessages method pushToJiGuang.
private void pushToJiGuang(SqlQuery cdsMsg) {
String subject = cdsMsg.getString("Subject_");
if ("".equals(subject)) {
subject = copy(cdsMsg.getString("Content_"), 1, 80);
}
if (cdsMsg.getInt("Level_") == MessageLevel.Service.ordinal()) {
subject += "【" + AsyncService.getProcessTitle(cdsMsg.getInt("Process_")) + "】";
}
String corpNo = cdsMsg.getString("CorpNo_");
String userCode = cdsMsg.getString("UserCode_");
BigInteger msgId = cdsMsg.getBigInteger("UID_");
JPushRecord jPush = new JPushRecord(corpNo, userCode, msgId.toString());
jPush.setAlert(subject);
jPush.send(this);
}
Aggregations