解决各类表查数据能查出已删除数据的bug

This commit is contained in:
季圣华
2019-04-13 22:35:04 +08:00
parent 491e44b0b2
commit a1b07b8a9c
16 changed files with 86 additions and 37 deletions

View File

@@ -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;