liujie
2026-09-11 4f6f15b818704079ff2e4e4719b798f48d68a335
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
package com.tourguide.modules.operation.dto;
 
import com.tourguide.modules.operation.entity.ScenicPricing;
import java.math.BigDecimal;
 
/** 单类景区讲解价格配置响应。 */
public class ScenicPriceConfigResponse {
    private Integer durationMinutes;
    private Integer minParticipants;
    private Integer maxParticipants;
    private BigDecimal originalPrice;
    private BigDecimal discountPrice;
 
    public static ScenicPriceConfigResponse from(ScenicPricing pricing) {
        ScenicPriceConfigResponse response = new ScenicPriceConfigResponse();
        response.durationMinutes = pricing.getDurationMinutes();
        response.minParticipants = pricing.getMinParticipants();
        response.maxParticipants = pricing.getMaxParticipants();
        response.originalPrice = pricing.getOriginalPrice();
        response.discountPrice = pricing.getDiscountPrice();
        return response;
    }
 
    public Integer getDurationMinutes() { return durationMinutes; }
    public Integer getMinParticipants() { return minParticipants; }
    public Integer getMaxParticipants() { return maxParticipants; }
    public BigDecimal getOriginalPrice() { return originalPrice; }
    public BigDecimal getDiscountPrice() { return discountPrice; }
}