提交 c8f53932 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 a9d1d8ab
......@@ -43,19 +43,17 @@ public class IBZDictServiceImpl implements IIBZDictService {
public IBZDict get(String key) {
Optional<IBZDict> result = repository.findById(key);
if(!result.isPresent()){
et=new IBZDict();
IBZDict et=new IBZDict();
et.setDictid(key);
return et;
}
else
et=result.get();
return et;
return result.get();
}
@Override
@Transactional
public boolean create(IBZDict et) {
if(!ObjectUtils.isEmpty(et.getDictid()))
et.setDictid((String)et.getDefaultKey());
repository.insert(et);
return true ;
}
......
......@@ -36,9 +36,6 @@ import cn.ibizlab.core.dict.filter.IBZDictSearchContext;
import cn.ibizlab.core.dict.filter.IBZDictItemSearchContext;
import cn.ibizlab.core.dict.domain.IBZDictItem;
import cn.ibizlab.core.dict.service.IIBZDictItemService;
@Slf4j
@Api(tags = {"IBZDict" })
......@@ -52,10 +49,6 @@ public class IBZDictResource {
@Autowired
private IBZDictMapping ibzdictMapping;
@Autowired
private IIBZDictItemService ibzdictitemService;
@ApiOperation(value = "Get", tags = {"IBZDict" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/dictapi/ibzdicts/{ibzdict_id}")
public ResponseEntity<IBZDictDTO> get(@PathVariable("ibzdict_id") String ibzdict_id) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册