no message
This commit is contained in:
@ -0,0 +1,40 @@
|
||||
<?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.ruoyi.system.mapper_yada.CityExpandMapper">
|
||||
|
||||
<resultMap id="RM_Expand" type="com.ruoyi.system.domain_yada.CityFocusVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="year" column="year"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="xAxis" column="x_axis"/>
|
||||
<result property="yAxis" column="y_axis"/>
|
||||
<result property="xAxisPy" column="x_axis_py"/>
|
||||
<result property="yAxisPy" column="y_axis_py"/>
|
||||
<result property="cityCh" column="city_ch"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,year,city,x_axis,y_axis,x_axis_py,y_axis_py,city_ch
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectExpand" resultMap="RM_Expand">
|
||||
SELECT <include refid="columns"/> FROM Urban_center_of_gravity
|
||||
where 1=1
|
||||
<if test="city!= null and city !=''">
|
||||
AND city = #{city}
|
||||
</if>
|
||||
<if test="cityCh!= null and cityCh !=''">
|
||||
AND city_ch = #{cityCh}
|
||||
</if>
|
||||
<if test="year!= null and year !=''">
|
||||
AND year = #{year}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user