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.
37 lines
1.2 KiB
37 lines
1.2 KiB
<?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.lnsoft.workflow.hxgk.mapper.TeamgroupMapper">
|
|
|
|
<resultMap type="com.lnsoft.workflow.hxgk.entity.Teamgroup" id="TeamgroupMap">
|
|
<result property="id" column="id" jdbcType="OTHER"/>
|
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
|
<result property="time" column="time" jdbcType="OTHER"/>
|
|
<result property="state" column="state" jdbcType="OTHER"/>
|
|
</resultMap>
|
|
|
|
<sql id="base_sql">
|
|
id, name, time, state
|
|
</sql>
|
|
|
|
<!--查询-->
|
|
<select id="queryList" resultMap="TeamgroupMap">
|
|
select
|
|
<include refid="base_sql"/>
|
|
from teamgroup
|
|
<where>
|
|
<if test="id != null">
|
|
and id = #{id}
|
|
</if>
|
|
<if test="name != null and name != ''">
|
|
and name = #{name}
|
|
</if>
|
|
<if test="time != null">
|
|
and time = #{time}
|
|
</if>
|
|
<if test="state != null">
|
|
and state = #{state}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|