|
@@ -155,7 +155,7 @@ func (c *ContractApi) GetIncome() {
|
|
|
}
|
|
|
|
|
|
// 获得项目节详情
|
|
|
- section := c.ServiceContract.Get(treeId, bidsectionId, projectId)
|
|
|
+ section := c.ServiceContract.Get(treeId, bidsectionId, projectId, 0)
|
|
|
|
|
|
// 该项目节 子树下是否有合同
|
|
|
isContract := true
|
|
@@ -226,7 +226,7 @@ func (c *ContractApi) PostIncomeCreate() {
|
|
|
}
|
|
|
|
|
|
// 获得项目节
|
|
|
- sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt)
|
|
|
+ sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt, 0)
|
|
|
// 合同ID
|
|
|
contractId, _ := utils.GetDecryptId(sectionDetail.ContractId)
|
|
|
contractDetail := c.ServiceContract.GetContract(contractId)
|
|
@@ -293,7 +293,7 @@ func (c *ContractApi) PostIncomeUpdate() {
|
|
|
|
|
|
//2.请求当前项目信息
|
|
|
// 1.验证项目节ID
|
|
|
- sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt)
|
|
|
+ sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt, 0)
|
|
|
// 合同ID
|
|
|
contractId, _ := utils.GetDecryptId(sectionDetail.ContractId)
|
|
|
contractDetail := c.ServiceContract.GetContract(contractId)
|
|
@@ -358,7 +358,7 @@ func (c *ContractApi) Delete() {
|
|
|
|
|
|
//2.请求当前项目信息
|
|
|
// 1.验证项目节ID
|
|
|
- sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt)
|
|
|
+ sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt, 0)
|
|
|
|
|
|
c.Ctx.JSON(iris.Map{"code": 0, "msg": "删除成功", "section": sectionDetail})
|
|
|
}
|
|
@@ -413,7 +413,7 @@ func (c *ContractApi) PostClose() {
|
|
|
return
|
|
|
}
|
|
|
// 1.项目节信息
|
|
|
- sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt)
|
|
|
+ sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt, 0)
|
|
|
c.Ctx.JSON(iris.Map{"code": 0, "msg": "关闭成功", "section": sectionDetail})
|
|
|
}
|
|
|
|
|
@@ -467,7 +467,7 @@ func (c *ContractApi) PostUnlock() {
|
|
|
return
|
|
|
}
|
|
|
// 1.项目节信息
|
|
|
- sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt)
|
|
|
+ sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt, 0)
|
|
|
c.Ctx.JSON(iris.Map{"code": 0, "msg": "解锁成功", "section": sectionDetail})
|
|
|
}
|
|
|
|