Ver Fonte

生成代码bug

shiqian há 4 anos atrás
pai
commit
4b385e647d

+ 1 - 1
boman-modules/boman-gen/src/main/java/com/boman/gen/controller/MyController.java

@@ -50,7 +50,7 @@ public class MyController extends BaseController {
     @GetMapping("/loadTable")
     public AjaxResult loadTable(GenTable genTable) {
         List<GenTable> tableList = genTableService.selectGenTableList(genTable);
-        requireNonNull(tableList);
+        requiredNonNull(tableList);
 
         // load table and tableColumn
         List<Long> tableIdList = tableList.stream().map(GenTable::getTableId).collect(Collectors.toList());

+ 1 - 1
boman-modules/boman-gen/src/main/resources/mapper/generator/GenTableMapper.xml

@@ -193,7 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			<if test="triggerUpdate != null and triggerUpdate != ''">#{triggerUpdate},</if>
 			<if test="triggerDelete != null and triggerDelete != ''">#{triggerDelete},</if>
 			<if test="triggerSubmit != null and triggerSubmit !=''">#{triggerSubmit},</if>
- 			<if test="createBy != null and createBy != ''">#{#{}},</if>
+ 			<if test="createBy != null and createBy != ''">#{createBy},</if>
 			sysdate()
          )
     </insert>