<?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.nantian.cloud.dbcapp.mapper.record.TStandardMapper">
    <resultMap id="BaseResultMap" type="com.nantian.cloud.dbcapp.entity.TStandard">
        <id column="id" property="id" />
        <result column="code" property="code" />
        <result column="name" property="name" />
        <result column="quota_name" property="quotaName" />
        <result column="limit_value" property="limitValue" />
        <result column="advanced_value" property="advancedValue" />
        <result column="admit_value" property="admitValue" />
        <result column="min_value" property="minValue" />
        <result column="max_value" property="maxValue" />
        <result column="type" property="type" />
    </resultMap>

    <select id="getStandardList" resultType="java.util.Map">
          SELECT * FROM t_standard
          <trim prefix="where" prefixOverrides="and">
              <if test="name!= null and name != ''">
                  and name like concat("%",#{name},"%")
              </if>
              <if test="quotaName!= null and quotaName != ''">
                  and quota_name like concat("%",#{quotaName},"%")
              </if>
              <if test="code!= null and code != ''">
                  and code = #{code}
              </if>
          </trim>
    </select>
</mapper>