切换移动梦网短信平台(补漏提交)

This commit is contained in:
zhanglei@ap-leasing.com.cn 2023-07-27 16:57:18 +08:00
parent 8701e6c89e
commit 6f70d8562d

View File

@ -5,24 +5,24 @@ import com.amarsoft.are.jbo.*;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.app.manage.util.KHSQContractSignActionTwoUtil;
import com.tenwa.quartz.DateUtil;
import com.tenwa.reckon.util.UUIDUtil;
import jbo.app.tenwa.calc.LC_RENT_INCOME;
import jbo.app.tenwa.calc.LC_RENT_PLAN;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import jbo.com.tenwa.lease.comm.LB_SMS_NOTICE_TASKS;
import jbo.sys.CODE_LIBRARY;
import jbo.sys.MSG_CONFIG;
import org.apache.commons.lang3.StringUtils;
import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.CollectionUtils;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class QuartzJobMsg implements Job {
private static final Logger logger = LoggerFactory.getLogger(QuartzJobMsg.class);
@ -66,6 +66,8 @@ public class QuartzJobMsg implements Job {
String isoverdateexecute = data.getString("isoverdateexecute");
//»ñÈ¡ÌÐÅÀàÐÍ
String msgtype = data.getString("msgType");
BizObject boCl = JBOFactory.getBizObjectManager(CODE_LIBRARY.CLASS_NAME, tx).createQuery("codeno='MsgType' and itemno=:msgtype").setParameter("msgtype",msgtype).getSingleResult(false);
String smsObjType = boCl.getAttribute("itemattribute").toString();
if ("Tl_Business".equals(msgtype) || "Tl_ChangeBusiness".equals(msgtype) || "Tl_MakeContract".equals(msgtype) || "Tl_ChangeContract".equals(msgtype) || "Tl_AfterRenting".equals(msgtype)) {
msgcontent = msgcontent.replace("@", "=");
}
@ -160,6 +162,7 @@ public class QuartzJobMsg implements Job {
sn.setAttributeValue("send_flag", 0);
sn.setAttributeValue("sms_content", rsMsgContent);
sn.setAttributeValue("sms_type", "DELAYED");
sn.setAttributeValue("send_obj_type",smsObjType);
sn.setAttributeValue("inputtime", DateUtil.getDateTime(new Date()));
bomLSNT.saveObject(sn);