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.SiteMapper">
<select id="getMaxSiteId" resultType="com.gaotao.modules.factory.entity.Site"> select siteId from site order by CONVERT(INT, siteId) desc </select>
<select id="selectSiteList" resultType="com.gaotao.modules.factory.entity.Site"> select siteId, siteName, address, contact, email, phoneNo, active, createTime, createBy, default_country, auto_serial_number, site_code from site <where> <if test="siteId != null and siteId != ''"> and siteId like #{siteId} </if> <if test="siteName != null and siteName != ''"> and siteName like #{siteName} </if> <if test="active != null and active != ''"> and active = #{active} </if> </where> order by createTime desc </select></mapper>
|