1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.sinosoft.lz.system.menu.service;
- import java.sql.Connection;
- import java.sql.PreparedStatement;
- import java.sql.ResultSet;
- import java.sql.SQLException;
- import java.util.ArrayList;
- import java.util.List;
- import javax.ws.rs.POST;
- import javax.ws.rs.Path;
- import javax.ws.rs.ProduceMime;
- import org.apache.log4j.Logger;
- import com.formaction.Utils;
- import com.persistence.DbConnection;
- import com.sinosoft.lz.system.menu.dao.SysIndexDao;
- import com.sinosoft.lz.system.menu.vo.SysMenu;
- public class SysIndexService {
- private final static Logger log = Logger.getLogger(SysCustomMenuService.class);
-
- /**
- * 通过传过来的日期数据(一天为单位)
- * 获取值班信息,包括预警响应和保供电值班
- * 若有重复的人名暂时先去重----------------该功能判断有待确定
- * @param params
- * @return
- */
- @ProduceMime("application/json")
- @POST
- @Path("/getDutyByDate/")
- public String getDutyByDate(String params){
- String result = "";
- String comp_id = Utils.getParameter("comp_id", params) == null ? "" : Utils.getParameter("comp_id", params);
- SysIndexDao sidao = new SysIndexDao();
- result = sidao.getDutyByDate(comp_id);
- return result;
- }
- }
|