|
@@ -16,14 +16,18 @@
|
|
|
<select id="page" resultType="org.springblade.control.vo.ProjectCostBudgetStatsVO">
|
|
|
SELECT cbs.*,cpi.name as projectName,CASE cbs.status WHEN '0' THEN '未上报' WHEN '1' THEN '已上报' WHEN '2' THEN '已审批' ELSE '已驳回' END as statusValue
|
|
|
from c_project_cost_budget_stats cbs left join bladex.c_control_project_info cpi on cbs.project_id = cpi.id
|
|
|
- where is_deleted = 0
|
|
|
+ where cbs.is_deleted = 0
|
|
|
<if test="queryValue != null and queryValue != ''">
|
|
|
and cpi.name like concat('%', #{queryValue}, '%')
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getProjectList" resultType="org.springblade.control.entity.ControlProjectInfo">
|
|
|
- select * FROM c_control_project_info cpi left join c_project_cost_budget_stats cbs on cpi.id = cbs.project_id WHERE cbs.id is null
|
|
|
+ select * FROM c_control_project_info cpi left join c_project_cost_budget_stats cbs on cpi.id = cbs.project_id WHERE cpi.is_deleted = 0 and cbs.id is null
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getProjectList2" resultType="org.springblade.control.entity.ControlProjectInfo">
|
|
|
+ select * FROM c_control_project_info cpi WHERE cpi.is_deleted = 0
|
|
|
</select>
|
|
|
|
|
|
<select id="getCostTypeDict" resultType="org.springblade.control.entity.DictInfo">
|