|
|
@ -23,7 +23,10 @@ import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.personroom.EpidemicUnitOwnerDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.form.GetSkipDirectionFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.result.GetSkipDirectionResultDTO; |
|
|
|
import com.elink.esua.epdc.vaccine.personroom.dao.EpidemicUnitOwnerDao; |
|
|
|
import com.elink.esua.epdc.vaccine.personroom.entity.EpidemicUnitOwnerEntity; |
|
|
|
import com.elink.esua.epdc.vaccine.personroom.redis.EpidemicUnitOwnerRedis; |
|
|
@ -121,4 +124,27 @@ public class EpidemicUnitOwnerServiceImpl extends BaseServiceImpl<EpidemicUnitOw |
|
|
|
public void deletePhysicalByIdCardAndUnitId(String idCard, Long unitId) { |
|
|
|
baseDao.deletePhysicalByIdCardAndUnitId(idCard, unitId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<GetSkipDirectionResultDTO> getSkipDirection(GetSkipDirectionFormDTO formDTO) { |
|
|
|
/** |
|
|
|
* 1. 留在当前页面,进行注册、绑定 |
|
|
|
* 2. 跳转到 该房屋信息的页面 |
|
|
|
* 3. 显示 无权访问 |
|
|
|
*/ |
|
|
|
GetSkipDirectionResultDTO getSkipDirectionResultDTO = new GetSkipDirectionResultDTO(); |
|
|
|
// 获取是否绑定当前房屋
|
|
|
|
Integer isCurrentBouse = baseDao.getCurrentBouseNum(formDTO); |
|
|
|
// 获取是否绑定非当前房屋
|
|
|
|
Integer isNotCurrentBouse = baseDao.getNotCurrentBouseNum(formDTO); |
|
|
|
if(isCurrentBouse > 0){ |
|
|
|
getSkipDirectionResultDTO.setType("2"); |
|
|
|
}else if(isNotCurrentBouse > 0){ |
|
|
|
getSkipDirectionResultDTO.setType("3"); |
|
|
|
}else{ |
|
|
|
getSkipDirectionResultDTO.setType("1"); |
|
|
|
} |
|
|
|
|
|
|
|
return new Result<GetSkipDirectionResultDTO>().ok(getSkipDirectionResultDTO); |
|
|
|
} |
|
|
|
} |
|
|
|