huianan 2 жил өмнө
parent
commit
535c6f394e
17 өөрчлөгдсөн 1113 нэмэгдсэн , 15 устгасан
  1. 1 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostBulletinController.java
  2. 6 1
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostNewsController.java
  3. 96 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostPublisherController.java
  4. 95 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostUserController.java
  5. 137 0
      ruoyi-post/src/main/java/com/ruoyi/post/domain/PostPublisher.java
  6. 137 0
      ruoyi-post/src/main/java/com/ruoyi/post/domain/PostUser.java
  7. 4 0
      ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostBulletinMapper.java
  8. 61 0
      ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostPublisherMapper.java
  9. 61 0
      ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostUserMapper.java
  10. 4 12
      ruoyi-post/src/main/java/com/ruoyi/post/service/IPostBulletinService.java
  11. 61 0
      ruoyi-post/src/main/java/com/ruoyi/post/service/IPostPublisherService.java
  12. 61 0
      ruoyi-post/src/main/java/com/ruoyi/post/service/IPostUserService.java
  13. 96 0
      ruoyi-post/src/main/java/com/ruoyi/post/service/impl/PostPublisherServiceImpl.java
  14. 96 0
      ruoyi-post/src/main/java/com/ruoyi/post/service/impl/PostUserServiceImpl.java
  15. 1 2
      ruoyi-post/src/main/resources/mapper/PostBulletinMapper.xml
  16. 105 0
      ruoyi-post/src/main/resources/mapper/PostPublisherMapper.xml
  17. 91 0
      ruoyi-post/src/main/resources/mapper/PostUserMapper.xml

+ 1 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostBulletinController.java

@@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
 import com.ruoyi.common.enums.BusinessType;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.post.domain.PostBulletin;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;

+ 6 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostNewsController.java

@@ -8,6 +8,7 @@ import com.ruoyi.common.enums.BusinessType;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.post.domain.PostNews;
 import com.ruoyi.post.service.IPostNewsService;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -30,6 +31,8 @@ public class PostNewsController extends BaseController
     /**
      * 查询消息;
      */
+    @ApiOperation("查询消息列表")
+    @Log(title = "分页查询消息")
     @PreAuthorize("@ss.hasPermi('system:news:list')")
     @GetMapping("/list")
     public TableDataInfo list(PostNews postNews)
@@ -55,6 +58,8 @@ public class PostNewsController extends BaseController
     /**
      * 获取消息;
      */
+    @ApiOperation("点击详情")
+    @Log()
     @PreAuthorize("@ss.hasPermi('system:news:query')")
     @GetMapping(value = "/{newsId}")
     public AjaxResult getInfo(@PathVariable("newsId") Integer newsId)
@@ -88,7 +93,7 @@ public class PostNewsController extends BaseController
      * 删除消息;
      */
     @PreAuthorize("@ss.hasPermi('system:news:remove')")
-    @Log(title = "通知消息管理; InnoDB free: 8192 kB", businessType = BusinessType.DELETE)
+    @Log(title = "通知消息管理; ", businessType = BusinessType.DELETE)
     @DeleteMapping("/{newsIds}")
     public AjaxResult remove(@PathVariable Integer[] newsIds)
     {

+ 96 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostPublisherController.java

@@ -0,0 +1,96 @@
+package com.ruoyi.web.controller.post;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.post.domain.PostPublisher;
+import com.ruoyi.post.service.IPostPublisherService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:33
+ * @Exegesis:
+ */
+@RestController
+@RequestMapping("/system/publisher")
+public class PostPublisherController extends BaseController
+{
+    @Autowired
+    private IPostPublisherService postPublisherService;
+
+    /**
+     * 查询邮贝发行方信息;列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:publisher:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PostPublisher postPublisher)
+    {
+        startPage();
+        List<PostPublisher> list = postPublisherService.selectPostPublisherList(postPublisher);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出邮贝发行方信息;列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:publisher:export')")
+    @Log(title = "邮贝发行方信息;", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PostPublisher postPublisher)
+    {
+        List<PostPublisher> list = postPublisherService.selectPostPublisherList(postPublisher);
+        ExcelUtil<PostPublisher> util = new ExcelUtil<PostPublisher>(PostPublisher.class);
+        util.exportExcel(response, list, "邮贝发行方信息;数据");
+    }
+
+    /**
+     * 获取邮贝发行方信息;详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:publisher:query')")
+    @GetMapping(value = "/{publisherId}")
+    public AjaxResult getInfo(@PathVariable("publisherId") Long publisherId)
+    {
+        return success(postPublisherService.selectPostPublisherByPublisherId(publisherId));
+    }
+
+    /**
+     * 新增邮贝发行方信息;
+     */
+    @PreAuthorize("@ss.hasPermi('system:publisher:add')")
+    @Log(title = "邮贝发行方信息;", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PostPublisher postPublisher)
+    {
+        return toAjax(postPublisherService.insertPostPublisher(postPublisher));
+    }
+
+    /**
+     * 修改邮贝发行方信息;
+     */
+    @PreAuthorize("@ss.hasPermi('system:publisher:edit')")
+    @Log(title = "邮贝发行方信息;", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PostPublisher postPublisher)
+    {
+        return toAjax(postPublisherService.updatePostPublisher(postPublisher));
+    }
+
+    /**
+     * 删除邮贝发行方信息;
+     */
+    @PreAuthorize("@ss.hasPermi('system:publisher:remove')")
+    @Log(title = "邮贝发行方信息;", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{publisherIds}")
+    public AjaxResult remove(@PathVariable Long[] publisherIds)
+    {
+        return toAjax(postPublisherService.deletePostPublisherByPublisherIds(publisherIds));
+    }
+}

+ 95 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostUserController.java

@@ -0,0 +1,95 @@
+package com.ruoyi.web.controller.post;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.post.domain.PostUser;
+import com.ruoyi.post.service.IPostUserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:32
+ * @Exegesis:
+ */
+@RestController
+@RequestMapping("/post/user")
+public class PostUserController extends BaseController
+{
+    @Autowired
+    private IPostUserService postUserService;
+
+    /**
+     * 查询邮贝用户信息;列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PostUser postUser)
+    {
+        startPage();
+        List<PostUser> list = postUserService.selectPostUserList(postUser);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出邮贝用户信息;列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:export')")
+    @Log(title = "邮贝用户信息;", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PostUser postUser)
+    {
+        List<PostUser> list = postUserService.selectPostUserList(postUser);
+        ExcelUtil<PostUser> util = new ExcelUtil<PostUser>(PostUser.class);
+        util.exportExcel(response, list, "邮贝用户信息;数据");
+    }
+
+    /**
+     * 获取邮贝用户信息;详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:query')")
+    @GetMapping(value = "/{userId}")
+    public AjaxResult getInfo(@PathVariable("userId") Long userId)
+    {
+        return success(postUserService.selectPostUserByUserId(userId));
+    }
+
+    /**
+     * 新增邮贝用户信息;
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:add')")
+    @Log(title = "邮贝用户信息;", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PostUser postUser)
+    {
+        return toAjax(postUserService.insertPostUser(postUser));
+    }
+
+    /**
+     * 修改邮贝用户信息;
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:edit')")
+    @Log(title = "邮贝用户信息;", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PostUser postUser)
+    {
+        return toAjax(postUserService.updatePostUser(postUser));
+    }
+
+    /**
+     * 删除邮贝用户信息;
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:remove')")
+    @Log(title = "邮贝用户信息;", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{userIds}")
+    public AjaxResult remove(@PathVariable Long[] userIds)
+    {
+        return toAjax(postUserService.deletePostUserByUserIds(userIds));
+    }
+}

+ 137 - 0
ruoyi-post/src/main/java/com/ruoyi/post/domain/PostPublisher.java

@@ -0,0 +1,137 @@
+package com.ruoyi.post.domain;
+
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+/**
+ * @Author HuiANan
+ * @Date 2023/1/19 19:19
+ * @Exegesis:
+ */
+public class PostPublisher extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 发行方ID */
+    private Long publisherId;
+
+    /** 发行方账号 */
+    @Excel(name = "发行方账号")
+    private String publisherName;
+
+    /** 发行方昵称 */
+    @Excel(name = "发行方昵称")
+    private String nickName;
+
+    /** 发行方电子邮箱 */
+    @Excel(name = "发行方电子邮箱")
+    private String publisherEmail;
+
+    /** 发行方联系电话 */
+    @Excel(name = "发行方联系电话")
+    private String publisherPhonenumber;
+
+    /** 帐号状态(0正常 1停用) */
+    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
+    private String status;
+
+    /** 客户联系地址 */
+    @Excel(name = "客户联系地址")
+    private String publisherAddress;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private String delFlag;
+
+    public void setPublisherId(Long publisherId)
+    {
+        this.publisherId = publisherId;
+    }
+
+    public Long getPublisherId()
+    {
+        return publisherId;
+    }
+    public void setPublisherName(String publisherName)
+    {
+        this.publisherName = publisherName;
+    }
+
+    public String getPublisherName()
+    {
+        return publisherName;
+    }
+    public void setNickName(String nickName)
+    {
+        this.nickName = nickName;
+    }
+
+    public String getNickName()
+    {
+        return nickName;
+    }
+    public void setPublisherEmail(String publisherEmail)
+    {
+        this.publisherEmail = publisherEmail;
+    }
+
+    public String getPublisherEmail()
+    {
+        return publisherEmail;
+    }
+    public void setPublisherPhonenumber(String publisherPhonenumber)
+    {
+        this.publisherPhonenumber = publisherPhonenumber;
+    }
+
+    public String getPublisherPhonenumber()
+    {
+        return publisherPhonenumber;
+    }
+    public void setStatus(String status)
+    {
+        this.status = status;
+    }
+
+    public String getStatus()
+    {
+        return status;
+    }
+    public void setPublisherAddress(String publisherAddress)
+    {
+        this.publisherAddress = publisherAddress;
+    }
+
+    public String getPublisherAddress()
+    {
+        return publisherAddress;
+    }
+    public void setDelFlag(String delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag()
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("publisherId", getPublisherId())
+                .append("publisherName", getPublisherName())
+                .append("nickName", getNickName())
+                .append("publisherEmail", getPublisherEmail())
+                .append("publisherPhonenumber", getPublisherPhonenumber())
+                .append("status", getStatus())
+                .append("publisherAddress", getPublisherAddress())
+                .append("delFlag", getDelFlag())
+                .append("createBy", getCreateBy())
+                .append("createTime", getCreateTime())
+                .append("updateBy", getUpdateBy())
+                .append("updateTime", getUpdateTime())
+                .append("remark", getRemark())
+                .toString();
+    }
+}

+ 137 - 0
ruoyi-post/src/main/java/com/ruoyi/post/domain/PostUser.java

@@ -0,0 +1,137 @@
+package com.ruoyi.post.domain;
+
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+/**
+ * @Author HuiANan
+ * @Date 2023/1/19 19:19
+ * @Exegesis:
+ */
+public class PostUser extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 用户ID */
+    private Long userId;
+
+    /** 用户账号 */
+    @Excel(name = "用户账号")
+    private String userName;
+
+    /** 用户昵称 */
+    @Excel(name = "用户昵称")
+    private String nickName;
+
+    /** 用户邮箱 */
+    @Excel(name = "用户邮箱")
+    private String email;
+
+    /** 手机号码 */
+    @Excel(name = "手机号码")
+    private String phonenumber;
+
+    /** 用户性别(0男 1女 2未知) */
+    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
+    private String sex;
+
+    /** 帐号状态(0正常 1停用) */
+    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
+    private String status;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private String delFlag;
+
+    public void setUserId(Long userId)
+    {
+        this.userId = userId;
+    }
+
+    public Long getUserId()
+    {
+        return userId;
+    }
+    public void setUserName(String userName)
+    {
+        this.userName = userName;
+    }
+
+    public String getUserName()
+    {
+        return userName;
+    }
+    public void setNickName(String nickName)
+    {
+        this.nickName = nickName;
+    }
+
+    public String getNickName()
+    {
+        return nickName;
+    }
+    public void setEmail(String email)
+    {
+        this.email = email;
+    }
+
+    public String getEmail()
+    {
+        return email;
+    }
+    public void setPhonenumber(String phonenumber)
+    {
+        this.phonenumber = phonenumber;
+    }
+
+    public String getPhonenumber()
+    {
+        return phonenumber;
+    }
+    public void setSex(String sex)
+    {
+        this.sex = sex;
+    }
+
+    public String getSex()
+    {
+        return sex;
+    }
+    public void setStatus(String status)
+    {
+        this.status = status;
+    }
+
+    public String getStatus()
+    {
+        return status;
+    }
+    public void setDelFlag(String delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag()
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("userId", getUserId())
+                .append("userName", getUserName())
+                .append("nickName", getNickName())
+                .append("email", getEmail())
+                .append("phonenumber", getPhonenumber())
+                .append("sex", getSex())
+                .append("status", getStatus())
+                .append("delFlag", getDelFlag())
+                .append("createBy", getCreateBy())
+                .append("createTime", getCreateTime())
+                .append("updateBy", getUpdateBy())
+                .append("updateTime", getUpdateTime())
+                .append("remark", getRemark())
+                .toString();
+    }
+}

+ 4 - 0
ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostBulletinMapper.java

@@ -57,4 +57,8 @@ public interface PostBulletinMapper {
      * @return 结果
      */
     public int deletePostBulletinByNoticeIds(Integer[] noticeIds);
+
+    /**
+     *
+     */
 }

+ 61 - 0
ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostPublisherMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.post.mapper;
+
+import com.ruoyi.post.domain.PostPublisher;
+
+import java.util.List;
+
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:20
+ * @Exegesis:
+ */
+public interface PostPublisherMapper
+{
+    /**
+     * 查询邮贝发行方信息; 
+     *
+     * @param publisherId 邮贝发行方信息;
+     * @return 邮贝发行方信息; 
+     */
+    public PostPublisher selectPostPublisherByPublisherId(Long publisherId);
+
+    /**
+     * 查询邮贝发行方信息; 列表
+     *
+     * @param postPublisher 邮贝发行方信息; 
+     * @return 邮贝发行方信息; 集合
+     */
+    public List<PostPublisher> selectPostPublisherList(PostPublisher postPublisher);
+
+    /**
+     * 新增邮贝发行方信息; 
+     *
+     * @param postPublisher 邮贝发行方信息; 
+     * @return 结果
+     */
+    public int insertPostPublisher(PostPublisher postPublisher);
+
+    /**
+     * 修改邮贝发行方信息; 
+     *
+     * @param postPublisher 邮贝发行方信息; 
+     * @return 结果
+     */
+    public int updatePostPublisher(PostPublisher postPublisher);
+
+    /**
+     * 删除邮贝发行方信息; 
+     *
+     * @param publisherId 邮贝发行方信息; 主键
+     * @return 结果
+     */
+    public int deletePostPublisherByPublisherId(Long publisherId);
+
+    /**
+     * 批量删除邮贝发行方信息; 
+     *
+     * @param publisherIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePostPublisherByPublisherIds(Long[] publisherIds);
+}

+ 61 - 0
ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostUserMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.post.mapper;
+
+import com.ruoyi.post.domain.PostUser;
+
+import java.util.List;
+
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:20
+ * @Exegesis:
+ */
+public interface PostUserMapper
+{
+    /**
+     * 查询邮贝用户信息;
+     *
+     * @param userId 邮贝用户信息;主键
+     * @return 邮贝用户信息;
+     */
+    public PostUser selectPostUserByUserId(Long userId);
+
+    /**
+     * 查询邮贝用户信息;列表
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 邮贝用户信息;集合
+     */
+    public List<PostUser> selectPostUserList(PostUser postUser);
+
+    /**
+     * 新增邮贝用户信息;
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 结果
+     */
+    public int insertPostUser(PostUser postUser);
+
+    /**
+     * 修改邮贝用户信息;
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 结果
+     */
+    public int updatePostUser(PostUser postUser);
+
+    /**
+     * 删除邮贝用户信息;
+     *
+     * @param userId 邮贝用户信息;主键
+     * @return 结果
+     */
+    public int deletePostUserByUserId(Long userId);
+
+    /**
+     * 批量删除邮贝用户信息;
+     *
+     * @param userIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePostUserByUserIds(Long[] userIds);
+}

+ 4 - 12
ruoyi-post/src/main/java/com/ruoyi/post/service/IPostBulletinService.java

@@ -12,34 +12,26 @@ import java.util.List;
 public interface IPostBulletinService
 {
     /**
-     * 查询通知公告管理;
+     * 查询通知公告;
      *
-     * @param noticeId 通知公告管理;
-     * @return 通知公告管理;
      */
     public PostBulletin selectPostBulletinByNoticeId(Integer noticeId);
 
     /**
-     * 查询通知公告管理;
+     * 查询通知公告列表;
      *
-     * @param postBulletin 通知公告管理;
-     * @return 通知公告管理;
      */
     public List<PostBulletin> selectPostBulletinList(PostBulletin postBulletin);
 
     /**
-     * 新增通知公告管理;
+     * 新增通知公告;
      *
-     * @param postBulletin 通知公告管理;
-     * @return 结果
      */
     public int insertPostBulletin(PostBulletin postBulletin);
 
     /**
-     * 修改通知公告管理;
+     * 修改通知公告;
      *
-     * @param postBulletin 通知公告管理;
-     * @return 结果
      */
     public int updatePostBulletin(PostBulletin postBulletin);
 

+ 61 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/IPostPublisherService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.post.service;
+
+import com.ruoyi.post.domain.PostPublisher;
+
+import java.util.List;
+
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:18
+ * @Exegesis:
+ */
+public interface IPostPublisherService
+{
+    /**
+     * 查询邮贝发行方信息;
+     *
+     * @param publisherId 邮贝发行方信息;主键
+     * @return 邮贝发行方信息;
+     */
+    public PostPublisher selectPostPublisherByPublisherId(Long publisherId);
+
+    /**
+     * 查询邮贝发行方信息;列表
+     *
+     * @param postPublisher 邮贝发行方信息;
+     * @return 邮贝发行方信息;集合
+     */
+    public List<PostPublisher> selectPostPublisherList(PostPublisher postPublisher);
+
+    /**
+     * 新增邮贝发行方信息;
+     *
+     * @param postPublisher 邮贝发行方信息;
+     * @return 结果
+     */
+    public int insertPostPublisher(PostPublisher postPublisher);
+
+    /**
+     * 修改邮贝发行方信息;
+     *
+     * @param postPublisher 邮贝发行方信息;
+     * @return 结果
+     */
+    public int updatePostPublisher(PostPublisher postPublisher);
+
+    /**
+     * 批量删除邮贝发行方信息;
+     *
+     * @param publisherIds 需要删除的邮贝发行方信息;主键集合
+     * @return 结果
+     */
+    public int deletePostPublisherByPublisherIds(Long[] publisherIds);
+
+    /**
+     * 删除邮贝发行方信息;信息
+     *
+     * @param publisherId 邮贝发行方信息;主键
+     * @return 结果
+     */
+    public int deletePostPublisherByPublisherId(Long publisherId);
+}

+ 61 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/IPostUserService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.post.service;
+
+import com.ruoyi.post.domain.PostUser;
+
+import java.util.List;
+
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:19
+ * @Exegesis:
+ */
+public interface IPostUserService
+{
+    /**
+     * 查询邮贝用户信息;
+     *
+     * @param userId 邮贝用户信息;主键
+     * @return 邮贝用户信息;
+     */
+    public PostUser selectPostUserByUserId(Long userId);
+
+    /**
+     * 查询邮贝用户信息;列表
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 邮贝用户信息;集合
+     */
+    public List<PostUser> selectPostUserList(PostUser postUser);
+
+    /**
+     * 新增邮贝用户信息;
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 结果
+     */
+    public int insertPostUser(PostUser postUser);
+
+    /**
+     * 修改邮贝用户信息;
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 结果
+     */
+    public int updatePostUser(PostUser postUser);
+
+    /**
+     * 批量删除邮贝用户信息;
+     *
+     * @param userIds 需要删除的邮贝用户信息;主键集合
+     * @return 结果
+     */
+    public int deletePostUserByUserIds(Long[] userIds);
+
+    /**
+     * 删除邮贝用户信息;信息
+     *
+     * @param userId 邮贝用户信息;主键
+     * @return 结果
+     */
+    public int deletePostUserByUserId(Long userId);
+}

+ 96 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/impl/PostPublisherServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.post.service.impl;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.post.domain.PostPublisher;
+import com.ruoyi.post.mapper.PostPublisherMapper;
+import com.ruoyi.post.service.IPostPublisherService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:18
+ * @Exegesis:
+ */
+@Service
+public class PostPublisherServiceImpl implements IPostPublisherService
+{
+    @Resource
+    private PostPublisherMapper postPublisherMapper;
+
+    /**
+     * 查询邮贝发行方信息;
+     *
+     * @param publisherId 邮贝发行方信息;主键
+     * @return 邮贝发行方信息;
+     */
+    @Override
+    public PostPublisher selectPostPublisherByPublisherId(Long publisherId)
+    {
+        return postPublisherMapper.selectPostPublisherByPublisherId(publisherId);
+    }
+
+    /**
+     * 查询邮贝发行方信息;列表
+     *
+     * @param postPublisher 邮贝发行方信息;
+     * @return 邮贝发行方信息;
+     */
+    @Override
+    public List<PostPublisher> selectPostPublisherList(PostPublisher postPublisher)
+    {
+        return postPublisherMapper.selectPostPublisherList(postPublisher);
+    }
+
+    /**
+     * 新增邮贝发行方信息;
+     *
+     * @param postPublisher 邮贝发行方信息;
+     * @return 结果
+     */
+    @Override
+    public int insertPostPublisher(PostPublisher postPublisher)
+    {
+        postPublisher.setCreateTime(DateUtils.getNowDate());
+        return postPublisherMapper.insertPostPublisher(postPublisher);
+    }
+
+    /**
+     * 修改邮贝发行方信息;
+     *
+     * @param postPublisher 邮贝发行方信息;
+     * @return 结果
+     */
+    @Override
+    public int updatePostPublisher(PostPublisher postPublisher)
+    {
+        postPublisher.setUpdateTime(DateUtils.getNowDate());
+        return postPublisherMapper.updatePostPublisher(postPublisher);
+    }
+
+    /**
+     * 批量删除邮贝发行方信息;
+     *
+     * @param publisherIds 需要删除的邮贝发行方信息;主键
+     * @return 结果
+     */
+    @Override
+    public int deletePostPublisherByPublisherIds(Long[] publisherIds)
+    {
+        return postPublisherMapper.deletePostPublisherByPublisherIds(publisherIds);
+    }
+
+    /**
+     * 删除邮贝发行方信息;信息
+     *
+     * @param publisherId 邮贝发行方信息;主键
+     * @return 结果
+     */
+    @Override
+    public int deletePostPublisherByPublisherId(Long publisherId)
+    {
+        return postPublisherMapper.deletePostPublisherByPublisherId(publisherId);
+    }
+}

+ 96 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/impl/PostUserServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.post.service.impl;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.post.domain.PostUser;
+import com.ruoyi.post.mapper.PostUserMapper;
+import com.ruoyi.post.service.IPostUserService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @Author HuiANan
+ * @Date 2023/1/25 20:19
+ * @Exegesis:
+ */
+@Service
+public class PostUserServiceImpl implements IPostUserService
+{
+    @Resource
+    private PostUserMapper postUserMapper;
+
+    /**
+     * 查询邮贝用户信息;
+     *
+     * @param userId 邮贝用户信息;主键
+     * @return 邮贝用户信息;
+     */
+    @Override
+    public PostUser selectPostUserByUserId(Long userId)
+    {
+        return postUserMapper.selectPostUserByUserId(userId);
+    }
+
+    /**
+     * 查询邮贝用户信息;列表
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 邮贝用户信息;
+     */
+    @Override
+    public List<PostUser> selectPostUserList(PostUser postUser)
+    {
+        return postUserMapper.selectPostUserList(postUser);
+    }
+
+    /**
+     * 新增邮贝用户信息;
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 结果
+     */
+    @Override
+    public int insertPostUser(PostUser postUser)
+    {
+        postUser.setCreateTime(DateUtils.getNowDate());
+        return postUserMapper.insertPostUser(postUser);
+    }
+
+    /**
+     * 修改邮贝用户信息;
+     *
+     * @param postUser 邮贝用户信息;
+     * @return 结果
+     */
+    @Override
+    public int updatePostUser(PostUser postUser)
+    {
+        postUser.setUpdateTime(DateUtils.getNowDate());
+        return postUserMapper.updatePostUser(postUser);
+    }
+
+    /**
+     * 批量删除邮贝用户信息;
+     *
+     * @param userIds 需要删除的邮贝用户信息;主键
+     * @return 结果
+     */
+    @Override
+    public int deletePostUserByUserIds(Long[] userIds)
+    {
+        return postUserMapper.deletePostUserByUserIds(userIds);
+    }
+
+    /**
+     * 删除邮贝用户信息;信息
+     *
+     * @param userId 邮贝用户信息;主键
+     * @return 结果
+     */
+    @Override
+    public int deletePostUserByUserId(Long userId)
+    {
+        return postUserMapper.deletePostUserByUserId(userId);
+    }
+}

+ 1 - 2
ruoyi-post/src/main/resources/mapper/PostBulletinMapper.xml

@@ -21,8 +21,7 @@
     <sql id="selectPostBulletinVo">
         select notice_id,
                notice_title,
-               cast(notice_content as char) as notice_content
-               status,
+               cast(notice_content as char) as notice_content status,
                publisher_id,
                publisher_by,
                create_by,

+ 105 - 0
ruoyi-post/src/main/resources/mapper/PostPublisherMapper.xml

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.post.mapper.PostPublisherMapper">
+
+    <resultMap type="PostPublisher" id="PostPublisherResult">
+        <result property="publisherId"    column="publisher_id"    />
+        <result property="publisherName"    column="publisher_name"    />
+        <result property="nickName"    column="nick_name"    />
+        <result property="publisherEmail"    column="publisher_email"    />
+        <result property="publisherPhonenumber"    column="publisher_phonenumber"    />
+        <result property="status"    column="status"    />
+        <result property="publisherAddress"    column="publisher_address"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectPostPublisherVo">
+        select publisher_id, publisher_name, nick_name, publisher_email, publisher_phonenumber, status, publisher_address, del_flag, create_by, create_time, update_by, update_time, remark from post_publisher
+    </sql>
+
+    <select id="selectPostPublisherList" parameterType="PostPublisher" resultMap="PostPublisherResult">
+        <include refid="selectPostPublisherVo"/>
+        <where>
+            <if test="publisherName != null  and publisherName != ''"> and publisher_name like concat('%', #{publisherName}, '%')</if>
+            <if test="nickName != null  and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
+            <if test="publisherEmail != null  and publisherEmail != ''"> and publisher_email = #{publisherEmail}</if>
+            <if test="publisherPhonenumber != null  and publisherPhonenumber != ''"> and publisher_phonenumber = #{publisherPhonenumber}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="publisherAddress != null  and publisherAddress != ''"> and publisher_address = #{publisherAddress}</if>
+        </where>
+    </select>
+
+    <select id="selectPostPublisherByPublisherId" parameterType="Long" resultMap="PostPublisherResult">
+        <include refid="selectPostPublisherVo"/>
+        where publisher_id = #{publisherId}
+    </select>
+
+    <insert id="insertPostPublisher" parameterType="PostPublisher" useGeneratedKeys="true" keyProperty="publisherId">
+        insert into post_publisher
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="publisherName != null and publisherName != ''">publisher_name,</if>
+            <if test="nickName != null and nickName != ''">nick_name,</if>
+            <if test="publisherEmail != null">publisher_email,</if>
+            <if test="publisherPhonenumber != null">publisher_phonenumber,</if>
+            <if test="status != null">status,</if>
+            <if test="publisherAddress != null">publisher_address,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="publisherName != null and publisherName != ''">#{publisherName},</if>
+            <if test="nickName != null and nickName != ''">#{nickName},</if>
+            <if test="publisherEmail != null">#{publisherEmail},</if>
+            <if test="publisherPhonenumber != null">#{publisherPhonenumber},</if>
+            <if test="status != null">#{status},</if>
+            <if test="publisherAddress != null">#{publisherAddress},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+        </trim>
+    </insert>
+
+    <update id="updatePostPublisher" parameterType="PostPublisher">
+        update post_publisher
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="publisherName != null and publisherName != ''">publisher_name = #{publisherName},</if>
+            <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
+            <if test="publisherEmail != null">publisher_email = #{publisherEmail},</if>
+            <if test="publisherPhonenumber != null">publisher_phonenumber = #{publisherPhonenumber},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="publisherAddress != null">publisher_address = #{publisherAddress},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where publisher_id = #{publisherId}
+    </update>
+
+    <delete id="deletePostPublisherByPublisherId" parameterType="Long">
+        delete from post_publisher where publisher_id = #{publisherId}
+    </delete>
+
+    <delete id="deletePostPublisherByPublisherIds" parameterType="String">
+        delete from post_publisher where publisher_id in
+        <foreach item="publisherId" collection="array" open="(" separator="," close=")">
+            #{publisherId}
+        </foreach>
+    </delete>
+</mapper>

+ 91 - 0
ruoyi-post/src/main/resources/mapper/PostUserMapper.xml

@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.post.mapper.PostUserMapper">
+    <resultMap type="PostUser" id="PostUserResult">
+        <result property="userId" column="user_id"/>
+        <result property="userName" column="user_name"/>
+        <result property="nickName" column="nick_name"/>
+        <result property="email" column="email"/>
+        <result property="phonenumber" column="phonenumber"/>
+        <result property="sex" column="sex"/>
+        <result property="status" column="status"/>
+        <result property="delFlag" column="del_flag"/>
+        <result property="createBy" column="create_by"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateBy" column="update_by"/>
+        <result property="updateTime" column="update_time"/>
+        <result property="remark" column="remark"/>
+    </resultMap>
+    <sql id="selectPostUserVo"> select user_id, user_name, nick_name, email, phonenumber, sex, status, del_flag, create_by, create_time, update_by, update_time, remark from post_user </sql>
+    <select id="selectPostUserList" parameterType="PostUser" resultMap="PostUserResult">
+        <include refid="selectPostUserVo"/>
+        <where>
+            <if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
+            <if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
+            <if test="email != null and email != ''"> and email = #{email}</if>
+            <if test="phonenumber != null and phonenumber != ''"> and phonenumber = #{phonenumber}</if>
+            <if test="sex != null and sex != ''"> and sex = #{sex}</if>
+            <if test="status != null and status != ''"> and status = #{status}</if>
+        </where>
+    </select>
+    <select id="selectPostUserByUserId" parameterType="Long" resultMap="PostUserResult">
+        <include refid="selectPostUserVo"/>
+        where user_id = #{userId}
+    </select>
+    <insert id="insertPostUser" parameterType="PostUser" useGeneratedKeys="true" keyProperty="userId">
+        insert into post_user
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="userName != null and userName != ''">user_name,</if>
+            <if test="nickName != null and nickName != ''">nick_name,</if>
+            <if test="email != null">email,</if>
+            <if test="phonenumber != null">phonenumber,</if>
+            <if test="sex != null">sex,</if>
+            <if test="status != null">status,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="userName != null and userName != ''">#{userName},</if>
+            <if test="nickName != null and nickName != ''">#{nickName},</if>
+            <if test="email != null">#{email},</if>
+            <if test="phonenumber != null">#{phonenumber},</if>
+            <if test="sex != null">#{sex},</if>
+            <if test="status != null">#{status},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+        </trim>
+    </insert>
+    <update id="updatePostUser" parameterType="PostUser">
+        update post_user
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="userName != null and userName != ''">user_name = #{userName},</if>
+            <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
+            <if test="email != null">email = #{email},</if>
+            <if test="phonenumber != null">phonenumber = #{phonenumber},</if>
+            <if test="sex != null">sex = #{sex},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where user_id = #{userId}
+    </update>
+    <delete id="deletePostUserByUserId" parameterType="Long"> delete from post_user where user_id = #{userId} </delete>
+    <delete id="deletePostUserByUserIds" parameterType="String">
+        delete from post_user where user_id in
+        <foreach item="userId" collection="array" open="(" separator="," close=")"> #{userId} </foreach>
+    </delete>
+</mapper>