Commit 588c69ca authored by stone's avatar stone

【fix】修改为模糊查询

parent 588de211
......@@ -113,10 +113,10 @@
<bm:query-field name="contract_number"
queryExpression="contract_number like upper(&apos;%&apos;||${@contract_number}||&apos;%&apos;)"/>
<bm:query-field name="bp_id_tenant" queryExpression="t1.bp_id_tenant = ${@bp_id_tenant}"/>
<bm:query-field name="contract_name" queryExpression="t1.contract_name = ${@contract_name}"/>
<bm:query-field name="contract_name" queryExpression="t1.contract_name like &apos;%&apos;||${@contract_name}||&apos;%&apos;"/>
<bm:query-field name="project_number" queryExpression="t1.project_number = ${@project_number}"/>
<!--<bm:query-field name="bp_id_tenant_desc" queryExpression="t1.bp_id_tenant_desc like ${@bp_id_tenant_desc}"/>-->
<bm:query-field name="bp_id_agent_desc" queryExpression="t1.bp_id_agent_desc like ${@bp_id_agent_desc}"/>
<bm:query-field name="bp_id_agent_desc" queryExpression="t1.bp_id_agent_desc like &apos;%&apos;||${@bp_id_agent_desc}||&apos;%&apos;"/>
<!-- <bm:query-field name="lease_start_date_from" queryExpression="t1.inception_of_lease &gt;=to_date(${@lease_start_date_from},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="lease_start_date_to" queryExpression="t1.inception_of_lease &lt;=to_date(${@lease_start_date_to},&apos;yyyy-mm-dd&apos;)"/>
-->
......
......@@ -6,7 +6,7 @@ var override_queryfields = [
{
name:'bp_name',
queryexpression:"t1.bp_name like ${@bp_name}"
queryexpression:"t1.bp_name like '%'||${@bp_name}||'%' "
},
{
name:'bp_type',
......
......@@ -5,10 +5,10 @@ var override_queryfields = [
},
{
name : 'bp_name',
queryexpression : "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_tenant and hr.bp_name like ${@bp_name})"
queryexpression : "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_tenant and hr.bp_name like '%'||${@bp_name}||'%')"
},{
name : 'bp_id_agent_level1_n',
queryexpression : "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_agent_level1 and hr.bp_name like ${@bp_id_agent_level1_n})"
queryexpression : "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_agent_level1 and hr.bp_name like '%'||${@bp_id_agent_level1_n}||'%')"
},
{
name : 'lease_start_date_from',
......@@ -39,7 +39,7 @@ var override_queryfields = [
queryoperator : "="
}, {
name : 'contract_number',
queryexpression : "t1.contract_number like ${@contract_number}"
queryexpression : "t1.contract_number like '%'||${@contract_number}||'%'"
}, {
field : 'lease_channel',
queryoperator : "="
......@@ -61,7 +61,10 @@ var override_queryfields = [
}, {
field : 'division',
queryoperator : "="
}
}, {
name : 'contract_name',
queryexpression : "t1.contract_name like '%'||${@contract_name}||'%'"
}
];
......
......@@ -5,7 +5,7 @@ var override_queryfields = [
},
{
name: 'bp_name',
queryexpression: "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_tenant and hr.bp_name like ${@bp_name})"
queryexpression: "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_tenant and hr.bp_name like '%'||${@bp_name}||'%')"
},
{
name: 'lease_start_date_from',
......@@ -43,8 +43,8 @@ var override_queryfields = [
field: 'contract_id',
queryoperator: "="
}, {
name: 'contract_name',
queryexpression: "t1.contract_number like ${@contract_number}"
name: 'contract_number',
queryexpression: "t1.contract_number like '%'||${@contract_number}||'%'"
}, {
field: 'lease_channel',
queryoperator: "="
......@@ -66,6 +66,9 @@ var override_queryfields = [
}, {
field: 'division',
queryoperator: "="
},{
name: 'change_created_by_n',
queryexpression: "t1.change_created_by_n like '%'||${@change_created_by_n}||'%'"
}
];
......
......@@ -5,7 +5,7 @@ var override_queryfields = [
},
{
name: 'bp_name',
queryexpression: "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_tenant and hr.bp_name like ${@bp_name})"
queryexpression: "exists (select 1 from hls_bp_master hr where hr.bp_id=t1.bp_id_tenant and hr.bp_name like '%'||${@bp_name}||'%')"
},
{
name: 'lease_start_date_from',
......@@ -35,8 +35,8 @@ var override_queryfields = [
field: 'contract_id',
queryoperator: "="
}, {
name: 'contract_name',
queryexpression: "t1.contract_number like ${@contract_number}"
name: 'contract_number',
queryexpression: "t1.contract_number like '%'||${@contract_number}||'%'"
}, {
field: 'lease_channel',
queryoperator: "="
......@@ -58,6 +58,9 @@ var override_queryfields = [
}, {
field: 'division',
queryoperator: "="
},{
name: 'change_created_by_n',
queryexpression: "t1.change_created_by_n like '%'||${@change_created_by_n}||'%'"
}
];
......
......@@ -14,7 +14,11 @@ var override_queryfields = [
{
name : 'req_date_to',
queryexpression : "trunc(T1.req_date)<=to_date(${@req_date_to},'yyyy-mm-dd')"
}
},
{
name:'payment_req_number',
queryexpression:"t1.payment_req_number like '%'||${@payment_req_number}||'%'"
}
];
var add_datafilters = [
{
......
......@@ -14,6 +14,10 @@ var override_queryfields = [
{
name : 'req_date_to',
queryexpression : "trunc(T1.req_date)<=to_date(${@req_date_to},'yyyy-mm-dd')"
},
{
name:'payment_req_number',
queryexpression:"t1.payment_req_number like '%'||${@payment_req_number}||'%'"
}
];
var add_datafilters = [
......
......@@ -21,7 +21,7 @@ var override_queryfields = [
},
{
name : 'bp_name',
queryexpression : "exists (select 1 from prj_project_bp_v b where b.project_id=t1.project_id and b.bp_name like ${@bp_name})"
queryexpression : "exists (select 1 from prj_project_bp_v b where b.project_id=t1.project_id and b.bp_name like '%'||${@bp_name}||'%')"
},
//{
// field : 'employee_id',
......
var override_queryfields = [
{
name: 'bp_name',
queryexpression: "t1.bp_id_tenant_n like ${@bp_name}"
queryexpression: "t1.bp_id_tenant_n like '%'||${@bp_name}||'%'"
},
{
name: 'contract_number',
queryexpression: "t1.contract_number like '%'||${@contract_number}||'%'"
},
{
name: 'due_date_from',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment