公式
This commit is contained in:
@@ -221,8 +221,9 @@ public class AppletGiftBagService extends MybatisBaseService<AppletGiftBagMapper
|
||||
for(GiftBagGoods goods:goodsList){
|
||||
i=i+Double.valueOf(goods.getPrice())*Double.valueOf(goods.getGoodsNumber());
|
||||
goods.setIconUrl(fileUploadComponent.getUrlPrefix() +goods.getIconUrl());
|
||||
goods.setTotalValue(String.valueOf(decimalFormat.format(Double.valueOf(goods.getGoodsNumber())*Double.valueOf(goods.getPrice()))));
|
||||
goods.setJPrice(String.valueOf(decimalFormat.format(Double.valueOf(goods.getPrice())*Double.valueOf(goods.getWeight()))));
|
||||
goods.setTotalValue(String.valueOf(decimalFormat.format(Double.valueOf(goods.getGoodsNumber())*Double.valueOf(goods.getJPrice())*Double.valueOf(goods.getWeight()))));
|
||||
// goods.setJPrice(String.valueOf(decimalFormat.format(Double.valueOf(goods.getPrice())*Double.valueOf(goods.getWeight()))));
|
||||
goods.setPrice(String.valueOf(decimalFormat.format(Double.valueOf(goods.getJPrice())*Double.valueOf(goods.getWeight()))));
|
||||
}
|
||||
appletGiftBagVo.setPrice(decimalFormat.format(i));
|
||||
appletGiftBagVo.setGoods(goodsList);
|
||||
|
||||
@@ -24,7 +24,7 @@ public interface AppletGiftBagGoodsMapper extends BaseMapper<AppletGiftBagGoods>
|
||||
" from applet_giftbag_goods bads left join lpk_goods goods on goods.sid =bads.goodsSid where bads.giftbagSid=#{sid}")
|
||||
List<AppletGiftBagGoodsVo> getGoodsByBagSid(String sid);
|
||||
|
||||
@Select("select goods.name as name,bads.goodsNumber ,bads.goodsSid,goods.picUrl as iconUrl,goods.price,goods.unitName,goods.content as remark " +
|
||||
@Select("select goods.name as name,bads.goodsNumber ,bads.goodsSid,goods.picUrl as iconUrl,goods.price as jPrice,goods.unitName,goods.content as remark " +
|
||||
" ,goods.weight, goods.specificationUnit from applet_giftbag_goods bads left join lpk_goods goods on goods.sid =bads.goodsSid where bads.giftbagSid=#{sid}")
|
||||
List<GiftBagGoods> getGoodsByBagSidA(String sid);
|
||||
List<AppletGiftBagGoods> getRecordsByBagSid(@Param("sid") String sid);
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
date_format(createTime, '%Y-%m-%d') as createTime,
|
||||
`name`,
|
||||
unitName,
|
||||
price,
|
||||
price as jPrice,
|
||||
picUrl as iconUrl,
|
||||
specificationUnit,
|
||||
isAppletGrounding,
|
||||
|
||||
@@ -159,7 +159,7 @@ public class LpkGoodsService extends MybatisBaseService<LpkGoodsMapper, LpkGoods
|
||||
list.forEach(s->{
|
||||
s.setIconUrl(fileUploadComponent.getUrlPrefix() +s.getIconUrl());
|
||||
s.setTotalValue(decimalFormat.format(0));
|
||||
s.setJPrice(String.valueOf(decimalFormat.format(Double.valueOf(s.getPrice())*Double.valueOf(s.getWeight()))));
|
||||
s.setPrice(String.valueOf(decimalFormat.format(Double.valueOf(s.getJPrice())*Double.valueOf(s.getWeight()))));
|
||||
});
|
||||
return rb.success().setData(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user