|
@@ -87,7 +87,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
TCM.f_billstatus,
|
|
|
TCM.applicant_id,
|
|
|
TCM.applicant_name,
|
|
|
- TCM.f_review_date
|
|
|
+ TCM.f_review_date,
|
|
|
+ CASE
|
|
|
+ when TCM.business_type = '0' THEN '费用'
|
|
|
+ when TCM.business_type = '1' THEN '工资'
|
|
|
+ END as business_type,
|
|
|
+ CASE
|
|
|
+ when TCM.expense_type = '0' THEN '对公'
|
|
|
+ when TCM.expense_type = '2' THEN '现金'
|
|
|
+ END as expense_type
|
|
|
from t_cost_management TCM
|
|
|
LEFT JOIN t_cost_management_item TCMI ON TCMI.f_pid = TCM.f_id
|
|
|
<where>
|
|
@@ -100,6 +108,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test='businessTimeList != null and businessTimeList[1] != null and businessTimeList[1]!= ""'>
|
|
|
and TCM.business_time <= #{businessTimeList[1]}
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="businessType != null and businessType != ''"> and TCM.business_type = #{businessType}</if>
|
|
|
+ <if test="expenseType != null and expenseType != ''"> and TCM.expense_type = #{expenseType}</if>
|
|
|
+
|
|
|
<if test="createDept != null and createDept != ''"> and TCM.create_dept = #{createDept}</if>
|
|
|
<if test="createDeptName != null and createDeptName != ''"> and TCM.create_dept_name like concat('%', #{createDeptName}, '%')</if>
|
|
|
<if test="createById != null and createById != ''"> and TCM.create_by_id = #{createById}</if>
|