超管头饰座驾铭牌赠送天数不超过30天
This commit is contained in:
@@ -167,6 +167,9 @@ public class GuildSuperAdminService {
|
||||
throw new AdminServiceException("ID:"+ s +" Part Error");
|
||||
}
|
||||
}
|
||||
if (days > 30) {
|
||||
throw new AdminServiceException("The Gift days does not exceed 30 days.");
|
||||
}
|
||||
|
||||
log.info("send(),headwearId={},erbanNoList={},sendDesc={}", headwearId, erbanNoList, sendDesc);
|
||||
Map<String, Object> retMap = new HashMap<String, Object>();
|
||||
@@ -218,7 +221,9 @@ public class GuildSuperAdminService {
|
||||
throw new AdminServiceException("ID:"+ s +" Part Error");
|
||||
}
|
||||
}
|
||||
|
||||
if (days > 30) {
|
||||
throw new AdminServiceException("The Gift days does not exceed 30 days.");
|
||||
}
|
||||
log.info("send(),nameplateId={},erbanNoList={},sendDesc={}", nameplateId, erbanNoList, sendDesc);
|
||||
Map<String, Object> retMap = new HashMap<String, Object>();
|
||||
try {
|
||||
@@ -254,7 +259,9 @@ public class GuildSuperAdminService {
|
||||
}
|
||||
|
||||
public Map carSend(String erbanNo, Integer carId, Integer days, String desc, Integer otherDay, Integer adminId) {
|
||||
|
||||
if (days > 30) {
|
||||
throw new AdminServiceException("The Gift days does not exceed 30 days.");
|
||||
}
|
||||
List<Integer> carGoodsIds = guildAdminCarRefService.carIds(adminId);
|
||||
if (carGoodsIds == null || carGoodsIds.isEmpty() || !carGoodsIds.contains(carId)) {
|
||||
throw new AdminServiceException("config ERROR:");
|
||||
|
Reference in New Issue
Block a user