|
@@ -46,14 +46,14 @@ public class TagService {
|
|
private GoodsService goodsService;
|
|
private GoodsService goodsService;
|
|
|
|
|
|
public List<Tag> findByGroupId(String groupId) {
|
|
public List<Tag> findByGroupId(String groupId) {
|
|
- List<Tag> tagList = tagRepository.findByGroupId(groupId);
|
|
|
|
|
|
+ List<Tag> tagList = tagRepository.findByGroupId(groupId, BaseStatusEnum.NORMAL);
|
|
setGroupInfo(tagList);
|
|
setGroupInfo(tagList);
|
|
return tagList;
|
|
return tagList;
|
|
}
|
|
}
|
|
|
|
|
|
/*add 2018-05-17 */
|
|
/*add 2018-05-17 */
|
|
public List<Tag> findByTypeCode(String typeCode,String merchantId) {
|
|
public List<Tag> findByTypeCode(String typeCode,String merchantId) {
|
|
- List<Tag> tagList = tagRepository.findByTypeCode(typeCode,merchantId);
|
|
|
|
|
|
+ List<Tag> tagList = tagRepository.findByTypeCode(typeCode,merchantId, BaseStatusEnum.NORMAL);
|
|
return tagList;
|
|
return tagList;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -192,7 +192,7 @@ public class TagService {
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
public void sortTag(String groupId, List<String> tagIdList) {
|
|
public void sortTag(String groupId, List<String> tagIdList) {
|
|
- List<Tag> tagList = tagRepository.findByGroupId(groupId);
|
|
|
|
|
|
+ List<Tag> tagList = tagRepository.findByGroupId(groupId, BaseStatusEnum.NORMAL);
|
|
sortTag(tagIdList, tagList);
|
|
sortTag(tagIdList, tagList);
|
|
tagRepository.update(tagList);
|
|
tagRepository.update(tagList);
|
|
}
|
|
}
|