maoyunfeng 5 سال پیش
والد
کامیت
71e785a018

+ 40 - 0
whepi-ui/templates/groupBuying/groupBuyingCx.ftl

@@ -0,0 +1,40 @@
+<#assign title="团购"/>
+<#include "/home/frag.head.ftl" />
+
+<div class="page__bd">
+    <div class="weui-tab">
+        <header class="demos-header">
+            <h1 class="demos-title">团购</h1>
+        </header>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+            <span class="weui-loadmore__tips">团购信息</span>
+            <div class="weui-media-box__bd">
+                <h3>萝卜青椒大白菜</h3>
+            </div>
+        </div>
+        <div>
+            <p style="text-indent: -0em;margin-left: 2em;">供应商:&nbsp;&nbsp;接口的法国红酒返回打撒借款方和德生科技发送到返回的是否合适看警方海口市</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">套&nbsp;&nbsp;&nbsp;&nbsp;餐:&nbsp;&nbsp;没有套餐</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">单&nbsp;&nbsp;&nbsp;&nbsp;价:&nbsp;&nbsp;10</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">最新起定量(份):&nbsp;&nbsp;20</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">截止时间:&nbsp;&nbsp;2020-02-11</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">预计送货时间:&nbsp;&nbsp;2020-02-10</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">服务电话:&nbsp;&nbsp;12345678912</p>
+        </div>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+            <br/>
+            <textarea class="weui-input" autofocus="" type="text" placeholder="填写撤销原因或增补修订的内容" maxlength="200" style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 20vh; width: 85%;"></textarea>
+        </div>
+        <div class="weui-btn-area"  style="display: grid;">
+            <p id="" class="weui-btn weui-btn_primary">确&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;定</p>
+        </div>
+
+
+    </div>
+<#include "/home/frag.foot.ftl" />

+ 63 - 0
whepi-ui/templates/groupBuying/groupBuyingJt.ftl

@@ -0,0 +1,63 @@
+<#assign title="家庭团购"/>
+<#include "/home/frag.head.ftl" />
+
+<div class="page__bd">
+    <div class="weui-tab">
+        <header class="demos-header">
+            <h1 class="demos-title">团购</h1>
+        </header>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+            <span class="weui-loadmore__tips">团购信息</span>
+            <div class="weui-media-box__bd">
+                <h3>青菜套餐</h3>
+            </div>
+        </div>
+        <div>
+            <p style="text-indent: -0em;margin-left: 2em;">供应商:&nbsp;&nbsp;接口的法国红酒返回打撒借款方和德生科技发送到返回的是否合适看警方海口市</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">套&nbsp;&nbsp;&nbsp;&nbsp;餐:&nbsp;&nbsp;没有套餐</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">单&nbsp;&nbsp;&nbsp;&nbsp;价:&nbsp;&nbsp;10</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">最新起定量(份):&nbsp;&nbsp;20</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">截止时间:&nbsp;&nbsp;2020-02-11</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">预计送货时间:&nbsp;&nbsp;2020-02-10</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">服务电话:&nbsp;&nbsp;12345678912</p>
+        </div>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+            <span class="weui-loadmore__tips">团购信息</span>
+            <br/>
+        </div>
+
+        <#--<div style="width: 62%;margin: auto;">
+            <div style="float:left;width: 49%; text-align: center">
+                <input type="radio"  checked="checked"/>男
+            </div>
+            <div style="float:left;width: 49%; text-align: center">
+                <input type="radio"/>女
+            </div>
+        </div>-->
+        <div style="text-indent: -4.5em;width: 100%;margin: auto;">
+            <a style="float:left;width: 49%; text-align: center">当前参团: 23</a>
+            <a style="float:left;width: 49%; text-align: center">当前状态: 在团</a>
+        </div>
+        <div style="text-indent: -4.5em;width: 100%;margin: auto;">
+            <a style="float:left;width: 51%; text-align: center">我的团购: <input class="weui-input" type="text" style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; width: 30px;"/></a>
+            <a style="float:left;width: 49%; text-align: center">金额: 20</a>
+        </div>
+        <div style="text-indent: 2.5em;width: 100%;margin: auto;float:left;">
+           联系电话: <input class="weui-input" type="text" style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; width: 120px;" />
+        </div>
+        <div style="text-indent: 2em;">
+            <textarea class="weui-input" autofocus="" type="text" placeholder="备注:出行不方便,请送到单元门口或家门口" maxlength="200" style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 10vh; width: 85%;"></textarea>
+        </div>
+        <div class="weui-btn-area"  style="display: grid;">
+            <p id="" class="weui-btn weui-btn_primary">提&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;交</p>
+        </div>
+
+
+    </div>
+<#include "/home/frag.foot.ftl" />

+ 47 - 0
whepi-ui/templates/groupBuying/groupBuyingQx.ftl

@@ -0,0 +1,47 @@
+<#assign title="家庭团购"/>
+<#include "/home/frag.head.ftl" />
+
+<div class="page__bd">
+    <div class="weui-tab">
+        <header class="demos-header">
+            <h1 class="demos-title">团购</h1>
+        </header>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+            <span class="weui-loadmore__tips">团购信息</span>
+            <div class="weui-media-box__bd">
+                <h3>青菜套餐</h3>
+            </div>
+        </div>
+        <div>
+            <p style="text-indent: -0em;margin-left: 2em;">供应商:&nbsp;&nbsp;接口的法国红酒返回打撒借款方和德生科技发送到返回的是否合适看警方海口市</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">套&nbsp;&nbsp;&nbsp;&nbsp;餐:&nbsp;&nbsp;没有套餐</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">单&nbsp;&nbsp;&nbsp;&nbsp;价:&nbsp;&nbsp;10</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">最新起定量(份):&nbsp;&nbsp;20</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">截止时间:&nbsp;&nbsp;2020-02-11</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">预计送货时间:&nbsp;&nbsp;2020-02-10</p>
+            &nbsp;
+            <p style="text-indent: -0em;margin-left: 2em;">服务电话:&nbsp;&nbsp;12345678912</p>
+        </div>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+        </div>
+
+        <div style="text-indent: -4.5em;width: 100%;margin: auto;">
+            <a style="float:left;width: 49%; text-align: center">当前参团: 23</a>
+            <a style="float:left;width: 49%; text-align: center;color: red">当前状态: 取消</a>
+        </div>
+        <div style="text-indent: -4.5em;width: 100%;margin: auto;">
+            <a style="float:left;width: 51%; text-align: center">我的团购: 2</a>
+            <a style="float:left;width: 49%; text-align: center">金额: 20</a>
+        </div>
+        <br/>
+        <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+        </div>
+        <li style="color: red">非常抱歉通知您,因团购数量不足,取消本次团购</li>
+
+    </div>
+<#include "/home/frag.foot.ftl" />

+ 54 - 0
whepi-ui/templates/groupBuying/groupBuyingXx.ftl

@@ -0,0 +1,54 @@
+<#assign title="团购"/>
+<#include "/home/frag.head.ftl" />
+
+<div class="page__bd">
+<div class="weui-tab">
+    <header class="demos-header">
+        <h1 class="demos-title">团购</h1>
+    </header>
+    <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+        <span class="weui-loadmore__tips">团购信息</span>
+        <div class="weui-media-box__bd">
+            <h3>萝卜青椒大白菜</h3>
+        </div>
+    </div>
+    <div>
+
+    <p style="text-indent: -0em;margin-left: 2em;">供应商:&nbsp;&nbsp;接口的法国红酒返回打撒借款方和德生科技发送到返回的是否合适看警方海口市</p>
+    &nbsp;
+    <p style="text-indent: -0em;margin-left: 2em;">套&nbsp;&nbsp;&nbsp;&nbsp;餐:&nbsp;&nbsp;没有套餐</p>
+    &nbsp;
+    <p style="text-indent: -0em;margin-left: 2em;">单&nbsp;&nbsp;&nbsp;&nbsp;价:&nbsp;&nbsp;10</p>
+    &nbsp;
+    <p style="text-indent: -0em;margin-left: 2em;">最新起定量(份):&nbsp;&nbsp;20</p>
+    &nbsp;
+    <p style="text-indent: -0em;margin-left: 2em;">截止时间:&nbsp;&nbsp;2020-02-11</p>
+    &nbsp;
+    <p style="text-indent: -0em;margin-left: 2em;">预计送货时间:&nbsp;&nbsp;2020-02-10</p>
+    &nbsp;
+    <p style="text-indent: -0em;margin-left: 2em;">服务电话:&nbsp;&nbsp;12345678912</p>
+    </div>
+    <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
+        <span class="weui-loadmore__tips">参团情况</span>
+        <div class="weui-cells__title">当前参团43/100</div>
+    </div>
+
+    <div class="weui-btn-area">
+        <p id="zb" class="weui-btn weui-btn_primary">增补修订</p>
+        <p id="qc" class="weui-btn weui-btn_primary">取消团购</p>
+        <p id="wc" class="weui-btn weui-btn_primary">完成团购</p>
+        <p id="ck" class="weui-btn weui-btn_primary">查看参团信息</p>
+    </div>
+
+</div>
+<#include "/home/frag.foot.ftl" />
+
+    <script>
+        $('#zb').on('click', function () {
+            window.location.href = "/groupBuying/groupBuyingCx.html"
+        });
+
+
+
+
+    </script>

+ 47 - 0
whepi-web/src/main/java/com/bofeng/wx/controller/GroupBuyingController.java

@@ -0,0 +1,47 @@
+package com.bofeng.wx.controller;
+
+import com.beust.jcommander.internal.Maps;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.servlet.ModelAndView;
+
+import java.util.Map;
+
+@RestController
+public class GroupBuyingController {
+    @GetMapping("/groupBuying/groupBuyingXx.html")
+    public ModelAndView groupBuyingXx(ModelMap model) {
+        Map<String, Object> queryParam = Maps.newLinkedHashMap();
+        queryParam.put("userId", "12345677");
+        queryParam.put("statistics", "M");
+
+        return new ModelAndView("/groupBuying/groupBuyingXx.ftl", model);
+    }
+    @GetMapping("/groupBuying/groupBuyingCx.html")
+    public ModelAndView groupBuyingCx(ModelMap model) {
+        Map<String, Object> queryParam = Maps.newLinkedHashMap();
+        queryParam.put("userId", "12345677");
+        queryParam.put("statistics", "M");
+
+        return new ModelAndView("/groupBuying/groupBuyingCx.ftl", model);
+    }
+
+    @GetMapping("/groupBuying/groupBuyingJt.html")
+    public ModelAndView groupBuyingJt(ModelMap model) {
+        Map<String, Object> queryParam = Maps.newLinkedHashMap();
+        queryParam.put("userId", "12345677");
+        queryParam.put("statistics", "M");
+
+        return new ModelAndView("/groupBuying/groupBuyingJt.ftl", model);
+    }
+
+    @GetMapping("/groupBuying/groupBuyingQx.html")
+    public ModelAndView groupBuyingQx(ModelMap model) {
+        Map<String, Object> queryParam = Maps.newLinkedHashMap();
+        queryParam.put("userId", "12345677");
+        queryParam.put("statistics", "M");
+
+        return new ModelAndView("/groupBuying/groupBuyingQx.ftl", model);
+    }
+}

+ 4 - 29
whepi-web/src/main/java/com/bofeng/wx/controller/YeWeiHuiController.java

@@ -1,7 +1,6 @@
 package com.bofeng.wx.controller;
 
 import com.bofeng.dao.RbMapper;
-import com.bofeng.dao.UptownMapper;
 import com.bofeng.entity.*;
 import com.bofeng.excel.ExcelUtils;
 import com.bofeng.service.HomeService;
@@ -46,13 +45,10 @@ public class YeWeiHuiController {
     private HomeService homeService;
 
     @Autowired
-    private UptownMapper uptownMapper;
-
-    @Autowired
     private RbMapper rbMapper;
 
     @GetMapping("/yeweihui/home.html")
-    public ModelAndView yeweihui(ModelMap model,@RequestParam(value = "userId") Long userId, @RequestParam(value = "showQZ", required = false, defaultValue = "-") String showQZ) {
+    public ModelAndView yeweihui(ModelMap model,@RequestParam(value = "userId") Long userId) {
 
 //        List<QzTask> taskList = qzTaskService.selectAll(1225321682867105793L);
 //        List<sysUptownUnit> rbList = rbService.selectAll(1225321682867105793L);
@@ -61,7 +57,6 @@ public class YeWeiHuiController {
         model.put("taskList", YvanUtil.toJsonPretty(taskList));
         model.put("rbList", YvanUtil.toJsonPretty(rbList));
         model.put("user_id", "\""+userId+"\"");
-        model.put("showQZ", "\""+showQZ+"\"");
 
         return new ModelAndView("/yeweihui/home.ftl", model);
     }
@@ -188,8 +183,8 @@ public class YeWeiHuiController {
     }
 
     @GetMapping("/yeweihui/ribaohuiz")
-    public Model<Map<String, Object>> yeweihuiRibaohuiz(Long userCreate,String reportDate) {
-//        Long userCreate = 1225321682867105793L;
+    public Model<Map<String, Object>> yeweihuiRibaohuiz(/*Long userCreate,*/String reportDate) {
+        Long userCreate = 1226159827797225474L;
 
         List<Uptown> uptowns = rbMapper.selectUptown(userCreate);
 
@@ -197,12 +192,11 @@ public class YeWeiHuiController {
             Long upId = uptowns.get(0).getUptownId();
             Map<String, Integer> map1 = rbMapper.selecthuiz(upId,reportDate);
             Map<String, Integer> map2 = rbMapper.selectyicahng(upId,reportDate);
-            Map<String, Integer> map3 = rbMapper.selecthuiz1(upId);
 
             Map<String, Object> reMap = Maps.newHashMap();
             reMap.put("uptownName", uptowns.get(0).getUptownName());
             List<Integer> nums = Lists.newArrayList();
-            nums.add(Conv.NI(map3.get("houseCount")));
+            nums.add(Conv.NI(map1.get("houseCount")));
             nums.add(Conv.NI(map1.get("reportCount")));
             nums.add(Conv.NI(map2.get("yichangCount")));
             nums.add(Conv.NI(map1.get("safetyNum")));
@@ -232,23 +226,4 @@ public class YeWeiHuiController {
             ExcelUtils.writeSheet(ExcelRiBao.class, list).export(resp, fileName);
         }
     }
-
-    @ApiOperation("导出家庭上报明细")
-    @GetMapping("/yeweihui/EXR")
-    @SneakyThrows
-    public void exportRiBaoByXiaoQu(@Pd(name = "xid") Long xid,
-                            @Pd(name = "d") String d,
-                            HttpServletResponse resp) {
-
-        Uptown uptown = uptownMapper.selectById(xid);
-
-        if (uptown!=null && uptown.getUptownId()>0) {
-            Long upId = uptown.getUptownId();
-            String fileName = uptown.getUptownName();
-            fileName += "上报信息-";
-            fileName += d;
-            List<ExcelRiBaoPrivate> list = rbMapper.selectExcelRiBaoPrivate(upId,d);
-            ExcelUtils.writeSheet(ExcelRiBaoPrivate.class, list).export(resp, fileName);
-        }
-    }
 }