| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!--
- Copyright 2009-2012 the original author or authors.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.runzhixing.dao.interf.UnitInterface">
- <!--模块配置-->
- <resultMap id="map" type="com.runzhixing.bean.Unit">
- <result property="id" column="UNITNO"/>
- <result property="name" column="UNITNAME"/>
- <result property="unitAB" column="UNITAB"/>
- <result property="manager" column="MANAGER"/>
- <result property="phone" column="PHONE"/>
- <result property="mobile" column="MOBILE"/>
- <result property="fax" column="FAX"/>
- <result property="addr" column="ADDR"/>
- <result property="post" column="POST"/>
- <result property="email" column="EMAIL"/>
- <result property="remark" column="REMARK"/>
-
- </resultMap>
- <!-- 缓存 -->
- <!--Statement配置-->
-
- <select id="getUnitList" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="map">
- select
- UNITNO,
- UNITNAME,
- UNITAB,
- MANAGER,
- PHONE,
- MOBILE,
- FAX,
- ADDR,
- POST,
- EMAIL,
- REMARK
- from tb_unit t
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and t.unitno like '' || #{cpstring1} || '%'
- </if>
- </where>
- </select>
- </mapper>
|