| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.temporal.TemporalAdjusters; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.project.domain.ServiceFund; |
| | | import com.ruoyi.project.domain.ServiceReimbursement; |
| | | import com.ruoyi.project.domain.ServiceReimbursementdetail; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.mapper.ServiceFundMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.mapper.ServiceFunddetailMapper; |
| | | import com.ruoyi.project.domain.ServiceFunddetail; |
| | | import com.ruoyi.project.service.IServiceFunddetailService; |
| | | |
| | | /** |
| | |
| | | * @date 2022-01-25 |
| | | */ |
| | | @Service |
| | | public class ServiceFunddetailServiceImpl extends ServiceImpl<ServiceFunddetailMapper, ServiceFunddetail> implements IServiceFunddetailService |
| | | { |
| | | public class ServiceFunddetailServiceImpl extends ServiceImpl<ServiceFunddetailMapper, ServiceFunddetail> implements IServiceFunddetailService { |
| | | |
| | | @Autowired |
| | | ServiceFunddetailMapper serviceFunddetailMapper; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ServiceFunddetail> getDataBybeneficiaryNo(FunddetailReqVo funddetailReqVo) { |
| | | if (StringUtils.isEmpty(funddetailReqVo.getStarttime())) { |
| | | // 获取当月第一天日期 |
| | | funddetailReqVo.setStarttime(LocalDate.now().with(TemporalAdjusters.firstDayOfMonth()).toString()); |
| | | } |
| | | if (StringUtils.isEmpty(funddetailReqVo.getEndtime())) { |
| | | // 获取当月最后一天日期 |
| | | funddetailReqVo.setEndtime(LocalDate.now().with(TemporalAdjusters.lastDayOfMonth()).toString()); |
| | | } |
| | | List<ServiceFunddetail> dataBybeneficiaryNo = serviceFunddetailMapper.getDataBybeneficiaryNo(funddetailReqVo); |
| | | |
| | | return dataBybeneficiaryNo; |
| | | } |
| | | |
| | | @Override |
| | | public List<ServiceFunddetail> getAllDetailsByFDIDLW(Long id) { |
| | | return serviceFunddetailMapper.getAllDetailsByFDIDLW(id); |
| | | } |