Commit 4e21347a by 郑云飞

init

parent cb695bf3
......@@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -74,7 +75,9 @@ public class GroupBuyAppController {
rmap.put("pageinfo", pinfo);
rmap.put("items", list);
rmap.put("joinNumber", 0);
rmap.put("avatarList", "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLjFK35Wvia9lJKHoXfQuHhk0qZbvpPNxrAiaEKF7aL2k4I8kuqrdTWwliamdPHeyAA7DjAg725X2GIQ/132");
List<String> avatarList = new ArrayList<>();
avatarList.add("https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLjFK35Wvia9lJKHoXfQuHhk0qZbvpPNxrAiaEKF7aL2k4I8kuqrdTWwliamdPHeyAA7DjAg725X2GIQ/132");
rmap.put("avatarList", avatarList);
return Result.success(rmap);
}
......
......@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunniu.farming.common.plugin.PageInfo;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
......@@ -32,6 +33,11 @@ public class GroupBuy {
private String groupBuyTitle;
/**
* 团购图片
*/
private String groupBuyPic;
/**
* 拼团开始时间
*/
private Date startTime;
......@@ -113,4 +119,10 @@ public class GroupBuy {
@TableField(exist = false)
private Integer appFlag;
@TableField(exist = false)
private BigDecimal minPrice;
@TableField(exist = false)
private BigDecimal maxprice;
}
......@@ -4,7 +4,10 @@
<select id="findPageList" resultType="com.yunniu.farming.webadmin.model.GroupBuy">
select * from group_buy
select *,
(select min(product_price) from group_buy_product where group_buy_id = a.id) minPrice,
(select max(product_price) from group_buy_product where group_buy_id = a.id) maxPrice
from group_buy a
<where>
<if test="groupBuyCode != null and groupBuycode != ''">
and group_buy_code = #{groupBuyCode,jdbcType=VARCHAR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment