类型错误
parent
e456c0a6e8
commit
5165ee7bdd
|
@ -18,6 +18,7 @@ import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.format.datetime.DateFormatter;
|
import org.springframework.format.datetime.DateFormatter;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
import org.springframework.web.bind.WebDataBinder;
|
import org.springframework.web.bind.WebDataBinder;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@ -212,7 +213,7 @@ public class ProjectController extends BaseController {
|
||||||
* 进行项目预算保存
|
* 进行项目预算保存
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/budgetEditSave")
|
@RequestMapping("/budgetEditSave")
|
||||||
public String budgetEditSave(Project project, BudgetBean budgetBean, Map<String, Object> model) {
|
public String budgetEditSave(Project project, BindingResult bindingResult, BudgetBean budgetBean, Map<String, Object> model) {
|
||||||
Project projectInDb = projectService.getProject(project.getId());
|
Project projectInDb = projectService.getProject(project.getId());
|
||||||
projectBudgetService.budgetEditSave(project, projectInDb, budgetBean, InterfaceUtil.getAdmin(), ApproveStatusEnum.APPROVAL_UNCOMMIT);
|
projectBudgetService.budgetEditSave(project, projectInDb, budgetBean, InterfaceUtil.getAdmin(), ApproveStatusEnum.APPROVAL_UNCOMMIT);
|
||||||
return "redirect:/project/list";
|
return "redirect:/project/list";
|
||||||
|
|
|
@ -99,16 +99,16 @@ public class Project {
|
||||||
*/
|
*/
|
||||||
@Column(name = "terminal_customer")
|
@Column(name = "terminal_customer")
|
||||||
private String terminalCustomer;
|
private String terminalCustomer;
|
||||||
/**
|
// /**
|
||||||
* 垫资利息(元为单位)
|
// * 垫资利息(元为单位)
|
||||||
*/
|
// */
|
||||||
@Column(name = "advance_interest_amount")
|
// @Column(name = "advance_interest_amount")
|
||||||
private BigDecimal advanceInterestAmount;
|
// private BigDecimal advanceInterestAmount;
|
||||||
/**
|
// /**
|
||||||
* 垫资峰值
|
// * 垫资峰值
|
||||||
*/
|
// */
|
||||||
@Column(name = "advance_peak_amount")
|
// @Column(name = "advance_peak_amount")
|
||||||
private BigDecimal advancePeakAmount;
|
// private BigDecimal advancePeakAmount;
|
||||||
/**
|
/**
|
||||||
* 合同金额
|
* 合同金额
|
||||||
*/
|
*/
|
||||||
|
@ -320,22 +320,6 @@ public class Project {
|
||||||
this.terminalCustomer = terminalCustomer;
|
this.terminalCustomer = terminalCustomer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getAdvanceInterestAmount() {
|
|
||||||
return advanceInterestAmount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAdvanceInterestAmount(BigDecimal advanceInterestAmount) {
|
|
||||||
this.advanceInterestAmount = advanceInterestAmount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getAdvancePeakAmount() {
|
|
||||||
return advancePeakAmount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAdvancePeakAmount(BigDecimal advancePeakAmount) {
|
|
||||||
this.advancePeakAmount = advancePeakAmount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getContractAmount() {
|
public BigDecimal getContractAmount() {
|
||||||
return contractAmount;
|
return contractAmount;
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,8 +183,6 @@ public class ProjectService {
|
||||||
//只有如下可以修改
|
//只有如下可以修改
|
||||||
projectInDb.setStartDate(project.getStartDate());
|
projectInDb.setStartDate(project.getStartDate());
|
||||||
projectInDb.setEndDate(project.getEndDate());
|
projectInDb.setEndDate(project.getEndDate());
|
||||||
projectInDb.setAdvanceInterestAmount(project.getAdvanceInterestAmount());
|
|
||||||
projectInDb.setAdvancePeakAmount(project.getAdvancePeakAmount());
|
|
||||||
projectInDb.setContractAmount(project.getContractAmount());
|
projectInDb.setContractAmount(project.getContractAmount());
|
||||||
projectInDb.setHuazhiProductAmount(project.getHuazhiProductAmount());
|
projectInDb.setHuazhiProductAmount(project.getHuazhiProductAmount());
|
||||||
projectInDb.setZiguangOtherAmount(project.getZiguangOtherAmount());
|
projectInDb.setZiguangOtherAmount(project.getZiguangOtherAmount());
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">项目预算表</strong> / <small>${project.name}</small></div>
|
<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">项目预算表</strong> / <small>${project.name}</small></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="post" class="am-form" id="pmsForm" action="${base}/project/budgetEditSave" data-am-validator>
|
<form method="post" class="am-form" id="pmsForm" action="${base}/project/budgetEditSave">
|
||||||
<!--选项卡(tabs)begin-->
|
<!--选项卡(tabs)begin-->
|
||||||
<div class="am-tabs am-margin" data-am-tabs>
|
<div class="am-tabs am-margin" data-am-tabs>
|
||||||
<ul class="am-tabs-nav am-nav am-nav-tabs">
|
<ul class="am-tabs-nav am-nav am-nav-tabs">
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目类型</div>
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目类型</div>
|
||||||
<div class="am-u-sm-6 am-u-md-6">
|
<div class="am-u-sm-6 am-u-md-6">
|
||||||
<input type="text" class="am-input" data-validate-async data-validation-message="请输入项目项目类型"
|
<input type="text" class="am-input" data-validate-async data-validation-message="请输入项目项目类型"
|
||||||
name="type" <#if project.type=1>value="工程集成类"<#elseif project.type=2>value="设备集成类"<#else>value="战略合作类"</#if>
|
name="typeName" <#if project.type=1>value="工程集成类"<#elseif project.type=2>value="设备集成类"<#else>value="战略合作类"</#if>
|
||||||
required readonly/>
|
required readonly/>
|
||||||
</div>
|
</div>
|
||||||
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资模式</div>
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资模式</div>
|
||||||
<div class="am-u-sm-6 am-u-md-6">
|
<div class="am-u-sm-6 am-u-md-6">
|
||||||
<input type="text" class="am-input" data-validate-async data-validation-message="请输入垫资模式"
|
<input type="text" class="am-input" data-validate-async data-validation-message="请输入垫资模式"
|
||||||
name="underwrittenMode" required readonly
|
name="underwrittenModeName" required readonly
|
||||||
<#if project.underwrittenMode=1>value="A类-不垫资(战略合作)"<#elseif project.underwrittenMode=2>value="B类-不垫资(背靠背)"
|
<#if project.underwrittenMode=1>value="A类-不垫资(战略合作)"<#elseif project.underwrittenMode=2>value="B类-不垫资(背靠背)"
|
||||||
<#elseif project.underwrittenMode=3>value="C类-垫资(账期覆盖)"<#else>value="D类-垫资(账期不覆盖)"</#if> />
|
<#elseif project.underwrittenMode=3>value="C类-垫资(账期覆盖)"<#else>value="D类-垫资(账期不覆盖)"</#if> />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue