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
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,78,72,71,67,58,64,46) AND d.kind_name not in ('百伦咨询服务费')
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,78,72,71,67,58,54,46) AND
d.kind_name not in ('百伦咨询服务费')
<iftest="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>
<iftest="feeSuperType != null and feeSuperType != ''">AND t.manage_cost_type = #{feeSuperType}</if>
<iftest="feeSubType != null and feeSubType != ''">AND d.kind_name = #{feeSubType}</if>
<iftest="feeSubType != null and feeSubType != ''">AND d.kind_name = #{feeSubType}</if>
<iftest="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>
<iftest="departmentName != null and departmentName != ''">AND u.departmentname1 = #{departmentName}</if>
<iftest="companyValueList != null and companyValueList.size() > 0">
<iftest="companyValueList != null and companyValueList.size() > 0">