CalcLbStatuAnalyController.java 1.63 KB
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);
	}
	
}