import cn.hutool.core.date.DateUtil;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qnfhq.ApiApplication;
import com.qnfhq.modules.business.dao.TMingOrderMapper;
import com.qnfhq.modules.business.entity.TMingOrder;
import com.qnfhq.modules.business.service.ITMingOrderService;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;


import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@SpringBootTest(classes = ApiApplication.class)
public class DemoApplicationTest {

    @Resource
    private TMingOrderMapper tMingOrderMapper;

    @Autowired
    private ITMingOrderService itMingOrderService;

    @Test
    void test1() {

        IPage<TMingOrder> tMingOrderIPage = itMingOrderService.selectTMingOrderList(new TMingOrder());
        System.out.println(tMingOrderIPage);
    }


    @Test
    void test2() {
        List<TMingOrder> tMingOrders = tMingOrderMapper.selectList(new QueryWrapper<>());
        System.out.println(tMingOrders);
    }


}
