|
@@ -0,0 +1,29 @@
|
|
|
+package cn.cslg.pas.service;
|
|
|
+
|
|
|
+import cn.cslg.pas.common.model.dto.StructureQueryPageDTO;
|
|
|
+import cn.cslg.pas.common.model.vo.StructureVO;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author 陈宇
|
|
|
+ * @Date 2023/3/11
|
|
|
+ */
|
|
|
+@Slf4j
|
|
|
+@SpringBootTest
|
|
|
+public class StructureServiceImplTests {
|
|
|
+ @Autowired
|
|
|
+ private IStructureService structureService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void query() {
|
|
|
+ StructureQueryPageDTO structureQueryPageDTO = new StructureQueryPageDTO()
|
|
|
+ .setProductId(22)
|
|
|
+ .setStructureId(5);
|
|
|
+ StructureVO queryResult = structureService.query(structureQueryPageDTO);
|
|
|
+ log.info("{}", queryResult);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|