
17 changed files with 911 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
/oms-biz.iml |
|||
/gateway/gateway.iml |
|||
/oms/oms.iml |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.apiadmin.aggregation; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.oms.biz.func.smssalesreturn.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.apache.ibatis.annotations.Delete; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnFeignFallback.java <br/> |
|||
* Class: com.yxt.sales.apiadmin.SmsSalesReturnRest <br/> |
|||
* Description: 销售退货单据. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "销售退货单据") |
|||
@RestController("com.yxt.sales.apiadmin.SmsSalesReturnRest") |
|||
@RequestMapping("v1/smssalesreturn") |
|||
public class SmsSalesReturnRest { |
|||
|
|||
@Autowired |
|||
private SmsSalesReturnService smsSalesReturnService; |
|||
|
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SmsSalesReturnVo>> listPage(@RequestBody PagerQuery<SmsSalesReturnQuery> pq) { |
|||
return smsSalesReturnService.listPageVo(pq); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SmsSalesReturnDto dto) { |
|||
|
|||
return smsSalesReturnService.saveOrUpdateDto(dto); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@Delete("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids) { |
|||
return smsSalesReturnService.deleteBySids(sids); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<SmsSalesReturnDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid) { |
|||
return smsSalesReturnService.fetchDetailsVoBySid(sid); |
|||
} |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2024/7/19 17:23 |
|||
*/ |
|||
@Data |
|||
public class GoodsList { |
|||
private String auxiliaryUnit; |
|||
private String backAmount; |
|||
private String backCount; |
|||
private String discountRtate; |
|||
private String goodSpuSid; |
|||
private String goodsSkuCode; |
|||
private String goodsSkuOwnSpec; |
|||
private String goodsSkuSid; |
|||
private String goodsSkuTitle; |
|||
private String goodsSpuName; |
|||
private String maxPrice; |
|||
private String remarks; |
|||
private String tradePrice; |
|||
private String unit; |
|||
private String warehouseRackCode; |
|||
private String warehouseRackSid; |
|||
|
|||
} |
@ -0,0 +1,106 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturn.java <br/> |
|||
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturn <br/> |
|||
* Description: 销售退货单据. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售退货单据", description = "销售退货单据") |
|||
@TableName("sms_sales_return") |
|||
public class SmsSalesReturn extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("制单部门sid") |
|||
private String deptSid; // 制单部门sid
|
|||
@ApiModelProperty("制单部门") |
|||
private String deptName; // 制单部门
|
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("来源单sid(销售单sid)") |
|||
private String sourceBillSid; // 来源单sid(销售单sid)
|
|||
@ApiModelProperty("来源单编号(订单编号)") |
|||
private String sourceBillNo; // 来源单编号(订单编号)
|
|||
@ApiModelProperty("业务员sid") |
|||
private String salesUserSid; // 业务员sid
|
|||
@ApiModelProperty("业务员姓名") |
|||
private String salesName; // 业务员姓名
|
|||
@ApiModelProperty("单据类型key(销售退货等)") |
|||
private String billTypeKey; // 单据类型key(销售退货等)
|
|||
@ApiModelProperty("单据类型value") |
|||
private String billTypeValue; // 单据类型value
|
|||
@ApiModelProperty("物流公司") |
|||
private String LogisticsName; // 物流公司
|
|||
@ApiModelProperty("快递单号") |
|||
private String logisticsNum; // 快递单号
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
@ApiModelProperty("退误差调整金额") |
|||
private BigDecimal backErrorAmount; // 退误差调整金额
|
|||
@ApiModelProperty("退优惠金额") |
|||
private BigDecimal backDiscountAmount; // 退优惠金额
|
|||
@ApiModelProperty("抵扣欠款") |
|||
private BigDecimal deductDebts; // 抵扣欠款
|
|||
@ApiModelProperty("结算账户") |
|||
private String bankAccount; // 结算账户
|
|||
@ApiModelProperty("抵扣单号") |
|||
private String deductBillNo; // 抵扣单号
|
|||
@ApiModelProperty("是否记预收款(1是,0否)") |
|||
private Integer isTotoPrepayment; // 是否记预收款(1是,0否)
|
|||
@ApiModelProperty("转入预付款") |
|||
private BigDecimal toPrepayment; // 转入预付款
|
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; // 仓库sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; // 仓库名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnVo.java <br/> |
|||
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnVo <br/> |
|||
* Description: 销售退货单据 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售退货单据 视图数据详情", description = "销售退货单据 视图数据详情") |
|||
public class SmsSalesReturnDetailsVo implements Vo { |
|||
|
|||
private String amount; |
|||
private String billTypeKey; |
|||
private String billTypeValue; |
|||
private String createByName; |
|||
private String createBySid; |
|||
private String createOrgSid; |
|||
private String createTime; |
|||
private String customerName; |
|||
private String customerSid; |
|||
private String deliveryTypeKey; |
|||
private String deptName; |
|||
private String deptSid; |
|||
private List<GoodsList> goodsList; |
|||
private String isFirstPay; |
|||
private String isTotoPrepayment; |
|||
private String logisticsName; |
|||
private String logisticsNum; |
|||
private String remarks; |
|||
private String salesName; |
|||
private String salesUserSid; |
|||
private String sid; |
|||
private String sourceBillNo; |
|||
private String sourceBillSid; |
|||
private String useOrgSid; |
|||
private String warehouseName; |
|||
private String warehouseSid; |
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnDto.java <br/> |
|||
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnDto <br/> |
|||
* Description: 销售退货单据 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售退货单据 数据传输对象", description = "销售退货单据 数据传输对象") |
|||
public class SmsSalesReturnDto implements Dto { |
|||
|
|||
private String amount; |
|||
private String billTypeKey; |
|||
private String billTypeValue; |
|||
private String createByName; |
|||
private String createBySid; |
|||
private String createOrgSid; |
|||
private String createTime; |
|||
private String customerName; |
|||
private String customerSid; |
|||
private String deliveryTypeKey; |
|||
private String deptName; |
|||
private String deptSid; |
|||
private List<GoodsList> goodsList; |
|||
private String isFirstPay; |
|||
private String isTotoPrepayment; |
|||
private String logisticsName; |
|||
private String logisticsNum; |
|||
private String remarks; |
|||
private String salesName; |
|||
private String salesUserSid; |
|||
private String sid; |
|||
private String sourceBillNo; |
|||
private String sourceBillSid; |
|||
private String useOrgSid; |
|||
private String warehouseName; |
|||
private String warehouseSid; |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnMapper.java <br/> |
|||
* Class: com.yxt.sales.biz.smssalesreturn.SmsSalesReturnMapper <br/> |
|||
* Description: 销售退货单据. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SmsSalesReturnMapper extends BaseMapper<SmsSalesReturn> { |
|||
|
|||
//@Update("update sms_sales_return set name=#{msg} where id=#{id}")
|
|||
//IPage<SmsSalesReturnVo> voPage(IPage<SmsSalesReturn> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesReturn> qw);
|
|||
|
|||
IPage<SmsSalesReturnVo> selectPageVo(IPage<SmsSalesReturn> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesReturn> qw); |
|||
|
|||
List<SmsSalesReturnVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesReturn> qw); |
|||
|
|||
@Select("select * from sms_sales_return") |
|||
List<SmsSalesReturnVo> selectListVo(); |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?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.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnVo"> |
|||
SELECT * FROM sms_sales_return <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnVo"> |
|||
SELECT * FROM sms_sales_return <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,99 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnQuery.java <br/> |
|||
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnQuery <br/> |
|||
* Description: 销售退货单据 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售退货单据 查询条件", description = "销售退货单据 查询条件") |
|||
public class SmsSalesReturnQuery implements Query { |
|||
|
|||
/** |
|||
* 单据编号 |
|||
*/ |
|||
private String billNo; |
|||
/** |
|||
* 单据类型key |
|||
*/ |
|||
private String billTypeKey; |
|||
/** |
|||
* 制单人姓名 |
|||
*/ |
|||
private String createByName; |
|||
/** |
|||
* 创建组织sid |
|||
*/ |
|||
private String createOrgSid; |
|||
/** |
|||
* 客户名称 |
|||
*/ |
|||
private String customerName; |
|||
/** |
|||
* 制单部门 |
|||
*/ |
|||
private String deptName; |
|||
/** |
|||
* 制单结束日期 |
|||
*/ |
|||
private String endDate; |
|||
/** |
|||
* 销售姓名(业务员) |
|||
*/ |
|||
private String salesName; |
|||
/** |
|||
* 订单编号 |
|||
*/ |
|||
private String sourceBillNo; |
|||
/** |
|||
* 制单开始日期 |
|||
*/ |
|||
private String startDate; |
|||
/** |
|||
* 使用组织sid |
|||
*/ |
|||
private String useOrgSid; |
|||
/** |
|||
* 仓库名称 |
|||
*/ |
|||
private String warehouseName; |
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.oms.feign.sales.smssalesreturn.SmsSalesReturnFeign; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnService.java <br/> |
|||
* Class: com.yxt.sales.biz.smssalesreturn.SmsSalesReturnService <br/> |
|||
* Description: 销售退货单据 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class SmsSalesReturnService extends MybatisBaseService<SmsSalesReturnMapper, SmsSalesReturn> { |
|||
@Autowired |
|||
private SmsSalesReturnFeign smsSalesReturnFeign; |
|||
|
|||
|
|||
public ResultBean<PagerVo<SmsSalesReturnVo>> listPageVo(PagerQuery<SmsSalesReturnQuery> pq) { |
|||
return smsSalesReturnFeign.listPage(pq); |
|||
} |
|||
|
|||
public ResultBean saveOrUpdateDto(SmsSalesReturnDto dto) { |
|||
return smsSalesReturnFeign.save(dto); |
|||
} |
|||
|
|||
public ResultBean deleteBySids(String[] sids) { |
|||
return smsSalesReturnFeign.delBySids(sids); |
|||
} |
|||
|
|||
public ResultBean<SmsSalesReturnDetailsVo> fetchDetailsVoBySid(String sid) { |
|||
return smsSalesReturnFeign.fetchDetailsBySid(sid); |
|||
} |
|||
} |
@ -0,0 +1,96 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.biz.func.smssalesreturn; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnVo.java <br/> |
|||
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnVo <br/> |
|||
* Description: 销售退货单据 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售退货单据 视图数据对象", description = "销售退货单据 视图数据对象") |
|||
public class SmsSalesReturnVo implements Vo { |
|||
|
|||
/** |
|||
* 总金额 |
|||
*/ |
|||
private String amount; |
|||
/** |
|||
* 单据编号 |
|||
*/ |
|||
private String billNo; |
|||
/** |
|||
* 单据类型value |
|||
*/ |
|||
private String billTypeValue; |
|||
/** |
|||
* 制单人姓名 |
|||
*/ |
|||
private String createByName; |
|||
/** |
|||
* 制单日期 |
|||
*/ |
|||
private String createTime; |
|||
/** |
|||
* 客户名称 |
|||
*/ |
|||
private String customerName; |
|||
/** |
|||
* 制单部门 |
|||
*/ |
|||
private String deptName; |
|||
/** |
|||
* 物流单号 |
|||
*/ |
|||
private String logisticsNum; |
|||
/** |
|||
* 业务员 |
|||
*/ |
|||
private String salesName; |
|||
private String sid; |
|||
/** |
|||
* 订单编号 |
|||
*/ |
|||
private String sourceBillNo; |
|||
/** |
|||
* 仓库名称 |
|||
*/ |
|||
private String warehouseName; |
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
package com.yxt.oms.feign.portal.sysuser; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysUser.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysuser.SysUser <br/> |
|||
* Description: 用户表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "用户表", description = "用户表") |
|||
@TableName("sys_user") |
|||
@Data |
|||
public class SysUser extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("登录名,登录名不能相同") |
|||
private String userName; |
|||
|
|||
@ApiModelProperty("密码(加密或签名后)") |
|||
private String password; |
|||
|
|||
@ApiModelProperty("密码修改时限") |
|||
private String pwdDayslimit; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("最后一次密码修改时间") |
|||
private Date pwdModifyTime; |
|||
|
|||
@ApiModelProperty("在线状态(0为离线、1为在线)") |
|||
private Integer onlineState; |
|||
|
|||
@ApiModelProperty("用户登录时随机生成身份验证字符串") |
|||
private String token; |
|||
|
|||
@ApiModelProperty("是否是管理员:1管理员,2一般用户,0是超级管理员,3尚无单位人员") |
|||
private String isAdmin; |
|||
|
|||
@ApiModelProperty("手机登录唯一标识,手机与用户绑定字段") |
|||
private String appId; |
|||
|
|||
@ApiModelProperty("关联的人员sid") |
|||
private String staffSid; |
|||
|
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
|
|||
@ApiModelProperty("用户类型:1员工、2客户、3供应商") |
|||
private Integer userType; |
|||
|
|||
@ApiModelProperty("用户头像") |
|||
private String headImage; |
|||
@TableField(exist = false) |
|||
private String orgSid; |
|||
private String accountType;////账号类型 1单位管理员,2操作员,0是平台管理员 3非登录账户
|
|||
} |
@ -0,0 +1,82 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.oms.feign.sales.smssalesreturn; |
|||
|
|||
import com.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnDetailsVo; |
|||
import com.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnDto; |
|||
import com.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnQuery; |
|||
import com.yxt.oms.biz.func.smssalesreturn.SmsSalesReturnVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: sms(销售退货) <br/> |
|||
* File: SmsSalesReturnFeign.java <br/> |
|||
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnFeign <br/> |
|||
* Description: 销售退货单据. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-07-19 16:53:05 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "销售退货单据") |
|||
@FeignClient( |
|||
contextId = "sms-SmsSalesReturn", |
|||
name = "sms", |
|||
path = "v1/smssalesreturn" |
|||
) |
|||
public interface SmsSalesReturnFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<SmsSalesReturnVo>> listPage(@RequestBody PagerQuery<SmsSalesReturnQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody SmsSalesReturnDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<SmsSalesReturnDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.yxt.oms.utils; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Fan |
|||
* @description |
|||
* @date 2024/7/19 15:06 |
|||
*/ |
|||
@Data |
|||
public class FileQueryUrl { |
|||
|
|||
private String url; |
|||
} |
Loading…
Reference in new issue