浏览代码

Merge branch 'fms_2.5'

ziwen 2 年之前
父节点
当前提交
c25371fe0c
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      controller/contract/register.go

+ 9 - 2
controller/contract/register.go

@@ -1793,8 +1793,15 @@ func (rg *RegisterController) Export(c *gin.Context) {
 		dataRow.AddCell().SetString(v.ActualPayCompanies)
 		dataRow.AddCell().SetString(v.RelateContractMainCode)
 		dataRow.AddCell().SetString(v.RelateContractCode)
-		dataRow.AddCell().SetString(v.SellerName)
-		dataRow.AddCell().SetString(v.RaiSellerName)
+		if req.ListParam == 0{
+			dataRow.AddCell().SetString(v.SellerName)
+			dataRow.AddCell().SetString(v.RaiSellerName)
+		} else if req.ListParam == 1{
+			dataRow.AddCell().SetString(v.SellerName)
+		} else {
+			dataRow.AddCell().SetString(v.RaiSellerName)
+		}
+
 
 		if req.ListParam != 2 {