<?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>
|