package com.kxs.product.biz;

import com.kxs.product.api.model.KxsMachine;
import com.kxs.product.biz.mapper.KxsMachineMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@SpringBootTest
public class TestData {

    @Autowired
    private KxsMachineMapper kxsMachineMapper;

    @Test
    public void test(){
//        LocalDateTime endDay = LocalDate.now().minusDays(30).atStartOfDay();
//        List<KxsMachine> machines = kxsMachineMapper.selectExpireDeductList(endDay);
//        System.out.println(machines);
    }
}
