liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
36
37
38
39
40
41
42
43
44
45
46
<?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="BbBusinessPartnerQuery">
        <![CDATA[
 
 
SELECT id,
    bbbp_sn,
    bbbp_category,
    bbbp_business_category,
    bbbp_id,
    bbbp_name,
    bbbp_province,
    bbbp_city,
    bbbp_county,
    bbbp_bi_li,
    bbbp_contact,
    bbbp_contact_tel,
    bbbp_contact_address,
    bbbp_contact_phone,
    bbbp_transport_days,
    bbbp_bbwh_ids,
    bbbp_mail_code,
    bbbp_state,
    bbbp_bbct_ids,
    bbbp_syacc_ids,
    bbbp_remark,
    bbbp_locationid
 from bb_business_partner
where 1=1 
<<and (bbbp_sn like concat('%', :bbbpInfo, '%') or bbbp_name like concat('%', :bbbpInfo, '%') or>>
<< bbbp_contact_address like concat('%', :bbbpInfo, '%') or bbbp_contact_tel like concat('%', :bbbpInfo, '%') or>>
<< bbbp_category like concat('%', :bbbpInfo, '%') or bbbp_business_category like concat('%', :bbbpInfo, '%') or>>
<< bbbp_remark like concat('%', :bbbpInfo, '%') or bbbp_state like concat('%', :bbbpInfo, '%') or>>
<< bbbp_mail_code like concat('%', :bbbpInfo, '%') or bbbp_transport_days like concat('%', :bbbpInfo, '%') or>>
<< bbbp_contact_phone like concat('%', :bbbpInfo, '%'))>>
<<and bbbp_locationid = :locationid>>
and ##CONDITIONS## 
 
        ]]>
    </sql-query>
</hibernate-mapping>