package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.work.domain.TpOrderCd;

import java.math.BigDecimal;

/**
 * 拆单记录业务对象 tp_order_cd
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpOrderCd.class, reverseConvertGenerate = false)
public class TpOrderCdBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属订单
     */
    @NotNull(message = "所属订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long oid;

    /**
     * 订单价格
     */
    @NotNull(message = "订单价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 下单时间
     */
    @NotNull(message = "下单时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addTime;

    /**
     * 操作人
     */
    @NotNull(message = "操作人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addUser;


}
