소스 검색

rent

release_toaliyun_real
xhxu 5 년 전
부모
커밋
4a22379aa8
1개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. +11
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 11
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java 파일 보기

@@ -1229,9 +1229,10 @@ public class WxRentContractServiceImpl implements WxRentContractService {
a = new BigDecimal(rentPrice1).divide(new BigDecimal(100)); a = new BigDecimal(rentPrice1).divide(new BigDecimal(100));
} }
String otherRentPriceInfo1 = wxRentContract.getOtherRentPriceInfo(); String otherRentPriceInfo1 = wxRentContract.getOtherRentPriceInfo();
logger.info("why----error---"+otherRentPriceInfo1);
if(StringUtils.isNotBlank(otherRentPriceInfo1)){ if(StringUtils.isNotBlank(otherRentPriceInfo1)){
// JSONObject jsonObject = new JSONObject(otherRentPriceInfo1);
if(otherRentPriceInfo1.startsWith("\"")){
otherRentPriceInfo1 = otherRentPriceInfo1.substring(1,otherRentPriceInfo1.length()-1);
}
JSONObject jsonObject = JSONObject.parseObject(otherRentPriceInfo1); JSONObject jsonObject = JSONObject.parseObject(otherRentPriceInfo1);
String siteMoney1 = jsonObject.getString("siteMoney"); String siteMoney1 = jsonObject.getString("siteMoney");
if(StringUtils.isNotBlank(siteMoney1)){ if(StringUtils.isNotBlank(siteMoney1)){
@@ -2710,4 +2711,12 @@ public class WxRentContractServiceImpl implements WxRentContractService {
return exists; return exists;
} }



public static void main(String[] args) {
String s = "{\"siteMoney\":\"2\",\"facilityMoney\":\"3\",\"administratorMoney\":\"4\"}";
JSONObject jsonObject = JSONObject.parseObject(s);
String siteMoney = jsonObject.getString("siteMoney");
System.out.println(siteMoney);
}

} }

불러오는 중...
취소
저장