@Service public class LabelServiceImpl extends Object implements LabelService
Constructor and Description |
---|
LabelServiceImpl(LabelDao labelDao) |
Modifier and Type | Method and Description |
---|---|
LabelEnt |
getOneLabelById(Long labelId)
Id获取标签实体 (不需要验证用户身份)
|
void |
insertOneLabel(UserIdentityEnum identity,
String title,
String labelNum)
管理员录入标签卡信息
|
List<LabelEnt> |
listAllLabel(Integer pageNum,
Integer pageSize)
查询全部的签到标签
|
List<LabelEnt> |
listLabelLikeTitle(String pareTitle)
模糊查询标签
|
List<LabelEnt> |
listLabelLikeTitlePrefix(String titlePrefix,
Integer pageNum,
Integer pageSize)
查询符合名称前缀的标签列表
|
void |
updateLabelTitle(Long labelId,
UserIdentityEnum identity,
String labelTitle)
管理员更新标签名称
|
@Autowired public LabelServiceImpl(LabelDao labelDao)
public LabelEnt getOneLabelById(Long labelId)
getOneLabelById
in interface LabelService
labelId
- 标签卡Idpublic List<LabelEnt> listAllLabel(Integer pageNum, Integer pageSize)
listAllLabel
in interface LabelService
pageNum
- 页码号pageSize
- 页容量public List<LabelEnt> listLabelLikeTitlePrefix(String titlePrefix, Integer pageNum, Integer pageSize)
listLabelLikeTitlePrefix
in interface LabelService
titlePrefix
- 前缀pageNum
- 页码号pageSize
- 页容量public List<LabelEnt> listLabelLikeTitle(String pareTitle)
listLabelLikeTitle
in interface LabelService
pareTitle
- 名称片段@Transactional(rollbackFor=java.lang.Exception.class) public void insertOneLabel(UserIdentityEnum identity, String title, String labelNum)
insertOneLabel
in interface LabelService
identity
- 用户身份标识title
- 标签卡名称labelNum
- 标签卡唯一标识@Transactional(rollbackFor=CustomerErrorException.class) public void updateLabelTitle(Long labelId, UserIdentityEnum identity, String labelTitle)
updateLabelTitle
in interface LabelService
labelId
- 标签卡Ididentity
- 操作者身份labelTitle
- 标签新名称Copyright © 2022. All rights reserved.