|
|
@@ -76,17 +76,7 @@ public class BusinessPlanController {
|
|
76
|
76
|
})
|
|
77
|
77
|
public PageInfo<BusinessPlan> getList(Integer pageNum, Integer pageSize, Integer userId ,HttpServletRequest request, BusinessPlan businessPlan,String createTimeStart,String createTimeEnd) throws Exception {
|
|
78
|
78
|
|
|
79
|
|
- SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
80
|
|
- if(createTimeStart!=null){
|
|
81
|
|
-
|
|
82
|
|
- Date startDate = simpleDateFormat.parse(createTimeStart);
|
|
83
|
|
- businessPlan.setKszxrq(startDate);
|
|
84
|
|
- }
|
|
85
|
|
- if(createTimeEnd!=null){
|
|
86
|
|
- Date endDate = simpleDateFormat.parse(createTimeEnd);
|
|
87
|
|
- businessPlan.setJzzxrq(endDate);
|
|
88
|
|
- }
|
|
89
|
|
- List<BusinessPlan> list = businessPlanService.queryByExample(pageNum, pageSize, userId, businessPlan, "FIELD(audit_state,0,3,1,2,4 ), id desc", null);
|
|
|
79
|
+ List<BusinessPlan> list = businessPlanService.queryByExample(pageNum, pageSize, userId, businessPlan, "FIELD(audit_state,0,3,1,2,4 ), id desc", null,createTimeStart,createTimeEnd);
|
|
90
|
80
|
PageInfo<BusinessPlan> pageInfo = new PageInfo<BusinessPlan>(list);
|
|
91
|
81
|
return pageInfo;
|
|
92
|
82
|
}
|
|
|
@@ -106,7 +96,7 @@ public class BusinessPlanController {
|
|
106
|
96
|
public PageInfo<BusinessPlan> getAuditPassList(Integer pageNum, Integer pageSize, BusinessPlan businessPlan, Integer billType) {
|
|
107
|
97
|
// 可以查询所有人通过的计划,必须是应用的.
|
|
108
|
98
|
businessPlan.setAuditState(AuditType.AGREE.getAuditCode());
|
|
109
|
|
- List<BusinessPlan> list = businessPlanService.queryByExample(pageNum, pageSize, null, businessPlan, " agree_time desc", billType);
|
|
|
99
|
+ List<BusinessPlan> list = businessPlanService.queryByExample(pageNum, pageSize, null, businessPlan, " agree_time desc", billType,null,null);
|
|
110
|
100
|
double sumAmount = 0;
|
|
111
|
101
|
if(list.size()>0){
|
|
112
|
102
|
for (int i = 0; i < list.size(); i++) {
|