tuqin
2026-11-03 9494075e6d9d2a4b2b884b4ed740dee0c434734c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package cn.iocoder.yudao.module.trade.dal.dataobject.foreign;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
 
/**
 * 外贸订单明细 DO
 *
 * @author mom
 */
@TableName("trade_foreign_order_item")
@KeySequence("trade_foreign_order_item_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TradeForeignOrderItemDO extends BaseDO {
 
    @TableId
    private Long id;
    /** 订单编号 */
    private Long orderId;
    /** MDM 物料编号 */
    private Long itemId;
    /** 计量单位编号 */
    private Long itemUnitId;
    /** 外币单价 */
    private BigDecimal foreignPrice;
    /** 汇率 */
    private BigDecimal exchangeRate;
    /** 人民币单价(= 外币单价 × 汇率) */
    private BigDecimal itemPrice;
    /** 数量 */
    private BigDecimal count;
    /** 外币小计 */
    private BigDecimal totalForeignPrice;
    /** 人民币小计 */
    private BigDecimal totalPrice;
    /** 批次号(溯源预留) */
    private String batchCode;
    /** 已出库数量 */
    private BigDecimal outCount;
    /** 备注 */
    private String remark;
 
}