Browse Source

[BUG][ID1001319][dev version:.925.1358:账单管理-补录/新建生产的合同没有显示商铺号(按计租月生成)]

release_toaliyun_real
gongbiao 7 years ago
parent
commit
85a1131a90
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 11
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java View File

@@ -98,11 +98,6 @@ public class WxRentContractServiceImpl implements WxRentContractService {
@Autowired
WxMerchantShopMapper wxMerchantShopMapper;

public static void main(String[] args) {
System.out.println(3%3);
System.out.println(6%3);
}

@Override
public Map<String, Object> listAsPage(WxRentContract record, Integer pageIndex, Integer pageSize) {
Object rentContractStatusInfo = getRentContractStatusInfo(record);
@@ -767,6 +762,17 @@ public class WxRentContractServiceImpl implements WxRentContractService {
priceArrs[i] = new BigDecimal(priceD).setScale(0, RoundingMode.HALF_EVEN).intValue();
}
}
if (wxRentContract.getRentShopType().equals(EnumRentShopType.SHOP.getCode()) &&
wxRentContract.getType().equals(EnumRentContractType.RENT_BY_JOINT.getCode())) {
String rentInfo = wxRentContract.getRentInfo();
JSONArray rentInfoArray = JSONArray.parseArray(rentInfo);
for (int i = 0; i < size; i++) {
Map<String, Object> shopInfo = new HashMap<>();
JSONObject rentInfoObject = rentInfoArray.getJSONObject(i);
shopInfo.put(rentInfoObject.getString("shopNumber"), 0);
shopInfos.add(shopInfo);
}
}

int month = 12;
int divide = lease / month;


Loading…
Cancel
Save