ziwen 1 year ago
parent
commit
ed685e8ab0

+ 1 - 0
controller/census/invoice_payment.go

@@ -784,6 +784,7 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
 						vv.ServiceTemplateId = svList[ii].ServiceTemplateId
 						vv.ServiceTemplateName = svList[ii].FormatTitle
 						vv.ServiceTemplatePid = svList[ii].ServiceTemplatePid
+
 						k2 := fmt.Sprintf("%d-%d", summaryList[i].PaymentId, svList[ii].ServiceTemplateId)
 						a := amountMap[k2]
 						if a != nil {

+ 1 - 0
models/fms/contract_service_template.go

@@ -128,6 +128,7 @@ type ContractServiceTemplateFormat struct {
 	FormatTitle        string
 	ServiceTemplateId  int
 	ServiceTemplatePid int
+	ServiceProductId   int
 }
 
 type ContractServiceTemplateFormatList []ContractServiceTemplateFormat

+ 3 - 0
services/fms/contract_register.go

@@ -356,6 +356,7 @@ func GetContractServiceNameFormat(registerIds []int) (serviceNameMap map[int]str
 						FormatTitle:        formatTitle,
 						ServiceTemplateId:  fullItem.ServiceTemplateId,
 						ServiceTemplatePid: fullItem.Pid,
+						ServiceProductId:   fullItem.ProductId,
 					}
 					serviceFormatMap[item.ContractRegisterId] = append(serviceFormatMap[item.ContractRegisterId], tmp)
 				}
@@ -365,6 +366,7 @@ func GetContractServiceNameFormat(registerIds []int) (serviceNameMap map[int]str
 					FormatTitle:        fullItem.Title,
 					ServiceTemplateId:  fullItem.ServiceTemplateId,
 					ServiceTemplatePid: fullItem.Pid,
+					ServiceProductId:   fullItem.ProductId,
 				}
 				serviceFormatMap[item.ContractRegisterId] = append(serviceFormatMap[item.ContractRegisterId], tmp)
 			}
@@ -388,6 +390,7 @@ func GetContractServiceNameFormat(registerIds []int) (serviceNameMap map[int]str
 				FormatTitle:       formatTitle,
 				ServiceTemplateId: templateId,
 				ServiceTemplatePid: pid,
+				ServiceProductId:   sv[0].ProductId,
 			}
 			serviceFormatMap[k] = append(serviceFormatMap[k], tmp)
 		}