|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<?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.spring.modules.schedule.mapper.BaseConfigData"> |
|
|
|
<mapper namespace="com.spring.modules.schedule.mapper.BaseConfigMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.spring.modules.schedule.data.BaseConfigData"> |
|
|
|
<id column="id" jdbcType="INTEGER" property="id" /> |
|
|
|
<result column="site" jdbcType="VARCHAR" property="site" /> |
|
|
|
@ -20,28 +20,43 @@ |
|
|
|
select tbl.id,tbl.site,tbl.type,tbl.second_type,tbl.base_data,tbl.base_desc,tbl.status,tbl.sort_no,tbl.remark |
|
|
|
from tbl_base_data tbl |
|
|
|
<where> |
|
|
|
<if test="site != null AND site != ''"> |
|
|
|
<if test="site != null and site != ''"> |
|
|
|
and tbl.site=#{site,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
<if test="type != null AND type != ''"> |
|
|
|
<if test="type != null and type != ''"> |
|
|
|
and tbl.type = #{type,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
<if test="secondType != null AND secondType != ''"> |
|
|
|
<if test="secondType != null and secondType != ''"> |
|
|
|
and tbl.second_type = #{secondType} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<!--查询对象--> |
|
|
|
<select id="getTblBaseDataList" parameterType="BaseConfigData" resultType="BaseConfigData"> |
|
|
|
<select id="getBaseConfigList" parameterType="BaseConfigData" resultType="BaseConfigData"> |
|
|
|
select tbl.id,tbl.site,tbl.type,tbl.second_type,tbl.base_data,tbl.base_desc,tbl.status,tbl.sort_no,tbl.remark |
|
|
|
from tbl_base_data tbl |
|
|
|
<where> |
|
|
|
<if test="site != null AND site != ''"> |
|
|
|
<if test="site != null and site != ''"> |
|
|
|
and tbl.site=#{site,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
AND tbl.type = #{type,jdbcType=VARCHAR} |
|
|
|
<if test="secondType != null AND secondType != ''"> |
|
|
|
<if test="secondType != null and secondType != ''"> |
|
|
|
AND tbl.second_type = #{secondType} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<!--查询单个对象--> |
|
|
|
<select id="getSingleBaseConfig" parameterType="BaseConfigData" resultType="BaseConfigData"> |
|
|
|
select tbl.id,tbl.site,tbl.type,tbl.second_type,tbl.base_data,tbl.base_desc,tbl.status,tbl.sort_no,tbl.remark |
|
|
|
from tbl_base_data tbl |
|
|
|
<where> |
|
|
|
<if test="site != null and site != ''"> |
|
|
|
and tbl.site=#{site,jdbcType=VARCHAR} |
|
|
|
</if> |
|
|
|
AND tbl.type = #{type,jdbcType=VARCHAR} |
|
|
|
<if test="secondType != null and secondType != ''"> |
|
|
|
AND tbl.second_type = #{secondType} |
|
|
|
</if> |
|
|
|
</where> |