Commit c33ac9ef by zhengxj

finish 修正代码 on 20190121 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@16883 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c078827f
......@@ -20,19 +20,14 @@ public interface ISysMenuService {
long countByExample(SysMenuExample example);
int deleteByExample(SysMenuExample example);
int deleteByPrimaryKey(Integer id);
int insertSelective(SysMenu sysMenu);
List<SysMenu> selectByExample(String name,Byte menuStatus);
SysMenu selectByPrimaryKey(Integer id);
int updateByExampleSelective(SysMenu record, SysMenuExample example);
int updateByPrimaryKeySelective(SysMenu sysMenu);
int updateByPrimaryKey(SysMenu sysMenu);
......
......@@ -39,12 +39,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
return menuDao.countByExample(example);
}
@Override
public int deleteByExample(SysMenuExample example) {
long i = menuDao.countByExample(example);
return (int) (i > 0 ? 0 : i);
}
@Override
public int deleteByPrimaryKey(Integer id) {
......@@ -137,10 +132,6 @@ public class SysMenuServiceImpl implements ISysMenuService {
return menuDao.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SysMenu record, SysMenuExample example) {
return menuDao.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SysMenu sysMenu) {
......@@ -171,7 +162,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
target.setSort(sort);
updateByPrimaryKeySelective(target);
}
return updateByPrimaryKeySelective(sysMenu);
return updateByPrimaryKeySelective(source);
}
/*
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!