package com.engine.htxc.tycgsq.web;

import weaver.conn.RecordSet;
import weaver.general.Util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

/**
 * @Title: ecology-9
 * @Company: 泛微软件
 * @author: K1810027
 * @version: 1.0
 * @CreateDate: 2022-08-24 18:24
 * @Description:采购相关接口
 * @ModifyLog:
 **/
public class GetQzsybmAjax {
    @GET
    @Path("/getQzsybmAjax")
    @Produces({MediaType.TEXT_PLAIN})
    public String getQzsybmAjax(@Context HttpServletRequest request, @Context HttpServletResponse response){

        return null;
    }
    public static String getJob(String id) {
        RecordSet rs = new RecordSet();
        rs.executeQuery( "select s.jobtitlename from hrmresource h,hrmjobtitles s where h.jobtitle =s.id and h.id='" + id + "'" );
        String jobtitlename = "";
        if (rs.next()) {
            jobtitlename = Util.null2String( rs.getString( "jobtitlename" ) );
        }
        return jobtitlename;

    }
}
