<?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.project.mapper.ServiceTasknumMapper">
|
|
<resultMap type="com.ruoyi.project.domain.ServiceTasknum" id="ServiceTasknumResult">
|
<result property="id" column="id"/>
|
<result property="apptype" column="apptype"/>
|
<result property="yearmonth" column="yearmonth"/>
|
<result property="serialnumber" column="serialnumber"/>
|
</resultMap>
|
|
<sql id="selectServiceTasknumVo">
|
select id, apptype, yearmonth, serialnumber
|
from service_tasknum
|
</sql>
|
|
<select id="selectServiceTasknumList" parameterType="com.ruoyi.project.domain.ServiceTasknum"
|
resultMap="ServiceTasknumResult">
|
<include refid="selectServiceTasknumVo"/>
|
<where>
|
<if test="apptype != null and apptype != ''">and apptype = #{apptype}</if>
|
<if test="yearmonth != null and yearmonth != ''">and yearmonth = #{yearmonth}</if>
|
<if test="serialnumber != null ">and serialnumber = #{serialnumber}</if>
|
</where>
|
</select>
|
|
</mapper>
|