zwxi 1 년 전
부모
커밋
ca1ecb5c7d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      controller/census/seller.go

+ 2 - 2
controller/census/seller.go

@@ -536,11 +536,11 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 	raiSellerIds := strings.Join(raiSellers, ",")
 	sellerIds := ""
 
-	if req.CompanyType == 1 {
+	if req.SellerType == 1 {
 		cond += ` AND b.contract_type = 1 `
 		historyCond += ` AND new_company = 1 `
 		sellerIds = ficcSellerIds
-	} else if req.CompanyType == 2 {
+	} else if req.SellerType == 2 {
 		cond += ` AND b.contract_type IN (2,3,4) `
 		historyCond += ` AND new_company = 0 `
 		sellerIds = raiSellerIds