Roc hace 3 años
padre
commit
d809361748
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      services/seal/seal.go

+ 3 - 2
services/seal/seal.go

@@ -327,8 +327,9 @@ func UploadCheckBackFileByFile(sealId int, ext string, fileMulti multipart.File,
 	fileName = sealInfo.CompanyName + "_" + sealInfo.Code + "(签回)"
 	if sealInfo.ContractId > 0 {
 		//获取合同信息
-		contractInfo, err := contract.GetContractById(sealInfo.ContractId)
-		if err != nil {
+		contractInfo, tmpErr := contract.GetContractById(sealInfo.ContractId)
+		if tmpErr != nil {
+			err = tmpErr
 			return
 		}
 		//保存的文件名