hgw 3 tahun lalu
induk
melakukan
2d5365da75

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TenantInfoServiceImpl.java

@@ -827,7 +827,6 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
         productInfo.setExpiryDate(expiryDate);
         productInfo.setPayAmount(productInfo.getPayAmount().add(amount));
         productInfo.setExpiryCount(productInfo.getExpiryCount() + val);
-        tenantProductInfoService.updateById(productInfo);
 
         //生成协议并上传得到地址
         TenantContractRecordEnum renew = TenantContractRecordEnum.RENEW;
@@ -837,7 +836,8 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
         }
         //写入协议记录
         tenantContractRecordService.insertContractRecord(tenantId, contractPath, renew);
-
+        //更新产品信息
+        tenantProductInfoService.updateById(productInfo);
         //发送邮件短信
         Map<String, Object> par = new HashMap<>();
         par.put("tenantId", tenantId);