package com.qtzl.alterSales.manager.service; import cn.com.taiji.common.manager.net.http.ServiceHandleException; import com.qtzl.alterSales.dao.repo.jpa.primary.WechatPayApplyResultLogRepo; import com.qtzl.alterSales.manager.model.protocol.UcServiceError; import com.qtzl.alterSales.manager.vo.FiftyServiceFeeVo; import com.qtzl.alterSales.manager.vo.WechatPayApplyLogVo; import org.apache.commons.lang3.StringUtils; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.stereotype.Service; import javax.annotation.Resource; /*** *
* 签约服务费 service impl *
* @author hou yi * {@code @date} 2023/10/18 14:53 **/ @Service public class WechatPayApplyResultLogServiceImpl implements WechatPayApplyResultLogService { @Resource private WechatPayApplyResultLogRepo wechatPayApplyResultLogRepo; @Override public WechatPayApplyLogVo findByPlateNumber(String plateNumber) throws ServiceHandleException { if (StringUtils.isEmpty(plateNumber)) { throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("请指定车牌号查询签约服务费"); } return wechatPayApplyResultLogRepo.findByPlateNumber(plateNumber).stream() .findFirst() .orElse(new WechatPayApplyLogVo()); } @Override public Page