From 0d2bc97dd15106ff4b2fdd4e5d8ed5bb28221d5c Mon Sep 17 00:00:00 2001 From: xhxu Date: Thu, 19 Aug 2021 15:02:19 +0800 Subject: [PATCH] hetong --- .../com/iformall/service/impl/WxRentContractServiceImpl.java | 4 +++- mallinkService/src/main/resources/mapper/WxShopMapper.xml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java index 6ad6e15d4..bc1c52321 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -2333,8 +2333,10 @@ public class WxRentContractServiceImpl implements WxRentContractService { result.put("threeRentalPriceUpper1", PriceUtil.digitUppercase(priceRent)); result.put("threeRentPrice",wxRentContract.getRentPrice()); + Integer threePayRatio1 = new BigDecimal(wxRentContract.getPayRatio()) + .divide(new BigDecimal(100)).intValue(); + result.put("threePayRatio1",threePayRatio1); - result.put("threePayRatio1",wxRentContract.getPayRatio()); result.put("threePayDate",wxRentContract.getPayDate()); if(StringUtils.isNotBlank(incrementStartDate)){ result.put("threeRentalEndDateYear1",incrementStartDate.substring(0,4)); diff --git a/mallinkService/src/main/resources/mapper/WxShopMapper.xml b/mallinkService/src/main/resources/mapper/WxShopMapper.xml index b7d3182cd..4eb54eb09 100644 --- a/mallinkService/src/main/resources/mapper/WxShopMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxShopMapper.xml @@ -667,10 +667,11 @@ s.img_url imgUrl,CONVERT(s.operation_area,DECIMAL(10,2)) operationArea, s.status,b.building_name building,f.floor_name floor,s.manager,s.manager_phone managerPhone, s.type,s.point_type pointType,s.addr,DATEDIFF(now(),s.create_date) freeDay,rent,rent_unit,s.business_id as - businessId,s.create_date create_date + businessId,bu.title businessName,s.create_date create_date from wx_shop s left join wx_mall_building b on s.building=b.id left join wx_mall_floor f on s.floor=f.id + left join wx_business bu on s.business_id = bu.id where s.`id` = #{id}