123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- package com.sinosoft.em.baobiao.rcbb.service;
- import javax.ws.rs.POST;
- import javax.ws.rs.Path;
- import javax.ws.rs.ProduceMime;
- import com.formaction.Utils;
- import com.sinosoft.em.baobiao.rcbb.dao.RcBaoBiaoDao;
- @Path("/RcBaoBiaoService/")
- public class RcBaoBiaoService {
- private RcBaoBiaoDao dao = null;
- public RcBaoBiaoService(){
- this.dao = new RcBaoBiaoDao();
- }
-
- @ProduceMime("application/json")
- @POST
- @Path("/getHuiZongData")
- public String getHuiZongData(String params){
- String compId=Utils.getParameter("compId", params)==null?"":Utils.getParameter("compId", params);
- String report_type=Utils.getParameter("report_type", params)==null?"":Utils.getParameter("report_type", params);
- String compName=Utils.getParameter("compName", params)==null?"":Utils.getParameter("compName", params);
- String year=Utils.getParameter("year", params)==null?"":Utils.getParameter("year", params);
- String season=Utils.getParameter("season", params)==null?"":Utils.getParameter("season", params);
- String reporter_id=Utils.getParameter("reporter_id", params)==null?"":Utils.getParameter("reporter_id", params);
- return dao.getHuiZongData(report_type,season,year,compId,compName,reporter_id);
- }
-
- @ProduceMime("application/json")
- @POST
- @Path("/RollBack")
- public String RollBack(String params){
- String fdId=Utils.getParameter("fdId", params)==null?"":Utils.getParameter("fdId", params);
- String reason=Utils.getParameter("reason", params)==null?"":Utils.getParameter("reason", params);
- return dao.rollBack(fdId, reason);
- }
-
- @ProduceMime("application/json")
- @POST
- @Path("/getRollStat")
- public String getRollStat(String params){
- String fdId=Utils.getParameter("fdId", params)==null?"":Utils.getParameter("fdId", params);
- return dao.getRollStat(fdId);
- }
-
- @ProduceMime("application/json")
- @POST
- @Path("/getRollBackTip")
- public String getRollBackTip(String params){
- String fdId=Utils.getParameter("fdId", params)==null?"":Utils.getParameter("fdId", params);
- return dao.getRollBackTip(fdId);
- }
-
- @ProduceMime("application/json")
- @POST
- @Path("/updateRollStat")
- public String updateRollStat(String params){
- String fdId=Utils.getParameter("fd_id", params)==null?"":Utils.getParameter("fd_id", params);
- String stat=Utils.getParameter("stat", params)==null?"0":Utils.getParameter("stat", params);
- return dao.updateRollStat(fdId,stat);
- }
-
-
- @ProduceMime("application/text")
- @POST
- @Path("/getSaveReport")
- public String getSaveReport(String params){
- String year=Utils.getParameter("year", params)==null?"":Utils.getParameter("year", params);
- String quary = Utils.getParameter("quary", params)==null?"":Utils.getParameter("quary", params);
- String comp_id = Utils.getParameter("comp_id", params)==null?"":Utils.getParameter("comp_id", params);
- String user_id = Utils.getParameter("user_id", params)==null?"":Utils.getParameter("user_id", params);
- String report_type = Utils.getParameter("report_type", params)==null?"":Utils.getParameter("report_type", params);
- String fd_objectid= dao.getSaveReport(year, quary, report_type, comp_id, user_id);
- return fd_objectid;
- }
- }
|