yuan
2026-06-26 0ac445694a8ffc0e26e54d788d889b3797edf7a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.measuringinstrumentledger.mapper.SparePartsRequisitionRecordMapper">
 
    <select id="listPage" resultType="com.ruoyi.measuringinstrumentledger.pojo.SparePartsRequisitionRecord">
        SELECT *
        FROM spare_parts_requisition_record
        <where>
            <if test="query.sparePartsName != null and query.sparePartsName != ''">
                AND spare_parts_name LIKE CONCAT('%', #{query.sparePartsName}, '%')
            </if>
            <if test="query.sourceType != null">
                AND source_type = #{query.sourceType}
            </if>
        </where>
        ORDER BY create_time DESC
    </select>
</mapper>