#HTXC-1# 初始化开发环境
parent
075b9a7968
commit
595d93d5c8
@ -0,0 +1,16 @@
|
||||
package com.api.htsc.GwRelated.fzjg.web;
|
||||
|
||||
import com.engine.htsc.GwRelated.fzjg.web.Fzjgaction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @author xf
|
||||
* @version 1.0.0
|
||||
* @ClassName Fzjgactionapi.java
|
||||
* @createTime 2021年11月17日 10:58:00
|
||||
*/
|
||||
@Path("/fzjg")
|
||||
public class Fzjgactionapi extends Fzjgaction {
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.GwRelated.fzjg.web;
|
||||
|
||||
|
||||
import com.engine.htsc.GwRelated.fzjg.web.Gettypetovalue;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/GwRelated/fzjg/web/GettypetovalueApi")
|
||||
public class GettypetovalueApi extends Gettypetovalue {
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.api.htsc.HKContract;
|
||||
|
||||
import com.engine.htsc.HKContract.web.HKContractAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* 香港合同审批
|
||||
*/
|
||||
@Path("/hkcontract")
|
||||
public class HKContractActionApi extends HKContractAction {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.api.htsc.Lhcd.com.api.htsc;
|
||||
|
||||
import com.engine.htsc.lhcd.Web.LhcdApi;
|
||||
import com.engine.htsc.lhhtsq.Web.LhhtsqAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @author xf
|
||||
* @version 1.0.0
|
||||
* @ClassName LhcdApiAction.java
|
||||
* @createTime 2021年12月31日 10:13:00
|
||||
*/
|
||||
@Path("/lhcd")
|
||||
public class LhcdApiAction extends LhcdApi {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.ReimbursementFlow;
|
||||
|
||||
|
||||
import com.engine.htsc.ReimbursementFlow.web.ItToListgetAll;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/ItToListgetAll")
|
||||
public class ItToListgetAllApi extends ItToListgetAll {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.ReimbursementFlow;
|
||||
|
||||
import com.engine.htsc.ReimbursementFlow.web.OldToTravelList;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/OldToTravel")
|
||||
public class OldToTravelListApi extends OldToTravelList {
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package com.api.htsc.ReimbursementFlow;
|
||||
|
||||
import com.engine.htsc.ReimbursementFlow.*;
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/Reimbursement")
|
||||
public class ReimburseflowAction extends Reimburseflow {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.ReimbursementFlow;
|
||||
|
||||
import com.engine.htsc.ReimbursementFlow.web.ReimbursementExcel;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/ReimbursementExcel")
|
||||
public class ReimbursementExcelApi extends ReimbursementExcel {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.ReimbursementFlow;
|
||||
|
||||
import com.engine.htsc.ReimbursementFlow.web.TravelUserdepth;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/TravelUser")
|
||||
public class TravelUserdepthApi extends TravelUserdepth {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.ReimbursementFlow;
|
||||
|
||||
import com.engine.htsc.ReimbursementFlow.web.Travelreim;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/travelreim")
|
||||
public class TravelreimApi extends Travelreim {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.Signet;
|
||||
|
||||
import com.engine.htsc.Signet.GetImagefileid;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("signet/imagefielid")
|
||||
public class GetImagefileidApi extends GetImagefileid {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.TrealReimTools;
|
||||
|
||||
import com.engine.htsc.TrealReimTools.TrealReimToolsWeb;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/trealreim/tools/")
|
||||
public class TrealReimToolsWebApi extends TrealReimToolsWeb {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.announcement;
|
||||
|
||||
import com.engine.htsc.announcement.web.HeadquartersAnncAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/headquarters/annc")
|
||||
public class HeadquartersAnncActionApi extends HeadquartersAnncAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.branch;
|
||||
|
||||
import com.engine.htsc.branch.approvalChain.web.FzjgTravelLinkController;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/branch")
|
||||
public class FzjgTravelLinkControllerApi extends FzjgTravelLinkController {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.branchpayment;
|
||||
|
||||
import com.engine.htsc.branchpayment.web.BranchPaymentCubeAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/branchpaycube/")
|
||||
public class BranchPaymentCubeApi extends BranchPaymentCubeAction {
|
||||
}
|
@ -0,0 +1,135 @@
|
||||
package com.api.htsc.browser;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.api.browser.service.Browser;
|
||||
import com.api.browser.util.BrowserConfigComInfo;
|
||||
import com.api.browser.util.BrowserConstant;
|
||||
import com.api.browser.util.DeviceTypeAttr;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.Context;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.HrmUserVarify;
|
||||
import weaver.hrm.User;
|
||||
|
||||
/**
|
||||
* 华泰浏览框接口
|
||||
*/
|
||||
@Path("/htsc/browser")
|
||||
public class HtscBrowserAction {
|
||||
|
||||
/**
|
||||
* 设置浏览框的默认配置
|
||||
*
|
||||
* @param browser
|
||||
* @param params
|
||||
*/
|
||||
public void setBrowserStatus(Browser browser, Map<String, Object> params) {
|
||||
String deviceType = Util.null2String(params.get("_ec_device"));
|
||||
String isMobile = Util.null2String(params.get("_ec_ismobile"));
|
||||
browser.setDeviceType(DeviceTypeAttr.PC);
|
||||
//pc mobile_ec mobile_dingding
|
||||
if (StringUtils.isNotBlank(deviceType)) {
|
||||
DeviceTypeAttr dt = DeviceTypeAttr.valueOf(deviceType.toUpperCase());
|
||||
browser.setDeviceType(dt);
|
||||
}
|
||||
|
||||
browser.setMobile("true".equals(isMobile));
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/data/{type}")
|
||||
@Produces("text/plain;charset=utf-8")
|
||||
public String getBrowserData2(@PathParam("type") String type, @Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response) {
|
||||
return getBrowserData(type, request, response);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/data/{type}")
|
||||
@Produces("text/plain;charset=utf-8")
|
||||
public String getBrowserData(@PathParam("type") String type, @Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response) {
|
||||
BrowserConfigComInfo browserConfigComInfo = new BrowserConfigComInfo();
|
||||
Map<String, Object> params = getRequestParams(request, response);
|
||||
String browserClassName = browserConfigComInfo.getClazz(type);
|
||||
Map<String, Object> apidatas = new HashMap<String, Object>();
|
||||
try {
|
||||
// 替换为华泰Browser
|
||||
String className = String.format("com.api.htsc.browser.service.Htsc%s",
|
||||
browserClassName.substring(browserClassName.lastIndexOf(".") + 1));
|
||||
Browser browser = (Browser) Class.forName(className).newInstance();
|
||||
browser.setBrowserType(type);
|
||||
setBrowserStatus(browser, params);
|
||||
//获取测试预览设置的用户
|
||||
if (params.get("operatoruser_" + params.get("currenttime")) != null) {
|
||||
browser.setUser(this.getPreviewUser(request));
|
||||
} else {
|
||||
browser.setUser(this.getUserByRequest(request, response));
|
||||
}
|
||||
|
||||
String sqlWhere = Util.null2String(browser.spellSqlWhere(params));
|
||||
String tempSqlWhere = Util.null2String(params.get(BrowserConstant.SPELL_SQL_WHERE));
|
||||
if (!"".equals(sqlWhere) || !tempSqlWhere.equals(sqlWhere)) {
|
||||
params.put(BrowserConstant.SPELL_SQL_WHERE, tempSqlWhere + " " + sqlWhere);
|
||||
}
|
||||
apidatas.putAll(browser.getBrowserData(params));
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
apidatas.put("status", false);
|
||||
apidatas.put("error", e.getMessage());
|
||||
apidatas.put("api_status", false);
|
||||
apidatas.put("api_errormsg", "catch exception : " + e.getMessage());
|
||||
}
|
||||
|
||||
return JSONObject.toJSONString(apidatas);
|
||||
}
|
||||
|
||||
|
||||
private Map<String, Object> getRequestParams(HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
Map<String, Object> params = new HashMap<String, Object>();
|
||||
Enumeration<String> em = request.getParameterNames();
|
||||
while (em.hasMoreElements()) {
|
||||
String paramname = em.nextElement();
|
||||
params.put(paramname, request.getParameter(paramname));
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
private User getUserByRequest(HttpServletRequest request, HttpServletResponse response) {
|
||||
String f_weaver_belongto_userid = Util
|
||||
.null2String(request.getParameter("f_weaver_belongto_userid"));
|
||||
String f_weaver_belongto_usertype = Util
|
||||
.null2String(request.getParameter("f_weaver_belongto_usertype"));
|
||||
User user = HrmUserVarify
|
||||
.getUser(request, response, f_weaver_belongto_userid, f_weaver_belongto_usertype);
|
||||
return user;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取测试预览操作用户
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
private User getPreviewUser(HttpServletRequest request) {
|
||||
String f_weaver_belongto_userid = Util
|
||||
.null2String(request.getParameter("f_weaver_belongto_userid"));
|
||||
String f_weaver_belongto_usertype = Util
|
||||
.null2String(request.getParameter("f_weaver_belongto_usertype"));
|
||||
User user = User.getUser(Integer.parseInt(f_weaver_belongto_userid),
|
||||
Integer.parseInt(f_weaver_belongto_usertype));
|
||||
return user;
|
||||
}
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
package com.api.htsc.browser.service;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.api.browser.service.impl.OrganizationBrowserService;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javafx.util.Pair;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.GCONST;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
|
||||
public class HtscOrganizationBrowserService extends OrganizationBrowserService {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getBrowserData(Map<String, Object> params) throws Exception {
|
||||
Map<String, Object> map = super.getBrowserData(params);
|
||||
Map<String, Object> result = new HashMap<>(map);
|
||||
String id = Util.null2String(params.get("id"));
|
||||
if (map.containsKey("datas")) {
|
||||
Object dataObject = JSON.toJSON(map.get("datas"));
|
||||
if (dataObject instanceof JSONArray) {
|
||||
JSONArray datas = (JSONArray) JSON.toJSON(map.get("datas"));
|
||||
if (datas != null) {
|
||||
//查询所有
|
||||
Map<String, Pair> pairMap = getAllHrmDepartmentDefined();
|
||||
//遍历结果
|
||||
for (int i = 0; i < datas.size(); i++) {
|
||||
JSONObject data = (JSONObject) datas.get(i);
|
||||
String deptId = data.getString("id");
|
||||
if (pairMap.containsKey(deptId)) {
|
||||
data.put("deptTypeCode", pairMap.get(deptId).getKey());
|
||||
data.put("deptClassCode", pairMap.get(deptId).getValue());
|
||||
} else {
|
||||
data.put("deptTypeCode", "");
|
||||
data.put("deptClassCode", "");
|
||||
}
|
||||
}
|
||||
result.put("datas", datas);
|
||||
if (pairMap.containsKey(id)) {
|
||||
result.put("deptTypeCode", pairMap.get(id).getKey());
|
||||
result.put("deptClassCode", pairMap.get(id).getValue());
|
||||
} else {
|
||||
result.put("deptTypeCode", "");
|
||||
result.put("deptClassCode", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private Map<String, Pair> getAllHrmDepartmentDefined() {
|
||||
Map<String, Pair> result = new HashMap<>();
|
||||
RecordSet rs = new RecordSet();
|
||||
String sql = "select deptid,depttypecode,deptscalelevelcode from hrmdepartmentdefined";
|
||||
rs.executeQuery(sql);
|
||||
while (rs.next()) {
|
||||
String deptid = Util.null2String(rs.getString("deptid"));
|
||||
String depttypecode = Util.null2String(rs.getString("depttypecode"));
|
||||
String deptscalelevelcode = Util.null2String(rs.getString("deptscalelevelcode"));
|
||||
Pair<String, String> pair = new Pair<>(depttypecode, deptscalelevelcode);
|
||||
result.put(deptid, pair);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
//测试时将this.browserType = "57";置于HtscOrganizationBrowserService的getBrowserData方法内
|
||||
GCONST.setRootPath("WEB-INF/");
|
||||
GCONST.setServerName("ecology");
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
String paramStr = "pageSize=10¤t=1&min=1&max=10&wfid=5522&billid=-76&isbill=1&requestid=-1&f_weaver_belongto_userid=27022&f_weaver_belongto_usertype=0&wfTestStr=&fieldid=88024&viewtype=0&fromModule=workflow&wfCreater=27022&virtualCompanyid=1&__random__=1614070027173";
|
||||
String[] split = paramStr.split("&");
|
||||
for (String param : split) {
|
||||
String[] split1 = param.split("=");
|
||||
if (split1.length < 2) {
|
||||
params.put(split1[0], "");
|
||||
} else {
|
||||
params.put(split1[0], split1[1]);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* types: dept|35
|
||||
* selectids: 35
|
||||
* virtualCompanyid: 1
|
||||
* wfid: 5522
|
||||
* billid: -76
|
||||
* isbill: 1
|
||||
* requestid: -1
|
||||
* f_weaver_belongto_userid: 27022
|
||||
* f_weaver_belongto_usertype: 0
|
||||
* wfTestStr:
|
||||
* fieldid: 88024
|
||||
* viewtype: 0
|
||||
* fromModule: workflow
|
||||
* wfCreater: 27022
|
||||
*/
|
||||
// params.put("types","dept|35");
|
||||
// params.put("selectids","35");
|
||||
// params.put("virtualCompanyid","1");
|
||||
// params.put("wfid","5522");
|
||||
// params.put("billid","-76");
|
||||
// params.put("isbill","1");
|
||||
// params.put("requestid","-1");
|
||||
// params.put("f_weaver_belongto_userid","27022");
|
||||
// params.put("f_weaver_belongto_usertype","0");
|
||||
// params.put("wfTestStr","");
|
||||
// params.put("fieldid","0");
|
||||
// params.put("fromModule","workflow");
|
||||
// params.put("wfCreater","27022");
|
||||
HtscOrganizationBrowserService htscOrganizationBrowserService = new HtscOrganizationBrowserService();
|
||||
String f_weaver_belongto_userid = Util.null2String(params.get("f_weaver_belongto_userid"));
|
||||
String f_weaver_belongto_usertype = Util.null2String(params.get("f_weaver_belongto_usertype"));
|
||||
User user = User.getUser(Integer.parseInt(f_weaver_belongto_userid),
|
||||
Integer.parseInt(f_weaver_belongto_usertype));
|
||||
htscOrganizationBrowserService.setUser(user);
|
||||
Map<String, Object> result = null;
|
||||
try {
|
||||
result = htscOrganizationBrowserService.getBrowserData(params);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println(JSON.toJSONString(result));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.api.htsc.browser.service;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.api.browser.service.impl.ResourceBrowserService;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javafx.util.Pair;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.GCONST;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
|
||||
public class HtscResourceBrowserService extends ResourceBrowserService {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getBrowserData(Map<String, Object> params) throws Exception {
|
||||
Map<String, Object> map = super.getBrowserData(params);
|
||||
Map<String, Object> result = new HashMap<>(map);
|
||||
String cmd = Util.null2String(params.get("cmd"));
|
||||
String id = Util.null2String(params.get("id"));
|
||||
//只处理v2resourcetree
|
||||
if ("v2resourcetree".equals(cmd)) {
|
||||
if (map.containsKey("datas")) {
|
||||
Object dataObject = JSON.toJSON(map.get("datas"));
|
||||
if (dataObject instanceof JSONArray) {
|
||||
JSONArray datas = (JSONArray) JSON.toJSON(map.get("datas"));
|
||||
if (datas != null) {
|
||||
Map<String, Pair> pairMap = getAllHrmDepartmentDefined();
|
||||
//遍历结果
|
||||
for (int i = 0; i < datas.size(); i++) {
|
||||
JSONObject data = (JSONObject) datas.get(i);
|
||||
String isParent = data.getString("isParent");
|
||||
if ("true".equals(isParent)) {
|
||||
String deptId = data.getString("id");
|
||||
if (pairMap.containsKey(deptId)) {
|
||||
data.put("deptTypeCode", pairMap.get(deptId).getKey());
|
||||
data.put("deptClassCode", pairMap.get(deptId).getValue());
|
||||
} else {
|
||||
data.put("deptTypeCode", "");
|
||||
data.put("deptClassCode", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
result.put("datas", datas);
|
||||
if (pairMap.containsKey(id)) {
|
||||
result.put("deptTypeCode", pairMap.get(id).getKey());
|
||||
result.put("deptClassCode", pairMap.get(id).getValue());
|
||||
} else {
|
||||
result.put("deptTypeCode", "");
|
||||
result.put("deptClassCode", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private Map<String, Pair> getAllHrmDepartmentDefined() {
|
||||
Map<String, Pair> result = new HashMap<>();
|
||||
RecordSet rs = new RecordSet();
|
||||
String sql = "select deptid,depttypecode,deptscalelevelcode from hrmdepartmentdefined";
|
||||
rs.executeQuery(sql);
|
||||
while (rs.next()) {
|
||||
String deptid = Util.null2String(rs.getString("deptid"));
|
||||
String depttypecode = Util.null2String(rs.getString("depttypecode"));
|
||||
String deptscalelevelcode = Util.null2String(rs.getString("deptscalelevelcode"));
|
||||
Pair<String, String> pair = new Pair<>(depttypecode, deptscalelevelcode);
|
||||
result.put(deptid, pair);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
GCONST.setRootPath("WEB-INF/");
|
||||
GCONST.setServerName("ecology");
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
String paramStr = "pageSize=10¤t=1&min=1&max=10&wfid=4021&billid=-48&isbill=1&requestid=-1&f_weaver_belongto_userid=13231&f_weaver_belongto_usertype=0&wfTestStr=&fieldid=14416&viewtype=0&fromModule=workflow&wfCreater=13231&hasAddGroup=true&tabs=%5Bobject%20Object%5D%2C%5Bobject%20Object%5D%2C%5Bobject%20Object%5D&cmd=v2resourcetree&virtualtype=1&__random__=1611125578623";
|
||||
String[] split = paramStr.split("&");
|
||||
for (String param : split) {
|
||||
String[] split1 = param.split("=");
|
||||
if (split1.length < 2) {
|
||||
params.put(split1[0], "");
|
||||
} else {
|
||||
params.put(split1[0], split1[1]);
|
||||
}
|
||||
}
|
||||
HtscResourceBrowserService htscResourceBrowserService = new HtscResourceBrowserService();
|
||||
String f_weaver_belongto_userid = Util.null2String(params.get("f_weaver_belongto_userid"));
|
||||
String f_weaver_belongto_usertype = Util.null2String(params.get("f_weaver_belongto_usertype"));
|
||||
User user = User.getUser(Integer.parseInt(f_weaver_belongto_userid),
|
||||
Integer.parseInt(f_weaver_belongto_usertype));
|
||||
htscResourceBrowserService.setUser(user);
|
||||
Map<String, Object> result = null;
|
||||
try {
|
||||
result = htscResourceBrowserService.getBrowserData(params);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println(result.toString());
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.bulletin;
|
||||
|
||||
import com.engine.htsc.bulletintoberead.web.BulletinToBeReadController;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/ggdy")
|
||||
public class BulletinToBeReadApi extends BulletinToBeReadController {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.bumph;
|
||||
|
||||
import com.engine.htsc.bumphtoberead.web.BumphToBeReadController;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/gwdy")
|
||||
public class BumphToBeReadApi extends BumphToBeReadController {
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,274 @@
|
||||
package com.api.htsc.businessMethod;
|
||||
|
||||
import com.engine.htsc.payment.enums.BudgetNodeType;
|
||||
import com.engine.htsc.payment.pojo.*;
|
||||
import com.engine.htsc.payment.service.impl.HeadBxBudgetCommand;
|
||||
import com.engine.htsc.payment.service.impl.HeadPaymentBudgetCommand;
|
||||
import com.engine.htsc.payment.util.BizUtils;
|
||||
import com.engine.htsc.payment.util.PayUtil;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.company.DepartmentComInfo;
|
||||
import weaver.hrm.resource.ResourceComInfo;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* k1810012
|
||||
* <p>
|
||||
* 子公司
|
||||
* 联合通用报销流程
|
||||
* 工具类
|
||||
*/
|
||||
public class SubUnionBizUtil {
|
||||
|
||||
public static final String LHTYBX = "lhtybx"; //联合通用报销 UNNUMBER
|
||||
|
||||
public static final String LHTYFK = "lhtyfk"; //联合通用付款 UNNUMBER
|
||||
|
||||
/**
|
||||
* 判别流程id是否属于指定流程
|
||||
* @param requestId 流程id
|
||||
* @param unNumber 流程标识
|
||||
* @return true: requestId属于unNumber流程; false则相反
|
||||
*/
|
||||
public static boolean equalsTableName(String requestId, String unNumber) throws Exception {
|
||||
RecordSet rs = new RecordSet();
|
||||
|
||||
String sql = "select t1.TABLENAME from workflow_bill t1\n" +
|
||||
"LEFT JOIN workflow_base t2\n" +
|
||||
"on t1.ID=t2.FORMID\n" +
|
||||
"where t2.ISVALID=1 and t2.UNNUMBER=?";
|
||||
rs.executeQuery(sql, unNumber);
|
||||
String tableName = "";
|
||||
if (rs.next()) {
|
||||
tableName = Util.null2String(rs.getString("TABLENAME"));
|
||||
}
|
||||
|
||||
sql = "select t1.tablename from workflow_bill t1\n" +
|
||||
"left join workflow_base t2\n" +
|
||||
"on t1.ID=t2.FORMID\n" +
|
||||
"left join workflow_requestbase t3\n" +
|
||||
"on t2.ID=t3.WORKFLOWID\n" +
|
||||
"where t3.requestid =?";
|
||||
rs.executeQuery(sql, requestId);
|
||||
if (rs.next() && StringUtils.isNotBlank(tableName)) {
|
||||
return tableName.equalsIgnoreCase(Util.null2String(rs.getString("tablename")));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 联合报销 核算接口参数
|
||||
*
|
||||
* @param rid 流程id
|
||||
* @param lb 核算类别
|
||||
* @param payOrder 付款单号
|
||||
* @return CostAccountDto {@link CostAccountDto}
|
||||
* @author k1810012
|
||||
*/
|
||||
public static CostAccountDto generateUnionReiData(String rid, String lb, String payOrder) throws Exception {
|
||||
CostAccountDto costAccDto = new CostAccountDto();
|
||||
DepartmentComInfo dc = new DepartmentComInfo();
|
||||
ResourceComInfo rc = new ResourceComInfo();
|
||||
BizUtils bizUtils = new BizUtils();
|
||||
RecordSet rs = new RecordSet();
|
||||
|
||||
String tableName = PayUtil.getTableNameByUnNumber(LHTYBX);
|
||||
String sql = String.format(
|
||||
"select t1.id,t1.ngr,t1.szbm,t1.lcbh,t1.djzs,t1.ngsj,t1.bxdd,t2.REQUESTNAME from %s t1\n" +
|
||||
"left join workflow_requestbase t2\n" +
|
||||
"on t1.REQUESTID=t2.REQUESTID\n" +
|
||||
"where t1.requestid=?",
|
||||
tableName);
|
||||
|
||||
//主表数据汇总
|
||||
rs.executeQuery(sql, rid);
|
||||
String mainId = ""; //明细表mainId
|
||||
if (rs.next()) {
|
||||
mainId = Util.null2String(rs.getString("id"));
|
||||
String ngr = Util.null2String(rs.getString("ngr"));
|
||||
String dept = Util.null2String(rs.getString("szbm")); //所在部门
|
||||
String requestMark = Util.null2String(rs.getString("lcbh"));
|
||||
String djzs = Util.null2String(rs.getString("djzs")); //单据张数
|
||||
String ngsj = Util.null2String(rs.getString("ngsj")) + ":00"; //数据库格式: 2021-08-06 11:45
|
||||
String requestName = Util.null2String(rs.getString("REQUESTNAME"));
|
||||
//报销地
|
||||
String bxdd=Util.null2String(rs.getString("bxdd"));
|
||||
|
||||
costAccDto.setType(lb);
|
||||
costAccDto.setNgrDept(dc.getDepartmentmark(dept));
|
||||
costAccDto.setNgrDeptCode(dc.getDepartmentCode(dept));
|
||||
costAccDto.setNgrName(rc.getLastname(ngr));
|
||||
costAccDto.setRequestMark(requestMark);
|
||||
costAccDto.setRequestId(payOrder);
|
||||
costAccDto.setAttachmentNum(djzs);
|
||||
costAccDto.setLocationName("");
|
||||
costAccDto.setTitle(requestName);
|
||||
costAccDto.setCurrency("RMB");
|
||||
costAccDto.setCreateDate(ngsj);
|
||||
costAccDto.setReimbursementWay("");
|
||||
costAccDto.setPayOrderNo(payOrder);
|
||||
costAccDto.setLocationName(getLocationName(bxdd));
|
||||
}
|
||||
|
||||
if ( StringUtils.isBlank(mainId) ) {
|
||||
throw new Exception(String.format("联合核算,主表sql没有取到流程编号, sql: %s; rid:%s", sql, rid));
|
||||
}
|
||||
|
||||
// 会计明细: com.engine.htsc.payment.pojo.CostAccountDto.kjDetails
|
||||
List<KjDetail> kjDetails = new ArrayList<>();
|
||||
|
||||
String dt12 = tableName + "_DT12";
|
||||
sql = String.format("select fysjcdbm,fysjcdr,hjkm,yskm,yskmmc,zhrmb,SY from %s where mainid=?", dt12);
|
||||
rs.executeQuery(sql, mainId);
|
||||
while (rs.next()) {
|
||||
String fysjcdbm = Util.null2String(rs.getString("fysjcdbm"));
|
||||
String fysjcdr = Util.null2String(rs.getString("fysjcdr"));
|
||||
String hjkm = Util.null2String(rs.getString("hjkm"));
|
||||
String yskm = Util.null2String(rs.getString("yskm"));
|
||||
String yskmmc = Util.null2String(rs.getString("yskmmc"));
|
||||
String zhrmb = Util.null2String(rs.getString("zhrmb"));
|
||||
String sy = Util.null2String(rs.getString("SY"));
|
||||
|
||||
SubjectData subject = new SubjectData();
|
||||
subject.setItemCode(hjkm);
|
||||
subject.setItemName(bizUtils.getKjkmmc(hjkm));
|
||||
|
||||
BudgetData budget = new BudgetData();
|
||||
budget.setRelationCode(hjkm);
|
||||
budget.setItemCode(yskm);
|
||||
budget.setItemName(yskmmc);
|
||||
|
||||
KjDetail kjItem = new KjDetail();
|
||||
kjItem.setSubjectData(subject);
|
||||
kjItem.setBudgetData(budget);
|
||||
|
||||
kjItem.setExpenseDeptCode(dc.getDepartmentCode(fysjcdbm));
|
||||
kjItem.setExpenseDept(dc.getDepartmentmark(fysjcdbm));
|
||||
kjItem.setExpenseBadge(rc.getWorkcode(fysjcdr));
|
||||
kjItem.setExpensePerson(rc.getLastname(fysjcdr));
|
||||
kjItem.setPriceRMB(zhrmb);
|
||||
kjItem.setMoney(zhrmb);
|
||||
kjItem.setProjectCode("");
|
||||
kjItem.setProject("");
|
||||
kjItem.setReason(sy);
|
||||
|
||||
kjDetails.add(kjItem);
|
||||
}
|
||||
costAccDto.setKjDetails(kjDetails);
|
||||
|
||||
if ( CollectionUtils.isEmpty(costAccDto.getKjDetails()) ) {
|
||||
throw new Exception(String.format("联合核算,明细12 sql没有取到会计数据, sql: %s; mainId:%s", sql, mainId));
|
||||
}
|
||||
|
||||
//支付明细: com.engine.htsc.payment.pojo.CostAccountDto.payDetails
|
||||
List<PayDetail> payDetails = new ArrayList<>();
|
||||
|
||||
String dt11 = tableName + "_DT11";
|
||||
sql = String.format("select yxzfje,xjzfje,khxmc,yxzh,bm,ygxm from %s where mainid=?", dt11);
|
||||
rs.executeQuery(sql, mainId);
|
||||
while (rs.next()) {
|
||||
String yxzfje = Util.null2String(rs.getString("yxzfje"));
|
||||
String xjzfje = Util.null2String(rs.getString("xjzfje"));
|
||||
String khxmc = Util.null2String(rs.getString("khxmc"));
|
||||
String yxzh = Util.null2String(rs.getString("yxzh"));
|
||||
String bm = Util.null2String(rs.getString("bm"));
|
||||
String ygxm = Util.null2String(rs.getString("ygxm"));
|
||||
|
||||
PayDetail payItem = new PayDetail();
|
||||
payItem.setPayByBank(yxzfje);
|
||||
payItem.setPayByCash(xjzfje);
|
||||
payItem.setBankName(khxmc);
|
||||
payItem.setBankAccount(yxzh);
|
||||
payItem.setEmployeeDept(dc.getDepartmentmark(bm));
|
||||
payItem.setEmployeeName(rc.getLastname(ygxm));
|
||||
payItem.setEmployeeBadge(rc.getWorkcode(ygxm));
|
||||
|
||||
payDetails.add(payItem);
|
||||
|
||||
}
|
||||
costAccDto.setPayDetails(payDetails);
|
||||
|
||||
if ( CollectionUtils.isEmpty(costAccDto.getPayDetails()) ) {
|
||||
throw new Exception(String.format("联合核算,明细11 sql没有取到支付数据, sql: %s; mainId:%s", sql, mainId));
|
||||
}
|
||||
|
||||
return costAccDto;
|
||||
}
|
||||
|
||||
private static String getLocationName(String locationId){
|
||||
switch (locationId){
|
||||
case "0":
|
||||
return "深圳";
|
||||
case "1":
|
||||
return "上海";
|
||||
case "2":
|
||||
return "北京";
|
||||
case "3":
|
||||
return "南京";
|
||||
default:
|
||||
return "未知:"+locationId;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 联合报销 预算算接口调用
|
||||
*
|
||||
* @param requestId 流程id
|
||||
* @param status 预算状态
|
||||
* @author k1810012
|
||||
*/
|
||||
public static String doBudgetCommit4Union(String requestId, String status) {
|
||||
HeadBxBudgetCommand command = new HeadBxBudgetCommand();
|
||||
try {
|
||||
if (BudgetNodeType.REJECT.getValue().equalsIgnoreCase(status)) {
|
||||
String reject = command.reject(requestId);
|
||||
//废弃后更新发票关联关系: uf_pjxxgl 浪潮
|
||||
BizUtils bizUtils = new BizUtils();
|
||||
bizUtils.cancelInvLink(requestId);
|
||||
return reject;
|
||||
} else if (BudgetNodeType.FINISH.getValue().equalsIgnoreCase(status)) {
|
||||
return command.finish(requestId);
|
||||
} else {
|
||||
return "预算状态错误";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog("doBudgetCommit4Union 预算接口调用异常: " + e.getMessage());
|
||||
return "预算失败";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 联合付款 预算算接口调用
|
||||
*
|
||||
* @param requestId 流程id
|
||||
* @param status 预算状态
|
||||
* @author k1810012
|
||||
*/
|
||||
public static String doBudgetCommit4UnionFk(String requestId, String status) {
|
||||
HeadPaymentBudgetCommand command = new HeadPaymentBudgetCommand();
|
||||
try {
|
||||
if (BudgetNodeType.REJECT.getValue().equalsIgnoreCase(status)) {
|
||||
String reject = command.reject(requestId);
|
||||
//废弃后更新发票关联关系: uf_pjxxgl 浪潮
|
||||
BizUtils bizUtils = new BizUtils();
|
||||
bizUtils.cancelInvLink(requestId);
|
||||
return reject;
|
||||
} else if (BudgetNodeType.FINISH.getValue().equalsIgnoreCase(status)) {
|
||||
return command.finish(requestId);
|
||||
} else {
|
||||
return "预算状态错误";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog("doBudgetCommit4UnionFk 预算接口调用异常: " + e.getMessage());
|
||||
return "预算失败";
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.capitalbusinessPayment;
|
||||
|
||||
import com.engine.htsc.capitalbusinessPayment.web.CapitalBusinessPaymentAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/capitalbusinessPayment")
|
||||
public class CapitalBusinessPaymentActionApi extends CapitalBusinessPaymentAction {
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package com.api.htsc.ccwg.web;
|
||||
|
||||
import com.engine.htsc.ccwg.web.Upload2StorageGatewayAction;
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htoa/ccgw")
|
||||
public class Upload2StorageGatewayActionApi extends Upload2StorageGatewayAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.cgrwd.web;
|
||||
|
||||
import com.engine.htsc.cgrwd.web.CgrwdAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cgrwd")
|
||||
public class CgrwdActionApi extends CgrwdAction {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.cgscfyqr;
|
||||
|
||||
import com.engine.htsc.cgscfyqr.web.CgscfyqrAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cgscfyqr")
|
||||
public class CgscfyqrActionApi extends CgscfyqrAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.cgscjsfk;
|
||||
|
||||
import com.engine.htsc.cgscjsfk.web.JsfkAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cgscjsfk")
|
||||
public class JsfkActionApi extends JsfkAction {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.changeCloudTicket;
|
||||
|
||||
import com.engine.htsc.changeCloudTicket.web.NewCTAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/changeCloudTicket")
|
||||
public class NewCTActionApi extends NewCTAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.clsysq;
|
||||
|
||||
import com.engine.htsc.clsysq.web.ClsysqAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/Clsysq")
|
||||
public class ClsyActionApi extends ClsysqAction {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.clwhsq;
|
||||
|
||||
import com.engine.htsc.clwhsq.web.ClwhsqAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/clwhsq")
|
||||
public class ClwhsqApi extends ClwhsqAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.collaboration;
|
||||
|
||||
import com.engine.htsc.collaboration.web.CoWorkAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/collaboration/coWork")
|
||||
public class CoWorkActionApi extends CoWorkAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.collaboration;
|
||||
|
||||
import com.engine.htsc.collaboration.web.DubanCoWorkAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/duban/coWork")
|
||||
public class DubanCoWorkActionApi extends DubanCoWorkAction{
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.collaboration;
|
||||
|
||||
import com.engine.htsc.collaboration.web.TaskAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/collaboration/task")
|
||||
public class TaskActionApi extends TaskAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.collaboration;
|
||||
|
||||
import com.engine.htsc.collaboration.web.TaskLogAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/collaboration/taskLog")
|
||||
public class TaskLogActionApi extends TaskLogAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.collaboration;
|
||||
|
||||
import com.engine.htsc.collaboration.web.WorkflowCoWorkAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/collaboration/WorkflowCoWork")
|
||||
public class WorkflowCoWorkActionApi extends WorkflowCoWorkAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.collaboration;
|
||||
|
||||
import com.engine.htsc.collaboration.web.WorkflowTaskAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/collaboration/WorkflowTask")
|
||||
public class WorkflowTaskActionApi extends WorkflowTaskAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.common;
|
||||
|
||||
import com.engine.htsc.common.web.CoWorkflowAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/common/workflow")
|
||||
public class CoWorkflowActionApi extends CoWorkflowAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.common;
|
||||
|
||||
import com.engine.htsc.common.web.CommonAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/tcs/common")
|
||||
public class CommonActionApi extends CommonAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.contacts;
|
||||
|
||||
import com.engine.htsc.contacts.web.ContactsAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/topContacts")
|
||||
public class ContactsActionApi extends ContactsAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.contractmanagement;
|
||||
|
||||
import com.engine.htsc.contractmanagement.web.ContractExternalinterfaceAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/counterparty")
|
||||
public class ContractExternalinterfaceAPI extends ContractExternalinterfaceAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.contractmanagement;
|
||||
|
||||
import com.engine.htsc.contractmanagement.web.ContractAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/contract/management")
|
||||
public class
|
||||
ContractManagementActionAPI extends ContractAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.cooperation;
|
||||
|
||||
|
||||
import com.engine.htsc.cooperation.ReloadXzUser;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cooperation")
|
||||
public class ReloadXzUserApi extends ReloadXzUser {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.cooperation;
|
||||
|
||||
import com.engine.htsc.cooperation.TaskShareUser;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cooperation/taskuser")
|
||||
public class TaskShareUserApi extends TaskShareUser {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.cooperation;
|
||||
|
||||
import com.engine.htsc.cooperation.TaskSmsToUser;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cooperation/sms")
|
||||
public class TaskSmsToUserApi extends TaskSmsToUser {
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.cooperation;
|
||||
|
||||
import com.engine.htsc.cooperation.TaskSmsToUser;
|
||||
import com.engine.htsc.cooperation.TaskToLog;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/cooperation/log")
|
||||
public class TaskToLogApi extends TaskToLog {
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package com.api.htsc.cowork.web;
|
||||
|
||||
import com.engine.htsc.cowork.web.CoWorkAction;
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/coworktask")
|
||||
public class CoWorkActionApi extends CoWorkAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.coworkreport;
|
||||
|
||||
|
||||
import com.engine.htsc.coworkreport.web.CoWorkReportAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/coworkreport")
|
||||
public class CoWorkReportActionApi extends CoWorkReportAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.coworkreport;
|
||||
|
||||
import com.engine.htsc.coworkreport.web.TaskListAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/tasklist")
|
||||
public class TaskListActionApi extends TaskListAction {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.coworkreport;
|
||||
|
||||
|
||||
|
||||
import com.engine.htsc.coworkreport.web.TaskMessageAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/taskMessage")
|
||||
public class TaskMessageActionApi extends TaskMessageAction {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.api.htsc.cube;
|
||||
|
||||
import com.engine.htsc.cube.web.CollaborationSaveFormAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* 建模协作Action
|
||||
*/
|
||||
@Path("/htsc/cube/collaboration")
|
||||
public class CollaborationSaveFormActionApi extends CollaborationSaveFormAction {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.api.htsc.cube;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* Created by K1810001 on 2020/10/19.
|
||||
*/
|
||||
|
||||
@Path("/htsc/cube/task")
|
||||
public class FeedBackActionApi extends com.engine.htsc.cube.web.FeedBackAction{
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.cube;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* 公文看阅页面接口
|
||||
*/
|
||||
@Path("/htsc/cube/lookread")
|
||||
public class LookingReadActionApi extends com.engine.htsc.cube.web.LookingReadAction{
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.api.htsc.cube;
|
||||
|
||||
import com.engine.htsc.cube.web.PortalFavouriteAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* 门户接口
|
||||
*/
|
||||
@Path("/portal")
|
||||
public class PortalFavoriteApi extends PortalFavouriteAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.dgt.web;
|
||||
|
||||
import com.engine.htsc.dgtfw.web.DgtFwControlAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/dgtfw")
|
||||
public class DgtFwControlActionApi extends DgtFwControlAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.doc;
|
||||
|
||||
import com.engine.htsc.doc.web.LetterReadAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/document")
|
||||
public class LetterReadActionApi extends LetterReadAction {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.api.htsc.doc;
|
||||
|
||||
import com.engine.htsc.doc.web.SendReadAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* 公文送阅 传阅Api
|
||||
*/
|
||||
@Path("/htsc/doc/sendRead")
|
||||
public class SendReadActionApi extends SendReadAction {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.duban.web;
|
||||
|
||||
|
||||
import com.engine.htsc.duban.web.DubanAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/duban")
|
||||
public class DubanActionApi extends DubanAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.duban.web;
|
||||
|
||||
|
||||
import com.engine.htsc.duban.web.TaskAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/rwxx")
|
||||
public class TaskActionApi extends TaskAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.equipment.web;
|
||||
|
||||
|
||||
import com.engine.htsc.equipment.web.EquipmentPurchaseAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/equipmentPurchase")
|
||||
public class EquipmentPurchaseActionApi extends EquipmentPurchaseAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.errorremind;
|
||||
|
||||
|
||||
import com.engine.htsc.errorremind.web.RequestSubmitErrorRemindAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/errorremind")
|
||||
public class RequestSubmitErrorRemindActionApi extends RequestSubmitErrorRemindAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.financialadjustment;
|
||||
|
||||
import com.engine.htsc.financialadjustment.web.FinAjAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/financial/adjust")
|
||||
public class FinAjActionAPi extends FinAjAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.fkxnbm.web;
|
||||
|
||||
|
||||
import com.engine.htsc.fkxnbm.web.FkxnbmAction;
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/fkxnbm")
|
||||
public class FkxnbmActionApi extends FkxnbmAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.fundbusinesspay;
|
||||
|
||||
import com.engine.htsc.fundbusinesspay.web.FundBusinessCubeAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/fundcube/")
|
||||
public class FundBusinessCubeApi extends FundBusinessCubeAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.fundbusinesspay;
|
||||
|
||||
import com.engine.htsc.fundbusinesspay.web.FundBusinessPayAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/fdp")
|
||||
public class FundBusinessPayApi extends FundBusinessPayAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.fwnrTokmbh;
|
||||
|
||||
import com.engine.htsc.fwnrTokmbh.web.FwnrToKmbhAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/fwnrtokmbh")
|
||||
public class FwnrToKmbhActionApi extends FwnrToKmbhAction {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.fwnrTokmbh;
|
||||
|
||||
import com.engine.htsc.fwnrTokmbh.web.GetKmbhTempAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/getkmbhtemp")
|
||||
public class getKmbhTempAPI extends GetKmbhTempAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.fzjgtravel;
|
||||
|
||||
import com.engine.htsc.fzjgtravel.Web.SubsidyAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/fzjgtravel")
|
||||
public class SubsidyActionApi extends SubsidyAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.general;
|
||||
|
||||
import com.engine.htsc.general.web.GeneralPaymentLinkController;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/general")
|
||||
public class GeneralPaymentLinkControllerApi extends GeneralPaymentLinkController {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.generaltrip;
|
||||
|
||||
import com.engine.htsc.generaltrip.web.GeneralTripLinkController;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/generalTrip")
|
||||
public class GeneralTripLinkControllerApi extends GeneralTripLinkController {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.gsfw.web;
|
||||
|
||||
|
||||
|
||||
import com.engine.htsc.gsfw.web.CompanyWorkflowAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/company/workflow")
|
||||
public class CompanyWorkflowActionApi extends CompanyWorkflowAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.gsfw.web;
|
||||
|
||||
|
||||
import com.engine.htsc.gsfw.web.GsFwControlAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/gsfw")
|
||||
public class GsFwControlActionApi extends GsFwControlAction{
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.gsfw.web;
|
||||
|
||||
import com.engine.htsc.gsfw.web.Gsfw_Ifuserjobtool;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/gsfw/web/IfUserJob")
|
||||
public class GsFw_IfUserJobToolAction extends Gsfw_Ifuserjobtool {
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.api.htsc.historyfile.web;
|
||||
|
||||
|
||||
import com.engine.htsc.historyfile.web.HtscHistoryFileAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
import java.util.UUID;
|
||||
|
||||
/*
|
||||
* @Author :wanxq
|
||||
* @Date :2021年01月29日10:13:26
|
||||
* @Version 1.0 :
|
||||
* @Description :
|
||||
**/
|
||||
@Path("/htsc/historyfile")
|
||||
public class HistoryFileActionApi extends HtscHistoryFileAction {
|
||||
public static void main(String[] args){
|
||||
System.out.println("-------------------"+ UUID.randomUUID());
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.api.htsc.hrm;
|
||||
|
||||
|
||||
import com.engine.htsc.hrm.web.HrmGroupAction;
|
||||
import com.engine.htsc.workflow.web.WorkflowTodoAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
import java.util.UUID;
|
||||
|
||||
/*
|
||||
* @Author :wanxq
|
||||
* @Date :2021年01月29日10:13:26
|
||||
* @Version 1.0 :
|
||||
* @Description :
|
||||
**/
|
||||
@Path("/htsc/hrm/group")
|
||||
public class HrmGroupActionApi extends HrmGroupAction {
|
||||
public static void main(String[] args){
|
||||
System.out.println("-------------------"+ UUID.randomUUID());
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.htNoticetRelease;
|
||||
|
||||
import com.engine.htsc.htNoticetRelease.web.HTNoticeReleaseAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/HTNoticeRelease")
|
||||
public class HTNoticeReleaseApi extends HTNoticeReleaseAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.hthy;
|
||||
|
||||
|
||||
import com.engine.htsc.hthy.web.HtscMeetingAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/hyxx")
|
||||
public class htscMeetingcActionApi extends HtscMeetingAction {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.htjjh.web;
|
||||
|
||||
|
||||
import com.engine.htsc.htjjh.web.HtscFoundationExpAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/htjjh")
|
||||
public class HtscFoundationExpActionApi extends HtscFoundationExpAction {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.htxw;
|
||||
|
||||
import com.engine.htsc.htxw.web.HtXwControlAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/htxw")
|
||||
public class HtXwControlApi extends HtXwControlAction {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.api.htsc.htxw;
|
||||
|
||||
import com.engine.htsc.htxw.web.HtXwShowControlAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* HTO-10521
|
||||
* 门户公告栏
|
||||
*/
|
||||
@Path("htsc/newsbulletinboard")
|
||||
public class HtXwShowControlApi extends HtXwShowControlAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.hyld;
|
||||
|
||||
import com.engine.htsc.hyld.web.HyldControlAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/hyld")
|
||||
public class HyldControlApi extends HyldControlAction {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.image.web;
|
||||
|
||||
|
||||
import com.engine.htsc.image.web.ImageBase64Action;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/image")
|
||||
public class ImageBase64ActionApi extends ImageBase64Action {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.itcglc.web;
|
||||
|
||||
import com.engine.htsc.itcglc.web.ItcglcAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/itcglc")
|
||||
public class ItcglcActionApi extends ItcglcAction {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.itcssx.web;
|
||||
|
||||
|
||||
import com.engine.htsc.itcssx.web.ITTestOnlineAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/itTestOnline")
|
||||
public class ITTestOnlineActionApi extends ITTestOnlineAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.itlxlc.web;
|
||||
|
||||
import com.engine.htsc.itlxlc.web.ItlxlcAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/itlxlc")
|
||||
public class ItlxlcActionApi extends ItlxlcAction {
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.api.htsc.itxqglpt;
|
||||
|
||||
|
||||
import com.engine.htsc.itxqglpt.web.itxqglptAction;
|
||||
import com.engine.htsc.itxqlc.web.ItDemandApplyAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @Title: ecology-9
|
||||
* @Company: 泛微软件
|
||||
* @author: K1810039
|
||||
* @version: 1.0
|
||||
* @CreateDate: 2022-08-19
|
||||
* @Description: IT需求管理平台流程
|
||||
* @ModifyLog:
|
||||
**/
|
||||
@Path("/htsc/itxqglpt")
|
||||
public class itxqglptActionApi extends itxqglptAction {
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.itxqlc;
|
||||
|
||||
|
||||
import com.engine.htsc.itxqlc.web.ItDemandApplyAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/demand")
|
||||
public class ItDemandApplyActionApi extends ItDemandApplyAction {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.itxqlc;
|
||||
|
||||
|
||||
import com.engine.htsc.itxqlc.web.ItxqlcAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/itxqlc")
|
||||
public class ItxqlcActionApi extends ItxqlcAction {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.htsc.ityssq.web;
|
||||
|
||||
|
||||
import com.engine.htsc.ityssq.web.ItAcceptanceApplyAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/acceptance")
|
||||
public class ItAcceptanceApplyActionApi extends ItAcceptanceApplyAction {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.htsc.ityssq.web;
|
||||
|
||||
|
||||
import com.engine.htsc.ityssq.web.ItxqsqAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/ityssq")
|
||||
public class ItyssqActionApi extends ItxqsqAction {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.jgxt.web;
|
||||
|
||||
import com.engine.htsc.jgxt.web.JgxtVfAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/jgxt")
|
||||
public class JgxtVfActionApi extends JgxtVfAction {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.api.htsc.jgzxzysx;
|
||||
|
||||
import com.engine.htsc.jgzxzysx.web.JgzxzysxAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @author K1810015
|
||||
* @version 1.0.0
|
||||
* @ClassName JJgzxzysxActionApi.java
|
||||
* @createTime 2022年05月11日 14:40:00
|
||||
*/
|
||||
@Path("/jgzxzysx")
|
||||
public class JgzxzysxActionApi extends JgzxzysxAction {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.api.htsc.jjhtyfk;
|
||||
|
||||
import com.engine.htsc.jjhtyfk.web.GetContractInfoAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @Author Weaver.SongYuchen
|
||||
* @Date 2022-03-31
|
||||
* @Description 付款流程联动用印流程合同信息
|
||||
*/
|
||||
@Path("/jjhtyfk")
|
||||
public class GetContractInfoActionApi extends GetContractInfoAction {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.api.htsc.jjhyy.web;
|
||||
|
||||
import com.engine.htsc.jjhyy.web.JjhyySealBaseAction;
|
||||
import com.engine.htsc.seal.jjhyy.JjhyySealAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @author K1810015
|
||||
* @version 1.0.0
|
||||
* @ClassName jjhyySealActionApi.java
|
||||
* @createTime 2022年03月17日 15:50:00
|
||||
*/
|
||||
@Path("/jjhyy")
|
||||
public class jjhyyBaseActionApi extends JjhyySealBaseAction {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.api.htsc.jjhyy.web;
|
||||
|
||||
import com.engine.htsc.seal.jjhyy.JjhyySealAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @author K1810015
|
||||
* @version 1.0.0
|
||||
* @ClassName jjhyySealActionApi.java
|
||||
* @createTime 2022年03月17日 15:50:00
|
||||
*/
|
||||
@Path("/jjheseal")
|
||||
public class jjhyySealActionApi extends JjhyySealAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.langchaoPDF;
|
||||
|
||||
import com.engine.htsc.langchaoPDF.web.LangChaoPDFAction;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/langchao")
|
||||
public class LangChaoPDFActionApi extends LangChaoPDFAction {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.htsc.lhccsq;
|
||||
|
||||
import com.engine.htsc.lhccsq.web.ComputeTravelSubsidy;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/htsc/lhccsq")
|
||||
public class ComputeSubsidyApi extends ComputeTravelSubsidy {
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue