解决各类表查数据能查出已删除数据的bug
This commit is contained in:
@@ -47,11 +47,13 @@ public class DepotService {
|
||||
|
||||
public List<Depot> getDepot() {
|
||||
DepotExample example = new DepotExample();
|
||||
example.createCriteria().andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
|
||||
return depotMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
public List<Depot> getAllList() {
|
||||
DepotExample example = new DepotExample();
|
||||
example.createCriteria().andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
|
||||
example.setOrderByClause("sort");
|
||||
return depotMapper.selectByExample(example);
|
||||
}
|
||||
@@ -99,7 +101,7 @@ public class DepotService {
|
||||
|
||||
public List<Depot> findUserDepot(){
|
||||
DepotExample example = new DepotExample();
|
||||
example.createCriteria().andTypeEqualTo(0);
|
||||
example.createCriteria().andTypeEqualTo(0).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
|
||||
example.setOrderByClause("Sort");
|
||||
List<Depot> list = depotMapper.selectByExample(example);
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user