|
@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.enums.CollectUrlEnum; |
|
|
import com.epmet.commons.tools.enums.CollectUrlEnum; |
|
|
import com.epmet.commons.tools.enums.OrgTypeEnum; |
|
|
import com.epmet.commons.tools.enums.OrgTypeEnum; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
@ -82,7 +83,12 @@ public class NeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao,I |
|
|
@Autowired |
|
|
@Autowired |
|
|
private CustomerAgencyDao customerAgencyDao; |
|
|
private CustomerAgencyDao customerAgencyDao; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 房屋管理-新增小区 |
|
|
|
|
|
* |
|
|
|
|
|
* @param customerId |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void addNeighborhood(String customerId, IcNeighborHoodAddFormDTO formDTO) { |
|
|
public void addNeighborhood(String customerId, IcNeighborHoodAddFormDTO formDTO) { |
|
@ -140,6 +146,10 @@ public class NeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao,I |
|
|
* @return java.lang.String |
|
|
* @return java.lang.String |
|
|
*/ |
|
|
*/ |
|
|
private String createNeiQrcodeUrl(IcNeighborHoodEntity entity) throws Exception { |
|
|
private String createNeiQrcodeUrl(IcNeighborHoodEntity entity) throws Exception { |
|
|
|
|
|
// 市北区-智慧社区: 1623486671774978060 23.2月为了方便社区的同事们演示系统,新建的一个客户id
|
|
|
|
|
|
if ("1623486671774978060".equals(entity.getCustomerId())) { |
|
|
|
|
|
return StrConstant.EPMETY_STR; |
|
|
|
|
|
} |
|
|
if (null == entity) { |
|
|
if (null == entity) { |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "小区不可为空", "小区不可为空"); |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "小区不可为空", "小区不可为空"); |
|
|
} |
|
|
} |
|
@ -338,6 +348,10 @@ public class NeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao,I |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Result createBatchNeiQrUrl(String customerId) { |
|
|
public Result createBatchNeiQrUrl(String customerId) { |
|
|
|
|
|
// 市北区-智慧社区: 1623486671774978060 23.2月为了方便社区的同事们演示系统,新建的一个客户id
|
|
|
|
|
|
if ("1623486671774978060".equals(customerId)) { |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
//查询该客户下没有二维码的小区
|
|
|
//查询该客户下没有二维码的小区
|
|
|
QueryWrapper<IcNeighborHoodEntity> queryWrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<IcNeighborHoodEntity> queryWrapper = new QueryWrapper<>(); |
|
|
queryWrapper.lambda().eq(IcNeighborHoodEntity::getCustomerId,customerId) |
|
|
queryWrapper.lambda().eq(IcNeighborHoodEntity::getCustomerId,customerId) |
|
|