Commit 5e46a5f3 authored by hezhen's avatar hezhen

123

parent dc7c171f
...@@ -123,6 +123,11 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> { ...@@ -123,6 +123,11 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
|| companyVo.getAddrCity()==null||companyVo.getAddrCity()==0){ || companyVo.getAddrCity()==null||companyVo.getAddrCity()==0){
return ObjectRestResponse.createFailedResult(ResultCode.NULL_CODE,"参数不能为空"); return ObjectRestResponse.createFailedResult(ResultCode.NULL_CODE,"参数不能为空");
} }
Area area=areaBiz.selectById(companyVo.getZoneId());
Integer provinc=companyVo.getAddrProvince();
if (area==null||StringUtils.isBlank(area.getProvinceIds())||!area.getProvinceIds().contains(provinc+"")){
return ObjectRestResponse.createFailedResult(ResultCode.FAILED_CODE,"片区和省份不一致");
}
Integer state=companyVo.getState()==null?2:companyVo.getState(); Integer state=companyVo.getState()==null?2:companyVo.getState();
BigDecimal latitude=companyVo.getLatitude(); BigDecimal latitude=companyVo.getLatitude();
BigDecimal longitude=companyVo.getLongitude(); BigDecimal longitude=companyVo.getLongitude();
......
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