1 files deleted
5 files added
23 files modified
| | |
| | | <option name="myName" value="Project Default" /> |
| | | <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true"> |
| | | <Languages> |
| | | <language minSize="87" name="Java" /> |
| | | <language minSize="96" name="Java" /> |
| | | </Languages> |
| | | </inspection_tool> |
| | | <inspection_tool class="JavadocDeclaration" enabled="true" level="WARNING" enabled_by_default="true"> |
| | |
| | | String SUPPLIER = "SUPPLIER"; |
| | | String AGENT = "AGENT"; |
| | | |
| | | // 退货类型状态 启用 |
| | | String RETURN_REASON_STATUS = "1"; |
| | | |
| | | // 用户角色字典key |
| | | String USER_TYPE_BUYER = "USER_TYPE_BUYER"; |
| | | } |
| | |
| | | @AllArgsConstructor |
| | | public enum PayTypeEnum { |
| | | |
| | | /* 通过邮箱重置密码 */ |
| | | HWC("HWC", "汇旺财"); |
| | | /* 支付类型 汇旺财 */ |
| | | HWC("HWC", "汇旺财"), |
| | | |
| | | UNKNOWN("UNKNOWN", "暂未开放"); |
| | | |
| | | private final String key; |
| | | private final String value; |
| | |
| | | return value; |
| | | } |
| | | } |
| | | return null; |
| | | return UNKNOWN; |
| | | } |
| | | |
| | | public static String getValue(String val) { |
| | |
| | | return value.getValue(); |
| | | } |
| | | } |
| | | return null; |
| | | return UNKNOWN.getValue(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.oying.utils.enums; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * @author xin |
| | | * @description |
| | | * @date 2025/7/1 17:32 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ReturnAuditEnum { |
| | | |
| | | ZERO(0, "申请"), |
| | | ONE(1, "通过"), |
| | | TWO(2, "拒绝"), |
| | | THREE(3, "未知"); |
| | | |
| | | private final Integer key; |
| | | |
| | | private final String value; |
| | | |
| | | public static ReturnAuditEnum find(Integer val) { |
| | | for (ReturnAuditEnum value : ReturnAuditEnum.values()) { |
| | | if (val.equals(value.getKey())) { |
| | | return value; |
| | | } |
| | | } |
| | | return THREE; |
| | | } |
| | | |
| | | public static String getValue(Integer val) { |
| | | for (ReturnAuditEnum value : ReturnAuditEnum.values()) { |
| | | if (val.equals(value.getKey())) { |
| | | return value.getValue(); |
| | | } |
| | | } |
| | | return THREE.getValue(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.oying.utils.enums; |
| | | |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum StatusEnum { |
| | | ZERO("0", "停用"), |
| | | ONE("1", "通过"), |
| | | THREE("2", "未知"); |
| | | |
| | | private final String key; |
| | | |
| | | private final String value; |
| | | |
| | | public static StatusEnum find(String val) { |
| | | for (StatusEnum value : StatusEnum.values()) { |
| | | if (val.equals(value.getKey())) { |
| | | return value; |
| | | } |
| | | } |
| | | return THREE; |
| | | } |
| | | |
| | | public static String getValue(String val) { |
| | | for (StatusEnum value : StatusEnum.values()) { |
| | | if (val.equals(value.getKey())) { |
| | | return value.getValue(); |
| | | } |
| | | } |
| | | return THREE.getValue(); |
| | | } |
| | | } |
| | |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "订单号") |
| | | private Long orderNum; |
| | | private String orderNum; |
| | | |
| | | public void copy(OrderOperationLog source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | |
| | | @ApiModelProperty(value = "退款成功时间") |
| | | private String successTime; |
| | | |
| | | @ApiModelProperty(value = "退款渠道ORIGINAL: 原路退款BALANCE: 退回到余额OTHER_BALANCE: 原账户异常退到其他余额账户OTHER_BANKCARD: 原银行卡异常退到其他银行卡") |
| | | @ApiModelProperty(value = "退款渠道") |
| | | private String channel; |
| | | |
| | | @ApiModelProperty(value = "退款原因") |
| | | private String reason; |
| | | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "图片") |
| | | private String photos; |
| | | |
| | | @ApiModelProperty(value = "审核状态") |
| | | private Integer auditStatus; |
| | | |
| | | @ApiModelProperty(value = "审核人") |
| | | private String auditUser; |
| | | |
| | |
| | | private String userType; |
| | | |
| | | @ApiModelProperty(value = "订单号") |
| | | private Long orderNum; |
| | | private String orderNum; |
| | | private List<Timestamp> operationTime; |
| | | } |
| | |
| | | @ApiModelProperty(value = "退款状态") |
| | | private String refundStatus; |
| | | |
| | | @ApiModelProperty(value = "审核状态") |
| | | private String auditStatus; |
| | | |
| | | @ApiModelProperty(value = "审核人") |
| | | private String auditUser; |
| | | private List<String> successTime; |
New file |
| | |
| | | package com.oying.modules.sh.domain.request; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author xin |
| | | * @description |
| | | * @date 2025/7/1 23:46 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | public class GeneratorOrder { |
| | | |
| | | @ApiModelProperty(value = "门店ID") |
| | | private String storeId; |
| | | @ApiModelProperty(value = "商品&数量") |
| | | private List<ProductOrder> products; |
| | | } |
New file |
| | |
| | | package com.oying.modules.sh.domain.request; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | /** |
| | | * @author xin |
| | | * @description |
| | | * @date 2025/7/2 00:01 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | public class ProductOrder { |
| | | |
| | | @ApiModelProperty(value = "商品ID") |
| | | private String productId; |
| | | @ApiModelProperty(value = "数量") |
| | | private Integer productCount; |
| | | } |
New file |
| | |
| | | package com.oying.modules.sh.domain.request; |
| | | |
| | | import com.oying.utils.enums.PayTypeEnum; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author xin |
| | | * @description |
| | | * @date 2025/7/1 23:58 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | public class SubmitOrder { |
| | | |
| | | @ApiModelProperty(value = "地址ID") |
| | | private Long addressId; |
| | | @ApiModelProperty(value = "送达时间") |
| | | private Timestamp dateTime; |
| | | @ApiModelProperty(value = "门店ID") |
| | | private String storeId; |
| | | @ApiModelProperty(value = "商品&数量") |
| | | private List<ProductOrder> products; |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | @ApiModelProperty(value = "支付类型") |
| | | private PayTypeEnum payType; |
| | | |
| | | } |
| | |
| | | IPage<OrderProductSnapshot> findAll(@Param("criteria") OrderProductSnapshotQueryCriteria criteria, Page<Object> page); |
| | | |
| | | List<OrderProductSnapshot> findAll(@Param("criteria") OrderProductSnapshotQueryCriteria criteria); |
| | | |
| | | List<OrderProductSnapshot> queryOrderProductSnapshot(String orderNum); |
| | | } |
| | |
| | | IPage<OrderReturnProductSnapshot> findAll(@Param("criteria") OrderReturnProductSnapshotQueryCriteria criteria, Page<Object> page); |
| | | |
| | | List<OrderReturnProductSnapshot> findAll(@Param("criteria") OrderReturnProductSnapshotQueryCriteria criteria); |
| | | |
| | | List<OrderReturnProductSnapshot> queryOrderReturnProductSnapshot(String returnNum); |
| | | } |
| | |
| | | package com.oying.modules.sh.rest; |
| | | |
| | | import com.oying.annotation.Log; |
| | | import com.oying.modules.sh.domain.Order; |
| | | import com.oying.modules.sh.domain.request.GeneratorOrder; |
| | | import com.oying.modules.sh.domain.request.SubmitOrder; |
| | | import com.oying.modules.sh.service.OrderService; |
| | | import com.oying.modules.sh.domain.dto.OrderQueryCriteria; |
| | | import com.oying.utils.R; |
| | | import com.oying.utils.SecurityUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | |
| | | return new ResponseEntity<>(R.success(orderService.queryAll(criteria, page)), HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增订单信息") |
| | | @ApiOperation("新增订单信息") |
| | | @PreAuthorize("@el.check('order:add')") |
| | | public ResponseEntity<Object> createOrder(@Validated @RequestBody Order resources) { |
| | | orderService.create(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.CREATED); |
| | | @GetMapping("mini") |
| | | @ApiOperation("小程序:查询订单信息") |
| | | public ResponseEntity<Object> miniQueryOrder(OrderQueryCriteria criteria) { |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | criteria.setUserId(SecurityUtils.getCurrentUserId()); |
| | | return new ResponseEntity<>(R.success(orderService.queryAll(criteria, page)), HttpStatus.OK); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改订单信息") |
| | | @ApiOperation("修改订单信息") |
| | | @PreAuthorize("@el.check('order:edit')") |
| | | public ResponseEntity<Object> updateOrder(@Validated @RequestBody Order resources) { |
| | | orderService.update(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.NO_CONTENT); |
| | | @PostMapping("generator") |
| | | @Log("小程序:生成确认订单") |
| | | @ApiOperation("小程序:生成确认订单") |
| | | public ResponseEntity<Object> generatorOrder(@Validated @RequestBody GeneratorOrder generator) { |
| | | return new ResponseEntity<>(R.success(orderService.generatorOrder(generator)), HttpStatus.CREATED); |
| | | } |
| | | |
| | | @PostMapping("submit") |
| | | @Log("小程序:提交订单") |
| | | @ApiOperation("小程序:提交订单") |
| | | public ResponseEntity<Object> submitOrder(@Validated @RequestBody SubmitOrder submit) { |
| | | return new ResponseEntity<>(R.success(orderService.submitOrder(submit)), HttpStatus.CREATED); |
| | | } |
| | | |
| | | @DeleteMapping |
| | |
| | | import com.oying.utils.R; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | public ResponseEntity<Object> createOrderOperationLog(@Validated @RequestBody OrderOperationLog resources) { |
| | | orderOperationLogService.create(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.CREATED); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log("修改订单操作日志") |
| | | @ApiOperation("修改订单操作日志") |
| | | @PreAuthorize("@el.check('orderOperationLog:edit')") |
| | | public ResponseEntity<Object> updateOrderOperationLog(@Validated @RequestBody OrderOperationLog resources) { |
| | | orderOperationLogService.update(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除订单操作日志") |
| | | @ApiOperation("删除订单操作日志") |
| | | @PreAuthorize("@el.check('orderOperationLog:del')") |
| | | public ResponseEntity<Object> deleteOrderOperationLog(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { |
| | | orderOperationLogService.deleteAll(ids); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.OK); |
| | | } |
| | | } |
| | |
| | | import com.oying.annotation.Log; |
| | | import com.oying.modules.sh.domain.OrderProductSnapshot; |
| | | import com.oying.modules.sh.service.OrderProductSnapshotService; |
| | | import com.oying.modules.sh.domain.dto.OrderProductSnapshotQueryCriteria; |
| | | import com.oying.utils.R; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * @author lixin |
| | |
| | | |
| | | private final OrderProductSnapshotService orderProductSnapshotService; |
| | | |
| | | @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('orderProductSnapshot:list')") |
| | | public void exportOrderProductSnapshot(HttpServletResponse response, OrderProductSnapshotQueryCriteria criteria) throws IOException { |
| | | orderProductSnapshotService.download(orderProductSnapshotService.queryAll(criteria), response); |
| | | } |
| | | |
| | | @GetMapping |
| | | @ApiOperation("查询订单商品快照") |
| | | @PreAuthorize("@el.check('orderProductSnapshot:list')") |
| | | public ResponseEntity<Object> queryOrderProductSnapshot(OrderProductSnapshotQueryCriteria criteria) { |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | return new ResponseEntity<>(orderProductSnapshotService.queryAll(criteria, page), HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增订单商品快照") |
| | | @ApiOperation("新增订单商品快照") |
| | | @PreAuthorize("@el.check('orderProductSnapshot:add')") |
| | | public ResponseEntity<Object> createOrderProductSnapshot(@Validated @RequestBody OrderProductSnapshot resources) { |
| | | orderProductSnapshotService.create(resources); |
| | | return new ResponseEntity<>(HttpStatus.CREATED); |
| | | public ResponseEntity<Object> queryOrderProductSnapshot(@RequestParam String orderNum) { |
| | | return new ResponseEntity<>(R.success(orderProductSnapshotService.queryOrderProductSnapshot(orderNum)), HttpStatus.OK); |
| | | } |
| | | |
| | | @PutMapping |
| | |
| | | public ResponseEntity<Object> updateOrderProductSnapshot(@Validated @RequestBody OrderProductSnapshot resources) { |
| | | orderProductSnapshotService.update(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除订单商品快照") |
| | | @ApiOperation("删除订单商品快照") |
| | | @PreAuthorize("@el.check('orderProductSnapshot:del')") |
| | | public ResponseEntity<Object> deleteOrderProductSnapshot(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { |
| | | orderProductSnapshotService.deleteAll(ids); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | } |
| | | } |
| | |
| | | import com.oying.annotation.Log; |
| | | import com.oying.modules.sh.domain.OrderReturnProductSnapshot; |
| | | import com.oying.modules.sh.service.OrderReturnProductSnapshotService; |
| | | import com.oying.modules.sh.domain.dto.OrderReturnProductSnapshotQueryCriteria; |
| | | import com.oying.utils.R; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * @author lixin |
| | |
| | | |
| | | private final OrderReturnProductSnapshotService orderReturnProductSnapshotService; |
| | | |
| | | @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('orderReturnProductSnapshot:list')") |
| | | public void exportOrderReturnProductSnapshot(HttpServletResponse response, OrderReturnProductSnapshotQueryCriteria criteria) throws IOException { |
| | | orderReturnProductSnapshotService.download(orderReturnProductSnapshotService.queryAll(criteria), response); |
| | | } |
| | | |
| | | @GetMapping |
| | | @ApiOperation("查询退款订单商品快照") |
| | | @PreAuthorize("@el.check('orderReturnProductSnapshot:list')") |
| | | public ResponseEntity<Object> queryOrderReturnProductSnapshot(OrderReturnProductSnapshotQueryCriteria criteria) { |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | return new ResponseEntity<>(R.success(orderReturnProductSnapshotService.queryAll(criteria, page)), HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增退款订单商品快照") |
| | | @ApiOperation("新增退款订单商品快照") |
| | | @PreAuthorize("@el.check('orderReturnProductSnapshot:add')") |
| | | public ResponseEntity<Object> createOrderReturnProductSnapshot(@Validated @RequestBody OrderReturnProductSnapshot resources) { |
| | | orderReturnProductSnapshotService.create(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.CREATED); |
| | | public ResponseEntity<Object> queryOrderReturnProductSnapshot(@RequestParam String returnNum) { |
| | | return new ResponseEntity<>(R.success(orderReturnProductSnapshotService.queryOrderReturnProductSnapshot(returnNum)), HttpStatus.OK); |
| | | } |
| | | |
| | | @PutMapping |
| | |
| | | public ResponseEntity<Object> updateOrderReturnProductSnapshot(@Validated @RequestBody OrderReturnProductSnapshot resources) { |
| | | orderReturnProductSnapshotService.update(resources); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.NO_CONTENT); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @Log("删除退款订单商品快照") |
| | | @ApiOperation("删除退款订单商品快照") |
| | | @PreAuthorize("@el.check('orderReturnProductSnapshot:del')") |
| | | public ResponseEntity<Object> deleteOrderReturnProductSnapshot(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { |
| | | orderReturnProductSnapshotService.deleteAll(ids); |
| | | return new ResponseEntity<>(R.success(), HttpStatus.OK); |
| | | } |
| | | } |
| | |
| | | */ |
| | | List<OrderProductSnapshot> queryAll(OrderProductSnapshotQueryCriteria criteria); |
| | | |
| | | List<OrderProductSnapshot> queryOrderProductSnapshot(String orderNum); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | |
| | | List<OrderReturnProductSnapshot> queryAll(OrderReturnProductSnapshotQueryCriteria criteria); |
| | | |
| | | /** |
| | | * 查询订单数据不分页 |
| | | * @return List<OrderReturnProductSnapshotDto> |
| | | */ |
| | | List<OrderReturnProductSnapshot> queryOrderReturnProductSnapshot(String returnNum); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | | */ |
| | |
| | | |
| | | import com.oying.modules.sh.domain.Order; |
| | | import com.oying.modules.sh.domain.dto.OrderQueryCriteria; |
| | | |
| | | import java.util.List; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.oying.modules.sh.domain.request.GeneratorOrder; |
| | | import com.oying.modules.sh.domain.request.SubmitOrder; |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | | * @description 服务接口 |
| | | * @author lixin |
| | | * @description 服务接口 |
| | | * @date 2025-06-11 |
| | | **/ |
| | | public interface OrderService extends IService<Order> { |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * |
| | | * @param criteria 条件 |
| | | * @param page 分页参数 |
| | | * @return PageResult |
| | |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * |
| | | * @param criteria 条件参数 |
| | | * @return List<OrderDto> |
| | | */ |
| | | List<Order> queryAll(OrderQueryCriteria criteria); |
| | | |
| | | Map<String, Object> generatorOrder(GeneratorOrder generator); |
| | | |
| | | Order submitOrder(SubmitOrder submit); |
| | | |
| | | /** |
| | | * 创建 |
| | | * |
| | | * @param resources / |
| | | */ |
| | | void create(Order resources); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * |
| | | * @param resources / |
| | | */ |
| | | void update(Order resources); |
| | | |
| | | /** |
| | | * 多选删除 |
| | | * |
| | | * @param ids / |
| | | */ |
| | | void deleteAll(List<Long> ids); |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * |
| | | * @param all 待导出的数据 |
| | | * @param response / |
| | | * @throws IOException / |
| | |
| | | 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.util.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<OrderProductSnapshot> queryOrderProductSnapshot(String orderNum) { |
| | | return orderProductSnapshotMapper.queryOrderProductSnapshot(orderNum); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(OrderProductSnapshot resources) { |
| | | orderProductSnapshotMapper.insert(resources); |
| | |
| | | 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.util.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<OrderReturnProductSnapshot> queryOrderReturnProductSnapshot(String returnNum) { |
| | | return orderReturnProductSnapshotMapper.queryOrderReturnProductSnapshot(returnNum); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(OrderReturnProductSnapshot resources) { |
| | | orderReturnProductSnapshotMapper.insert(resources); |
| | |
| | | |
| | | import com.oying.modules.sh.domain.OrderReturn; |
| | | import com.oying.utils.FileUtil; |
| | | import com.oying.utils.enums.ReturnAuditEnum; |
| | | import lombok.RequiredArgsConstructor; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | map.put("退款价格", orderReturn.getRefundPrice()); |
| | | map.put("退款状态", orderReturn.getRefundStatus()); |
| | | map.put("退款成功时间", orderReturn.getSuccessTime()); |
| | | map.put("退款渠道ORIGINAL: 原路退款BALANCE: 退回到余额OTHER_BALANCE: 原账户异常退到其他余额账户OTHER_BANKCARD: 原银行卡异常退到其他银行卡", orderReturn.getChannel()); |
| | | map.put("退款渠道", orderReturn.getChannel()); |
| | | map.put("退款原因", orderReturn.getReason()); |
| | | map.put("备注", orderReturn.getRemark()); |
| | | map.put("图片", orderReturn.getPhotos()); |
| | | map.put("审核状态", ReturnAuditEnum.getValue(orderReturn.getAuditStatus())); |
| | | map.put("审核人", orderReturn.getAuditUser()); |
| | | map.put("审核时间", orderReturn.getAuditTime()); |
| | | map.put("审核信息", orderReturn.getAuditMessage()); |
| | |
| | | package com.oying.modules.sh.service.impl; |
| | | |
| | | import com.oying.modules.sh.domain.Order; |
| | | import com.oying.modules.sh.domain.request.GeneratorOrder; |
| | | import com.oying.modules.sh.domain.request.SubmitOrder; |
| | | import com.oying.utils.FileUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | 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.util.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | |
| | | import com.oying.utils.PageResult; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Order submitOrder(SubmitOrder submit) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> generatorOrder(GeneratorOrder generator) { |
| | | return Collections.emptyMap(); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(Order resources) { |
| | | orderMapper.insert(resources); |
| | |
| | | </where> |
| | | order by snapshot_id desc |
| | | </select> |
| | | <select id="queryOrderProductSnapshot" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from sh_order_product_snapshot |
| | | where order_num = #{orderNum} |
| | | order by snapshot_id desc |
| | | </select> |
| | | </mapper> |
| | |
| | | <result column="success_time" property="successTime"/> |
| | | <result column="channel" property="channel"/> |
| | | <result column="reason" property="reason"/> |
| | | <result column="remark" property="remark"/> |
| | | <result column="photos" property="photos"/> |
| | | <result column="audit_status" property="auditStatus"/> |
| | | <result column="audit_user" property="auditUser"/> |
| | | <result column="audit_time" property="auditTime"/> |
| | | <result column="audit_message" property="auditMessage"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | return_id, return_num, order_num, user_id, store_id, store_name, store_logo, original_price, paid_price, actually_pay_price, refund_price, refund_status, success_time, channel, reason, audit_user, audit_time, audit_message, create_by, create_time, update_by, update_time |
| | | return_id, return_num, order_num, user_id, store_id, store_name, store_logo, original_price, paid_price, actually_pay_price, refund_price, refund_status, success_time, channel, reason, remark, photos, audit_status, audit_user, audit_time, audit_message, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | |
| | | </where> |
| | | order by snapshot_id desc |
| | | </select> |
| | | <select id="queryOrderReturnProductSnapshot" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from sh_order_return_product_snapshot |
| | | where return_num = #{returnNum} |
| | | order by snapshot_id desc |
| | | </select> |
| | | </mapper> |