|
|
@@ -15,7 +15,8 @@ import lombok.Setter;
|
|
|
@Setter
|
|
|
@SearchBean(tables = "goods_don g left join goods_don_category_relate gcr on gcr.goods_id = g.id" +
|
|
|
" left join goods_don_category gc on gc.id = gcr.category" +
|
|
|
- " left join user_plat_distribute_rate upr on upr.goods_id = g.id :distribute_id:",
|
|
|
+ " left join user_plat_distribute_rate upr on upr.goods_id = g.id :distribute_id:" +
|
|
|
+ " left join business_distribute_default_rate_config bddr on bddr.goods_id = g.id",
|
|
|
where = "g.type = 1 and g.deleted is true and g.status is true and g.is_distribute is true")
|
|
|
public class UserDistributeRateView {
|
|
|
|
|
|
@@ -28,6 +29,6 @@ public class UserDistributeRateView {
|
|
|
@DbField("g.title")
|
|
|
private String title;
|
|
|
|
|
|
- @DbField("upr.rate")
|
|
|
+ @DbField("ifnull(upr.rate,bddr.rate)")
|
|
|
private Integer rate;
|
|
|
}
|