fix up the bug when column or table has not comment

This commit is contained in:
moshowgame@126.com
2018-09-13 14:10:59 +08:00
parent 4603270887
commit 01932b628d
7 changed files with 15 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ import java.util.Map;
/**
* ${classInfo.classComment}
*
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
*/
@Controller
public class ConfController {

View File

@@ -6,7 +6,7 @@ import java.util.List;
/**
* ${classInfo.classComment}
*
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
*/
@Component
public interface ${classInfo.className}Dao {

View File

@@ -21,7 +21,7 @@ import java.util.Date;
@Data
@Table(name="${classInfo.tableName}")
public class ${classInfo.className} implements Serializable {
private static final long serialVersionUID = 42L;
private static final long serialVersionUID = 1L;
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
<#list classInfo.fieldList as fieldItem >

View File

@@ -13,7 +13,7 @@ import java.util.Date;
/**
* ${classInfo.classComment}
*
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
*/
public class ${classInfo.className} implements Serializable {
private static final long serialVersionUID = 42L;

View File

@@ -3,7 +3,7 @@ import java.util.Map;
/**
* ${classInfo.classComment}
*
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
*/
public interface ${classInfo.className}Service {

View File

@@ -9,7 +9,7 @@ import java.util.Map;
/**
* ${classInfo.classComment}
*
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
*/
@Service
public class ${classInfo.className}ServiceImpl implements ${classInfo.className}Service {