stage 7: 修复 Java 编译 (Lombok annotationProcessor + jnpf-generater-base + field rename)

- ssw-jxcj-entity/pom.xml 加 maven-compiler-plugin annotationProcessorPaths
  (Java 9+ Lombok 需要显式声明 annotationProcessor, BS-新56 教训)
- ssw-jxcj-biz/pom.xml 加 jnpf-generater-base 依赖
  (codegen 引用 jnpf.util.GeneraterSwapUtil, 不在 jnpf-common-all 里)
- TopicDirectionEntity.inputnumber_num001 改成 inputnumberNum001
  (AI 幻觉字段 BS-新117 #2, Lombok @Data 按字段名生成 getter, snake_case 字段名生成 getField_under_score
   ServiceImpl 期望 getInputnumberNum001, 改名后 Lombok 生成正确 getter)
- ssw-jxcj-biz BUILD SUCCESS ✅ (8.971s)
- 已知遗留: AnnouncementController + AuditRecordController CodePreview 失败 (trigger=[])
  修复需 web UI 设计器打开 form 保存触发 trigger 修复 (本轮跳过, M2 修)

Co-Authored-By: Claude <[email protected]>
This commit is contained in:
sswandClaude committed 2026-07-15 21:03:28 +08:00
1 parent 777f81a4ab
commit 6469cfda88
3 files changed
+28 -1

No files matched your search

+6
View File
@@ -27,5 +27,11 @@
<artifactId>jnpf-common-all</artifactId>
<version>${project.version}</version>
</dependency>
<!-- codegen 引用 jnpf.util.GeneraterSwapUtil (M1 实战教训) -->
<dependency>
<groupId>com.jnpf</groupId>
<artifactId>jnpf-generater-base</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
+21
View File
@@ -21,4 +21,25 @@
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.42</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
@@ -22,7 +22,7 @@ import java.math.BigDecimal;
public class TopicDirectionEntity {
@TableField("inputnumber_num001")
@JSONField(name = "inputnumber_num001")
private BigDecimal inputnumber_num001;
private BigDecimal inputnumberNum001;
@TableField(value = "f_competition_id" , updateStrategy = FieldStrategy.ALWAYS)
@JSONField(name = "f_competition_id")
private BigDecimal fcompetitionId;