<?xml version="1.0"?>
|
<!DOCTYPE hibernate-mapping PUBLIC
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
|
<hibernate-mapping>
|
<sql-query name="AdjustListQuery">
|
<![CDATA[
|
|
select ioam_id,create_time, ioam_name,ioam_type,ioam_size,ioam_remark,ioam_content,ioam_fivo_id,bbst_type
|
from io_adjustment left join bb_stuff on bbst_id=ioam_resource_id
|
where 1=1
|
<<and ioam_name like concat("%",:ioamName,"%")>>
|
<<and ioam_type=:ioamType>>
|
<<and create_time>=:startDate>>
|
<<and create_time<=:endDate>>
|
<<and ioam_type='材料' and bbst_type=:bbstType>>
|
|
and ##CONDITIONS##
|
|
]]>
|
</sql-query>
|
</hibernate-mapping>
|