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

ibizdev提交

上级 893177ba
......@@ -45,6 +45,8 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
@Override
@Transactional
public IBZDictItem get(String itemid) {
IBZDictItem ibzdictitem = getById(itemid);
return ibzdictitem;
}
@Override
......@@ -68,12 +70,14 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
public boolean remove(String itemid) {
boolean bOk = false ;
IBZDictItem _iBZDictItem = this.get(itemid);
bOk = removeById(itemid);
return bOk ;
}
@Override
@Transactional
public boolean create(IBZDictItem ibzdictitem) {
boolean bOk = false ;
bOk = save(ibzdictitem);
return bOk ;
}
......@@ -81,6 +85,7 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
@Transactional
public boolean update(IBZDictItem ibzdictitem) {
boolean bOk = false ;
bOk = update(ibzdictitem, (Wrapper)ibzdictitem.getUpdateWrapper(true).eq("ibzdictitemid",ibzdictitem.getItemId()));
return bOk ;
}
......@@ -89,6 +94,8 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
*/
@Override
public Page<IBZDictItem> searchDefault(IBZDictItemSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<IBZDictItem> iBZDictItems=baseMapper.searchDefault(context.getPage(),context,context.getSelectCond());
return new PageImpl<IBZDictItem>(iBZDictItems.getRecords(), context.getPageable(), iBZDictItems.getTotal());
}
......
......@@ -45,6 +45,8 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
@Override
@Transactional
public IBZDict get(String dictid) {
IBZDict ibzdict = getById(dictid);
return ibzdict;
}
@Override
......@@ -57,6 +59,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
@Transactional
public boolean create(IBZDict ibzdict) {
boolean bOk = false ;
bOk = save(ibzdict);
return bOk ;
}
......@@ -73,6 +76,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
@Transactional
public boolean update(IBZDict ibzdict) {
boolean bOk = false ;
bOk = update(ibzdict, (Wrapper)ibzdict.getUpdateWrapper(true).eq("ibzdictid",ibzdict.getDictId()));
return bOk ;
}
@Override
......@@ -80,6 +84,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
public boolean remove(String dictid) {
boolean bOk = false ;
IBZDict _iBZDict = this.get(dictid);
bOk = removeById(dictid);
return bOk ;
}
......@@ -89,6 +94,8 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
*/
@Override
public Page<IBZDict> searchDefault(IBZDictSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<IBZDict> iBZDicts=baseMapper.searchDefault(context.getPage(),context,context.getSelectCond());
return new PageImpl<IBZDict>(iBZDicts.getRecords(), context.getPageable(), iBZDicts.getTotal());
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册