|
@ -18,6 +18,7 @@ import com.epmet.feign.EpmetUserFeignClient; |
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
import com.epmet.feign.OperCustomizeFeignClient; |
|
|
import com.epmet.feign.OperCustomizeFeignClient; |
|
|
import com.epmet.service.StrangerAccessRecordService; |
|
|
import com.epmet.service.StrangerAccessRecordService; |
|
|
|
|
|
import com.epmet.utils.ModuleConstant; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
@ -55,6 +56,7 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc |
|
|
@Override |
|
|
@Override |
|
|
public PageData<StrangerAccessRecordDTO> getStrangerAccessRecordPage(Map<String, Object> params) { |
|
|
public PageData<StrangerAccessRecordDTO> getStrangerAccessRecordPage(Map<String, Object> params) { |
|
|
|
|
|
|
|
|
|
|
|
//当前陌生人访客记录查询只能查询最近三天,无法查询三天以外的数据,需要完善功能
|
|
|
IPage<StrangerAccessRecordEntity> page = baseDao.selectPage( |
|
|
IPage<StrangerAccessRecordEntity> page = baseDao.selectPage( |
|
|
getPage(params, "VISIT_TIME",false), |
|
|
getPage(params, "VISIT_TIME",false), |
|
|
getWrapper(params) |
|
|
getWrapper(params) |
|
@ -139,17 +141,17 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListCustomerGridFormDTO listCustomerGridFormDTO = new ListCustomerGridFormDTO(); |
|
|
ListCustomerGridFormDTO listCustomerGridFormDTO = new ListCustomerGridFormDTO(); |
|
|
listCustomerGridFormDTO.setAreaCode(0 == customerGridListFormDTO.getIsAuthorized() ? |
|
|
listCustomerGridFormDTO.setAreaCode(ModuleConstant.NOT_POSITION_AUTHORIZED == customerGridListFormDTO.getIsAuthorized() ? |
|
|
customerGridListFormDTO.getSelectedAreaCode() : customerGridListFormDTO.getAreaCode()); |
|
|
customerGridListFormDTO.getSelectedAreaCode() : customerGridListFormDTO.getAreaCode()); |
|
|
|
|
|
|
|
|
listCustomerGridFormDTO.setPageNo(null == customerGridListFormDTO.getPageNo() ? 1 : customerGridListFormDTO.getPageNo()); |
|
|
listCustomerGridFormDTO.setPageNo(null == customerGridListFormDTO.getPageNo() ? ModuleConstant.MIN_CURRENT_PAGE_NO : customerGridListFormDTO.getPageNo()); |
|
|
|
|
|
|
|
|
listCustomerGridFormDTO.setPageSize(customerGridListFormDTO.getPageSize()); |
|
|
listCustomerGridFormDTO.setPageSize(customerGridListFormDTO.getPageSize()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Result<List<CustomerGridForStrangerResultDTO>> queryResult = |
|
|
Result<List<CustomerGridForStrangerResultDTO>> queryResult = |
|
|
govOrgFeignClient |
|
|
govOrgFeignClient |
|
|
.getPageForStrangerGuideInterface(listCustomerGridFormDTO); |
|
|
.queryGridListByAreaCode(listCustomerGridFormDTO); |
|
|
|
|
|
|
|
|
//Feign调用成功
|
|
|
//Feign调用成功
|
|
|
if(queryResult.success()) { |
|
|
if(queryResult.success()) { |
|
@ -158,13 +160,11 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc |
|
|
if (null != queryResult && queryList.size() > 0) { |
|
|
if (null != queryResult && queryList.size() > 0) { |
|
|
StrangerAccessRecordEntity strangerTrance = new StrangerAccessRecordEntity(); |
|
|
StrangerAccessRecordEntity strangerTrance = new StrangerAccessRecordEntity(); |
|
|
//未授权,手动选择
|
|
|
//未授权,手动选择
|
|
|
if (0 == customerGridListFormDTO.getIsAuthorized()) { |
|
|
if (ModuleConstant.NOT_POSITION_AUTHORIZED == customerGridListFormDTO.getIsAuthorized()) { |
|
|
strangerTrance.setSelectedAreaCode(customerGridListFormDTO.getSelectedAreaCode()); |
|
|
strangerTrance.setSelectedAreaCode(customerGridListFormDTO.getSelectedAreaCode()); |
|
|
strangerTrance.setLocationAreaCode(""); |
|
|
} else if (ModuleConstant.POSITION_AUTHORIZED == customerGridListFormDTO.getIsAuthorized()) { |
|
|
} else if (1 == customerGridListFormDTO.getIsAuthorized()) { |
|
|
|
|
|
//已授权,自动选择
|
|
|
//已授权,自动选择
|
|
|
strangerTrance.setLocationAreaCode(customerGridListFormDTO.getAreaCode()); |
|
|
strangerTrance.setLocationAreaCode(customerGridListFormDTO.getAreaCode()); |
|
|
strangerTrance.setSelectedAreaCode(""); |
|
|
|
|
|
} |
|
|
} |
|
|
strangerTrance.setIsAuthorized(customerGridListFormDTO.getIsAuthorized()); |
|
|
strangerTrance.setIsAuthorized(customerGridListFormDTO.getIsAuthorized()); |
|
|
strangerTrance.setGridNumber(queryList.size()); |
|
|
strangerTrance.setGridNumber(queryList.size()); |
|
|