|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.supervision.police.service.impl;
|
|
|
|
package com.supervision.police.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
@ -106,6 +107,10 @@ public class ComDictionaryServiceImpl extends ServiceImpl<ComDictionaryMapper, C
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public R<?> insertDictionary(ComDictionary dictionary) {
|
|
|
|
public R<?> insertDictionary(ComDictionary dictionary) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Assert.notEmpty(dictionary.getType(), "字典类型不能为空");
|
|
|
|
|
|
|
|
Assert.notEmpty(dictionary.getLabel(), "字典名称不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
comDictionaryMapper.insert(dictionary);
|
|
|
|
comDictionaryMapper.insert(dictionary);
|
|
|
|
return R.okMsg("新增成功");
|
|
|
|
return R.okMsg("新增成功");
|
|
|
|
}
|
|
|
|
}
|
|
|
|