个人中心

zhc4dev
wangjiadong 2 years ago
parent b79448c00d
commit d4d53200f2
  1. 4
      ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue
  2. 10
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
  3. 6
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserMapper.xml

@ -60,8 +60,8 @@
<p class="headline">配送至</p> <p class="headline">配送至</p>
<p class="text">河南省</p> <p class="text">河南省</p>
<p class="text">驻马店市 驿城区</p> <p class="text">驻马店市 驿城区</p>
<p class="text">黄淮学院南校区学府花园26号楼3602</p> <p class="text">{{this.dingdandh.address}}</p>
<p class="text">463000</p> <p class="text">{{this.dingdandh.zipCode}}</p>
<p class="headline">已发货</p> <p class="headline">已发货</p>
<p class="text">您的订单已经发出</p> <p class="text">您的订单已经发出</p>
<p class="headline">尊享免费配送您的物流单号</p> <p class="headline">尊享免费配送您的物流单号</p>

@ -1558,7 +1558,6 @@ public class SysUserController {
//这个是获取订单的数据中的商品数据 //这个是获取订单的数据中的商品数据
Grzx1 g1 = new Grzx1(); Grzx1 g1 = new Grzx1();
g1 = sysUserService.getallg2(id); g1 = sysUserService.getallg2(id);
System.out.println(g1);
return Result.ok(g1); return Result.ok(g1);
} }
@ -1568,11 +1567,10 @@ public class SysUserController {
@RequestMapping(value = "/getdingdandh", method = RequestMethod.GET) @RequestMapping(value = "/getdingdandh", method = RequestMethod.GET)
public Result<?> getdingdandh(@RequestParam(name="id",required=true) String id) { public Result<?> getdingdandh(@RequestParam(name="id",required=true) String id) {
//这个是用于获取一个订单的全部信息 //这个是用于获取一个订单的全部信息
ZyOrder zyo = sysUserService.getallzyo(id); Grzx1 g1 = new Grzx1();
if(zyo==null) { g1 = sysUserService.getallg2(id);
return Result.error("未找到对应数据"); System.out.println(g1);
} return Result.OK(g1);
return Result.OK(zyo);
} }
} }

@ -167,7 +167,7 @@
<!-- 根据用户名查询 --> <!-- 根据用户名查询 -->
<select id="getallgr1" resultType="org.jeecg.modules.system.vo.Grzx1"> <select id="getallgr1" resultType="org.jeecg.modules.system.vo.Grzx1">
SELECT og.id, zo.orders_num , zg.goods_name , zcs.style_names,zsm.model_number,og.goods_num,zf.name,za.type_name,zg.default_picture,og.pay_total_price,og.unit_price,og.create_time,og.create_by , SELECT og.id, zo.orders_num , zg.goods_name , zcs.style_names,zsm.model_number,og.goods_num,zf.name,za.type_name,zg.default_picture,og.pay_total_price,og.unit_price,og.create_time,og.create_by ,
zo.delivery_status zo.delivery_status , zo.city_id ,zo.address,zo.zipCode
FROM zy_orders AS zo FROM zy_orders AS zo
INNER JOIN order_goods AS og ON zo.id = og.orders_id INNER JOIN order_goods AS og ON zo.id = og.orders_id
LEFT JOIN zy_goods AS zg ON og.goods_id = zg.id LEFT JOIN zy_goods AS zg ON og.goods_id = zg.id
@ -183,8 +183,8 @@ WHERE og.create_by=#{userid}
<!-- 这个是获取订单的数据中的商品数据 --> <!-- 这个是获取订单的数据中的商品数据 -->
<select id="getallg2" resultType="org.jeecg.modules.system.vo.Grzx1"> <select id="getallg2" resultType="org.jeecg.modules.system.vo.Grzx1">
SELECT og.id, zo.orders_num , zg.goods_name , zcs.style_names,zsm.model_number,og.goods_num,zf.name, SELECT og.id, zo.orders_num , zg.goods_name , zcs.style_names,zsm.model_number,og.goods_num,zf.name,za.type_name,zg.default_picture,og.pay_total_price,og.unit_price,og.create_time,og.create_by ,
za.type_name,zg.default_picture,og.pay_total_price,og.unit_price,og.create_time,og.create_by zo.delivery_status , zo.city_id ,zo.address,zo.zip_code
FROM zy_orders AS zo FROM zy_orders AS zo
INNER JOIN order_goods AS og ON zo.id = og.orders_id INNER JOIN order_goods AS og ON zo.id = og.orders_id
LEFT JOIN zy_goods AS zg ON og.goods_id = zg.id LEFT JOIN zy_goods AS zg ON og.goods_id = zg.id

Loading…
Cancel
Save