Browse Source

优化代码生成

tags/v3.1.0
Ricky 3 years ago
parent
commit
887430874d
  1. 4
      ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/serviceImpl.java.vm

4
ruoyi-modules/ruoyi-gen/src/main/resources/vm/java/serviceImpl.java.vm

@ -3,7 +3,7 @@ package ${packageName}.service.impl; @@ -3,7 +3,7 @@ package ${packageName}.service.impl;
import java.util.List;
#foreach ($column in $columns)
#if($column.javaField == 'createTime' || $column.javaField == 'updateTime')
import com.scxt.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.DateUtils;
#break
#end
#end
@ -11,7 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -11,7 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
#if($table.sub)
import java.util.ArrayList;
import com.scxt.common.core.utils.StringUtils;
import com.ruoyi.common.core.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
import ${packageName}.domain.${subClassName};
#end

Loading…
Cancel
Save