| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TSysPayRecordMapper; |
| | | import com.ruoyi.system.model.TErpGoodsType; |
| | | import com.ruoyi.system.model.TSysPayRecord; |
| | | import com.ruoyi.system.query.DetectionPaymentReportQuery; |
| | | import com.ruoyi.system.service.TSysPayRecordService; |
| | | import com.ruoyi.system.vo.DetectionPaymentReportVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | sysPayRecord.setPayState(state); |
| | | this.save(sysPayRecord); |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<DetectionPaymentReportVO> detectionPaymentReport(DetectionPaymentReportQuery query) { |
| | | PageInfo<DetectionPaymentReportVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<DetectionPaymentReportVO> list = this.baseMapper.detectionPaymentReport(query,pageInfo); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | |
| | | @Override |
| | | public List<DetectionPaymentReportVO> exportDetectionPaymentReport(DetectionPaymentReportQuery query) { |
| | | List<DetectionPaymentReportVO> list = this.baseMapper.exportDetectionPaymentReport(query); |
| | | for (DetectionPaymentReportVO detectionPaymentReportVO : list) { |
| | | String payTimeStr = new SimpleDateFormat("yyyy-MM-dd").format(detectionPaymentReportVO.getPayTime()); |
| | | detectionPaymentReportVO.setPayTimeStr(payTimeStr); |
| | | } |
| | | return list; |
| | | } |
| | | } |