|
|
@@ -5,6 +5,7 @@ import com.chinaitop.depot.system.model.BizUnitInfoExample;
|
|
5
|
5
|
import com.chinaitop.depot.system.model.BizUnitInfoExample.Criteria;
|
|
6
|
6
|
import com.chinaitop.depot.system.service.UnitInfoService;
|
|
7
|
7
|
import com.github.pagehelper.PageHelper;
|
|
|
8
|
+import com.github.pagehelper.PageInfo;
|
|
8
|
9
|
|
|
9
|
10
|
import org.apache.commons.lang.StringUtils;
|
|
10
|
11
|
import org.springframework.stereotype.Service;
|
|
|
@@ -25,6 +26,8 @@ public class UnitInfoServiceImpl implements UnitInfoService {
|
|
25
|
26
|
BizUnitInfoExample example = new BizUnitInfoExample();
|
|
26
|
27
|
Criteria createCriteria = example.createCriteria();
|
|
27
|
28
|
|
|
|
29
|
+ createCriteria.andDeleteFlagEqualTo("NOT_DELETE");
|
|
|
30
|
+
|
|
28
|
31
|
if(StringUtils.isNotBlank(unitInfoId)){
|
|
29
|
32
|
createCriteria.andIdEqualTo(unitInfoId);
|
|
30
|
33
|
}
|
|
|
@@ -40,8 +43,11 @@ public class UnitInfoServiceImpl implements UnitInfoService {
|
|
40
|
43
|
}
|
|
41
|
44
|
|
|
42
|
45
|
example.setOrderByClause("create_time desc");
|
|
43
|
|
-
|
|
44
|
|
- PageHelper.startPage(pageNum, pageSize);
|
|
|
46
|
+
|
|
|
47
|
+ if(pageNum != null && pageSize != null){
|
|
|
48
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
49
|
+
|
|
|
50
|
+ }
|
|
45
|
51
|
|
|
46
|
52
|
List<BizUnitInfo> selectByExample = unitInfoMapper.selectByExample(example);
|
|
47
|
53
|
return selectByExample;
|
|
|
@@ -67,6 +73,16 @@ public class UnitInfoServiceImpl implements UnitInfoService {
|
|
67
|
73
|
return unitInfoMapper.getOrg(dwdm);
|
|
68
|
74
|
}
|
|
69
|
75
|
|
|
|
76
|
+
|
|
|
77
|
+ @Override
|
|
|
78
|
+ public List<BizUnitInfo> getAllUnitInfo() {
|
|
|
79
|
+ // TODO Auto-generated method stub
|
|
|
80
|
+ BizUnitInfoExample example = new BizUnitInfoExample();
|
|
|
81
|
+ Criteria createCriteria = example.createCriteria();
|
|
|
82
|
+ createCriteria.andDeleteFlagEqualTo("NOT_DELETE");
|
|
|
83
|
+ return unitInfoMapper.selectByExampleOriginal(example);
|
|
|
84
|
+ }
|
|
|
85
|
+
|
|
70
|
86
|
|
|
71
|
87
|
|
|
72
|
88
|
}
|