You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
<%@ page import="weaver.conn.RecordSet" %>
|
|
<%@ page import="weaver.general.Util" %>
|
|
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
|
<%@ page import="java.util.List" %>
|
|
<%@ page import="java.util.ArrayList" %>
|
|
<%@ page import="weaver.hrm.User" %>
|
|
<%@ page import="weaver.hrm.HrmUserVarify" %>
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
<%
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
if(user==null) {
|
|
response.sendRedirect("/login/Login.jsp");
|
|
return;
|
|
}
|
|
|
|
List<String> list = new ArrayList<String>();
|
|
RecordSet rs = new RecordSet();
|
|
String sql =" select id " +
|
|
" from kq_ShiftManagement \n" +
|
|
" where is_rest = 1 \n" +
|
|
" and (isdelete is null or isdelete = 0) ";
|
|
|
|
rs.executeQuery(sql);
|
|
while (rs.next()){
|
|
String id = Util.null2String(rs.getString("id"));
|
|
list.add(id);
|
|
}
|
|
JSONObject jsonObject = new JSONObject();
|
|
jsonObject.put("data",list);
|
|
%>
|
|
|
|
<%=jsonObject.toJSONString() %>
|
|
|
|
|
|
|