修改首页
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user