Commit 46bd8797 authored by shiyu's avatar shiyu

查询开店费缴纳订单2

parent 694a71ee
......@@ -66,6 +66,11 @@ public class OpenShopApplyOrderVo implements Entity {
*/
private String openShopAmount;
/**
* 开店优惠金额
*/
private String openShopDiscountAmount;
/**
* 申请单状态
*/
......
......@@ -231,7 +231,9 @@ public class OpenShopServiceImpl implements OpenShopService {
if (openShopApplyOrder == null) {
OpenShopCostConfig openShopCostConfig = openShopCostConfigDao.findOne();
long openShopAmount = openShopCostConfig.getOpenShopAmount();
openShopApplyOrderVo.setOpenShopAmount(String.valueOf(openShopAmount));
openShopApplyOrderVo.setOpenShopAmount(PriceUtil.convertPriceFenToYuan(openShopAmount));
//原始开店费300元
openShopApplyOrderVo.setOpenShopDiscountAmount(PriceUtil.convertPriceFenToYuan(30000L - openShopAmount));
return Result.success(openShopApplyOrderVo);
}
EntityMapper.copyAttribute(openShopApplyOrder, openShopApplyOrderVo);
......
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