liyong
2026-05-09 4402a6e3befe0c33e8f3b58641984fce3fdb0bbc
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
30
31
32
<?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.stock.mapper.StockInventoryCheckPlanMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.stock.pojo.StockInventoryCheckPlan">
        <id column="id" property="id" />
        <result column="plan_no" property="planNo" />
        <result column="status" property="status" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="remark" property="remark" />
        <result column="del_flag" property="delFlag" />
    </resultMap>
    <select id="listPage" resultType="com.ruoyi.stock.dto.StockInventoryCheckPlanDto">
        select stock_inventory_check_plan.* ,sys_user.nick_name as  create_by from
            stock_inventory_check_plan
        left join sys_user on stock_inventory_check_plan.create_user = sys_user.user_id
        <where>
            <if test="ew.planNo != null and ew.planNo != ''">
                and plan_no like concat('%',#{ew.planNo},'%')
            </if>
            <if test="ew.status != null">
                and status = #{ew.status}
            </if>
            <if test="ew.startTime != null">
                and plan_date_start between #{ew.startTime} and #{ew.endTime}
            </if>
        </where>
    </select>
 
</mapper>