heheng
2025-11-19 735d0737c850cb4385d99fb18f485a5e6c7efbb4
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.gkhy.exam.system.mapper.MaterialMapper">
 
    <select id="selectMaterialList" parameterType="com.gkhy.exam.system.domain.Material" resultType="com.gkhy.exam.system.domain.Material">
        select * from material where del_flag = 0
        <if test="materialName != null">
            and material_name like concat('%',#{materialName},'%')
        </if>
        <if test="materialUnit != null">
            and material_unit like concat('%',#{materialUnit},'%')
        </if>
        <if test="inventory != null">
            and inventory = #{inventory}
        </if>
        order by update_time desc
    </select>
 
</mapper>