10 changed files with 358 additions and 9 deletions
@ -0,0 +1,142 @@ |
|||
package com.qs.serve.modules.oms.entity.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 报价订单参数 |
|||
* @Author YenHex |
|||
* @Date 2021/6/10 |
|||
* @Version: 1.0 |
|||
**/ |
|||
@Getter |
|||
@Setter |
|||
public class ErpOfferOrderParam { |
|||
|
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
@NotNull(message = "单据号不能为空") |
|||
private String code; |
|||
|
|||
/** |
|||
* 销路通订单ID |
|||
*/ |
|||
@NotNull(message = "销路通订单ID不能为空") |
|||
private String empOrderId; |
|||
|
|||
/** |
|||
* 日期 |
|||
*/ |
|||
private Date date; |
|||
|
|||
/** |
|||
* 销售类型 |
|||
*/ |
|||
@NotNull(message = "销售类型不能为空") |
|||
private String saleTypeCode; |
|||
|
|||
/** |
|||
* 客户编码 |
|||
*/ |
|||
@NotNull(message = "客户编码不能为空") |
|||
private String cusCode; |
|||
|
|||
/** |
|||
* 部门编号 |
|||
*/ |
|||
@NotNull(message = "部门编号不能为空") |
|||
private String depCode; |
|||
|
|||
|
|||
/** |
|||
* 税率 |
|||
*/ |
|||
private BigDecimal taxRate; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark2; |
|||
|
|||
/** |
|||
* 客户帐余 |
|||
*/ |
|||
private BigDecimal cusPrice; |
|||
|
|||
/** |
|||
* 未完成的发货单数量 |
|||
*/ |
|||
private Integer unfinishedOrderCount; |
|||
|
|||
/** |
|||
* 存货商品列表 |
|||
*/ |
|||
private List<InventoryItem> inventoryItemList; |
|||
|
|||
private String cusName; |
|||
|
|||
private String makerName; |
|||
|
|||
/** |
|||
* 存货商品 |
|||
*/ |
|||
@Getter |
|||
@Setter |
|||
public static class InventoryItem{ |
|||
|
|||
/** |
|||
* 销路通明细ID(不用传) |
|||
*/ |
|||
private String empItemId; |
|||
|
|||
/** |
|||
* 销路通数量(不用传) |
|||
*/ |
|||
private Long empQty; |
|||
|
|||
/** |
|||
* 存货编码 |
|||
*/ |
|||
@JsonProperty("InvCode") |
|||
private String invCode; |
|||
|
|||
/** |
|||
* 报价 m |
|||
* |
|||
*/ |
|||
private BigDecimal offerPrice; |
|||
|
|||
/** |
|||
* 数量 |
|||
*/ |
|||
private Long quantity; |
|||
|
|||
/** |
|||
* 含税单价 |
|||
*/ |
|||
private BigDecimal hasRatePrice; |
|||
|
|||
/** |
|||
* 价税合计 |
|||
*/ |
|||
private BigDecimal hasRateSumPrice; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.qs.serve.modules.oms.entity.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2023/10/7 |
|||
*/ |
|||
@Data |
|||
public class OmsSpuToSkuKey { |
|||
|
|||
private Long spuId; |
|||
|
|||
private Long skuId; |
|||
|
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.qs.serve.modules.sale.controller.my; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.AuthContextUtils; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import com.qs.serve.common.util.StringUtils; |
|||
import com.qs.serve.modules.sale.entity.SalePlan; |
|||
import com.qs.serve.modules.sale.entity.SalePlanGoods; |
|||
import com.qs.serve.modules.sale.entity.bo.SalePlanBo; |
|||
import com.qs.serve.modules.sale.service.SalePlanGoodsService; |
|||
import com.qs.serve.modules.sale.service.SalePlanService; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 销售 销售计划 |
|||
* @author YenHex |
|||
* @since 2023-09-20 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("my/sale/plan") |
|||
public class SalePlanMyController { |
|||
|
|||
private final SalePlanService salePlanService; |
|||
private final SalePlanGoodsService salePlanGoodsService; |
|||
|
|||
|
|||
/** |
|||
* 翻页 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
public R<PageVo<SalePlan>> getPage(SalePlan param){ |
|||
LambdaQueryWrapper<SalePlan> lqw = new LambdaQueryWrapper<>(param); |
|||
lqw.eq(SalePlan::getUserId, AuthContextUtils.getSysUserId()); |
|||
PageUtil.startPage(); |
|||
List<SalePlan> list = salePlanService.list(lqw); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
} |
|||
|
Loading…
Reference in new issue