Authored by gezhengwen

update

... ... @@ -68,6 +68,8 @@ public interface IUnionService {
PageActivateDeviceIdRspBO queryActivateDeviceId(ActivateDeviceIdReqBO activateDeviceIdReqBO);
UnionResponse getUdidRelation(ActivateUnionRequestVO reques) throws ServiceException;
Integer queryActivateCount(ActivateDeviceIdReqBO activateDeviceIdReqBO);
PageActivateDeviceIdResponseBO queryByDeviceId(ActivateDeviceIdReqBO activateDeviceIdReqBO);
... ...
... ... @@ -632,6 +632,27 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher
}
@Override
public UnionResponse getUdidRelation(ActivateUnionRequestVO request) throws ServiceException{
log.info("enter getUdidRelation request is {}",request);
String udid = request.getUdid();
if (StringUtils.isEmpty(udid)) {
log.warn("activateUnion error because udid is empty with param is {}", request);
return new UnionResponse(200, "udid is empty",new JSONObject());
}
String flag = "Y";
try{
BaseUdidRelation baseUdidRelation = baseUdidRelationDAO.selectByUdid(udid);
if(baseUdidRelation==null){
flag = "N";
}
}catch (Exception e){
log.warn("baseUdidRelationDAO.selectByUdid exception is",e.getMessage());
}
return new UnionResponse(200,flag);
}
@Override
public PageActivateDeviceIdRspBO queryActivateDeviceId(ActivateDeviceIdReqBO activateDeviceIdReqBO) {
log.info("enter queryActivateDeviceId. param activateDeviceIdReqBO={}", activateDeviceIdReqBO);
... ...