|
@@ -34,9 +34,9 @@
|
|
|
pcb.*,
|
|
|
(select di.dict_name from c_dict_info di where di.code = 'cost_type' and di.dict_value = pcb.cost_type) as costTypeValue,
|
|
|
(select cpp.name from c_project_process cpp where cpp.id = pcb.project_process) as projectProcessValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0) as budgetTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
- (select di.id from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0)) as taskDetailValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0) as budgetTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and and di.is_deleted = 0 di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
+ (select di.id from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0)) as taskDetailValue,
|
|
|
(select di.dict_name from c_dict_info di where di.type = 3 and di.id = pcb.post_type) as postTypeValue
|
|
|
from c_project_cost_budget pcb
|
|
|
where pcb.project_id = #{budget.projectId} and pcb.parent_id = 0
|
|
@@ -83,12 +83,12 @@
|
|
|
SELECT
|
|
|
pcb.*,
|
|
|
(select cpp.name from c_project_process cpp where cpp.id = pcb.project_process) as projectProcessValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0) as budgetTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
- (select di.id from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0)) as taskDetailValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0) as budgetTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.task_detail and di.is_deleted = 0 and di.parent_id =
|
|
|
+ (select di.id from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0)) as taskDetailValue,
|
|
|
(select cri.returned_condition from c_contract_returned_info cri where cri.id = pcb.contract_returned_id) as returnedValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 3 and di.id = pcb.post_type) as postTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 2 and di.id = pcb.plan_task_type) as planTaskTypeValue
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 3 and di.id = pcb.post_type and di.is_deleted = 0) as postTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 2 and di.id = pcb.plan_task_type and di.is_deleted = 0) as planTaskTypeValue
|
|
|
FROM c_project_cost_budget pcb WHERE pcb.project_id = #{id} AND pcb.approve = 1
|
|
|
</select>
|
|
|
|
|
@@ -101,9 +101,9 @@
|
|
|
when 4 then '已完成'
|
|
|
end as statusValue,
|
|
|
(select cpi.name from c_control_project_info cpi WHERE cpi.id = pcb.project_id) as projectName,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0) as budgetTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
- (select di.id from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0)) as taskDetailValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0) as budgetTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.task_detail and di.is_deleted = 0 and di.parent_id =
|
|
|
+ (select di.id from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0)) as taskDetailValue,
|
|
|
(select cpp.name from c_project_process cpp WHERE cpp.id = pcb.project_process) as projectProcessValue,
|
|
|
(select di.dict_name from c_dict_info di where di.type = 2 and di.id = pcb.plan_task_type) as planTaskTypeValue
|
|
|
from c_project_cost_budget pcb
|
|
@@ -183,9 +183,9 @@
|
|
|
<select id="getAllChildrenPlan" resultType="org.springblade.control.vo.ProjectCostBudgetVO2">
|
|
|
SELECT pcb.*,
|
|
|
(select cpp.name from c_project_process cpp where cpp.id = pcb.project_process) as projectProcessValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0) as budgetTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
- (select di.id from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0)) as taskDetailValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0) as budgetTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.task_detail and di.is_deleted = 0 and di.parent_id =
|
|
|
+ (select di.id from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0)) as taskDetailValue,
|
|
|
(select di.dict_name from c_dict_info di where di.type = 2 and di.id = pcb.plan_task_type) as planTaskTypeValue
|
|
|
FROM c_project_cost_budget pcb WHERE pcb.project_id = #{id} AND pcb.parent_id > 0
|
|
|
</select>
|
|
@@ -324,9 +324,9 @@
|
|
|
when 4 then '已完成'
|
|
|
end as statusValue,
|
|
|
(select cpi.name from c_control_project_info cpi WHERE cpi.id = pcb.project_id) as projectName,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0) as budgetTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
- (select di.id from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0)) as taskDetailValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0) as budgetTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.task_detail and di.is_deleted = 0 and di.parent_id =
|
|
|
+ (select di.id from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0)) as taskDetailValue,
|
|
|
(select cpp.name from c_project_process cpp WHERE cpp.id = pcb.project_process) as projectProcessValue,
|
|
|
(select di.dict_name from c_dict_info di where di.type = 2 and di.id = pcb.plan_task_type) as planTaskTypeValue
|
|
|
from c_project_cost_budget pcb
|
|
@@ -340,9 +340,9 @@
|
|
|
when 4 then '已完成'
|
|
|
end as statusValue,
|
|
|
(select cpi.name from c_control_project_info cpi WHERE cpi.id = pcb.project_id) as projectName,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0) as budgetTypeValue,
|
|
|
- (select di.dict_name from c_dict_info di where di.type = 1 and di.dict_value = pcb.task_detail and di.parent_id =
|
|
|
- (select di.id from c_dict_info di where di.type = 1 and di.dict_value = pcb.budget_type and di.parent_id = 0)) as taskDetailValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0) as budgetTypeValue,
|
|
|
+ (select di.dict_name from c_dict_info di where di.type = 5 and di.dict_value = pcb.task_detail and di.is_deleted = 0 and di.parent_id =
|
|
|
+ (select di.id from c_dict_info di where di.type = 5 and di.dict_value = pcb.budget_type and di.parent_id = 0 and di.is_deleted = 0)) as taskDetailValue,
|
|
|
(select cpp.name from c_project_process cpp WHERE cpp.id = pcb.project_process) as projectProcessValue,
|
|
|
(select di.dict_name from c_dict_info di where di.type = 2 and di.id = pcb.plan_task_type) as planTaskTypeValue
|
|
|
from c_project_cost_budget pcb
|