fix:即时通知消息新增后获取id
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<result column="operator_list" property="operatorList" />
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertBatch" parameterType="java.util.List">
|
||||
<insert id="insertBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO zxjp_store_message (
|
||||
store_id,
|
||||
store_code,
|
||||
|
||||
@@ -59,7 +59,7 @@ public class MessageIssueService {
|
||||
throw new ServiceException(ErrorCodeEnum.MESSAGE_NOT_EXIST);
|
||||
}
|
||||
StoreMessageVO storeMessageVO = BeanUtil.toBean(storeMessageDO, StoreMessageVO.class);
|
||||
BeanUtil.copyProperties(messageTemplateDO, storeMessageVO);
|
||||
BeanUtil.copyProperties(messageTemplateDO, storeMessageVO, "id");
|
||||
String message = JSONObject.toJSONString(storeMessageVO);
|
||||
for (String userId : userIds) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user