22 changed files with 979 additions and 13 deletions
@ -0,0 +1,176 @@
|
||||
package com.logpm.oldproject.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
@TableName("ht_order_detail") |
||||
@ApiModel(value = "Order对象", description = "订单信息") |
||||
public class OrderDetailEntity { |
||||
|
||||
@TableId( |
||||
value = "id", |
||||
type = IdType.AUTO |
||||
) |
||||
private Integer id; |
||||
|
||||
@ApiModelProperty(value = "仓库id") |
||||
private Integer warehouseId; |
||||
|
||||
@ApiModelProperty(value = "包条码拆分") |
||||
private Integer isChildren; |
||||
|
||||
@ApiModelProperty(value = "") |
||||
private Integer test; |
||||
|
||||
@ApiModelProperty(value = "区域") |
||||
private String area; |
||||
|
||||
@ApiModelProperty(value = "来源") |
||||
private String source; |
||||
|
||||
@ApiModelProperty(value = "干仓配") |
||||
private Integer isOpai; |
||||
|
||||
@ApiModelProperty(value = "订单号") |
||||
private String number; |
||||
|
||||
@ApiModelProperty(value = "订单自编号") |
||||
private String detailNumber; |
||||
|
||||
@ApiModelProperty(value = "包条码") |
||||
@TableField("unitNo") |
||||
private String unitNo; |
||||
|
||||
@ApiModelProperty(value = "车次号") |
||||
@TableField("mctsTruck") |
||||
private String mctsTruck; |
||||
|
||||
@ApiModelProperty(value = "货物名称") |
||||
@TableField("title") |
||||
private String title; |
||||
|
||||
@ApiModelProperty(value = "数量") |
||||
@TableField("num") |
||||
private String num; |
||||
|
||||
@ApiModelProperty(value = "二级品类名称") |
||||
@TableField("secondPackName") |
||||
private String secondPackName; |
||||
|
||||
@ApiModelProperty(value = "二级品类") |
||||
@TableField("secondPackCode") |
||||
private String secondPackCode; |
||||
|
||||
@ApiModelProperty(value = "三级品类名称") |
||||
@TableField("thirdPackName") |
||||
private String thirdPackName; |
||||
|
||||
@ApiModelProperty(value = "三级品类") |
||||
@TableField("thirdPackCode") |
||||
private String thirdPackCode; |
||||
|
||||
@ApiModelProperty(value = "扫码人") |
||||
private Integer administratorsId; |
||||
|
||||
@ApiModelProperty(value = "状态") |
||||
private Integer status; |
||||
|
||||
@ApiModelProperty(value = "创建时间") |
||||
private Date createTime; |
||||
|
||||
@ApiModelProperty(value = "修改时间") |
||||
private Date updateTime; |
||||
|
||||
@ApiModelProperty(value = "删除时间") |
||||
private Integer deleteTime; |
||||
|
||||
@ApiModelProperty(value = "长") |
||||
@TableField("long") |
||||
private Double chang; |
||||
|
||||
@ApiModelProperty(value = "宽") |
||||
@TableField("wide") |
||||
private Double wide; |
||||
|
||||
@ApiModelProperty(value = "高") |
||||
@TableField("high") |
||||
private Double high; |
||||
|
||||
@ApiModelProperty(value = "体积") |
||||
@TableField("volume") |
||||
private Double volume; |
||||
|
||||
@ApiModelProperty(value = "单位") |
||||
@TableField("unit") |
||||
private String unit; |
||||
|
||||
@ApiModelProperty(value = "单价") |
||||
@TableField("price") |
||||
private Double price; |
||||
|
||||
@ApiModelProperty(value = "上架状态:1,上架,0,未上架") |
||||
private Integer onShelfType; |
||||
|
||||
@ApiModelProperty(value = "货位ID") |
||||
private Integer locationId; |
||||
|
||||
@ApiModelProperty(value = "") |
||||
private String locationInfo; |
||||
|
||||
@ApiModelProperty(value = "") |
||||
private Integer test1; |
||||
|
||||
@ApiModelProperty(value = "货位ID") |
||||
private Integer locationIds; |
||||
|
||||
@ApiModelProperty(value = "") |
||||
private String locationInfos; |
||||
|
||||
@ApiModelProperty(value = "拆分人ID") |
||||
private Integer splitPerson; |
||||
|
||||
@ApiModelProperty(value = "拆分人") |
||||
private String splitPersonName; |
||||
|
||||
@ApiModelProperty(value = "其他备注信息") |
||||
private String otherMsg; |
||||
|
||||
@ApiModelProperty(value = "所在仓库id") |
||||
private Integer nowWarehouseId; |
||||
|
||||
@ApiModelProperty(value = "车类型") |
||||
private Integer carsType; |
||||
|
||||
@ApiModelProperty(value = "车次号") |
||||
private String startCarsNo; |
||||
|
||||
@ApiModelProperty(value = "advance_id关联") |
||||
private Integer advanceId; |
||||
|
||||
@ApiModelProperty(value = "运单id") |
||||
private Integer waybillId; |
||||
|
||||
@ApiModelProperty(value = "运单号") |
||||
private String waybillNo; |
||||
|
||||
@ApiModelProperty(value = "是否签收:1否,2是") |
||||
private Integer signState; |
||||
|
||||
@ApiModelProperty(value = "签收仓库") |
||||
private Integer signWarehouseId; |
||||
|
||||
@ApiModelProperty(value = "签收时间") |
||||
private Date signTime; |
||||
|
||||
@ApiModelProperty(value = "") |
||||
private Integer oldId; |
||||
|
||||
} |
@ -0,0 +1,348 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.oldproject.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 运单表; |
||||
* @author : http://www.chiner.pro
|
||||
* @date : 2023-7-6 |
||||
*/ |
||||
@ApiModel(value = "运单表",description = "") |
||||
@Data |
||||
@TableName("ht_order_detail") |
||||
public class WayBillEntity implements Serializable,Cloneable{ |
||||
/** ID */ |
||||
@TableId( |
||||
value = "id", |
||||
type = IdType.AUTO |
||||
) |
||||
private Integer id; |
||||
/** 车次号 */ |
||||
@ApiModelProperty(name = "车次号",notes = "") |
||||
private String carNo ; |
||||
/** 运单号 */ |
||||
@ApiModelProperty(name = "运单号",notes = "") |
||||
private String waybillNo ; |
||||
/** 1=干仓配,2=非干仓配【用于价格计算】 */ |
||||
@ApiModelProperty(name = "1=干仓配,2=非干仓配【用于价格计算】",notes = "") |
||||
private Integer isOpai ; |
||||
/** 品牌id */ |
||||
@ApiModelProperty(name = "品牌id",notes = "") |
||||
private String brandId ; |
||||
/** 省 */ |
||||
@ApiModelProperty(name = "省",notes = "") |
||||
private Integer provinceId ; |
||||
/** 市 */ |
||||
@ApiModelProperty(name = "市",notes = "") |
||||
private Integer cityId ; |
||||
/** 区 */ |
||||
@ApiModelProperty(name = "区",notes = "") |
||||
private Integer areaId ; |
||||
/** 省 */ |
||||
@ApiModelProperty(name = "省",notes = "") |
||||
private String province ; |
||||
/** 市 */ |
||||
@ApiModelProperty(name = "市",notes = "") |
||||
private String city ; |
||||
/** 区 */ |
||||
@ApiModelProperty(name = "区",notes = "") |
||||
private String area ; |
||||
/** 品牌 */ |
||||
@ApiModelProperty(name = "品牌",notes = "") |
||||
private String brand ; |
||||
/** 二级品类 */ |
||||
@ApiModelProperty(name = "二级品类",notes = "") |
||||
private String firstName ; |
||||
/** 子订单:0=否,1=是 */ |
||||
@ApiModelProperty(name = "子订单:0=否,1=是",notes = "") |
||||
private Integer isChild ; |
||||
/** 拆单节点 */ |
||||
@ApiModelProperty(name = "拆单节点",notes = "") |
||||
private Integer childNode ; |
||||
/** 发站id */ |
||||
@ApiModelProperty(name = "发站id",notes = "") |
||||
private Integer startSiteId ; |
||||
/** 发站 */ |
||||
@ApiModelProperty(name = "发站",notes = "") |
||||
private String startSite ; |
||||
/** 到站id */ |
||||
@ApiModelProperty(name = "到站id",notes = "") |
||||
private Integer arriveSiteId ; |
||||
/** 到站 */ |
||||
@ApiModelProperty(name = "到站",notes = "") |
||||
private String arriveSite ; |
||||
/** 网站id */ |
||||
@ApiModelProperty(name = "网站id",notes = "") |
||||
private Integer warehouseId ; |
||||
/** 网点 */ |
||||
@ApiModelProperty(name = "网点",notes = "") |
||||
private String warehouseName ; |
||||
/** 类型:1=标准开单,2=零担开单,3=整车开单 */ |
||||
@ApiModelProperty(name = "类型:1=标准开单,2=零担开单,3=整车开单",notes = "") |
||||
private Integer type ; |
||||
/** 货号 */ |
||||
@ApiModelProperty(name = "货号",notes = "") |
||||
private String articleNumber ; |
||||
/** 委托单号 */ |
||||
@ApiModelProperty(name = "委托单号",notes = "") |
||||
private String orderNo ; |
||||
/** 发货方id */ |
||||
@ApiModelProperty(name = "发货方id",notes = "") |
||||
private Integer sendId ; |
||||
/** 发货单位 */ |
||||
@ApiModelProperty(name = "发货单位",notes = "") |
||||
private String sendCompany ; |
||||
/** 发货人 */ |
||||
@ApiModelProperty(name = "发货人",notes = "") |
||||
private String sendPerson ; |
||||
/** 发货方手机号 */ |
||||
@ApiModelProperty(name = "发货方手机号",notes = "") |
||||
private String sendPhone ; |
||||
/** 发货方电话 */ |
||||
@ApiModelProperty(name = "发货方电话",notes = "") |
||||
private String sendMobile ; |
||||
/** 发货方地址 */ |
||||
@ApiModelProperty(name = "发货方地址",notes = "") |
||||
private String sendAddress ; |
||||
/** 收货方id */ |
||||
@ApiModelProperty(name = "收货方id",notes = "") |
||||
private Integer takeId ; |
||||
/** 收货单位 */ |
||||
@ApiModelProperty(name = "收货单位",notes = "") |
||||
private String takeCompany ; |
||||
/** 收货人 */ |
||||
@ApiModelProperty(name = "收货人",notes = "") |
||||
private String takePerson ; |
||||
/** 收货方手机号 */ |
||||
@ApiModelProperty(name = "收货方手机号",notes = "") |
||||
private String takePhone ; |
||||
/** 收货方电话 */ |
||||
@ApiModelProperty(name = "收货方电话",notes = "") |
||||
private String takeMobile ; |
||||
/** 收货方地址 */ |
||||
@ApiModelProperty(name = "收货方地址",notes = "") |
||||
private String takeAddress ; |
||||
/** 到货-开始时间 */ |
||||
@ApiModelProperty(name = "到货-开始时间",notes = "") |
||||
private Date takeStartTime ; |
||||
/** 到货-结束时间 */ |
||||
@ApiModelProperty(name = "到货-结束时间",notes = "") |
||||
private Date takeEndTime ; |
||||
/** 合计行数量 */ |
||||
@ApiModelProperty(name = "合计行数量",notes = "") |
||||
private Integer total ; |
||||
/** 货物名称 */ |
||||
@ApiModelProperty(name = "货物名称",notes = "") |
||||
private String packname ; |
||||
/** 总件数 */ |
||||
@ApiModelProperty(name = "总件数",notes = "") |
||||
private Integer number ; |
||||
/** 总重量 */ |
||||
@ApiModelProperty(name = "总重量",notes = "") |
||||
private BigDecimal weight ; |
||||
/** 总体积 */ |
||||
@ApiModelProperty(name = "总体积",notes = "") |
||||
private BigDecimal volume ; |
||||
/** 物品合计费用 */ |
||||
@ApiModelProperty(name = "物品合计费用",notes = "") |
||||
private BigDecimal totalSmallPrice ; |
||||
/** 总费用 */ |
||||
@ApiModelProperty(name = "总费用",notes = "") |
||||
private BigDecimal totalPrice ; |
||||
/** 运费 */ |
||||
@ApiModelProperty(name = "运费",notes = "") |
||||
private BigDecimal freight ; |
||||
/** 送货费 */ |
||||
@ApiModelProperty(name = "送货费",notes = "") |
||||
private BigDecimal deliveryCost ; |
||||
/** 提货费 */ |
||||
@ApiModelProperty(name = "提货费",notes = "") |
||||
private BigDecimal takeCost ; |
||||
/** 装卸费 */ |
||||
@ApiModelProperty(name = "装卸费",notes = "") |
||||
private BigDecimal pretendCost ; |
||||
/** 申明价值 */ |
||||
@ApiModelProperty(name = "申明价值",notes = "") |
||||
private BigDecimal value ; |
||||
/** 保险率 */ |
||||
@ApiModelProperty(name = "保险率",notes = "") |
||||
private BigDecimal lnsuranceRate ; |
||||
/** 保价费 */ |
||||
@ApiModelProperty(name = "保价费",notes = "") |
||||
private BigDecimal priceProtectionFee ; |
||||
/** 仓储费 */ |
||||
@ApiModelProperty(name = "仓储费",notes = "") |
||||
private BigDecimal warehousingFee ; |
||||
/** 仓库管理费 */ |
||||
@ApiModelProperty(name = "仓库管理费",notes = "") |
||||
private BigDecimal warehouseManagementFee ; |
||||
/** 支付方式:1=现金,2=银行卡,3=微信,4=支付宝,5=支票,6=账本 */ |
||||
@ApiModelProperty(name = "支付方式:1=现金,2=银行卡,3=微信,4=支付宝,5=支票,6=账本",notes = "") |
||||
private Integer payType ; |
||||
/** 付款方式:1=现付,2=到付,3=月结,4=回付,5=免费,6=多笔付 */ |
||||
@ApiModelProperty(name = "付款方式:1=现付,2=到付,3=月结,4=回付,5=免费,6=多笔付",notes = "") |
||||
private Integer paymentMethod ; |
||||
/** 现付 */ |
||||
@ApiModelProperty(name = "现付",notes = "") |
||||
private BigDecimal xPay ; |
||||
/** 到付 */ |
||||
@ApiModelProperty(name = "到付",notes = "") |
||||
private BigDecimal dPay ; |
||||
/** 月付 */ |
||||
@ApiModelProperty(name = "月付",notes = "") |
||||
private BigDecimal yPay ; |
||||
/** 回付 */ |
||||
@ApiModelProperty(name = "回付",notes = "") |
||||
private BigDecimal hPay ; |
||||
/** 代收货款 */ |
||||
@ApiModelProperty(name = "代收货款",notes = "") |
||||
private BigDecimal replacePrice ; |
||||
/** 经办人 */ |
||||
@ApiModelProperty(name = "经办人",notes = "") |
||||
private String agent ; |
||||
/** 经办人 */ |
||||
@ApiModelProperty(name = "经办人",notes = "") |
||||
private Integer agentId ; |
||||
/** 操作人id */ |
||||
@ApiModelProperty(name = "操作人id",notes = "") |
||||
private Integer administratorsId ; |
||||
/** 操作人 */ |
||||
@ApiModelProperty(name = "操作人",notes = "") |
||||
private String administratorsName ; |
||||
/** 制单时间 */ |
||||
@ApiModelProperty(name = "制单时间",notes = "") |
||||
private Date preparationTime ; |
||||
/** 回扣 */ |
||||
@ApiModelProperty(name = "回扣",notes = "") |
||||
private BigDecimal rebate ; |
||||
/** 其他费用 */ |
||||
@ApiModelProperty(name = "其他费用",notes = "") |
||||
private BigDecimal otherFee ; |
||||
/** 三方操作费 */ |
||||
@ApiModelProperty(name = "三方操作费",notes = "") |
||||
private BigDecimal threeHandleFee ; |
||||
/** 送货方式:1=自提,2=送货,3=送货上门,4=送货上楼(有电梯),5=送货上楼(无电梯),6=送货卸货,7=送货安装,8=专车直送,9=送货不上楼 */ |
||||
@ApiModelProperty(name = "送货方式:1=自提,2=送货,3=送货上门,4=送货上楼(有电梯),5=送货上楼(无电梯),6=送货卸货,7=送货安装,8=专车直送,9=送货不上楼",notes = "") |
||||
private Integer sendType ; |
||||
/** 通知类型:1=控货,2=提货 */ |
||||
@ApiModelProperty(name = "通知类型:1=控货,2=提货",notes = "") |
||||
private Integer sendTiny ; |
||||
/** 紧急度:1=正常,2=急,3=加急,4=特急 */ |
||||
@ApiModelProperty(name = "紧急度:1=正常,2=急,3=加急,4=特急",notes = "") |
||||
private Integer urgency ; |
||||
/** 回单数 */ |
||||
@ApiModelProperty(name = "回单数",notes = "") |
||||
private Integer receiptNum ; |
||||
/** 回单要求 */ |
||||
@ApiModelProperty(name = "回单要求",notes = "") |
||||
private String receiptAsk ; |
||||
/** 运输方式:1=公路快运,2=海运,3=卡车航班,4=空运,5=普通汽班,6=汽运限时,7=铁路,8=快递 */ |
||||
@ApiModelProperty(name = "运输方式:1=公路快运,2=海运,3=卡车航班,4=空运,5=普通汽班,6=汽运限时,7=铁路,8=快递",notes = "") |
||||
private Integer shippingType ; |
||||
/** 备注 */ |
||||
@ApiModelProperty(name = "备注",notes = "") |
||||
private String msg ; |
||||
/** 单子类型:1=无运费,2=运单有运,3=测试 */ |
||||
@ApiModelProperty(name = "单子类型:1=无运费,2=运单有运,3=测试",notes = "") |
||||
private Integer noType ; |
||||
/** 运单标识: 1=改,2=审,3=废 */ |
||||
@ApiModelProperty(name = "运单标识: 1=改,2=审,3=废",notes = "") |
||||
private String orderFlat ; |
||||
/** 状态网点id */ |
||||
@ApiModelProperty(name = "状态网点id",notes = "") |
||||
private Integer statusSiteId ; |
||||
/** 所有状态网点 */ |
||||
@ApiModelProperty(name = "所有状态网点",notes = "") |
||||
private String allStatusId ; |
||||
/** 状态网点 */ |
||||
@ApiModelProperty(name = "状态网点",notes = "") |
||||
private String statusSite ; |
||||
/** 状态:-1=作废,0=已开单,1=已入库,2=短驳中,3=已装车,4=已发车,5=已到达,6=中转中,7=已接收,8=外部中转出库,9=已签收,10=已配送,11=部分签收,12=部分配送,13=外围配送,14=外围配送发车,15=外围配送签收,16=部分装车,17=部分入库,18=部分到达,19-部分中转出库,20=中转到达,21=部分中转到达 */ |
||||
@ApiModelProperty(name = "状态:-1=作废,0=已开单,1=已入库,2=短驳中,3=已装车,4=已发车,5=已到达,6=中转中,7=已接收,8=外部中转出库,9=已签收,10=已配送,11=部分签收,12=部分配送,13=外围配送,14=外围配送发车,15=外围配送签收,16=部分装车,17=部分入库,18=部分到达,19-部分中转出库,20=中转到达,21=部分中转到达",notes = "") |
||||
private Integer status ; |
||||
/** 配载批次号【记录最新的配载车次号信息】 */ |
||||
@ApiModelProperty(name = "配载批次号【记录最新的配载车次号信息】",notes = "") |
||||
private String startCarsNo ; |
||||
/** 创建时间 */ |
||||
@ApiModelProperty(name = "创建时间",notes = "") |
||||
private Date createTime ; |
||||
/** 修改时间 */ |
||||
@ApiModelProperty(name = "修改时间",notes = "") |
||||
private Date updateTime ; |
||||
/** 删除时间 */ |
||||
@ApiModelProperty(name = "删除时间",notes = "") |
||||
private Integer deleteTime ; |
||||
/** 审核状态:1=待审核,2=已审核 */ |
||||
@ApiModelProperty(name = "审核状态:1=待审核,2=已审核",notes = "") |
||||
private Integer verifyStatus ; |
||||
/** 后端开单:1=后端,2=pda */ |
||||
@ApiModelProperty(name = "后端开单:1=后端,2=pda",notes = "") |
||||
private Integer isAdmin ; |
||||
/** 财务状态:1=待结算,2=已结算 */ |
||||
@ApiModelProperty(name = "财务状态:1=待结算,2=已结算",notes = "") |
||||
private Integer financialStatus ; |
||||
/** 结算时间 */ |
||||
@ApiModelProperty(name = "结算时间",notes = "") |
||||
private Date financialTime ; |
||||
/** 结算人 */ |
||||
@ApiModelProperty(name = "结算人",notes = "") |
||||
private String financialPersonName ; |
||||
/** 结算id */ |
||||
@ApiModelProperty(name = "结算id",notes = "") |
||||
private Integer settlementDealId ; |
||||
/** 订单总数 */ |
||||
@ApiModelProperty(name = "订单总数",notes = "") |
||||
private Integer orderNum ; |
||||
/** 配载数量 */ |
||||
@ApiModelProperty(name = "配载数量",notes = "") |
||||
private Integer wayOrderCount ; |
||||
/** 送货时间 */ |
||||
@ApiModelProperty(name = "送货时间",notes = "") |
||||
private Date distributionTime ; |
||||
/** 签收时间 */ |
||||
@ApiModelProperty(name = "签收时间",notes = "") |
||||
private Date signTime ; |
||||
/** */ |
||||
@ApiModelProperty(name = "",notes = "") |
||||
private Integer oldId ; |
||||
/** 冻结:1=正常,2=冻结 */ |
||||
@ApiModelProperty(name = "冻结:1=正常,2=冻结",notes = "") |
||||
private Integer freeze ; |
||||
/** 曼好家回传订单号 */ |
||||
@ApiModelProperty(name = "曼好家回传订单号",notes = "") |
||||
private String mhjOrderNo ; |
||||
/** 送货司机[记录最新的送货司机信息] */ |
||||
@ApiModelProperty(name = "送货司机[记录最新的送货司机信息]",notes = "") |
||||
private String sendDriver ; |
||||
/** 提货状态:0=未提货,1=部分提货,2=提货完成 */ |
||||
@ApiModelProperty(name = "提货状态:0=未提货,1=部分提货,2=提货完成",notes = "") |
||||
private Integer pickUpStatus ; |
||||
/** 成本确认:1=是,2=否 */ |
||||
@ApiModelProperty(name = "成本确认:1=是,2=否",notes = "") |
||||
private Integer costAllocationType ; |
||||
} |
@ -0,0 +1,39 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.oldproject.feign; |
||||
|
||||
import com.logpm.oldproject.entity.OrderDetailEntity; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
/** |
||||
* 订单详情 Feign接口类 |
||||
* |
||||
* @author zhy |
||||
* @since 2023-06-24 |
||||
*/ |
||||
@FeignClient( |
||||
value = "logpm-old-project" |
||||
) |
||||
public interface IOrderDetailClient { |
||||
|
||||
String API_PREFIX = "/client"; |
||||
|
||||
@GetMapping(API_PREFIX + "/findByUnitNo") |
||||
OrderDetailEntity findByUnitNo(@RequestParam String unitNo); |
||||
} |
@ -0,0 +1,40 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.oldproject.feign; |
||||
|
||||
import com.logpm.oldproject.entity.WayBillEntity; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
/** |
||||
* 运单详情 Feign接口类 |
||||
* |
||||
* @author zhy |
||||
* @since 2023-06-24 |
||||
*/ |
||||
@FeignClient( |
||||
value = "logpm-old-project" |
||||
) |
||||
public interface IWayBillClient { |
||||
|
||||
String API_PREFIX = "/client"; |
||||
|
||||
@GetMapping(API_PREFIX + "/getByWaybillNo") |
||||
WayBillEntity getByWaybillNo(@RequestParam String waybillNo); |
||||
|
||||
} |
@ -0,0 +1,44 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.oldproject.feign; |
||||
|
||||
import com.logpm.oldproject.entity.OrderDetailEntity; |
||||
import com.logpm.oldproject.service.IOrderDetailService; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* order Feign实现类 |
||||
* |
||||
* @author zhy |
||||
* @since 2023-06-24 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class OrderDetailClient implements IOrderDetailClient { |
||||
|
||||
private final IOrderDetailService orderDetailService; |
||||
|
||||
@Override |
||||
@GetMapping(API_PREFIX + "/findByUnitNo") |
||||
public OrderDetailEntity findByUnitNo(String unitNo) { |
||||
return orderDetailService.findByUnitNo(unitNo); |
||||
} |
||||
} |
@ -0,0 +1,43 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.oldproject.feign; |
||||
|
||||
import com.logpm.oldproject.entity.WayBillEntity; |
||||
import com.logpm.oldproject.service.IWayBillService; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 运单详情 Feign接口类 |
||||
* |
||||
* @author zhy |
||||
* @since 2023-06-24 |
||||
*/ |
||||
|
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class WayBillClient implements IWayBillClient { |
||||
|
||||
private final IWayBillService wayBillService; |
||||
|
||||
@Override |
||||
public WayBillEntity getByWaybillNo(String waybillNo) { |
||||
return wayBillService.getByWaybillNo(waybillNo); |
||||
} |
||||
} |
@ -0,0 +1,31 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.oldproject.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.oldproject.entity.OrderDetailEntity; |
||||
|
||||
/** |
||||
* 订单 Mapper 接口 |
||||
* |
||||
* @author zhy |
||||
* @since 2023-06-24 |
||||
*/ |
||||
public interface OrderDetailMapper extends BaseMapper<OrderDetailEntity> { |
||||
|
||||
|
||||
} |
@ -0,0 +1,7 @@
|
||||
<?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.logpm.oldproject.mapper.OrderDetailMapper"> |
||||
|
||||
|
||||
|
||||
</mapper> |
@ -0,0 +1,10 @@
|
||||
package com.logpm.oldproject.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.oldproject.entity.WayBillEntity; |
||||
|
||||
public interface WayBillMapper extends BaseMapper<WayBillEntity> { |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.logpm.oldproject.service; |
||||
|
||||
import com.logpm.oldproject.entity.OrderDetailEntity; |
||||
|
||||
public interface IOrderDetailService { |
||||
|
||||
OrderDetailEntity findByUnitNo(String unitNo); |
||||
} |
@ -0,0 +1,10 @@
|
||||
package com.logpm.oldproject.service; |
||||
|
||||
|
||||
import com.logpm.oldproject.entity.WayBillEntity; |
||||
|
||||
public interface IWayBillService { |
||||
|
||||
|
||||
WayBillEntity getByWaybillNo(String waybillNo); |
||||
} |
@ -0,0 +1,22 @@
|
||||
package com.logpm.oldproject.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.logpm.oldproject.entity.OrderDetailEntity; |
||||
import com.logpm.oldproject.mapper.OrderDetailMapper; |
||||
import com.logpm.oldproject.service.IOrderDetailService; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Service |
||||
@AllArgsConstructor |
||||
public class OrderDetailServiceImpl implements IOrderDetailService { |
||||
|
||||
private final OrderDetailMapper orderDetailMapper; |
||||
|
||||
@Override |
||||
public OrderDetailEntity findByUnitNo(String unitNo) { |
||||
QueryWrapper<OrderDetailEntity> queryWrapper = new QueryWrapper<>(); |
||||
queryWrapper.eq("unitNo",unitNo); |
||||
return orderDetailMapper.selectOne(queryWrapper); |
||||
} |
||||
} |
@ -0,0 +1,26 @@
|
||||
package com.logpm.oldproject.service.impl; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.logpm.oldproject.entity.WayBillEntity; |
||||
import com.logpm.oldproject.mapper.WayBillMapper; |
||||
import com.logpm.oldproject.service.IWayBillService; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.log4j.Log4j2; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Log4j2 |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class WayBillServiceImpl implements IWayBillService { |
||||
|
||||
private final WayBillMapper wayBillMapper; |
||||
|
||||
@Override |
||||
public WayBillEntity getByWaybillNo(String waybillNo) { |
||||
QueryWrapper<WayBillEntity> queryWrapper = new QueryWrapper<>(); |
||||
queryWrapper.eq("waybill_no",waybillNo); |
||||
|
||||
return wayBillMapper.selectOne(queryWrapper); |
||||
} |
||||
} |
Loading…
Reference in new issue