mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 05:19:00 +08:00
🐛 Fixing a bug. 粉丝消息不能通过自动租户维护,因为微信传递过来时没有租户
This commit is contained in:
1 parent
22b0e364dc
commit
d48f46e56d
3 files changed
+6
-3
No files matched your search
+2
-2
@@ -114,8 +114,8 @@ CREATE TABLE `wx_fans_msg_res` (
|
||||
-- ----------------------------
|
||||
-- Table structure for `wx_menu`
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `wx_menu`;
|
||||
CREATE TABLE `wx_menu` (
|
||||
DROP TABLE IF EXISTS `wx_mp_menu`;
|
||||
CREATE TABLE `wx_mp_menu` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`menu` json DEFAULT NULL COMMENT '菜单',
|
||||
`wx_account_id` int(11) DEFAULT NULL,
|
||||
|
||||
@@ -28,5 +28,4 @@ pigx:
|
||||
- wx_menu
|
||||
- wx_account
|
||||
- wx_account_fans
|
||||
- wx_fans_msg
|
||||
- wx_fans_msg_res
|
||||
+4
@@ -19,6 +19,7 @@ package com.pig4cloud.pigx.mp.controller;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pig4cloud.pigx.common.core.util.R;
|
||||
import com.pig4cloud.pigx.common.data.tenant.TenantContextHolder;
|
||||
import com.pig4cloud.pigx.common.log.annotation.SysLog;
|
||||
import com.pig4cloud.pigx.mp.entity.WxFansMsg;
|
||||
import com.pig4cloud.pigx.mp.service.WxFansMsgService;
|
||||
@@ -49,6 +50,7 @@ public class WxFansMsgController {
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
public R getWxFansMsgPage(Page page, WxFansMsg wxFansMsg) {
|
||||
wxFansMsg.setTenantId(TenantContextHolder.getTenantId());
|
||||
return new R<>(wxFansMsgService.page(page, Wrappers.query(wxFansMsg)));
|
||||
}
|
||||
|
||||
@@ -74,6 +76,7 @@ public class WxFansMsgController {
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('mp_wxfansmsg_add')")
|
||||
public R save(@RequestBody WxFansMsg wxFansMsg) {
|
||||
wxFansMsg.setTenantId(TenantContextHolder.getTenantId());
|
||||
return new R<>(wxFansMsgService.save(wxFansMsg));
|
||||
}
|
||||
|
||||
@@ -87,6 +90,7 @@ public class WxFansMsgController {
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('mp_wxfansmsg_edit')")
|
||||
public R updateById(@RequestBody WxFansMsg wxFansMsg) {
|
||||
wxFansMsg.setTenantId(TenantContextHolder.getTenantId());
|
||||
return new R<>(wxFansMsgService.updateById(wxFansMsg));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user