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
33
34
35
| <?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="BbCteamQuery">
| <![CDATA[
|
| SELECT
| bbct_id,
| bbct_sn,
| bbct_name,
| bbct_state,
| bbct_bbwh_names,
| bbct_bbwh_ids,
| bbct_locationid,
| creator,
| create_time,
| modifier,
| modify_time
| from bb_cteam
| where 1=1
| <<and (bbct_sn like concat('%', :bbctInfo, '%') or bbct_name like concat('%', :bbctInfo, '%') or>>
| <<bbct_state like concat('%', :bbctInfo, '%') or bbct_bbwh_names like concat('%', :bbctInfo, '%'))>>
| <<and bbct_sn like concat('%',:bbctSn,'%')>>
| <<and bbct_name like concat('%',:bbctName,'%')>>
| <<and bbct_state =:bbctState>>
| <<and bbct_bbwh_names like concat('%',:bbctBbwhNames,'%')>>
| <<AND bbct_locationid = :locationid>>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|