|
@@ -131,9 +131,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
|
AND p.freight_advance = '1'
|
|
@@ -217,9 +221,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
AND p.create_date >= ADDDATE( NOW( ),- 2 )
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
@@ -296,9 +304,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
AND p.create_date < ADDDATE( NOW( ),- 2 )
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
@@ -387,9 +399,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
|
AND p.freight_advance = '1'
|
|
@@ -477,9 +493,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
AND p.create_date >= ADDDATE( NOW( ),- 5 )
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
@@ -556,9 +576,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
AND p.create_date < ADDDATE( NOW( ),- 5 )
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
@@ -643,9 +667,13 @@
|
|
|
AND p.status_key = '5'
|
|
|
AND p.show_hide = '1'
|
|
|
AND c.delete_flag = '0'
|
|
|
- AND co.status_key != '11'
|
|
|
- AND co.status_key != '17'
|
|
|
- AND co.delete_flag = '0'
|
|
|
+ <if test="p != null">
|
|
|
+ <if test="p.comp_id != null">
|
|
|
+ AND co.status_key != '11'
|
|
|
+ AND co.status_key != '17'
|
|
|
+ AND co.delete_flag = '0'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
|
AND p.freight_advance = '1'
|