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.xujie.sys.modules.customer.mapper.CustomerMapper">
<select id="queryCustomerList" resultType="com.xujie.sys.modules.customer.entity.Customer"> select site, customer_no, customer_desc, active, create_date, create_by, update_date, update_by from plm_customer_information <where> <if test="createBy != null and createBy != ''"> and site in (select site from eam_access_site where username = #{createBy}) </if> <if test="customerNo != null and customerNo != ''"> and customer_no = #{customerNo} </if> <if test="customerDesc != null and customerDesc != ''"> and customer_desc like #{customerDesc} </if> <if test="active != null and active != ''"> and active = #{active} </if> </where> </select>
<select id="queryCustomerListByPage" resultType="com.xujie.sys.modules.customer.entity.Customer"> select site, customer_no, customer_desc, active, create_date, create_by, update_date, update_by from plm_customer_information <where> <if test="params.createBy != null and params.createBy != ''"> and site in (select site from eam_access_site where username = #{params.createBy}) </if> <if test="params.customerNo != null and params.customerNo != ''"> and customer_no = #{params.customerNo} </if> <if test="params.customerDesc != null and params.customerDesc != ''"> and customer_desc like #{params.customerDesc} </if> <if test="params.active != null and params.active != ''"> and active = #{params.active} </if> </where> </select></mapper>
|