|
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 商品标签 Service 实现
|
|
|
|
|
|
|
+ * Service
|
|
|
*/
|
|
*/
|
|
|
@Service
|
|
@Service
|
|
|
public class FsStoreProductTagScrmServiceImpl implements IFsStoreProductTagScrmService {
|
|
public class FsStoreProductTagScrmServiceImpl implements IFsStoreProductTagScrmService {
|
|
@@ -48,7 +48,7 @@ public class FsStoreProductTagScrmServiceImpl implements IFsStoreProductTagScrmS
|
|
|
@Override
|
|
@Override
|
|
|
public int insert(FsStoreProductTagScrm entity) {
|
|
public int insert(FsStoreProductTagScrm entity) {
|
|
|
if (entity.getTagName() != null && entity.getTagName().length() > 4) {
|
|
if (entity.getTagName() != null && entity.getTagName().length() > 4) {
|
|
|
- throw new ServiceException("标签名称最多4个字");
|
|
|
|
|
|
|
+ throw new ServiceException("锟斤拷签锟斤拷锟斤拷锟斤拷锟�4锟斤拷锟斤拷");
|
|
|
}
|
|
}
|
|
|
entity.setCreateTime(DateUtils.getNowDate());
|
|
entity.setCreateTime(DateUtils.getNowDate());
|
|
|
entity.setUpdateTime(DateUtils.getNowDate());
|
|
entity.setUpdateTime(DateUtils.getNowDate());
|
|
@@ -58,7 +58,7 @@ public class FsStoreProductTagScrmServiceImpl implements IFsStoreProductTagScrmS
|
|
|
@Override
|
|
@Override
|
|
|
public int update(FsStoreProductTagScrm entity) {
|
|
public int update(FsStoreProductTagScrm entity) {
|
|
|
if (entity.getTagName() != null && entity.getTagName().length() > 4) {
|
|
if (entity.getTagName() != null && entity.getTagName().length() > 4) {
|
|
|
- throw new ServiceException("标签名称最多4个字");
|
|
|
|
|
|
|
+ throw new ServiceException("锟斤拷签锟斤拷锟斤拷锟斤拷锟�4锟斤拷锟斤拷");
|
|
|
}
|
|
}
|
|
|
entity.setUpdateTime(DateUtils.getNowDate());
|
|
entity.setUpdateTime(DateUtils.getNowDate());
|
|
|
return mapper.update(entity);
|
|
return mapper.update(entity);
|