|
|
|
@@ -11,6 +11,7 @@ import com.iformall.domain.po.WxCUserBasicInfo; |
|
|
|
import com.iformall.domain.po.WxMsg; |
|
|
|
import com.iformall.domain.po.WxMsgCallback; |
|
|
|
import com.iformall.domain.po.WxMsgConfig; |
|
|
|
import com.iformall.enums.EnumMsgSendStatus; |
|
|
|
import com.iformall.enums.EnumMsgStatus; |
|
|
|
import com.iformall.mapper.WxCUserBasicInfoMapper; |
|
|
|
import com.iformall.mapper.WxMsgCallbackMapper; |
|
|
|
@@ -280,9 +281,9 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
String ret = jsonObjectResult.get("ret").toString(); |
|
|
|
String batchNo = jsonObjectResult.get("data").toString(); |
|
|
|
if (ret.equals("1")) { |
|
|
|
wxMsg.setSendstatus(EnumMsgStatus.MSG_SEND_SUCCESS.getCode()); |
|
|
|
wxMsg.setSendstatus(EnumMsgSendStatus.MSG_SEND_SUCCESS.getCode()); |
|
|
|
} else { |
|
|
|
wxMsg.setSendstatus(EnumMsgStatus.MSG_SEND_FAIL.getCode()); |
|
|
|
wxMsg.setSendstatus(EnumMsgSendStatus.MSG_SEND_FAIL.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
@@ -318,7 +319,7 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
wxMsgCallback.setTenantId(wxmsg.getTenantId()); |
|
|
|
wxMsgCallback.setBatchNo(batchNo); |
|
|
|
wxMsgCallback.setMsgId(wxmsg.getId()); |
|
|
|
wxMsgCallback.setStatus(EnumMsgStatus.MSG_SEND_FAIL.getCode()); |
|
|
|
wxMsgCallback.setStatus(EnumMsgSendStatus.MSG_SEND_FAIL.getCode()); |
|
|
|
wxMsgCallback.setCreatetime(new Date()); |
|
|
|
wxMsgCallbackMapper.insertSelective(wxMsgCallback); |
|
|
|
} |
|
|
|
|