Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
dc-cost-system
Commits
c2b6407f
Commit
c2b6407f
authored
Oct 08, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用系统权限
parent
9d4076a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
191 additions
and
171 deletions
+191
-171
Cost.xml
cost-core/src/main/resources/mapper/Cost.xml
+191
-171
No files found.
cost-core/src/main/resources/mapper/Cost.xml
View file @
c2b6407f
...
@@ -310,11 +310,14 @@
...
@@ -310,11 +310,14 @@
<!--管理成本:查询付款单+收款单+借还单+采购单-->
<!--管理成本:查询付款单+收款单+借还单+采购单-->
<select
id=
"selectManageCost"
resultType=
"com.blt.other.other_cost.dto.ManageCostDto"
>
<select
id=
"selectManageCost"
resultType=
"com.blt.other.other_cost.dto.ManageCostDto"
>
SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form manageCostType,u.departmentname1 departmentName,
SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form
c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name feeSubType,d.amount amount,c.dic currency,
manageCostType,u.departmentname1 departmentName,
c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name
feeSubType,d.amount amount,c.dic currency,
d.amount * c.to_rmb_rate amountRmb, d.id as costId1, c.id as costId
d.amount * c.to_rmb_rate amountRmb, d.id as costId1, c.id as costId
FROM user u, cost c, cost_detail d, type_relation t
FROM user u, cost c, cost_detail d, type_relation t
WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND c.cost_status = 4
WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND
c.cost_status = 4
AND c.logistics_supplier_id is null AND c.company_value =2 AND d.kind_name not in ('百伦咨询服务费','物流费')
AND c.logistics_supplier_id is null AND c.company_value =2 AND d.kind_name not in ('百伦咨询服务费','物流费')
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND t.manage_cost_type = #{feeSuperType}
</if>
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND t.manage_cost_type = #{feeSuperType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND d.kind_name = #{feeSubType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND d.kind_name = #{feeSubType}
</if>
...
@@ -322,7 +325,7 @@
...
@@ -322,7 +325,7 @@
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
AND c.company_value in
AND c.company_value in
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
</foreach>
</foreach>
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c.company_name = #{companyName}
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c.company_name = #{companyName}
</if>
...
@@ -331,19 +334,23 @@
...
@@ -331,19 +334,23 @@
<if
test=
"startDate != null"
>
AND c.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"startDate != null"
>
AND c.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"endDate != null"
>
AND c.pay_time
<![CDATA[<]]>
#{endDate}
</if>
<if
test=
"endDate != null"
>
AND c.pay_time
<![CDATA[<]]>
#{endDate}
</if>
UNION
UNION
SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form manageCostType,u.departmentname1 departmentName,
SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form
c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name feeSubType,d.amount amount,c.dic currency,
manageCostType,u.departmentname1 departmentName,
c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name
feeSubType,d.amount amount,c.dic currency,
d.amount * c.to_rmb_rate amountRmb, d.id as costId1, c.id as costId
d.amount * c.to_rmb_rate amountRmb, d.id as costId1, c.id as costId
FROM user u, cost c, cost_detail d, type_relation t
FROM user u, cost c, cost_detail d, type_relation t
WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND c.cost_status = 4
WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND
AND c.logistics_supplier_id is null AND c.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND d.kind_name not in ('百伦咨询服务费')
c.cost_status = 4
AND c.logistics_supplier_id is null AND c.company_value in
(1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54,74,46) AND d.kind_name not in ('百伦咨询服务费')
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND t.manage_cost_type = #{feeSuperType}
</if>
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND t.manage_cost_type = #{feeSuperType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND d.kind_name = #{feeSubType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND d.kind_name = #{feeSubType}
</if>
<if
test=
"departmentName != null and departmentName != ''"
>
AND u.departmentname1 = #{departmentName}
</if>
<if
test=
"departmentName != null and departmentName != ''"
>
AND u.departmentname1 = #{departmentName}
</if>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
AND c.company_value in
AND c.company_value in
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
</foreach>
</foreach>
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c.company_name = #{companyName}
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c.company_name = #{companyName}
</if>
...
@@ -352,8 +359,10 @@
...
@@ -352,8 +359,10 @@
<if
test=
"startDate != null"
>
AND c.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"startDate != null"
>
AND c.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"endDate != null"
>
AND c.pay_time
<![CDATA[<]]>
#{endDate}
</if>
<if
test=
"endDate != null"
>
AND c.pay_time
<![CDATA[<]]>
#{endDate}
</if>
UNION
UNION
SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form manageCostType,u.departmentname1 departmentName,
SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form
c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name feeSubType,-c1.amount amount,c1.dic currency,
manageCostType,u.departmentname1 departmentName,
c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name
feeSubType,-c1.amount amount,c1.dic currency,
-c1.amount * c1.to_rmb_rate amountRmb, 0 as costId1, c1.id as costId
-c1.amount * c1.to_rmb_rate amountRmb, 0 as costId1, c1.id as costId
FROM user u, type_relation t ,cost c1
FROM user u, type_relation t ,cost c1
WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4
WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4
...
@@ -367,21 +376,26 @@
...
@@ -367,21 +376,26 @@
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
AND c1.company_value in
AND c1.company_value in
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
</foreach>
</foreach>
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c1.company_name = #{companyName}
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c1.company_name = #{companyName}
</if>
<if
test=
"createUserId != null and createUserId != ''"
>
AND c1.create_userid = #{createUserId}
</if>
<if
test=
"createUserId != null and createUserId != ''"
>
AND c1.create_userid = #{createUserId}
</if>
<if
test=
"payUserId != null and payUserId != ''"
>
AND c1.pay_user_id = #{payUserId}
</if>
<if
test=
"payUserId != null and payUserId != ''"
>
AND c1.pay_user_id = #{payUserId}
</if>
<if
test=
"startDate != null"
>
AND c1.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"startDate != null"
>
AND c1.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"endDate != null"
>
AND c1.pay_time
<![CDATA[<]]>
#{endDate}
</if>
<if
test=
"endDate != null"
>
AND c1.pay_time
<![CDATA[<]]>
#{endDate}
</if>
UNION
UNION
SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form manageCostType,u.departmentname1 departmentName,
SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form
c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name feeSubType,-c1.amount amount,c1.dic currency,
manageCostType,u.departmentname1 departmentName,
c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name
feeSubType,-c1.amount amount,c1.dic currency,
-c1.amount * c1.to_rmb_rate amountRmb, 0 as costId1, c1.id as costId
-c1.amount * c1.to_rmb_rate amountRmb, 0 as costId1, c1.id as costId
FROM user u, type_relation t ,cost c1
FROM user u, type_relation t ,cost c1
WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4
WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4
AND c1.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND c1.kind_name not in ('百伦咨询服务费')
AND c1.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54,74,46) AND c1.kind_name not in
('百伦咨询服务费')
AND exists (SELECT 1 FROM cost c2 WHERE c1.company_value = c2.company_value AND c1.type_name = c2.type_name
AND exists (SELECT 1 FROM cost c2 WHERE c1.company_value = c2.company_value AND c1.type_name = c2.type_name
AND c2.create_userid = u.userid AND t.fee_type = c2.type_name AND c2.cost_form = 1 AND c2.cost_status = 4
AND c2.create_userid = u.userid AND t.fee_type = c2.type_name AND c2.cost_form = 1 AND c2.cost_status = 4
AND c2.logistics_supplier_id is null)
AND c2.logistics_supplier_id is null)
...
@@ -391,7 +405,7 @@
...
@@ -391,7 +405,7 @@
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
AND c1.company_value in
AND c1.company_value in
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
</foreach>
</foreach>
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c1.company_name = #{companyName}
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c1.company_name = #{companyName}
</if>
...
@@ -400,19 +414,23 @@
...
@@ -400,19 +414,23 @@
<if
test=
"startDate != null"
>
AND c1.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"startDate != null"
>
AND c1.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"endDate != null"
>
AND c1.pay_time
<![CDATA[<]]>
#{endDate}
</if>
<if
test=
"endDate != null"
>
AND c1.pay_time
<![CDATA[<]]>
#{endDate}
</if>
UNION
UNION
SELECT c.cost_no no,c.bank_company receiveUnit,c.cost_reason reason,c.pay_time payTime,c.cost_form manageCostType,u.departmentname1 departmentName,
SELECT c.cost_no no,c.bank_company receiveUnit,c.cost_reason reason,c.pay_time payTime,c.cost_form
c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,c.kind_name feeSubType,c.amount amount,c.dic currency,
manageCostType,u.departmentname1 departmentName,
c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,c.kind_name
feeSubType,c.amount amount,c.dic currency,
c.amount * c.to_rmb_rate amountRmb, 0 as costId1, c.id as costId
c.amount * c.to_rmb_rate amountRmb, 0 as costId1, c.id as costId
FROM user u, cost c, type_relation t
FROM user u, cost c, type_relation t
WHERE c.create_userid = u.userid AND t.fee_type = c.type_name AND c.cost_form = 3 AND c.is_lend = 2 AND c.cost_status = 4
WHERE c.create_userid = u.userid AND t.fee_type = c.type_name AND c.cost_form = 3 AND c.is_lend = 2 AND
AND c.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND c.kind_name not in ('百伦咨询服务费')
c.cost_status = 4
AND c.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54,74,46) AND c.kind_name not in
('百伦咨询服务费')
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND t.manage_cost_type = #{feeSuperType}
</if>
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND t.manage_cost_type = #{feeSuperType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND c.kind_name = #{feeSubType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND c.kind_name = #{feeSubType}
</if>
<if
test=
"departmentName != null and departmentName != ''"
>
AND u.departmentname1 = #{departmentName}
</if>
<if
test=
"departmentName != null and departmentName != ''"
>
AND u.departmentname1 = #{departmentName}
</if>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
AND c.company_value in
AND c.company_value in
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
</foreach>
</foreach>
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c.company_name = #{companyName}
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND c.company_name = #{companyName}
</if>
...
@@ -421,11 +439,13 @@
...
@@ -421,11 +439,13 @@
<if
test=
"startDate != null"
>
AND c.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"startDate != null"
>
AND c.pay_time
<![CDATA[>=]]>
#{startDate}
</if>
<if
test=
"endDate != null"
>
AND c.pay_time
<![CDATA[<]]>
#{endDate}
</if>
<if
test=
"endDate != null"
>
AND c.pay_time
<![CDATA[<]]>
#{endDate}
</if>
UNION
UNION
SELECT b.buyno no,b.suppliername receiveUnit,b.note reason,b.pay_time payTime,0 as manageCostType,b.departmentname departmentName,
SELECT b.buyno no,b.suppliername receiveUnit,b.note reason,b.pay_time payTime,0 as
manageCostType,b.departmentname departmentName,
b.company_value companyValue,b.company companyName,b.sku_type_name feeSuperType,b.sku_type_name feeSubType,
b.company_value companyValue,b.company companyName,b.sku_type_name feeSuperType,b.sku_type_name feeSubType,
b.amount amount,'CNY',b.amount amountRmb, 0 as costId1, b.id as costId
b.amount amount,'CNY',b.amount amountRmb, 0 as costId1, b.id as costId
FROM buy b
FROM buy b
WHERE b.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND b.sku_type_name in ('固定资产','低值易耗品')
WHERE b.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54,74,46) AND b.sku_type_name in
('固定资产','低值易耗品')
and b.buystatus
<![CDATA[>]]>
3 and b.buystatus
<![CDATA[<]]>
7 and b.buy_type
<![CDATA[<]]>
3
and b.buystatus
<![CDATA[>]]>
3 and b.buystatus
<![CDATA[<]]>
7 and b.buy_type
<![CDATA[<]]>
3
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND b.sku_type_name = #{feeSuperType}
</if>
<if
test=
"feeSuperType != null and feeSuperType != ''"
>
AND b.sku_type_name = #{feeSuperType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND b.sku_type_name = #{feeSubType}
</if>
<if
test=
"feeSubType != null and feeSubType != ''"
>
AND b.sku_type_name = #{feeSubType}
</if>
...
@@ -433,7 +453,7 @@
...
@@ -433,7 +453,7 @@
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
<if
test=
"companyValueList != null and companyValueList.size() > 0"
>
AND b.company_value in
AND b.company_value in
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"companyValueList"
item=
"companyValue"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
<if
test=
"companyValue != null and companyValue != 0"
>
#{companyValue}
</if>
</foreach>
</foreach>
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND b.company = #{companyName}
</if>
<if
test=
"companyName != null and companyName != ''"
>
AND b.company = #{companyName}
</if>
...
@@ -442,153 +462,153 @@
...
@@ -442,153 +462,153 @@
<if
test=
"endDate != null"
>
AND b.pay_time
<![CDATA[<]]>
#{endDate}
</if>
<if
test=
"endDate != null"
>
AND b.pay_time
<![CDATA[<]]>
#{endDate}
</if>
</select>
</select>
<!-- <!–管理成本:查询付款单+收款单+借还单+采购单–>-->
<!-- <!–管理成本:查询付款单+收款单+借还单+采购单–>-->
<!-- <select id="selectManageCost" resultType="com.blt.other.other_cost.dto.ManageCostDto">-->
<!-- <select id="selectManageCost" resultType="com.blt.other.other_cost.dto.ManageCostDto">-->
<!-- SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form-->
<!-- SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name-->
<!-- c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name-->
<!-- feeSubType,d.amount amount,c.dic currency,-->
<!-- feeSubType,d.amount amount,c.dic currency,-->
<!-- d.amount * c.to_rmb_rate amountRmb-->
<!-- d.amount * c.to_rmb_rate amountRmb-->
<!-- FROM user u, cost c, cost_detail d, type_relation t-->
<!-- FROM user u, cost c, cost_detail d, type_relation t-->
<!-- WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND-->
<!-- WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND-->
<!-- c.cost_status = 4-->
<!-- c.cost_status = 4-->
<!-- AND c.logistics_supplier_id is null AND c.company_value =2 AND d.kind_name not in ('百伦咨询服务费','物流费')-->
<!-- AND c.logistics_supplier_id is null AND c.company_value =2 AND d.kind_name not in ('百伦咨询服务费','物流费')-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND d.kind_name = #{feeSubType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND d.kind_name = #{feeSubType}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- AND c.company_value in-->
<!-- AND c.company_value in-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">AND c.company_name = #{companyName}</if>-->
<!-- <if test="companyName != null and companyName != ''">AND c.company_name = #{companyName}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c.create_userid = #{createUserId}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c.create_userid = #{createUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c.pay_user_id = #{payUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c.pay_user_id = #{payUserId}</if>-->
<!-- <if test="startDate != null">AND c.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="startDate != null">AND c.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="endDate != null">AND c.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- <if test="endDate != null">AND c.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- UNION-->
<!-- UNION-->
<!-- SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form-->
<!-- SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name-->
<!-- c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,d.kind_name-->
<!-- feeSubType,d.amount amount,c.dic currency,-->
<!-- feeSubType,d.amount amount,c.dic currency,-->
<!-- d.amount * c.to_rmb_rate amountRmb-->
<!-- d.amount * c.to_rmb_rate amountRmb-->
<!-- FROM user u, cost c, cost_detail d, type_relation t-->
<!-- FROM user u, cost c, cost_detail d, type_relation t-->
<!-- WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND-->
<!-- WHERE c.create_userid = u.userid AND c.cost_no = d.cost_no AND t.fee_type = c.type_name AND c.cost_form = 1 AND-->
<!-- c.cost_status = 4-->
<!-- c.cost_status = 4-->
<!-- AND c.logistics_supplier_id is null AND c.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND-->
<!-- AND c.logistics_supplier_id is null AND c.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND-->
<!-- d.kind_name not in ('百伦咨询服务费')-->
<!-- d.kind_name not in ('百伦咨询服务费')-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND d.kind_name = #{feeSubType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND d.kind_name = #{feeSubType}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- AND c.company_value in-->
<!-- AND c.company_value in-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">AND c.company_name = #{companyName}</if>-->
<!-- <if test="companyName != null and companyName != ''">AND c.company_name = #{companyName}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c.create_userid = #{createUserId}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c.create_userid = #{createUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c.pay_user_id = #{payUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c.pay_user_id = #{payUserId}</if>-->
<!-- <if test="startDate != null">AND c.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="startDate != null">AND c.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="endDate != null">AND c.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- <if test="endDate != null">AND c.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- UNION-->
<!-- UNION-->
<!-- SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form-->
<!-- SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name-->
<!-- c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name-->
<!-- feeSubType,-c1.amount amount,c1.dic currency,-->
<!-- feeSubType,-c1.amount amount,c1.dic currency,-->
<!-- -c1.amount * c1.to_rmb_rate amountRmb-->
<!-- -c1.amount * c1.to_rmb_rate amountRmb-->
<!-- FROM user u, type_relation t ,cost c1-->
<!-- FROM user u, type_relation t ,cost c1-->
<!-- WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4-->
<!-- WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4-->
<!-- AND c1.company_value =2 AND c1.kind_name not in ('百伦咨询服务费','物流费')-->
<!-- AND c1.company_value =2 AND c1.kind_name not in ('百伦咨询服务费','物流费')-->
<!-- AND exists (SELECT 1 FROM cost c2 WHERE c1.company_value = c2.company_value AND c1.type_name = c2.type_name-->
<!-- AND exists (SELECT 1 FROM cost c2 WHERE c1.company_value = c2.company_value AND c1.type_name = c2.type_name-->
<!-- AND c2.create_userid = u.userid AND t.fee_type = c2.type_name AND c2.cost_form = 1 AND c2.cost_status = 4-->
<!-- AND c2.create_userid = u.userid AND t.fee_type = c2.type_name AND c2.cost_form = 1 AND c2.cost_status = 4-->
<!-- AND c2.logistics_supplier_id is null)-->
<!-- AND c2.logistics_supplier_id is null)-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND c1.kind_name = #{feeSubType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND c1.kind_name = #{feeSubType}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- AND c1.company_value in-->
<!-- AND c1.company_value in-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">AND c1.company_name = #{companyName}</if>-->
<!-- <if test="companyName != null and companyName != ''">AND c1.company_name = #{companyName}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c1.create_userid = #{createUserId}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c1.create_userid = #{createUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c1.pay_user_id = #{payUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c1.pay_user_id = #{payUserId}</if>-->
<!-- <if test="startDate != null">AND c1.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="startDate != null">AND c1.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="endDate != null">AND c1.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- <if test="endDate != null">AND c1.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- UNION-->
<!-- UNION-->
<!-- SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form-->
<!-- SELECT c1.cost_no no,c1.bank_company receiveUnit,c1.cost_reason reason,c1.pay_time payTime,c1.cost_form-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name-->
<!-- c1.company_value companyValue,c1.company_name companyName,t.manage_cost_type feeSuperType,c1.kind_name-->
<!-- feeSubType,-c1.amount amount,c1.dic currency,-->
<!-- feeSubType,-c1.amount amount,c1.dic currency,-->
<!-- -c1.amount * c1.to_rmb_rate amountRmb-->
<!-- -c1.amount * c1.to_rmb_rate amountRmb-->
<!-- FROM user u, type_relation t ,cost c1-->
<!-- FROM user u, type_relation t ,cost c1-->
<!-- WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4-->
<!-- WHERE c1.create_userid = u.userid AND t.fee_type = c1.type_name AND c1.cost_form = 2 AND c1.cost_status = 4-->
<!-- AND c1.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND c1.kind_name not in ('百伦咨询服务费')-->
<!-- AND c1.company_value in (1,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND c1.kind_name not in ('百伦咨询服务费')-->
<!-- AND exists (SELECT 1 FROM cost c2 WHERE c1.company_value = c2.company_value AND c1.type_name = c2.type_name-->
<!-- AND exists (SELECT 1 FROM cost c2 WHERE c1.company_value = c2.company_value AND c1.type_name = c2.type_name-->
<!-- AND c2.create_userid = u.userid AND t.fee_type = c2.type_name AND c2.cost_form = 1 AND c2.cost_status = 4-->
<!-- AND c2.create_userid = u.userid AND t.fee_type = c2.type_name AND c2.cost_form = 1 AND c2.cost_status = 4-->
<!-- AND c2.logistics_supplier_id is null)-->
<!-- AND c2.logistics_supplier_id is null)-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND c1.kind_name = #{feeSubType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND c1.kind_name = #{feeSubType}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- AND c1.company_value in-->
<!-- AND c1.company_value in-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">AND c1.company_name = #{companyName}</if>-->
<!-- <if test="companyName != null and companyName != ''">AND c1.company_name = #{companyName}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c1.create_userid = #{createUserId}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c1.create_userid = #{createUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c1.pay_user_id = #{payUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c1.pay_user_id = #{payUserId}</if>-->
<!-- <if test="startDate != null">AND c1.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="startDate != null">AND c1.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="endDate != null">AND c1.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- <if test="endDate != null">AND c1.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- UNION-->
<!-- UNION-->
<!-- SELECT c.cost_no no,c.bank_company receiveUnit,c.cost_reason reason,c.pay_time payTime,c.cost_form-->
<!-- SELECT c.cost_no no,c.bank_company receiveUnit,c.cost_reason reason,c.pay_time payTime,c.cost_form-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- manageCostType,u.departmentname1 departmentName,-->
<!-- c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,c.kind_name-->
<!-- c.company_value companyValue,c.company_name companyName,t.manage_cost_type feeSuperType,c.kind_name-->
<!-- feeSubType,c.amount amount,c.dic currency,-->
<!-- feeSubType,c.amount amount,c.dic currency,-->
<!-- c.amount * c.to_rmb_rate amountRmb-->
<!-- c.amount * c.to_rmb_rate amountRmb-->
<!-- FROM user u, cost c, type_relation t-->
<!-- FROM user u, cost c, type_relation t-->
<!-- WHERE c.create_userid = u.userid AND t.fee_type = c.type_name AND c.cost_form = 3 AND c.is_lend = 2 AND-->
<!-- WHERE c.create_userid = u.userid AND t.fee_type = c.type_name AND c.cost_form = 3 AND c.is_lend = 2 AND-->
<!-- c.cost_status = 4-->
<!-- c.cost_status = 4-->
<!-- AND c.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND c.kind_name not in ('百伦咨询服务费')-->
<!-- AND c.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND c.kind_name not in ('百伦咨询服务费')-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND c.kind_name = #{feeSubType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND c.kind_name = #{feeSubType}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- AND c.company_value in-->
<!-- AND c.company_value in-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">AND c.company_name = #{companyName}</if>-->
<!-- <if test="companyName != null and companyName != ''">AND c.company_name = #{companyName}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c.create_userid = #{createUserId}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND c.create_userid = #{createUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c.pay_user_id = #{payUserId}</if>-->
<!-- <if test="payUserId != null and payUserId != ''">AND c.pay_user_id = #{payUserId}</if>-->
<!-- <if test="startDate != null">AND c.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="startDate != null">AND c.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="endDate != null">AND c.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- <if test="endDate != null">AND c.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- UNION-->
<!-- UNION-->
<!-- SELECT b.buyno no,b.suppliername receiveUnit,b.note reason,b.pay_time payTime,0 as-->
<!-- SELECT b.buyno no,b.suppliername receiveUnit,b.note reason,b.pay_time payTime,0 as-->
<!-- manageCostType,b.departmentname departmentName,-->
<!-- manageCostType,b.departmentname departmentName,-->
<!-- b.company_value companyValue,b.company companyName,b.sku_type_name feeSuperType,b.sku_type_name feeSubType,-->
<!-- b.company_value companyValue,b.company companyName,b.sku_type_name feeSuperType,b.sku_type_name feeSubType,-->
<!-- b.amount amount,'CNY',b.amount amountRmb FROM buy b-->
<!-- b.amount amount,'CNY',b.amount amountRmb FROM buy b-->
<!-- WHERE b.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND b.sku_type_name in ('固定资产','低值易耗品')-->
<!-- WHERE b.company_value in (1,2,3,5,7,8,11,46,48,50,53,59,60,61,66,69,72,67,58,54) AND b.sku_type_name in ('固定资产','低值易耗品')-->
<!-- and b.buystatus <![CDATA[>]]> 3 and b.buystatus <![CDATA[<]]> 7 and b.buy_type <![CDATA[<]]> 3-->
<!-- and b.buystatus <![CDATA[>]]> 3 and b.buystatus <![CDATA[<]]> 7 and b.buy_type <![CDATA[<]]> 3-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND b.sku_type_name = #{feeSuperType}</if>-->
<!-- <if test="feeSuperType != null and feeSuperType != ''">AND b.sku_type_name = #{feeSuperType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND b.sku_type_name = #{feeSubType}</if>-->
<!-- <if test="feeSubType != null and feeSubType != ''">AND b.sku_type_name = #{feeSubType}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND b.departmentname = #{departmentName}</if>-->
<!-- <if test="departmentName != null and departmentName != ''">AND b.departmentname = #{departmentName}</if>-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- <if test="companyValueList != null and companyValueList.size() > 0">-->
<!-- AND b.company_value in-->
<!-- AND b.company_value in-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <foreach collection="companyValueList" item="companyValue" index="index" open="(" close=")" separator=",">-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- <if test="companyValue != null and companyValue != 0">#{companyValue}</if>-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">AND b.company = #{companyName}</if>-->
<!-- <if test="companyName != null and companyName != ''">AND b.company = #{companyName}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND b.createuserid = #{createUserId}</if>-->
<!-- <if test="createUserId != null and createUserId != ''">AND b.createuserid = #{createUserId}</if>-->
<!-- <if test="startDate != null">AND b.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="startDate != null">AND b.pay_time <![CDATA[>=]]> #{startDate}</if>-->
<!-- <if test="endDate != null">AND b.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- <if test="endDate != null">AND b.pay_time <![CDATA[<]]>#{endDate}</if>-->
<!-- </select>-->
<!-- </select>-->
<select
id=
"getLogisticsCostList"
resultType=
"com.blt.other.other_cost.dto.ManageCostDto"
>
<select
id=
"getLogisticsCostList"
resultType=
"com.blt.other.other_cost.dto.ManageCostDto"
>
SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form
SELECT c.cost_no no,c.bank_company receiveUnit,d.cost_reason reason,c.pay_time payTime,c.cost_form
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment