...
|
...
|
@@ -4,22 +4,23 @@ import com.yohoufo.order.utils.BeanTool; |
|
|
import lombok.Data;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
@Data
|
|
|
public class BuyerBidConfig {
|
|
|
|
|
|
//求购价配置
|
|
|
private BidAndSuggestConfig basConfig;
|
|
|
private BidAndSuggestConfig basConfig = new BidAndSuggestConfig();
|
|
|
|
|
|
//定金配置
|
|
|
private DepositConfig dConfig;
|
|
|
private DepositConfig dConfig = new DepositConfig();
|
|
|
|
|
|
public static BuyerBidConfig convert(String json) {
|
|
|
if (StringUtils.isEmpty(json)) {
|
|
|
return new BuyerBidConfig();
|
|
|
} else {
|
|
|
BuyerBidConfig config = BeanTool.string2Value(json, BuyerBidConfig.class);
|
|
|
return config;
|
|
|
BuyerBidConfig config = BeanTool.string2Value(json, BuyerBidConfig.class);
|
|
|
if (Objects.isNull(config)) {
|
|
|
config = new BuyerBidConfig();
|
|
|
}
|
|
|
return config;
|
|
|
}
|
|
|
|
|
|
@Data
|
...
|
...
|
|