Md
This commit is contained in:
parent
546f4d9b1e
commit
4316af0d9b
@ -44,7 +44,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisWarehouseInListByOms" parameterType="EmisWarehouseIn" resultMap="EmisWarehouseInResult">
|
||||
<include refid="selectEmisWarehouseInVo"/>
|
||||
select id, serial_no, in_no, order_sn, bill_code, customer_code, customer_name, entry_date, confirm_status, confirm_date, used_status, status, stock_in_flag, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_warehouse_in a
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
@ -73,18 +74,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<if test="stockInFlag != null and stockInFlag != ''"> and stock_in_flag=#{stockInFlag}</if>
|
||||
|
||||
<if test="queryStatusType != null and queryStatusType == 0">
|
||||
<if test="params.queryStatusType != null and params.queryStatusType == 0">
|
||||
and confirmStatus= '0'
|
||||
</if>
|
||||
|
||||
<if test="queryStatusType != null and queryStatusType == 1">
|
||||
<if test="params.queryStatusType != null and params.queryStatusType == 1">
|
||||
and confirmStatus= '1'
|
||||
</if>
|
||||
|
||||
<if test="queryStatusType != null and queryStatusType == 2">
|
||||
<if test="params.queryStatusType != null and params.queryStatusType == 2">
|
||||
and confirmStatus= '2'
|
||||
</if>
|
||||
|
||||
<if test="params.searchValue != null and params.searchValue !='' ">
|
||||
and (
|
||||
a.in_no like concat('%', #{params.searchValue}, '%')
|
||||
or a.bill_code like concat('%', #{params.searchValue}, '%')
|
||||
or a.order_sn like concat('%', #{params.searchValue}, '%')
|
||||
or exists (
|
||||
select 1 from emis_waybill ew where a.bill_code=ew.bill_code and (
|
||||
ew.receive_name like concat('%', #{params.searchValue}, '%') or ew.receive_mobile like concat('%', #{params.searchValue}, '%')
|
||||
)
|
||||
)
|
||||
)
|
||||
</if>
|
||||
|
||||
|
||||
</where>
|
||||
order by create_time desc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user