소스 검색

Date类型生成处理

RuoYi 6 년 전
부모
커밋
3c5abd5669
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 1
      src/main/java/com/ruoyi/common/utils/security/ShiroUtils.java
  2. 5 2
      src/main/resources/templates/vm/java/domain.java.vm

+ 0 - 1
src/main/java/com/ruoyi/common/utils/security/ShiroUtils.java

@@ -6,7 +6,6 @@ import org.apache.shiro.session.Session;
 import org.apache.shiro.subject.PrincipalCollection;
 import org.apache.shiro.subject.PrincipalCollection;
 import org.apache.shiro.subject.SimplePrincipalCollection;
 import org.apache.shiro.subject.SimplePrincipalCollection;
 import org.apache.shiro.subject.Subject;
 import org.apache.shiro.subject.Subject;
-
 import com.ruoyi.framework.shiro.realm.UserRealm;
 import com.ruoyi.framework.shiro.realm.UserRealm;
 import com.ruoyi.project.system.user.domain.User;
 import com.ruoyi.project.system.user.domain.User;
 
 

+ 5 - 2
src/main/resources/templates/vm/java/domain.java.vm

@@ -1,8 +1,11 @@
 package ${package}.domain;
 package ${package}.domain;
 
 
 import com.ruoyi.framework.web.domain.BaseEntity;
 import com.ruoyi.framework.web.domain.BaseEntity;
-#if(${hasBigDecimal})
-import java.math.BigDecimal;
+#foreach ($column in $columns)
+#if($column.attrType == 'Date')
+import java.util.Date;
+#break
+#end
 #end
 #end
 
 
 /**
 /**