Browse Source

Date类型生成处理

pull/4/head
RuoYi 7 years ago
parent
commit
3c5abd5669
  1. 1
      src/main/java/com/ruoyi/common/utils/security/ShiroUtils.java
  2. 7
      src/main/resources/templates/vm/java/domain.java.vm

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.SimplePrincipalCollection;
import org.apache.shiro.subject.Subject;
import com.ruoyi.framework.shiro.realm.UserRealm;
import com.ruoyi.project.system.user.domain.User;

7
src/main/resources/templates/vm/java/domain.java.vm

@ -1,8 +1,11 @@
package ${package}.domain;
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
/**

Loading…
Cancel
Save