| | |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.market.MarketRuleCommunityDto; |
| | | import com.java110.intf.common.IMarketRuleCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.community.ICommunityV1InnerServiceSMO; |
| | | import com.java110.po.marketRuleCommunity.MarketRuleCommunityPo; |
| | |
| | | Assert.hasKeyAndValue(reqJson, "ruleId", "请求报文中未包含ruleId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | |
| | | |
| | | MarketRuleCommunityDto marketRuleCommunityDto = new MarketRuleCommunityDto(); |
| | | marketRuleCommunityDto.setCommunityId(reqJson.getString("communityId")); |
| | | marketRuleCommunityDto.setRuleId(reqJson.getString("ruleId")); |
| | | List<MarketRuleCommunityDto> marketRuleCommunityDtos = marketRuleCommunityV1InnerServiceSMOImpl.queryMarketRuleCommunitys(marketRuleCommunityDto); |
| | | |
| | | if(marketRuleCommunityDtos != null && marketRuleCommunityDtos.size() > 0){ |
| | | throw new CmdException("小区已经授权"); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |