提交审核的时候合同金额问题
parent
0390439319
commit
eb05fb71eb
|
@ -108,9 +108,9 @@ public class ProjectProcessService {
|
||||||
return queryProject.getProcessType() == ProcessType.sale_contract;
|
return queryProject.getProcessType() == ProcessType.sale_contract;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getContractAmount(int id) {
|
public BigDecimal getContractAmount(int projectId) {
|
||||||
Map<String, Object> map = jdbcTemplate.queryForMap(
|
Map<String, Object> map = jdbcTemplate.queryForMap(
|
||||||
"select ifnull(sum(amount * price), 0) contractAmount from project_budget_income_detail where project_id = ?", id);
|
"select ifnull(sum(amount * price), 0) contractAmount from project_budget_income_detail where project_id = ?", projectId);
|
||||||
return (BigDecimal) map.values().iterator().next();
|
return (BigDecimal) map.values().iterator().next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -502,7 +502,8 @@ public class ProjectProcessService {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// 合同金额
|
// 合同金额
|
||||||
variables.put("contractAmount", project.getContractAmount() == null ? 0 : project.getContractAmount());
|
BigDecimal contractAmount = getContractAmount(project.getId());
|
||||||
|
variables.put("contractAmount", contractAmount);
|
||||||
}
|
}
|
||||||
// 项目类型
|
// 项目类型
|
||||||
variables.put("projectType", project.getType());
|
variables.put("projectType", project.getType());
|
||||||
|
|
Loading…
Reference in New Issue