完善售后
This commit is contained in:
parent
8b4176cb0c
commit
f71894f851
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.qihang.oms.controller;
|
||||||
|
|
||||||
|
import com.qihang.common.common.PageQuery;
|
||||||
|
import com.qihang.common.common.TableDataInfo;
|
||||||
|
import com.qihang.oms.domain.ErpSaleAfterInfo;
|
||||||
|
import com.qihang.oms.domain.ErpSaleOrder;
|
||||||
|
import com.qihang.oms.service.ErpSaleAfterInfoService;
|
||||||
|
import com.qihang.security.common.BaseController;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@AllArgsConstructor
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/afterSale")
|
||||||
|
public class AfterSaleController extends BaseController {
|
||||||
|
private final ErpSaleAfterInfoService afterInfoService;
|
||||||
|
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ErpSaleAfterInfo bo, PageQuery pageQuery)
|
||||||
|
{
|
||||||
|
var pageList = afterInfoService.queryPageList(bo,pageQuery);
|
||||||
|
return getDataTable(pageList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,179 @@
|
||||||
|
package com.qihang.oms.domain;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 售后处理表
|
||||||
|
* @TableName erp_sale_after_info
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ErpSaleAfterInfo implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型(10退货;20换货;80补发;99订单拦截;)
|
||||||
|
*/
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 店铺id
|
||||||
|
*/
|
||||||
|
private Integer shopId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 店铺类型
|
||||||
|
*/
|
||||||
|
private Integer shopType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 售后单号
|
||||||
|
*/
|
||||||
|
private String afterSaleOrderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单号
|
||||||
|
*/
|
||||||
|
private String orderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 子订单号
|
||||||
|
*/
|
||||||
|
private String subOrderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spuid
|
||||||
|
*/
|
||||||
|
private String productId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品skuid
|
||||||
|
*/
|
||||||
|
private String skuId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
private Integer count;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品图片
|
||||||
|
*/
|
||||||
|
private String img;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sku描述
|
||||||
|
*/
|
||||||
|
private String skuInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sku编码
|
||||||
|
*/
|
||||||
|
private String skuCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ERP商品id
|
||||||
|
*/
|
||||||
|
private Integer erpGoodsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ERP商品skuId
|
||||||
|
*/
|
||||||
|
private Integer erpSkuId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退回人信息json
|
||||||
|
*/
|
||||||
|
private String returnInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退回快递单号
|
||||||
|
*/
|
||||||
|
private String returnWaybillCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退回物流公司名称
|
||||||
|
*/
|
||||||
|
private String returnCompany;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收件人姓名
|
||||||
|
*/
|
||||||
|
private String receiverName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收件人联系电话
|
||||||
|
*/
|
||||||
|
private String receiverTel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省
|
||||||
|
*/
|
||||||
|
private String receiverProvince;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 市
|
||||||
|
*/
|
||||||
|
private String receiverCity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区
|
||||||
|
*/
|
||||||
|
private String receiverTown;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收件人详细地址
|
||||||
|
*/
|
||||||
|
private String receiverAddress;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发货快递单号(补发、换货发货、拦截订单发货)
|
||||||
|
*/
|
||||||
|
private String shipWaybillCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发货快递公司
|
||||||
|
*/
|
||||||
|
private String shipCompany;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态:1已发出;2已完成(已收货);3已入库
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.qihang.oms.mapper;
|
||||||
|
|
||||||
|
import com.qihang.oms.domain.ErpSaleAfterInfo;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TW
|
||||||
|
* @description 针对表【erp_sale_after_info(售后处理表)】的数据库操作Mapper
|
||||||
|
* @createDate 2024-06-20 10:58:40
|
||||||
|
* @Entity com.qihang.oms.domain.ErpSaleAfterInfo
|
||||||
|
*/
|
||||||
|
public interface ErpSaleAfterInfoMapper extends BaseMapper<ErpSaleAfterInfo> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.qihang.oms.service;
|
||||||
|
|
||||||
|
import com.qihang.common.common.PageQuery;
|
||||||
|
import com.qihang.common.common.PageResult;
|
||||||
|
import com.qihang.oms.domain.ErpSaleAfterInfo;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TW
|
||||||
|
* @description 针对表【erp_sale_after_info(售后处理表)】的数据库操作Service
|
||||||
|
* @createDate 2024-06-20 10:58:40
|
||||||
|
*/
|
||||||
|
public interface ErpSaleAfterInfoService extends IService<ErpSaleAfterInfo> {
|
||||||
|
PageResult<ErpSaleAfterInfo> queryPageList(ErpSaleAfterInfo bo, PageQuery pageQuery);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.qihang.oms.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.qihang.common.common.PageQuery;
|
||||||
|
import com.qihang.common.common.PageResult;
|
||||||
|
import com.qihang.oms.domain.ErpSaleAfterInfo;
|
||||||
|
import com.qihang.oms.service.ErpSaleAfterInfoService;
|
||||||
|
import com.qihang.oms.mapper.ErpSaleAfterInfoMapper;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TW
|
||||||
|
* @description 针对表【erp_sale_after_info(售后处理表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-06-20 10:58:40
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Service
|
||||||
|
public class ErpSaleAfterInfoServiceImpl extends ServiceImpl<ErpSaleAfterInfoMapper, ErpSaleAfterInfo>
|
||||||
|
implements ErpSaleAfterInfoService{
|
||||||
|
private final ErpSaleAfterInfoMapper mapper;
|
||||||
|
@Override
|
||||||
|
public PageResult<ErpSaleAfterInfo> queryPageList(ErpSaleAfterInfo bo, PageQuery pageQuery) {
|
||||||
|
LambdaQueryWrapper<ErpSaleAfterInfo> queryWrapper = new LambdaQueryWrapper<ErpSaleAfterInfo>().
|
||||||
|
eq( ErpSaleAfterInfo::getType, bo.getType())
|
||||||
|
.eq(bo.getShopId() != null, ErpSaleAfterInfo::getShopId, bo.getShopId());
|
||||||
|
|
||||||
|
Page<ErpSaleAfterInfo> pages = mapper.selectPage(pageQuery.build(), queryWrapper);
|
||||||
|
return PageResult.build(pages);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,56 @@
|
||||||
|
<?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.qihang.oms.mapper.ErpSaleAfterInfoMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.qihang.oms.domain.ErpSaleAfterInfo">
|
||||||
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||||
|
<result property="type" column="type" jdbcType="INTEGER"/>
|
||||||
|
<result property="shopId" column="shop_id" jdbcType="INTEGER"/>
|
||||||
|
<result property="shopType" column="shop_type" jdbcType="INTEGER"/>
|
||||||
|
<result property="afterSaleOrderId" column="after_sale_order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="subOrderId" column="sub_order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="productId" column="product_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skuId" column="sku_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="count" column="count" jdbcType="INTEGER"/>
|
||||||
|
<result property="title" column="title" jdbcType="VARCHAR"/>
|
||||||
|
<result property="img" column="img" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skuInfo" column="sku_info" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skuCode" column="sku_code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="erpGoodsId" column="erp_goods_id" jdbcType="INTEGER"/>
|
||||||
|
<result property="erpSkuId" column="erp_sku_id" jdbcType="INTEGER"/>
|
||||||
|
<result property="returnInfo" column="return_info" jdbcType="VARCHAR"/>
|
||||||
|
<result property="returnWaybillCode" column="return_waybill_code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="returnCompany" column="return_company" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverName" column="receiver_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverTel" column="receiver_tel" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverProvince" column="receiver_province" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverCity" column="receiver_city" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverTown" column="receiver_town" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverAddress" column="receiver_address" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shipWaybillCode" column="ship_waybill_code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shipCompany" column="ship_company" jdbcType="VARCHAR"/>
|
||||||
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,type,shop_id,
|
||||||
|
shop_type,after_sale_order_id,order_id,
|
||||||
|
sub_order_id,product_id,sku_id,
|
||||||
|
count,title,img,
|
||||||
|
sku_info,sku_code,erp_goods_id,
|
||||||
|
erp_sku_id,return_info,return_waybill_code,
|
||||||
|
return_company,receiver_name,receiver_tel,
|
||||||
|
receiver_province,receiver_city,receiver_town,
|
||||||
|
receiver_address,ship_waybill_code,ship_company,
|
||||||
|
status,remark,create_time,
|
||||||
|
create_by,update_time,update_by
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue