|
|
|
@@ -3,6 +3,7 @@ package com.simple.service.impl; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.simple.common.IdWorker; |
|
|
|
import com.simple.domain.po.WxMsgCallback; |
|
|
|
import com.simple.domain.po.WxMsgConfig; |
|
|
|
import com.simple.mapper.WxMsgCallbackMapper; |
|
|
|
@@ -37,7 +38,8 @@ public class WxMsgCallbackServiceImpl implements WxMsgCallbackService { |
|
|
|
@Override |
|
|
|
public void saveOrUpdate(WxMsgCallback record) { |
|
|
|
if (record.getId() == null) { |
|
|
|
record.setId(UUID.randomUUID().toString().replaceAll("-", "")); |
|
|
|
IdWorker idWorker = new IdWorker(0, 0); |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
wxMsgCallbackMapper.insertSelective(record); |
|
|
|
} else { |
|
|
|
wxMsgCallbackMapper.updateByPrimaryKeySelective(record); |
|
|
|
|