liusheng
2023-11-10 6f344e6360751574f7e03b21c00cfa3f4b2bc099
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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>