@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
	public void registerSuccMsg(Map<String, String> record, int type) {
		// ***@LiWei***以下为解决超过4000字符，保存异常添加代码***//
		// 如果消息内容过长，截取一部分保存
		String body = record.get("body");
		if (body == null) {
			body = "";
		} else {
			try {
				byte[] bytes = body.getBytes();
				if (bytes.length > 3800) {
					body = new String(bytes, 0, 3800);
					System.out.println(body);
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		record.put("body", body);
		// ***@LiWei***以上为解决超过4000字符，保存异常添加代码***//
		// 是否发邮件
		boolean isMailActived = (Integer.valueOf(Integer.toHexString(type)) &
				Integer.valueOf(Integer.toHexString(1))) > 0 ? true : false;
		// 是否发短信
		boolean isSmsActived = (Integer.valueOf(Integer.toHexString(type)) &
				Integer.valueOf(Integer.toHexString(2))) > 0 ? true : false;
		if (isMailActived) {
			registerMailLog(record);
		}
		if (isSmsActived) {
			registerSmsLog(record);
		}
		registerMsgLog(record);
	}