修改标签时校验有没有重复
This commit is contained in:
parent
2572fb27da
commit
7f6de37e2e
|
|
@ -133,7 +133,11 @@ public class TagService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public ResultObject<Void> sourceUpdate( String name, Long id) {
|
public ResultObject<Void> sourceUpdate( String name, Long id) {
|
||||||
|
List<Tag> tagList = tagMapper.queryTag(null, name, null, "create_time", null);
|
||||||
|
|
||||||
|
if(tagList!=null && tagList.size()>0){
|
||||||
|
return ResultObject.failed("该标签已存在");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 目前来源标签写死为1
|
* 目前来源标签写死为1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue