CalcLbStatuAnalyController.java
1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.bsth.controller.calc;
import java.util.List;
import java.util.Map;
import com.bsth.controller.BaseController;
import com.bsth.entity.calc.CalcLbStatuAnaly;
import com.bsth.service.calc.CalcLbStatuAnalyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by 19/03/18.
*/
@RestController
@RequestMapping("calcLbStatuAnaly")
public class CalcLbStatuAnalyController extends BaseController<CalcLbStatuAnaly, Integer> {
@Autowired
private CalcLbStatuAnalyService service;
@RequestMapping(value="/lbStatuAnaly")
public List<Map<String,Object>> lbStatuAnaly(@RequestParam Map<String, Object> map){
String gsdm="";
if(map.get("company")!=null){
gsdm=map.get("company").toString().trim();
}
String fgsdm="";
if(map.get("subCompany")!=null){
fgsdm=map.get("subCompany").toString().trim();
}
String line="";
if(map.get("line")!=null){
line=map.get("line").toString().trim();
}
String date="";
if(map.get("startDate")!=null){
date=map.get("startDate").toString().trim();
}
String date2="";
if(map.get("endDate")!=null){
date2=map.get("endDate").toString().trim();
}
String sfyy="";
if(map.get("sfyy")!=null){
sfyy=map.get("sfyy").toString().trim();
}
String type="";
if(map.get("type")!=null){
type=map.get("type").toString().trim();
}
return service.lbStatuAnaly(gsdm,fgsdm,line,date,date2,sfyy,type);
}
}