Commit 68bbf4d6 by 章家宝

feat:打包报错

1 parent ac58eb3a
......@@ -86,6 +86,10 @@ public class InspectionWORespVO {
@Schema(description = "备注")
private String remark;
@Schema(description = "审核理由")
private String auditContent;
@Schema(description = "驳回原因")
private String cancelContent;
}
......@@ -169,10 +169,20 @@
<groupId>com.github.xingfudeshi</groupId>
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>aus-admin-1.0.0</finalName>
<finalName>aus-inspector-1.0.0</finalName>
<plugins>
<!-- 编译插件:配置Lombok和Spring Boot配置处理器 -->
<plugin>
......@@ -191,6 +201,9 @@
<version>${spring.boot.version}</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
......
package com.glsx.usedcar.module.inspect.service;
import cn.hutool.core.map.MapUtil;
import com.glsx.usedcar.module.inspect.vo.InspectionSaveVO;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
import java.util.Map;
/**
* @author yangwei
* @version 1.0
* @since 2026/03/20 20:39
*/
@SpringBootTest
public class InspectionRecordServiceTest {
@Autowired
private InspectionRecordService inspectionRecordService;
@Test
public void testSaveInspection() {
// List<Long> secondModuleIds204 = List.of(205L, 206L, 207L, 208L, 209L, 210L, 211L, 212L, 213L, 214L, 215L, 216L, 217L, 218L, 219L, 220L, 221L, 222L, 223L, 224L, 225L, 226L, 227L);
// List<Long> secondModuleIds251 = List.of(252L, 253L, 254L, 255L, 256L, 257L, 258L, 259L);
// List<Long> secondModuleIds268 = List.of(269L, 270L, 271L, 272L, 273L, 274L, 275L, 276L, 277L, 278L, 279L, 280L, 281L, 282L, 283L, 284L, 285L, 286L, 287L);
// List<Long> secondModuleIds307 = List.of(308L, 309L, 310L, 311L, 312L, 313L, 314L, 315L, 316L, 317L, 318L, 319L);
// List<Long> secondModuleIds332 = List.of(333L, 334L, 335L, 336L, 337L, 338L, 339L, 340L, 341L, 342L, 343L);
// List<Long> secondModuleIds355 = List.of(356L, 357L, 358L, 359L, 360L, 361L, 362L, 363L, 364L, 365L, 366L, 367L, 368L, 369L, 370L, 371L, 372L, 373L, 374L, 375L, 376L, 377L, 378L, 379L, 380L);
// List<Long> secondModuleIds406 = List.of(407L, 408L, 409L, 410L, 411L, 412L, 413L, 414L, 415L, 416L, 417L, 418L, 419L, 420L, 421L, 422L, 423L, 424L, 425L);
// List<Long> secondModuleIds445 = List.of(446L, 447L, 448L, 449L, 450L, 451L, 452L, 453L, 454L);
// List<Long> secondModuleIds464 = List.of(465L, 466L, 467L, 468L, 469L, 470L, 471L, 472L, 473L, 474L, 475L, 476L, 477L, 478L, 479L, 480L, 481L, 482L, 483L, 484L, 485L, 486L, 487L);
// List<Long> secondModuleIds511 = List.of(512L, 513L, 514L, 515L, 516L, 517L, 518L, 519L, 520L, 521L, 522L, 523L, 524L, 525L, 526L, 527L);
// List<Long> secondModuleIds544 = List.of(545L, 546L, 547L);
// List<Long> secondModuleIds163 = List.of(164L/*, 165L, 166L, 167L, 168L, 169L, 170L, 171L, 172L, 173L, 174L, 175L, 176L, 177L, 178L, 179L, 180L, 181L, 182L, 183L*/);
Map<Long, List<Long>> firstModuleIds = MapUtil.<Long, List<Long>>builder()
// .put(204L, secondModuleIds204)
// .put(251L, secondModuleIds251)
// .put(268L, secondModuleIds268)
// .put(307L, secondModuleIds307)
// .put(332L, secondModuleIds332)
// .put(355L, secondModuleIds355)
// .put(406L, secondModuleIds406)
// .put(445L, secondModuleIds445)
// .put(464L, secondModuleIds464)
// .put(511L, secondModuleIds511)
// .put(544L, secondModuleIds544)
// .put(163L, secondModuleIds163)
.build();
for (Map.Entry<Long, List<Long>> longListEntry : firstModuleIds.entrySet()) {
Long key = longListEntry.getKey();
List<Long> value = longListEntry.getValue();
for (Long sub : value) {
InspectionSaveVO vo = new InspectionSaveVO();
vo.setTaskId(1L);
vo.setLocationModule(key);
vo.setLocationSubModule(sub);
inspectionRecordService.saveInspection(vo);
}
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!