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

ibizdev提交

上级 893177ba
...@@ -45,6 +45,8 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -45,6 +45,8 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
@Override @Override
@Transactional @Transactional
public IBZDictItem get(String itemid) { public IBZDictItem get(String itemid) {
IBZDictItem ibzdictitem = getById(itemid);
return ibzdictitem;
} }
@Override @Override
...@@ -68,12 +70,14 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -68,12 +70,14 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
public boolean remove(String itemid) { public boolean remove(String itemid) {
boolean bOk = false ; boolean bOk = false ;
IBZDictItem _iBZDictItem = this.get(itemid); IBZDictItem _iBZDictItem = this.get(itemid);
bOk = removeById(itemid);
return bOk ; return bOk ;
} }
@Override @Override
@Transactional @Transactional
public boolean create(IBZDictItem ibzdictitem) { public boolean create(IBZDictItem ibzdictitem) {
boolean bOk = false ; boolean bOk = false ;
bOk = save(ibzdictitem);
return bOk ; return bOk ;
} }
...@@ -81,6 +85,7 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -81,6 +85,7 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
@Transactional @Transactional
public boolean update(IBZDictItem ibzdictitem) { public boolean update(IBZDictItem ibzdictitem) {
boolean bOk = false ; boolean bOk = false ;
bOk = update(ibzdictitem, (Wrapper)ibzdictitem.getUpdateWrapper(true).eq("ibzdictitemid",ibzdictitem.getItemId()));
return bOk ; return bOk ;
} }
...@@ -89,6 +94,8 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -89,6 +94,8 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
*/ */
@Override @Override
public Page<IBZDictItem> searchDefault(IBZDictItemSearchContext context) { 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 ...@@ -45,6 +45,8 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
@Override @Override
@Transactional @Transactional
public IBZDict get(String dictid) { public IBZDict get(String dictid) {
IBZDict ibzdict = getById(dictid);
return ibzdict;
} }
@Override @Override
...@@ -57,6 +59,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -57,6 +59,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
@Transactional @Transactional
public boolean create(IBZDict ibzdict) { public boolean create(IBZDict ibzdict) {
boolean bOk = false ; boolean bOk = false ;
bOk = save(ibzdict);
return bOk ; return bOk ;
} }
...@@ -73,6 +76,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -73,6 +76,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
@Transactional @Transactional
public boolean update(IBZDict ibzdict) { public boolean update(IBZDict ibzdict) {
boolean bOk = false ; boolean bOk = false ;
bOk = update(ibzdict, (Wrapper)ibzdict.getUpdateWrapper(true).eq("ibzdictid",ibzdict.getDictId()));
return bOk ; return bOk ;
} }
@Override @Override
...@@ -80,6 +84,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -80,6 +84,7 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
public boolean remove(String dictid) { public boolean remove(String dictid) {
boolean bOk = false ; boolean bOk = false ;
IBZDict _iBZDict = this.get(dictid); IBZDict _iBZDict = this.get(dictid);
bOk = removeById(dictid);
return bOk ; return bOk ;
} }
...@@ -89,6 +94,8 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -89,6 +94,8 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
*/ */
@Override @Override
public Page<IBZDict> searchDefault(IBZDictSearchContext context) { 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册