33 lines
1.5 KiB
XML
33 lines
1.5 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.fastbee.iot.mapper.GoviewProjectDataMapper">
|
|
|
|
<resultMap type="com.fastbee.iot.domain.GoviewProjectData" id="GoviewProjectDataResult">
|
|
<result property="id" column="id" />
|
|
<result property="projectId" column="project_id" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="content" column="content" />
|
|
</resultMap>
|
|
|
|
<sql id="selectGoviewProjectDataVo">
|
|
select id, project_id, create_time,update_time, create_by, content from iot_goview_project_data
|
|
</sql>
|
|
|
|
<select id="selectGoviewProjectDataList" parameterType="com.fastbee.iot.domain.GoviewProjectData" resultMap="GoviewProjectDataResult">
|
|
<include refid="selectGoviewProjectDataVo"/>
|
|
<where>
|
|
<if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if>
|
|
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="executeSql" resultType="java.util.LinkedHashMap">
|
|
${value}
|
|
</select>
|
|
</mapper>
|