| @@ -141,6 +141,7 @@ public class WxMsgServiceImpl implements WxMsgService { | |||||
| wxMsg.setSendtime(systemTime); | wxMsg.setSendtime(systemTime); | ||||
| if(wxMsg.getWay() == EnumSendWay.TAG.getCode()){ | if(wxMsg.getWay() == EnumSendWay.TAG.getCode()){ | ||||
| if (wxMsg.getExpectSendNumber().intValue() > 1000) { | if (wxMsg.getExpectSendNumber().intValue() > 1000) { | ||||
| wxMsgMapper.insert(wxMsg); | |||||
| batchSendMsg(wxMsg, wxMsgConfig, null); | batchSendMsg(wxMsg, wxMsgConfig, null); | ||||
| } else { | } else { | ||||
| //sendmsg(wxMsg, wxMsgConfig, null); | //sendmsg(wxMsg, wxMsgConfig, null); | ||||
| @@ -177,6 +178,7 @@ public class WxMsgServiceImpl implements WxMsgService { | |||||
| wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode()); | wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode()); | ||||
| if(wxMsg.getWay() == EnumSendWay.TAG.getCode()){ | if(wxMsg.getWay() == EnumSendWay.TAG.getCode()){ | ||||
| if (wxMsg.getExpectSendNumber().intValue() > 1000) { | if (wxMsg.getExpectSendNumber().intValue() > 1000) { | ||||
| wxMsgMapper.updateById(wxMsg); | |||||
| batchSendMsg(wxMsg, wxMsgConfig, null); | batchSendMsg(wxMsg, wxMsgConfig, null); | ||||
| } else { | } else { | ||||
| //sendmsg(wxMsg, wxMsgConfig, null); | //sendmsg(wxMsg, wxMsgConfig, null); | ||||
| @@ -92,14 +92,14 @@ | |||||
| <!-- <foreach collection="list" item="item" index="index" open="" close="" separator=";">--> | <!-- <foreach collection="list" item="item" index="index" open="" close="" separator=";">--> | ||||
| update wx_level_config | update wx_level_config | ||||
| <set> | <set> | ||||
| <if test=" null != item.tenantId ">`tenant_id` = #{item.tenantId},</if> | |||||
| <if test=" null != item.points ">`points` = #{item.points},</if> | |||||
| <if test=" null != item.level ">`level` = #{item.level},</if> | |||||
| <if test=" null != item.description ">`description` = #{item.description},</if> | |||||
| <if test=" null != item.updateDate ">`update_date` = #{item.updateDate},</if> | |||||
| <if test=" null != item.discountEnable ">`discount_enable` = #{item.discountEnable},</if> | |||||
| <if test=" null != item.capability ">`capability` = #{item.capability},</if> | |||||
| <if test=" null != item.scale ">`scale` = #{item.scale},</if> | |||||
| <if test=" null != tenantId ">`tenant_id` = #{tenantId},</if> | |||||
| <if test=" null != points ">`points` = #{points},</if> | |||||
| <if test=" null != level ">`level` = #{level},</if> | |||||
| <if test=" null != description ">`description` = #{description},</if> | |||||
| <if test=" null != updateDate ">`update_date` = #{updateDate},</if> | |||||
| <if test=" null != discountEnable ">`discount_enable` = #{discountEnable},</if> | |||||
| <if test=" null != capability ">`capability` = #{capability},</if> | |||||
| <if test=" null != scale ">`scale` = #{scale},</if> | |||||
| </set> | </set> | ||||
| where id = ${item.id}; | where id = ${item.id}; | ||||
| <!-- </foreach>--> | <!-- </foreach>--> | ||||