xhxu 4 лет назад
Родитель
Сommit
17c6bfae15
2 измененных файлов: 10 добавлений и 8 удалений
  1. +2
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java
  2. +8
    -8
      mallinkService/src/main/resources/mapper/WxLevelConfigMapper.xml

+ 2
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java Просмотреть файл

@@ -141,6 +141,7 @@ public class WxMsgServiceImpl implements WxMsgService {
wxMsg.setSendtime(systemTime);
if(wxMsg.getWay() == EnumSendWay.TAG.getCode()){
if (wxMsg.getExpectSendNumber().intValue() > 1000) {
wxMsgMapper.insert(wxMsg);
batchSendMsg(wxMsg, wxMsgConfig, null);
} else {
//sendmsg(wxMsg, wxMsgConfig, null);
@@ -177,6 +178,7 @@ public class WxMsgServiceImpl implements WxMsgService {
wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode());
if(wxMsg.getWay() == EnumSendWay.TAG.getCode()){
if (wxMsg.getExpectSendNumber().intValue() > 1000) {
wxMsgMapper.updateById(wxMsg);
batchSendMsg(wxMsg, wxMsgConfig, null);
} else {
//sendmsg(wxMsg, wxMsgConfig, null);


+ 8
- 8
mallinkService/src/main/resources/mapper/WxLevelConfigMapper.xml Просмотреть файл

@@ -92,14 +92,14 @@
<!-- <foreach collection="list" item="item" index="index" open="" close="" separator=";">-->
update wx_level_config
<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>
where id = ${item.id};
<!-- </foreach>-->


Загрузка…
Отмена
Сохранить