add
wangpengfei
2023-07-21 58b19364744f6f61c64978dda97b01eec37823b0
api/v1/serviceContracts.go
@@ -124,17 +124,17 @@
// check params
func checkServiceContractParams(serviceContract request.ServiceContract) (errCode int, result model.ServiceContract) {
   if serviceContract.SignTime == "" {
      return ecode.InvalidParams, result
   }
   if serviceContract.Number == "" {
      return ecode.InvalidParams, result
   }
   if serviceContract.MemberId <= 0 {
      return ecode.InvalidParams, result
   }
   //if serviceContract.SignTime == "" {
   //   return ecode.InvalidParams, result
   //}
   //
   //if serviceContract.Number == "" {
   //   return ecode.InvalidParams, result
   //}
   //
   //if serviceContract.MemberId <= 0 {
   //   return ecode.InvalidParams, result
   //}
   t, err := checkTimeFormat(serviceContract.SignTime)
   if err != nil {
@@ -165,7 +165,7 @@
   result.SaleChanceId = serviceContract.SaleChanceId
   result.QuotationId = serviceContract.QuotationId
   result.TypeId = serviceContract.TypeId
   result.StatusId = serviceContract.StatusId
   result.ServiceContractStatusId = serviceContract.StatusId
   result.ServiceTimes = serviceContract.ServiceTimes
   result.Terms = serviceContract.Terms
   result.Products = serviceContract.Products