package org.dromara.web.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.domain.ChargeSet;
import org.dromara.web.domain.vo.ChargeItemVo;

import java.util.List;

/**
 * 收费设置业务对象 charge_set
 *
 * @author Lion Li
 * @date 2025-08-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ChargeSet.class, reverseConvertGenerate = false)
public class ChargeSetBo extends BaseEntity {

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

    /**
     * 服务商
     */
    @NotNull(message = "服务商不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long servicer;

    /**
     * 是否开启现金收费
     */
    @NotNull(message = "是否开启现金收费不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long moneyCharge;

    /**
     * 收费模式
     */
    @NotNull(message = "收费模式不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long chargeMode;

    /**
     * 收费方式 1单项收费 2 组合收费
     */
    @NotNull(message = "收费方式 1单项收费 2 组合收费不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long chargeType;

    /**
     * 单项收费配置
     */
    private String oneWayCharge;

    /**
     * 组合收费配置
     */
    private String groupCharge;

    /**
     * 营养配置收费设置
     */
    @NotNull(message = "营养配置收费设置不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long nutritionChargeSet;

    /**
     * 适合处方类型
     */
    @NotBlank(message = "适合处方类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String suitRecipe;

    /**
     * 患者订单配置
     */
    private Long patientOrderSet;

    /**
     * 订单有效期
     */
    private Long orderIndate;

    /**
     * 多模式收费配置
     */
    private String multiModeCharge;

    private List<ChargeItemVo> chargeItemArr;


}
