ganzi-api/inventory-dao/src/main/resources/mapper/SysDocumenttempMapper.xml
2022-09-16 15:07:17 +08:00

30 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.rzyc.mapper.SysDocumenttempMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.rzyc.model.SysDocumenttemp">
<id column="temp_id" property="tempId" />
<result column="temp_name" property="tempName" />
<result column="temp_path" property="tempPath" />
<result column="sort_id" property="sortId" />
<result column="create_by" property="createBy" />
<result column="create_time" property="createTime" />
<result column="modify_by" property="modifyBy" />
<result column="modify_time" property="modifyTime" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
temp_id, temp_name, temp_path, sort_id, create_by, create_time, modify_by, modify_time
</sql>
<!--文书列表-->
<select id="tempList" resultMap="BaseResultMap">
SELECT * FROM sys_documenttemp sd
WHERE sd.`temp_name` LIKE #{condition}
ORDER BY sd.`sort_id` ASC
</select>
</mapper>