xiaoyong931011
2021-06-28 98a6719dd25269351d1f5f37c94cd4b586d2bde0
20210628 集物员审核
3 files modified
13 ■■■■■ changed files
gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java 4 ●●●● patch | view | raw | blame | history
gc-shop/src/main/java/com/xzx/gc/shop/vo/JhyOrderItemsVo.java 7 ●●●● patch | view | raw | blame | history
gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml 2 ●●● patch | view | raw | blame | history
gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java
@@ -69,8 +69,8 @@
                JhyOrderItemsVo jhyOrderItemsVo = BeanUtil.copyProperties(jhyOrderItems, JhyOrderItemsVo.class);
                BigDecimal multiply = jhyOrderItemsVo.getPrice().multiply(new BigDecimal(40));
                BigDecimal multiplyScore = jhyOrderItemsVo.getPrice().multiply(jhyOrderItemsVo.getWeight()).multiply(new BigDecimal(40));
                jhyOrderItemsVo.setAllPrice(multiply);
                jhyOrderItemsVo.setAllScore(multiplyScore);
                jhyOrderItemsVo.setPrice(multiply);
                jhyOrderItemsVo.setAllPrice(multiplyScore);
                jhyOrderItemsVolist.add(jhyOrderItemsVo);
            }
        }
gc-shop/src/main/java/com/xzx/gc/shop/vo/JhyOrderItemsVo.java
@@ -15,14 +15,11 @@
    @ApiModelProperty(value="标题")
    private String title;
    @ApiModelProperty(value="价格(元)")
    @ApiModelProperty(value="单价(积分)= 价格*40")
    private BigDecimal price;
    @ApiModelProperty(value="单价(积分)= 价格*40")
    private BigDecimal allPrice;
    @ApiModelProperty(value="总积分= 价格*重量*40")
    private BigDecimal allScore;
    private BigDecimal allPrice;
    @ApiModelProperty(value="图片")
    private String picture;
gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml
@@ -14,7 +14,7 @@
        a.remark remark,
        b.nick_name name,
        b.mobile_phone mobilePhone,
               (select ifnull(sum(price),0) from xzx_jhy_order_items where order_id = a.id) totalPrice,
               (select ifnull(sum(price*weight*40),0) from xzx_jhy_order_items where order_id = a.id) totalPrice,
        d.username username
        FROM
        xzx_jhy_order a