#EC_HJ110# 超时消息提醒接口增加app消息对接
parent
e7c0c0aea3
commit
a4cbbb2a5e
@ -0,0 +1,51 @@
|
|||||||
|
package weaver.interfaces.dito.overtime;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import weaver.conn.RecordSet;
|
||||||
|
import weaver.general.BaseBean;
|
||||||
|
import weaver.general.Util;
|
||||||
|
import weaver.interfaces.dito.comInfo.PropBean;
|
||||||
|
import weaver.interfaces.dito.util.SendMessageUtil;
|
||||||
|
import weaver.workflow.msg.entity.MsgEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/***
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class SendPortalOverTimeMsgUtil {
|
||||||
|
|
||||||
|
public void SendOverTimeMsg(List<MsgEntity> requestMsgEntity){
|
||||||
|
String CusField_MsgId = PropBean.getUfPropValue("CusField_MsgId");
|
||||||
|
String scopeid = "-1";
|
||||||
|
String scope = "HrmCustomFieldByInfoType" ;
|
||||||
|
BaseBean bb = new BaseBean();
|
||||||
|
bb.writeLog("SendPortalOverTimeMsgUtil");
|
||||||
|
RecordSet rs = new RecordSet();
|
||||||
|
if(StringUtils.isNotBlank(CusField_MsgId))
|
||||||
|
{
|
||||||
|
for(int i=0;i<requestMsgEntity.size();i++){
|
||||||
|
MsgEntity msgEntity = requestMsgEntity.get(i);
|
||||||
|
String userid = msgEntity.getUserId()+"";
|
||||||
|
String requestname = msgEntity.getDetailTitle();
|
||||||
|
String requestid = msgEntity.getDetailId();
|
||||||
|
|
||||||
|
bb.writeLog("SendPortalOverTimeMsgUtil-requestid:"+requestid);
|
||||||
|
|
||||||
|
SendMessageUtil sendMessageUtil = new SendMessageUtil();
|
||||||
|
String msgid = "" ;
|
||||||
|
if(StringUtils.isNotEmpty(userid)){
|
||||||
|
rs.executeQuery(" select "+CusField_MsgId+" as msgid from cus_fielddata where scopeid=? and scope = ? and id=? ",new Object[]{scopeid,scope,userid} );
|
||||||
|
if(rs.next()){
|
||||||
|
msgid = Util.null2String(rs.getString("seqorder"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(StringUtils.isNotBlank(msgid)){
|
||||||
|
// sendMessageUtil.senMessageToPortal(msgid,requestid,userid,requestname);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue