27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<?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.nflg.wms.repository.mapper.WmsStructuralPackageStorageTaskMapper">
|
|
|
|
<select id="search" resultType="com.nflg.wms.repository.entity.WmsStructuralPackageStorageTask">
|
|
select *
|
|
from wms_structural_package_storage_task
|
|
<where>
|
|
<if test="request.type != null">
|
|
and source_from=#{type}
|
|
</if>
|
|
<if test="request.taskNo != null and request.taskNo!=''">
|
|
and "no" like concat('%', #{request.taskNo}, '%')
|
|
</if>
|
|
<if test="request.orderNo != null and request.orderNo!=''">
|
|
and source_no like concat('%', #{request.orderNo}, '%')
|
|
</if>
|
|
<if test="request.startDate!=null">
|
|
and create_time >= #{request.startDate}
|
|
</if>
|
|
<if test="request.endDate!=null">
|
|
and create_time <= #{request.endDate}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|