修改首页

This commit is contained in:
wuweihua
2026-09-18 17:55:36 +08:00
parent f0855c7dd4
commit 9a26ba373a
8 changed files with 181 additions and 110 deletions
@@ -35,7 +35,7 @@ public interface IPrcPriceSetService
public int disable(Long priceSetId, String updateBy);
/**
* Activate a draft version with user-specified effectiveTime.
* Activate a draft or reschedule a pending version with user-specified effectiveTime.
* effectiveTime <= now -> EFFECT; future -> PENDING(3). Then refresh 0/3/1/2.
*/
public int activateVersion(Long psvId, Date effectiveTime, String updateBy);
@@ -288,7 +288,7 @@ public class PrcPriceSetServiceImpl implements IPrcPriceSetService
{
throw new ServiceException(MessageUtils.message("price.set.version.notExists"));
}
if (!VER_DRAFT.equals(version.getStatus()))
if (!VER_DRAFT.equals(version.getStatus()) && !VER_PENDING.equals(version.getStatus()))
{
throw new ServiceException(MessageUtils.message("price.set.version.activate.statusNotAllowed"));
}