old mode 100644
new mode 100755
| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.component.BaseComponentSMO; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.front.smo.IRoomServiceSMO; |
| | | import com.java110.utils.constant.FeeTypeConstant; |
| | | import com.java110.utils.constant.PrivilegeCodeConstant; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.exception.SMOException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.core.component.BaseComponentSMO; |
| | | import com.java110.front.smo.IRoomServiceSMO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | feeMap.put("communityId", communityId); |
| | | feeMap.put("feeTypeCd", FeeTypeConstant.FEE_TYPE_PROPERTY); |
| | | feeMap.put("roomId", roomObj.getString("roomId")); |
| | | apiUrl = ServiceConstant.SERVICE_API_URL + "/api/fee.queryFee" + mapToUrlParam(feeMap); |
| | | apiUrl = ServiceConstant.SERVICE_API_URL + "/api/fee.listFee" + mapToUrlParam(feeMap); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | apiUrl, |
| | | HttpMethod.GET); |
| | |
| | | private void validateSaveRoom(IPageData pd) { |
| | | |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "communityId", "请求报文中未包含communityId节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "unitId", "请求报文中未包含unitId节点"); |
| | | //Assert.jsonObjectHaveKey(pd.getReqData(), "unitId", "请求报文中未包含unitId节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "roomNum", "请求报文中未包含roomNum节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "layer", "请求报文中未包含layer节点"); |
| | | /*Assert.jsonObjectHaveKey(pd.getReqData(), "section", "请求报文中未包含section节点");*/ |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "apartment", "请求报文中未包含apartment节点"); |
| | | //Assert.jsonObjectHaveKey(pd.getReqData(), "apartment", "请求报文中未包含apartment节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "builtUpArea", "请求报文中未包含builtUpArea节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "state", "请求报文中未包含state节点"); |
| | | //Assert.jsonObjectHaveKey(pd.getReqData(), "state", "请求报文中未包含state节点"); |
| | | /*Assert.jsonObjectHaveKey(pd.getReqData(), "unitPrice", "请求报文中未包含unitPrice节点");*/ |
| | | JSONObject reqJson = JSONObject.parseObject(pd.getReqData()); |
| | | |
| | | Assert.hasLength(reqJson.getString("communityId"), "小区ID不能为空"); |
| | | Assert.isInteger(reqJson.getString("section"), "房间数不是有效数字"); |
| | | Assert.isMoney(reqJson.getString("builtUpArea"), "建筑面积数据格式错误"); |
| | | Assert.isMoney(reqJson.getString("unitPrice"), "房屋单价数据格式错误"); |
| | | |
| | | /* if (!"1010".equals(reqJson.getString("apartment")) && !"2020".equals(reqJson.getString("apartment"))) { |
| | | throw new IllegalArgumentException("不是有效房屋户型 传入数据错误"); |
| | | }*/ |
| | | |
| | | if (!"2001".equals(reqJson.getString("state")) |
| | | && !"2002".equals(reqJson.getString("state")) |
| | | && !"2003".equals(reqJson.getString("state")) |
| | | && !"2004".equals(reqJson.getString("state"))) { |
| | | throw new IllegalArgumentException("不是有效房屋状态 传入数据错误"); |
| | | } |
| | | Assert.isMoney(reqJson.getString("feeCoefficient"), "算费系数数据格式错误"); |
| | | |
| | | } |
| | | |