|
@@ -730,15 +730,8 @@ func GetHtmlByContractDetail(contractDetail *contract.ContractDetail, htmlType s
|
|
|
//赋值table表格数据
|
|
|
tableDataList.List = tableRowList
|
|
|
} else {
|
|
|
- //获取预设的表格数据
|
|
|
- contractServiceTemplate, tmpErr := contract_service_template.GetContractServiceTemplateById(item.ServiceTemplateId)
|
|
|
- if tmpErr != nil {
|
|
|
- err = tmpErr
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
//赋值table表格数据
|
|
|
- jsonStr := contractServiceTemplate.TableValue
|
|
|
+ jsonStr := item.TableValue
|
|
|
tmpEerr := json.Unmarshal([]byte(jsonStr), &tableDataList)
|
|
|
if tmpEerr != nil {
|
|
|
err = tmpEerr
|
|
@@ -1213,15 +1206,8 @@ func GenerateWordV2(contractDetail *contract.ContractDetail, wordPath string) (e
|
|
|
//赋值table表格数据
|
|
|
tableDataList.List = tableRowList
|
|
|
} else {
|
|
|
- //获取预设的表格数据
|
|
|
- contractServiceTemplate, tmpErr := contract_service_template.GetContractServiceTemplateById(item.ServiceTemplateId)
|
|
|
- if tmpErr != nil {
|
|
|
- err = tmpErr
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
//赋值table表格数据
|
|
|
- jsonStr := contractServiceTemplate.TableValue
|
|
|
+ jsonStr := item.TableValue
|
|
|
err = json.Unmarshal([]byte(jsonStr), &tableDataList)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -1410,15 +1396,8 @@ func GenerateWordV2(contractDetail *contract.ContractDetail, wordPath string) (e
|
|
|
//赋值table表格数据
|
|
|
tableDataList.List = tableRowList
|
|
|
} else {
|
|
|
- //获取预设的表格数据
|
|
|
- contractServiceTemplate, tmpErr := contract_service_template.GetContractServiceTemplateById(item.ServiceTemplateId)
|
|
|
- if tmpErr != nil {
|
|
|
- err = tmpErr
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
//赋值table表格数据
|
|
|
- jsonStr := contractServiceTemplate.TableValue
|
|
|
+ jsonStr := item.TableValue
|
|
|
err = json.Unmarshal([]byte(jsonStr), &tableDataList)
|
|
|
if err != nil {
|
|
|
return
|