| | |
| | | } |
| | | } |
| | | } |
| | | // 判断所选场地是否一个运营商 |
| | | if (StringUtils.hasLength(sites)){ |
| | | Integer oid=null; |
| | | String[] split = sites.split(","); |
| | | for (int i = 0; i < split.length; i++) { |
| | | if(i==0){ |
| | | Integer operatorId = siteService.getById(split[0]).getOperatorId(); |
| | | oid=operatorId; |
| | | } |
| | | Integer operatorId = siteService.getById(split[i]).getOperatorId(); |
| | | if(oid!=operatorId){ |
| | | return "5004"; |
| | | } |
| | | } |
| | | } |
| | | |
| | | Integer id = pointMercharsClient.add(pointsMerchandise); |
| | | |
| | | String pam = id+"_"+storeIds+"_"+sites; |
| | | // 添加多个城市 门店 场地 |
| | | try{ |
| | | pointMercharsClient.addOther(pam); |
| | | |
| | | |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |