<?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.ruoyi.production.mapper.WorkshopMapper">
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.production.pojo.Workshop">
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
<result property="principal" column="principal" jdbcType="VARCHAR"/>
|
<result property="contactPhone" column="contact_phone" jdbcType="VARCHAR"/>
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
<result property="isDelete" column="is_delete" jdbcType="INTEGER"/>
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
<result property="createUser" column="create_user" jdbcType="BIGINT"/>
|
<result property="createUserName" column="create_user_name" jdbcType="VARCHAR"/>
|
<result property="updateUser" column="update_user" jdbcType="BIGINT"/>
|
<result property="updateUserName" column="update_user_name" jdbcType="VARCHAR"/>
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
id,name,principal,
|
contact_phone,remark,is_delete,
|
create_time,update_time,create_user,
|
create_user_name,update_user,update_user_name
|
</sql>
|
<select id="pageList" resultType="com.ruoyi.production.bean.dto.WorkshopDto">
|
select <include refid="Base_Column_List"/>
|
from workshop as t1
|
<where>
|
<if test="vo.name != null and vo.name != ''">
|
and t1.name like concat('%', #{vo.name}, '%')
|
</if>
|
<if test="vo.principal != null and vo.principal != '' ">
|
and t1.principal like concat('%',#{vo.principal},'%')
|
</if>
|
<if test="vo.contactPhone != null and vo.principal != ''">
|
and t1.contact_phone like concat('%',#{vo.contactPhone},'%')
|
</if>
|
and t1.is_delete = 0
|
</where>
|
</select>
|
</mapper>
|