//import com.dayou.BaseApplication;
//import com.dayou.dto.TakeNumberDTO;
//import com.dayou.enums.MainBusinessEnum;
//import com.dayou.enums.ProductionEnum;
//import com.dayou.enums.TakeNumberEnum;
//import com.dayou.service.IMajorTargetService;
//import com.dayou.vo.IdNameVO;
//import lombok.extern.slf4j.Slf4j;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
//import org.junit.Test;
//
//import java.util.Arrays;
//import java.util.List;
//
//@Slf4j
//@SpringBootTest(classes = BaseApplication.class)
//@RunWith(value = SpringJUnit4ClassRunner.class)
//public class TakeNumberTest {
//
//    @Autowired
//    private IMajorTargetService majorTargetService;
//
//    @Test
//    public void majorProductionTakeNumberTest(){
//        TakeNumberDTO takeNumberDTO = new TakeNumberDTO();
//        takeNumberDTO.setBusinessId(10722L);
//        takeNumberDTO.setBusinessType(MainBusinessEnum.MAJOR_BUSINESS);
//        takeNumberDTO.setTakeType(TakeNumberEnum.REALTY_NUMBER);
//        takeNumberDTO.setProductionType(ProductionEnum.LETTER);
//        takeNumberDTO.setOrderId("2025010998");
//        IdNameVO idNameVO = new IdNameVO();
//        idNameVO.setId(76L);
////        IdNameVO idNameVO1 = new IdNameVO();
////        idNameVO1.setId(87L);
////        idNameVO1.setName("川友房预2025010998-1号");
//        List<IdNameVO> targets = Arrays.asList(idNameVO);
//        takeNumberDTO.setTargets(targets);
//        String takeNo = majorTargetService.majorTakeLetterNo(takeNumberDTO);
//        log.info(takeNo);
//    }
//}
