change - 代码生成

master
yinq 2 years ago
parent 9108cc607d
commit eeb1f08ecd

@ -73,6 +73,7 @@
AND to_char(create_time, 'yyyy-mm-dd') <= #{params.endTime} AND to_char(create_time, 'yyyy-mm-dd') <= #{params.endTime}
</if> </if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult"> <select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult">

@ -3,6 +3,7 @@ package ${packageName}.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.aucma.common.utils.DateUtils;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -37,11 +38,11 @@ public class ${ClassName}Controller extends BaseController {
@Autowired @Autowired
private I${ClassName}Service ${className}Service; private I${ClassName}Service ${className}Service;
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')" ) @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')" )
@GetMapping("/list" ) @GetMapping("/list" )
#if($table.crud || $table.sub) #if($table.crud || $table.sub)
public TableDataInfo list(${ClassName} ${className}) { public TableDataInfo list(${ClassName} ${className}) {
startPage(); startPage();

@ -38,12 +38,12 @@ private static final long serialVersionUID=1L;
#set($comment=$column.columnComment) #set($comment=$column.columnComment)
#end #end
#if($parentheseIndex != -1) #if($parentheseIndex != -1)
@Excel(name = "${comment}" , readConverterExp = "$column.readConverterExp()" ) @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.javaType == 'Date') #elseif($column.javaType == 'Date')
@JsonFormat(pattern = "yyyy-MM-dd" ) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "${comment}" , width = 30, dateFormat = "yyyy-MM-dd" ) @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
#else #else
@Excel(name = "${comment}" ) @Excel(name = "${comment}")
#end #end
#end #end
private $column.javaType $column.javaField; private $column.javaType $column.javaField;
@ -51,7 +51,7 @@ private static final long serialVersionUID=1L;
#end #end
#end #end
#if($table.sub) #if($table.sub)
/** $table.subTable.functionName信息 */ /** $table.subTable.functionName信息 */
private List<${subClassName}> ${subclassName}List; private List<${subClassName}> ${subclassName}List;
#end #end
@ -95,10 +95,10 @@ public String toString(){
#else #else
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) #set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#end #end
.append("${column.javaField}" ,get${AttrName}()) .append("${column.javaField}",get${AttrName}())
#end #end
#if($table.sub) #if($table.sub)
.append("${subclassName}List" ,get${subClassName}List()) .append("${subclassName}List",get${subClassName}List())
#end #end
.toString(); .toString();
} }

@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aucma.quartz.mapper.SysJobMapper"> <mapper namespace="com.aucma.quartz.mapper.SysJobLogMapper">
<resultMap type="SysJobLog" id="SysJobLogResult"> <resultMap type="SysJobLog" id="SysJobLogResult">
<id property="jobLogId" column="job_log_id" /> <id property="jobLogId" column="job_log_id" />

@ -39,6 +39,7 @@
AND to_char(create_time, 'yyyy-mm-dd') &lt;= #{params.endTime} AND to_char(create_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
order by dict_id
</select> </select>
<select id="selectDictTypeAll" resultMap="SysDictTypeResult"> <select id="selectDictTypeAll" resultMap="SysDictTypeResult">

Loading…
Cancel
Save