You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?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.gaotao.modules.factory.dao.TblBaseDataDao">
<!-- 可根据自己的需求,是否要使用 --> <resultMap type="com.gaotao.modules.factory.entity.TblBaseDataEntity" id="tblBaseDataMap"> <result property="id" column="id"/> <result property="site" column="site"/> <result property="type" column="type"/> <result property="secondType" column="second_type"/> <result property="baseData" column="base_data"/> <result property="baseDesc" column="base_desc"/> <result property="status" column="status"/> <result property="sortNo" column="sort_no"/> <result property="remark" column="remark"/> </resultMap>
<select id="getTblBaseList" resultType="com.gaotao.modules.factory.entity.TblBaseDataEntity"> select A.id,A.site,A.type,A.second_type,A.base_data,A.base_desc,A.status,A.sort_no,A.remark from tbl_base_data A <where> <if test="site != null and site != ''"> and A.site = #{site,jdbcType=VARCHAR} </if> <if test="type != null and type != ''"> and A.type = #{type,jdbcType=VARCHAR} </if> <if test="secondType != null and secondType != ''"> and A.second_type = #{secondType,jdbcType=VARCHAR} </if> </where> </select></mapper>
|