|
@@ -302,6 +302,12 @@ public class TenantActivationCodeServiceImpl extends ServiceImpl<TenantActivatio
|
|
TenantAlbumPurchase tenantAlbumPurchase = new TenantAlbumPurchase();
|
|
TenantAlbumPurchase tenantAlbumPurchase = new TenantAlbumPurchase();
|
|
tenantAlbumPurchase.setId(code.getTenantAlbumPurchaseId());
|
|
tenantAlbumPurchase.setId(code.getTenantAlbumPurchaseId());
|
|
tenantAlbumPurchase.setActiveQuantity(activeCodeNumber);
|
|
tenantAlbumPurchase.setActiveQuantity(activeCodeNumber);
|
|
|
|
+
|
|
|
|
+ if (activeCodeNumber.equals(tenantAlbumPurchase.getPurchaseQuantity())) {
|
|
|
|
+ tenantAlbumPurchase.setActiveStatus("ALL");
|
|
|
|
+ } else {
|
|
|
|
+ tenantAlbumPurchase.setActiveStatus("PART");
|
|
|
|
+ }
|
|
tenantAlbumPurchaseMapper.updateById(tenantAlbumPurchase);
|
|
tenantAlbumPurchaseMapper.updateById(tenantAlbumPurchase);
|
|
|
|
|
|
}
|
|
}
|