代码优化
parent
cd8f1ca02b
commit
9bc5bd5515
|
@ -515,13 +515,6 @@ public class ProjectBudgetService {
|
||||||
return projectBudgetPlanDetail;
|
return projectBudgetPlanDetail;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProjectConfigBean getProjectConfigBeanConfig(){
|
|
||||||
ProjectConfigBean projectConfigBean = new ProjectConfigBean();
|
|
||||||
projectConfigBean.setUnderwrittenTaxRate(sysConfigService.getUnderwrittenTaxRate());
|
|
||||||
projectConfigBean.setProjectContributionProfitRateThreshold(sysConfigService.getProjectContributionProfitRateThreshold());
|
|
||||||
return projectConfigBean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据资金计划获取资金使用统计值
|
* 根据资金计划获取资金使用统计值
|
||||||
* 月份去峰值月份
|
* 月份去峰值月份
|
||||||
|
|
|
@ -27,11 +27,7 @@ public class ProjectService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private ProjectRepository projectRepository;
|
private ProjectRepository projectRepository;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ProjectEstimateService projectEstimateService;
|
private SysConfigService sysConfigService;
|
||||||
@Autowired
|
|
||||||
private ProjectBudgetService projectBudgetService;
|
|
||||||
@Autowired
|
|
||||||
private ProjectInstanceService projectInstanceService;
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ActTaskDefService actTaskDefService;
|
private ActTaskDefService actTaskDefService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -130,7 +126,7 @@ public class ProjectService {
|
||||||
project.setCreatorId(admin.getId());
|
project.setCreatorId(admin.getId());
|
||||||
project.setCreatorName(admin.getUserName());
|
project.setCreatorName(admin.getUserName());
|
||||||
|
|
||||||
ProjectConfigBean projectConfigBeanConfig = projectBudgetService.getProjectConfigBeanConfig();
|
ProjectConfigBean projectConfigBeanConfig = sysConfigService.getProjectConfigBeanConfig();
|
||||||
project.setProjectContributionProfitRateThreshold(projectConfigBeanConfig.getProjectContributionProfitRateThreshold());
|
project.setProjectContributionProfitRateThreshold(projectConfigBeanConfig.getProjectContributionProfitRateThreshold());
|
||||||
project.setUnderwrittenTaxRate(projectConfigBeanConfig.getUnderwrittenTaxRate());
|
project.setUnderwrittenTaxRate(projectConfigBeanConfig.getUnderwrittenTaxRate());
|
||||||
|
|
||||||
|
|
|
@ -202,23 +202,23 @@
|
||||||
<#--<@shiro.hasPermission name="PROJECT_EDIT">-->
|
<#--<@shiro.hasPermission name="PROJECT_EDIT">-->
|
||||||
<#--概算状态 并且概算审批状态为草稿和不通过-->
|
<#--概算状态 并且概算审批状态为草稿和不通过-->
|
||||||
<#if list.status==1 && (list.approveStatusEstimate==0 || list.approveStatusEstimate==3)>
|
<#if list.status==1 && (list.approveStatusEstimate==0 || list.approveStatusEstimate==3)>
|
||||||
|
</#if>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||||
onclick="location.href='${base}/project/edit?id=${list.id}'"><span
|
onclick="location.href='${base}/project/edit?id=${list.id}'"><span
|
||||||
class="am-icon-pencil-square-o"></span>编辑概算
|
class="am-icon-pencil-square-o"></span>编辑概算
|
||||||
</button>
|
</button>
|
||||||
</#if>
|
|
||||||
|
|
||||||
<#-- </@shiro.hasPermission>
|
<#-- </@shiro.hasPermission>
|
||||||
<@shiro.hasPermission name="PROJECT_EDIT">-->
|
<@shiro.hasPermission name="PROJECT_EDIT">-->
|
||||||
<#-- 概算审核通过、预算审批不等于待审核、 结算审批未通过-->
|
<#-- 概算审核通过、预算审批不等于待审核、 结算审批未通过-->
|
||||||
<#if list.approveStatusEstimate=2 && list.approveStatusBudget!=1 && list.approveStatusFinal!=2 >
|
<#if list.approveStatusEstimate=2 && list.approveStatusBudget!=1 && list.approveStatusFinal!=2 >
|
||||||
|
</#if>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||||
onclick="location.href='${base}/project/budgetEdit?id=${list.id}'"><span
|
onclick="location.href='${base}/project/budgetEdit?id=${list.id}'"><span
|
||||||
class="am-icon-pencil-square-o"></span>填写预算表
|
class="am-icon-pencil-square-o"></span>填写预算表
|
||||||
</button>
|
</button>
|
||||||
</#if>
|
|
||||||
<#-- </@shiro.hasPermission>-->
|
<#-- </@shiro.hasPermission>-->
|
||||||
|
|
||||||
<#-- 预算审核通过 并且结算审核不等于审批状态 决算审批未通过 才可以发起结算-->
|
<#-- 预算审核通过 并且结算审核不等于审批状态 决算审批未通过 才可以发起结算-->
|
||||||
|
|
Loading…
Reference in New Issue