DrawMapper.xml 507 Bytes
<?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.huaheng.pc.draw.mapper.DrawMapper">
    <select id="selectDraw" resultType="com.huaheng.pc.draw.domain.Draw">
        SELECT id,no,name,fname,creator,tsize,ctime FROM PLMHH.DWGSW where 1=1
        <if test="no != null and no != ''">
            and no like concat(#{no},'%')
        </if>
        and ROWNUM = 1
    </select>

</mapper>