4 files copied
68 files deleted
36 files added
2 files renamed
12 files modified
| New file |
| | |
| | | package com.oying.modules.message.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import java.sql.Timestamp; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | @TableName("message_order_buyer") |
| | | public class MessageOrderBuyer implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主键,自增") |
| | | private Integer id; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "订单ID") |
| | | private Integer orderId; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "消息类型(订单状态变化、订单送达)") |
| | | private String messageType; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "消息内容") |
| | | private String messageContent; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "跳转链接") |
| | | private String link; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Timestamp createTime; |
| | | |
| | | public void copy(MessageOrderBuyer source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import java.sql.Timestamp; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | @TableName("message_order_leave") |
| | | public class MessageOrderLeave implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主键,自增") |
| | | private Integer id; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "订单ID") |
| | | private Integer orderId; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "顾客评价内容") |
| | | private String customerReview; |
| | | |
| | | @ApiModelProperty(value = "商家回复内容") |
| | | private String sellerReply; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "跳转链接") |
| | | private String link; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Timestamp createTime; |
| | | |
| | | public void copy(MessageOrderLeave source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import java.sql.Timestamp; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | @TableName("message_order_seller") |
| | | public class MessageOrderSeller implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "orderId") |
| | | private Integer orderId; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "messageType") |
| | | private String messageType; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "messageContent") |
| | | private String messageContent; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "link") |
| | | private String link; |
| | | |
| | | @ApiModelProperty(value = "createTime") |
| | | private Timestamp createTime; |
| | | |
| | | public void copy(MessageOrderSeller source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | **/ |
| | | * @description / |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | @TableName("message_system") |
| | | public class MessageSystem implements Serializable { |
| | | |
| | | @TableId(value = "system_message_id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主键,自增") |
| | | private Long systemMessageId; |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "外键,关联 `message_info` 表") |
| | | private Long messageId; |
| | | @ApiModelProperty(value = "系统维护开始时间") |
| | | private Timestamp startTime; |
| | | |
| | | @ApiModelProperty(value = "系统维护时间") |
| | | private Timestamp maintenanceTime; |
| | | @NotNull |
| | | @ApiModelProperty(value = "系统维护截至时间") |
| | | private Timestamp endTime; |
| | | |
| | | public void copy(MessageSystem source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| File was renamed from oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageBuyerQueryCriteria.java |
| | |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | public class MessageBuyerQueryCriteria{ |
| | | public class MessageOrderBuyerQueryCriteria{ |
| | | |
| | | @ApiModelProperty(value = "页码", example = "1") |
| | | private Integer page = 1; |
copy from oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageBuyerQueryCriteria.java
copy to oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageOrderLeaveQueryCriteria.java
| File was copied from oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageBuyerQueryCriteria.java |
| | |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | public class MessageBuyerQueryCriteria{ |
| | | public class MessageOrderLeaveQueryCriteria{ |
| | | |
| | | @ApiModelProperty(value = "页码", example = "1") |
| | | private Integer page = 1; |
copy from oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageBuyerQueryCriteria.java
copy to oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageOrderSellerQueryCriteria.java
| File was copied from oying-system/src/main/java/com/oying/modules/message/domain/dto/MessageBuyerQueryCriteria.java |
| | |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | public class MessageBuyerQueryCriteria{ |
| | | public class MessageOrderSellerQueryCriteria{ |
| | | |
| | | @ApiModelProperty(value = "页码", example = "1") |
| | | private Integer page = 1; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | **/ |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | public class MessageSystemQueryCriteria{ |
| | | |
| New file |
| | |
| | | package com.oying.modules.message.mapper; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderBuyer; |
| | | import com.oying.modules.message.domain.dto.MessageOrderBuyerQueryCriteria; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Mapper |
| | | public interface MessageOrderBuyerMapper extends BaseMapper<MessageOrderBuyer> { |
| | | |
| | | IPage<MessageOrderBuyer> findAll(@Param("criteria") MessageOrderBuyerQueryCriteria criteria, Page<Object> page); |
| | | |
| | | List<MessageOrderBuyer> findAll(@Param("criteria") MessageOrderBuyerQueryCriteria criteria); |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.mapper; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderLeave; |
| | | import com.oying.modules.message.domain.dto.MessageOrderLeaveQueryCriteria; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Mapper |
| | | public interface MessageOrderLeaveMapper extends BaseMapper<MessageOrderLeave> { |
| | | |
| | | IPage<MessageOrderLeave> findAll(@Param("criteria") MessageOrderLeaveQueryCriteria criteria, Page<Object> page); |
| | | |
| | | List<MessageOrderLeave> findAll(@Param("criteria") MessageOrderLeaveQueryCriteria criteria); |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.mapper; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderSeller; |
| | | import com.oying.modules.message.domain.dto.MessageOrderSellerQueryCriteria; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Mapper |
| | | public interface MessageOrderSellerMapper extends BaseMapper<MessageOrderSeller> { |
| | | |
| | | IPage<MessageOrderSeller> findAll(@Param("criteria") MessageOrderSellerQueryCriteria criteria, Page<Object> page); |
| | | |
| | | List<MessageOrderSeller> findAll(@Param("criteria") MessageOrderSellerQueryCriteria criteria); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | **/ |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Mapper |
| | | public interface MessageSystemMapper extends BaseMapper<MessageSystem> { |
| | | |
| New file |
| | |
| | | package com.oying.modules.message.rest; |
| | | |
| | | import com.oying.annotation.Log; |
| | | import com.oying.modules.message.domain.MessageOrderBuyer; |
| | | import com.oying.modules.message.service.MessageOrderBuyerService; |
| | | import com.oying.modules.message.domain.dto.MessageOrderBuyerQueryCriteria; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "买家端订单消息通知") |
| | | @RequestMapping("/api/messageOrderBuyer") |
| | | public class MessageOrderBuyerController { |
| | | |
| | | private final MessageOrderBuyerService messageOrderBuyerService; |
| | | |
| | | @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('messageOrderBuyer:list')") |
| | | public void exportMessageOrderBuyer(HttpServletResponse response, MessageOrderBuyerQueryCriteria criteria) throws IOException { |
| | | messageOrderBuyerService.download(messageOrderBuyerService.queryAll(criteria), response); |
| | | } |
| | | |
| | | @GetMapping |
| | | @ApiOperation("查询买家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderBuyer:list')") |
| | | public ResponseEntity<PageResult<MessageOrderBuyer>> queryMessageOrderBuyer(MessageOrderBuyerQueryCriteria criteria){ |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | return new ResponseEntity<>(messageOrderBuyerService.queryAll(criteria,page),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增买家端订单消息通知") |
| | | @ApiOperation("新增买家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderBuyer:add')") |
| | | public ResponseEntity<Object> createMessageOrderBuyer(@Validated @RequestBody MessageOrderBuyer resources){ |
| | | messageOrderBuyerService.create(resources); |
| | | return new ResponseEntity<>(HttpStatus.CREATED); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改买家端订单消息通知") |
| | | @ApiOperation("修改买家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderBuyer:edit')") |
| | | public ResponseEntity<Object> updateMessageOrderBuyer(@Validated @RequestBody MessageOrderBuyer resources){ |
| | | messageOrderBuyerService.update(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除买家端订单消息通知") |
| | | @ApiOperation("删除买家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderBuyer:del')") |
| | | public ResponseEntity<Object> deleteMessageOrderBuyer(@ApiParam(value = "传ID数组[]") @RequestBody List<Integer> ids) { |
| | | messageOrderBuyerService.deleteAll(ids); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.rest; |
| | | |
| | | import com.oying.annotation.Log; |
| | | import com.oying.modules.message.domain.MessageOrderLeave; |
| | | import com.oying.modules.message.service.MessageOrderLeaveService; |
| | | import com.oying.modules.message.domain.dto.MessageOrderLeaveQueryCriteria; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "消息留言") |
| | | @RequestMapping("/api/messageOrderLeave") |
| | | public class MessageOrderLeaveController { |
| | | |
| | | private final MessageOrderLeaveService messageOrderLeaveService; |
| | | |
| | | @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('messageOrderLeave:list')") |
| | | public void exportMessageOrderLeave(HttpServletResponse response, MessageOrderLeaveQueryCriteria criteria) throws IOException { |
| | | messageOrderLeaveService.download(messageOrderLeaveService.queryAll(criteria), response); |
| | | } |
| | | |
| | | @GetMapping |
| | | @ApiOperation("查询消息留言") |
| | | @PreAuthorize("@el.check('messageOrderLeave:list')") |
| | | public ResponseEntity<PageResult<MessageOrderLeave>> queryMessageOrderLeave(MessageOrderLeaveQueryCriteria criteria){ |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | return new ResponseEntity<>(messageOrderLeaveService.queryAll(criteria,page),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增消息留言") |
| | | @ApiOperation("新增消息留言") |
| | | @PreAuthorize("@el.check('messageOrderLeave:add')") |
| | | public ResponseEntity<Object> createMessageOrderLeave(@Validated @RequestBody MessageOrderLeave resources){ |
| | | messageOrderLeaveService.create(resources); |
| | | return new ResponseEntity<>(HttpStatus.CREATED); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改消息留言") |
| | | @ApiOperation("修改消息留言") |
| | | @PreAuthorize("@el.check('messageOrderLeave:edit')") |
| | | public ResponseEntity<Object> updateMessageOrderLeave(@Validated @RequestBody MessageOrderLeave resources){ |
| | | messageOrderLeaveService.update(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除消息留言") |
| | | @ApiOperation("删除消息留言") |
| | | @PreAuthorize("@el.check('messageOrderLeave:del')") |
| | | public ResponseEntity<Object> deleteMessageOrderLeave(@ApiParam(value = "传ID数组[]") @RequestBody List<Integer> ids) { |
| | | messageOrderLeaveService.deleteAll(ids); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.rest; |
| | | |
| | | import com.oying.annotation.Log; |
| | | import com.oying.modules.message.domain.MessageOrderSeller; |
| | | import com.oying.modules.message.service.MessageOrderSellerService; |
| | | import com.oying.modules.message.domain.dto.MessageOrderSellerQueryCriteria; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "卖家端订单消息通知") |
| | | @RequestMapping("/api/messageOrderSeller") |
| | | public class MessageOrderSellerController { |
| | | |
| | | private final MessageOrderSellerService messageOrderSellerService; |
| | | |
| | | @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('messageOrderSeller:list')") |
| | | public void exportMessageOrderSeller(HttpServletResponse response, MessageOrderSellerQueryCriteria criteria) throws IOException { |
| | | messageOrderSellerService.download(messageOrderSellerService.queryAll(criteria), response); |
| | | } |
| | | |
| | | @GetMapping |
| | | @ApiOperation("查询卖家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderSeller:list')") |
| | | public ResponseEntity<PageResult<MessageOrderSeller>> queryMessageOrderSeller(MessageOrderSellerQueryCriteria criteria){ |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | return new ResponseEntity<>(messageOrderSellerService.queryAll(criteria,page),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增卖家端订单消息通知") |
| | | @ApiOperation("新增卖家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderSeller:add')") |
| | | public ResponseEntity<Object> createMessageOrderSeller(@Validated @RequestBody MessageOrderSeller resources){ |
| | | messageOrderSellerService.create(resources); |
| | | return new ResponseEntity<>(HttpStatus.CREATED); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改卖家端订单消息通知") |
| | | @ApiOperation("修改卖家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderSeller:edit')") |
| | | public ResponseEntity<Object> updateMessageOrderSeller(@Validated @RequestBody MessageOrderSeller resources){ |
| | | messageOrderSellerService.update(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除卖家端订单消息通知") |
| | | @ApiOperation("删除卖家端订单消息通知") |
| | | @PreAuthorize("@el.check('messageOrderSeller:del')") |
| | | public ResponseEntity<Object> deleteMessageOrderSeller(@ApiParam(value = "传ID数组[]") @RequestBody List<Integer> ids) { |
| | | messageOrderSellerService.deleteAll(ids); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | } |
| | | } |
| | |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | **/ |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "消息_系统") |
| | |
| | | @Log("删除消息_系统") |
| | | @ApiOperation("删除消息_系统") |
| | | @PreAuthorize("@el.check('messageSystem:del')") |
| | | public ResponseEntity<Object> deleteMessageSystem(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { |
| | | public ResponseEntity<Object> deleteMessageSystem(@ApiParam(value = "传ID数组[]") @RequestBody List<Integer> ids) { |
| | | messageSystemService.deleteAll(ids); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.service; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderBuyer; |
| | | import com.oying.modules.message.domain.dto.MessageOrderBuyerQueryCriteria; |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务接口 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | public interface MessageOrderBuyerService extends IService<MessageOrderBuyer> { |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @param page 分页参数 |
| | | * @return PageResult |
| | | */ |
| | | PageResult<MessageOrderBuyer> queryAll(MessageOrderBuyerQueryCriteria criteria, Page<Object> page); |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @return List<MessageOrderBuyerDto> |
| | | */ |
| | | List<MessageOrderBuyer> queryAll(MessageOrderBuyerQueryCriteria criteria); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | | */ |
| | | void create(MessageOrderBuyer resources); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param resources / |
| | | */ |
| | | void update(MessageOrderBuyer resources); |
| | | |
| | | /** |
| | | * 多选删除 |
| | | * @param ids / |
| | | */ |
| | | void deleteAll(List<Integer> ids); |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * @param all 待导出的数据 |
| | | * @param response / |
| | | * @throws IOException / |
| | | */ |
| | | void download(List<MessageOrderBuyer> all, HttpServletResponse response) throws IOException; |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.service; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderLeave; |
| | | import com.oying.modules.message.domain.dto.MessageOrderLeaveQueryCriteria; |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务接口 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | public interface MessageOrderLeaveService extends IService<MessageOrderLeave> { |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @param page 分页参数 |
| | | * @return PageResult |
| | | */ |
| | | PageResult<MessageOrderLeave> queryAll(MessageOrderLeaveQueryCriteria criteria, Page<Object> page); |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @return List<MessageOrderLeaveDto> |
| | | */ |
| | | List<MessageOrderLeave> queryAll(MessageOrderLeaveQueryCriteria criteria); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | | */ |
| | | void create(MessageOrderLeave resources); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param resources / |
| | | */ |
| | | void update(MessageOrderLeave resources); |
| | | |
| | | /** |
| | | * 多选删除 |
| | | * @param ids / |
| | | */ |
| | | void deleteAll(List<Integer> ids); |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * @param all 待导出的数据 |
| | | * @param response / |
| | | * @throws IOException / |
| | | */ |
| | | void download(List<MessageOrderLeave> all, HttpServletResponse response) throws IOException; |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.service; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderSeller; |
| | | import com.oying.modules.message.domain.dto.MessageOrderSellerQueryCriteria; |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务接口 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | public interface MessageOrderSellerService extends IService<MessageOrderSeller> { |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @param page 分页参数 |
| | | * @return PageResult |
| | | */ |
| | | PageResult<MessageOrderSeller> queryAll(MessageOrderSellerQueryCriteria criteria, Page<Object> page); |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @return List<MessageOrderSellerDto> |
| | | */ |
| | | List<MessageOrderSeller> queryAll(MessageOrderSellerQueryCriteria criteria); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | | */ |
| | | void create(MessageOrderSeller resources); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param resources / |
| | | */ |
| | | void update(MessageOrderSeller resources); |
| | | |
| | | /** |
| | | * 多选删除 |
| | | * @param ids / |
| | | */ |
| | | void deleteAll(List<Integer> ids); |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * @param all 待导出的数据 |
| | | * @param response / |
| | | * @throws IOException / |
| | | */ |
| | | void download(List<MessageOrderSeller> all, HttpServletResponse response) throws IOException; |
| | | } |
| | |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务接口 |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | **/ |
| | | * @description 服务接口 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | public interface MessageSystemService extends IService<MessageSystem> { |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @param page 分页参数 |
| | | * @return PageResult |
| | | */ |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @param page 分页参数 |
| | | * @return PageResult |
| | | */ |
| | | PageResult<MessageSystem> queryAll(MessageSystemQueryCriteria criteria, Page<Object> page); |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @return List<MessageSystemDto> |
| | | */ |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @return List<MessageSystemDto> |
| | | */ |
| | | List<MessageSystem> queryAll(MessageSystemQueryCriteria criteria); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | | */ |
| | | * 创建 |
| | | * @param resources / |
| | | */ |
| | | void create(MessageSystem resources); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param resources / |
| | | */ |
| | | * 编辑 |
| | | * @param resources / |
| | | */ |
| | | void update(MessageSystem resources); |
| | | |
| | | /** |
| | | * 多选删除 |
| | | * @param ids / |
| | | */ |
| | | void deleteAll(List<Long> ids); |
| | | * 多选删除 |
| | | * @param ids / |
| | | */ |
| | | void deleteAll(List<Integer> ids); |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * @param all 待导出的数据 |
| | | * @param response / |
| | | * @throws IOException / |
| | | */ |
| | | * 导出数据 |
| | | * @param all 待导出的数据 |
| | | * @param response / |
| | | * @throws IOException / |
| | | */ |
| | | void download(List<MessageSystem> all, HttpServletResponse response) throws IOException; |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.service.impl; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderBuyer; |
| | | import com.oying.utils.FileUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.oying.modules.message.service.MessageOrderBuyerService; |
| | | import com.oying.modules.message.domain.dto.MessageOrderBuyerQueryCriteria; |
| | | import com.oying.modules.message.mapper.MessageOrderBuyerMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.oying.utils.PageUtil; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务实现 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class MessageOrderBuyerServiceImpl extends ServiceImpl<MessageOrderBuyerMapper, MessageOrderBuyer> implements MessageOrderBuyerService { |
| | | |
| | | private final MessageOrderBuyerMapper messageOrderBuyerMapper; |
| | | |
| | | @Override |
| | | public PageResult<MessageOrderBuyer> queryAll(MessageOrderBuyerQueryCriteria criteria, Page<Object> page){ |
| | | return PageUtil.toPage(messageOrderBuyerMapper.findAll(criteria, page)); |
| | | } |
| | | |
| | | @Override |
| | | public List<MessageOrderBuyer> queryAll(MessageOrderBuyerQueryCriteria criteria){ |
| | | return messageOrderBuyerMapper.findAll(criteria); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(MessageOrderBuyer resources) { |
| | | messageOrderBuyerMapper.insert(resources); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void update(MessageOrderBuyer resources) { |
| | | MessageOrderBuyer messageOrderBuyer = getById(resources.getId()); |
| | | messageOrderBuyer.copy(resources); |
| | | messageOrderBuyerMapper.updateById(messageOrderBuyer); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void deleteAll(List<Integer> ids) { |
| | | messageOrderBuyerMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void download(List<MessageOrderBuyer> all, HttpServletResponse response) throws IOException { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | for (MessageOrderBuyer messageOrderBuyer : all) { |
| | | Map<String, Object> map = new LinkedHashMap<>(); |
| | | map.put("订单ID", messageOrderBuyer.getOrderId()); |
| | | map.put("消息类型(订单状态变化、订单送达)", messageOrderBuyer.getMessageType()); |
| | | map.put("消息内容", messageOrderBuyer.getMessageContent()); |
| | | map.put("跳转链接", messageOrderBuyer.getLink()); |
| | | map.put("创建时间", messageOrderBuyer.getCreateTime()); |
| | | list.add(map); |
| | | } |
| | | FileUtil.downloadExcel(list, response); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.service.impl; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderLeave; |
| | | import com.oying.utils.FileUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.oying.modules.message.service.MessageOrderLeaveService; |
| | | import com.oying.modules.message.domain.dto.MessageOrderLeaveQueryCriteria; |
| | | import com.oying.modules.message.mapper.MessageOrderLeaveMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.oying.utils.PageUtil; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务实现 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class MessageOrderLeaveServiceImpl extends ServiceImpl<MessageOrderLeaveMapper, MessageOrderLeave> implements MessageOrderLeaveService { |
| | | |
| | | private final MessageOrderLeaveMapper messageOrderLeaveMapper; |
| | | |
| | | @Override |
| | | public PageResult<MessageOrderLeave> queryAll(MessageOrderLeaveQueryCriteria criteria, Page<Object> page){ |
| | | return PageUtil.toPage(messageOrderLeaveMapper.findAll(criteria, page)); |
| | | } |
| | | |
| | | @Override |
| | | public List<MessageOrderLeave> queryAll(MessageOrderLeaveQueryCriteria criteria){ |
| | | return messageOrderLeaveMapper.findAll(criteria); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(MessageOrderLeave resources) { |
| | | messageOrderLeaveMapper.insert(resources); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void update(MessageOrderLeave resources) { |
| | | MessageOrderLeave messageOrderLeave = getById(resources.getId()); |
| | | messageOrderLeave.copy(resources); |
| | | messageOrderLeaveMapper.updateById(messageOrderLeave); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void deleteAll(List<Integer> ids) { |
| | | messageOrderLeaveMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void download(List<MessageOrderLeave> all, HttpServletResponse response) throws IOException { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | for (MessageOrderLeave messageOrderLeave : all) { |
| | | Map<String, Object> map = new LinkedHashMap<>(); |
| | | map.put("订单ID", messageOrderLeave.getOrderId()); |
| | | map.put("顾客评价内容", messageOrderLeave.getCustomerReview()); |
| | | map.put("商家回复内容", messageOrderLeave.getSellerReply()); |
| | | map.put("跳转链接", messageOrderLeave.getLink()); |
| | | map.put("创建时间", messageOrderLeave.getCreateTime()); |
| | | list.add(map); |
| | | } |
| | | FileUtil.downloadExcel(list, response); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.oying.modules.message.service.impl; |
| | | |
| | | import com.oying.modules.message.domain.MessageOrderSeller; |
| | | import com.oying.utils.FileUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.oying.modules.message.service.MessageOrderSellerService; |
| | | import com.oying.modules.message.domain.dto.MessageOrderSellerQueryCriteria; |
| | | import com.oying.modules.message.mapper.MessageOrderSellerMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.oying.utils.PageUtil; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务实现 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class MessageOrderSellerServiceImpl extends ServiceImpl<MessageOrderSellerMapper, MessageOrderSeller> implements MessageOrderSellerService { |
| | | |
| | | private final MessageOrderSellerMapper messageOrderSellerMapper; |
| | | |
| | | @Override |
| | | public PageResult<MessageOrderSeller> queryAll(MessageOrderSellerQueryCriteria criteria, Page<Object> page){ |
| | | return PageUtil.toPage(messageOrderSellerMapper.findAll(criteria, page)); |
| | | } |
| | | |
| | | @Override |
| | | public List<MessageOrderSeller> queryAll(MessageOrderSellerQueryCriteria criteria){ |
| | | return messageOrderSellerMapper.findAll(criteria); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(MessageOrderSeller resources) { |
| | | messageOrderSellerMapper.insert(resources); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void update(MessageOrderSeller resources) { |
| | | MessageOrderSeller messageOrderSeller = getById(resources.getId()); |
| | | messageOrderSeller.copy(resources); |
| | | messageOrderSellerMapper.updateById(messageOrderSeller); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void deleteAll(List<Integer> ids) { |
| | | messageOrderSellerMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void download(List<MessageOrderSeller> all, HttpServletResponse response) throws IOException { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | for (MessageOrderSeller messageOrderSeller : all) { |
| | | Map<String, Object> map = new LinkedHashMap<>(); |
| | | map.put(" orderId", messageOrderSeller.getOrderId()); |
| | | map.put(" messageType", messageOrderSeller.getMessageType()); |
| | | map.put(" messageContent", messageOrderSeller.getMessageContent()); |
| | | map.put(" link", messageOrderSeller.getLink()); |
| | | map.put(" createTime", messageOrderSeller.getCreateTime()); |
| | | list.add(map); |
| | | } |
| | | FileUtil.downloadExcel(list, response); |
| | | } |
| | | } |
| | |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务实现 |
| | | * @author 李萌 |
| | | * @date 2025-05-14 |
| | | **/ |
| | | * @description 服务实现 |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class MessageSystemServiceImpl extends ServiceImpl<MessageSystemMapper, MessageSystem> implements MessageSystemService { |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void update(MessageSystem resources) { |
| | | MessageSystem messageSystem = getById(resources.getSystemMessageId()); |
| | | MessageSystem messageSystem = getById(resources.getId()); |
| | | messageSystem.copy(resources); |
| | | messageSystemMapper.updateById(messageSystem); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void deleteAll(List<Long> ids) { |
| | | public void deleteAll(List<Integer> ids) { |
| | | messageSystemMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | for (MessageSystem messageSystem : all) { |
| | | Map<String, Object> map = new LinkedHashMap<>(); |
| | | map.put("外键,关联 `message_info` 表", messageSystem.getMessageId()); |
| | | map.put("系统维护时间", messageSystem.getMaintenanceTime()); |
| | | map.put("系统维护开始时间", messageSystem.getStartTime()); |
| | | map.put("系统维护截至时间", messageSystem.getEndTime()); |
| | | list.add(map); |
| | | } |
| | | FileUtil.downloadExcel(list, response); |
| New file |
| | |
| | | <?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.oying.modules.message.mapper.MessageOrderBuyerMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageOrderBuyer"> |
| | | <id column="id" property="id"/> |
| | | <result column="order_id" property="orderId"/> |
| | | <result column="message_type" property="messageType"/> |
| | | <result column="message_content" property="messageContent"/> |
| | | <result column="link" property="link"/> |
| | | <result column="create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, order_id, message_type, message_content, link, create_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from message_order_buyer |
| | | <where> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
| New file |
| | |
| | | <?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.oying.modules.message.mapper.MessageOrderLeaveMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageOrderLeave"> |
| | | <id column="id" property="id"/> |
| | | <result column="order_id" property="orderId"/> |
| | | <result column="customer_review" property="customerReview"/> |
| | | <result column="seller_reply" property="sellerReply"/> |
| | | <result column="link" property="link"/> |
| | | <result column="create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, order_id, customer_review, seller_reply, link, create_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from message_order_leave |
| | | <where> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
| New file |
| | |
| | | <?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.oying.modules.message.mapper.MessageOrderSellerMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageOrderSeller"> |
| | | <id column="id" property="id"/> |
| | | <result column="order_id" property="orderId"/> |
| | | <result column="message_type" property="messageType"/> |
| | | <result column="message_content" property="messageContent"/> |
| | | <result column="link" property="link"/> |
| | | <result column="create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, order_id, message_type, message_content, link, create_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from message_order_seller |
| | | <where> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.oying.modules.message.mapper.MessageSystemMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageSystem"> |
| | | <id column="system_message_id" property="systemMessageId"/> |
| | | <result column="message_id" property="messageId"/> |
| | | <result column="maintenance_time" property="maintenanceTime"/> |
| | | <id column="id" property="id"/> |
| | | <result column="start_time" property="startTime"/> |
| | | <result column="end_time" property="endTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | system_message_id, message_id, maintenance_time |
| | | id, start_time, end_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | |
| | | from message_system |
| | | <where> |
| | | </where> |
| | | order by system_message_id desc |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
copy from oying-system/target/classes/com/oying/modules/message/domain/dto/MessageSellerQueryCriteria.class
copy to oying-system/target/classes/com/oying/modules/message/domain/dto/MessageOrderBuyerQueryCriteria.class
Binary files differ
copy from oying-system/target/classes/com/oying/modules/message/domain/dto/MessageSellerQueryCriteria.class
copy to oying-system/target/classes/com/oying/modules/message/domain/dto/MessageOrderSellerQueryCriteria.class
Binary files differ
| New file |
| | |
| | | <?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.oying.modules.message.mapper.MessageOrderBuyerMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageOrderBuyer"> |
| | | <id column="id" property="id"/> |
| | | <result column="order_id" property="orderId"/> |
| | | <result column="message_type" property="messageType"/> |
| | | <result column="message_content" property="messageContent"/> |
| | | <result column="link" property="link"/> |
| | | <result column="create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, order_id, message_type, message_content, link, create_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from message_order_buyer |
| | | <where> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
| New file |
| | |
| | | <?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.oying.modules.message.mapper.MessageOrderLeaveMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageOrderLeave"> |
| | | <id column="id" property="id"/> |
| | | <result column="order_id" property="orderId"/> |
| | | <result column="customer_review" property="customerReview"/> |
| | | <result column="seller_reply" property="sellerReply"/> |
| | | <result column="link" property="link"/> |
| | | <result column="create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, order_id, customer_review, seller_reply, link, create_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from message_order_leave |
| | | <where> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
| New file |
| | |
| | | <?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.oying.modules.message.mapper.MessageOrderSellerMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageOrderSeller"> |
| | | <id column="id" property="id"/> |
| | | <result column="order_id" property="orderId"/> |
| | | <result column="message_type" property="messageType"/> |
| | | <result column="message_content" property="messageContent"/> |
| | | <result column="link" property="link"/> |
| | | <result column="create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, order_id, message_type, message_content, link, create_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from message_order_seller |
| | | <where> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.oying.modules.message.mapper.MessageSystemMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MessageSystem"> |
| | | <id column="system_message_id" property="systemMessageId"/> |
| | | <result column="message_id" property="messageId"/> |
| | | <result column="maintenance_time" property="maintenanceTime"/> |
| | | <id column="id" property="id"/> |
| | | <result column="start_time" property="startTime"/> |
| | | <result column="end_time" property="endTime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | system_message_id, message_id, maintenance_time |
| | | id, start_time, end_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | |
| | | from message_system |
| | | <where> |
| | | </where> |
| | | order by system_message_id desc |
| | | order by id desc |
| | | </select> |
| | | </mapper> |