fuint-application/application-service/src/main/java/com/fuint/application/service/sendlog/SendLogServiceImpl.java

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.fuint.application.service.sendlog;

import com.fuint.base.annoation.OperationServiceLog;
import com.fuint.base.dao.pagination.PaginationRequest;
import com.fuint.base.dao.pagination.PaginationResponse;
import com.fuint.exception.BusinessCheckException;
import com.fuint.application.dao.entities.MtSendLog;
import com.fuint.application.dao.repositories.MtSendLogRepository;
import com.fuint.application.dto.ReqSendLogDto;
import com.fuint.application.enums.StatusEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.String;
import java.util.*;

/**
 * 发送卡券记录业务实现类
 * Created by FSQ
 * Contact wx fsq_better
 * Site https://www.fuint.cn
 */
@Service
public class SendLogServiceImpl implements SendLogService {

    private static final Logger log = LoggerFactory.getLogger(SendLogServiceImpl.class);

    @Autowired
    private MtSendLogRepository sendLogRepository;

    /**
     * 分页查询列表
     *
     * @param paginationRequest
     * @return
     */
    @Override
    public PaginationResponse<MtSendLog> querySendLogListByPagination(PaginationRequest paginationRequest) {
        paginationRequest.setSortColumn(new String[]{"id desc", "status asc"});
        PaginationResponse<MtSendLog> paginationResponse = sendLogRepository.findResultsByPagination(paginationRequest);
        return paginationResponse;
    }

    /**
     * 添加发放记录
     *
     * @param reqSendLogDto
     * @throws BusinessCheckException
     */
    @Override
    @OperationServiceLog(description = "添加发券记录")
    public MtSendLog addSendLog(ReqSendLogDto reqSendLogDto) {
        MtSendLog log = new MtSendLog();

        log.setType(reqSendLogDto.getType().byteValue());
        log.setUserId(reqSendLogDto.getUserId());
        log.setFileName(reqSendLogDto.getFileName());
        log.setFilePath(reqSendLogDto.getFilePath());
        log.setMobile(reqSendLogDto.getMobile());
后面还有 51 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。