From bf14d9baa3b114f950a8f91f29e2bf16f8cb23d1 Mon Sep 17 00:00:00 2001
From: ic_excellent <2570192571@qq.com>
Date: Mon, 3 Jul 2023 13:43:58 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pyzl/controller/GetDocController.java | 48 +
.../xiao/zhenn/controller/BankController.java | 2 +-
.../bokang/xiao/zhenn/mapper/BankMapper.java | 31 +-
.../xiao/zhenn/service/BankService.java | 73 +-
.../xiao/zhenn/util/GenerateClassUtil.java | 12 +
.../doc/search/service/DocSearchService.java | 2591 +++++++++++++++++
.../util/DocReceiveUnitSyncBySubUtil.java | 376 +++
.../GetDepartmentFormFieldCmd.java | 1 -
.../GetSubCompanyFormFieldCmd.java | 1 -
.../weaver/bokang/xiao/common/CommonUtil.java | 31 +
.../bokang/xiao/dloa/entity/ApiConfig.java | 19 +
.../xiao/dloa/entity/ApiConfigDetail.java | 18 +
.../bokang/xiao/dloa/entity/LogEntity.java | 23 +
.../xiao/dloa/mapper/SyncHrmMapper.java | 52 +
.../xiao/dloa/schedule/HrmSyncSchedule.java | 348 +++
.../xiao/shtx/entity/ExamineConfig.java | 40 +
.../xiao/shtx/entity/ExamineConfigDetail.java | 38 +
.../xiao/shtx/entity/ScoreDataEntity.java | 21 +
.../xiao/shtx/mapper/ExamineMapper.java | 53 +
.../bokang/xiao/shtx/mapper/ScoreMapper.java | 30 +
.../xiao/shtx/schedule/ExamineSchedule.java | 133 +
.../xiao/shtx/util/ExamineScoreUtil.java | 121 +
.../util/process/JudgmentRuleProcess.java | 76 +
.../xiao/tbxc/mapper/FormFieldMapper.java | 8 +
.../definedfield/HrmDeptFieldManagerE9.java | 955 ++++++
src/test/java/bokang/xiao/NormalTest.java | 24 +-
26 files changed, 5111 insertions(+), 14 deletions(-)
create mode 100644 src/main/java/com/api/bokang/xiao/pyzl/controller/GetDocController.java
create mode 100644 src/main/java/com/api/doc/search/service/DocSearchService.java
create mode 100644 src/main/java/com/api/odoc/util/DocReceiveUnitSyncBySubUtil.java
create mode 100644 src/main/java/weaver/bokang/xiao/dloa/entity/ApiConfig.java
create mode 100644 src/main/java/weaver/bokang/xiao/dloa/entity/ApiConfigDetail.java
create mode 100644 src/main/java/weaver/bokang/xiao/dloa/entity/LogEntity.java
create mode 100644 src/main/java/weaver/bokang/xiao/dloa/mapper/SyncHrmMapper.java
create mode 100644 src/main/java/weaver/bokang/xiao/dloa/schedule/HrmSyncSchedule.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/entity/ExamineConfig.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/entity/ExamineConfigDetail.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/entity/ScoreDataEntity.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/mapper/ExamineMapper.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/mapper/ScoreMapper.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/schedule/ExamineSchedule.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/util/ExamineScoreUtil.java
create mode 100644 src/main/java/weaver/bokang/xiao/shtx/util/process/JudgmentRuleProcess.java
create mode 100644 src/main/java/weaver/hrm/definedfield/HrmDeptFieldManagerE9.java
diff --git a/src/main/java/com/api/bokang/xiao/pyzl/controller/GetDocController.java b/src/main/java/com/api/bokang/xiao/pyzl/controller/GetDocController.java
new file mode 100644
index 0000000..c36c29c
--- /dev/null
+++ b/src/main/java/com/api/bokang/xiao/pyzl/controller/GetDocController.java
@@ -0,0 +1,48 @@
+package com.api.bokang.xiao.pyzl.controller;
+
+import aiyh.utils.Util;
+import net.sf.json.JSONArray;
+import net.sf.json.JSONObject;
+import org.apache.log4j.Logger;
+import weaver.conn.RecordSet;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+
+/**
+ * @ClassName GetDocController
+ * @Author 肖博亢
+ * @Date 2023/6/19 12:32
+ * @Description
+ **/
+
+@Path("/xbk/pyzl")
+public class GetDocController {
+
+ private final Logger log = Util.getLogger();
+
+ @POST
+ @Path("/abideBy")
+ @Produces({"text/plain"})
+ public String getAbideBy(@Context HttpServletRequest request, @Context HttpServletResponse response) {
+ String secId = Util.null2String(request.getParameter("secId"));
+ JSONArray data = new JSONArray();
+ String sql = "select top(6) * from docdetail where (maincategory = 0 or maincategory is null) and (subcategory = 0 or subcategory is null) and seccategory = ? and ishistory = 0 and docstatus = 1 order by doccreatedate desc";
+ RecordSet rs = new RecordSet();
+ rs.executeQuery(sql, secId);
+ log.info("abideBy sql ==>"+sql+" secId ==>"+secId);
+ while(rs.next()) {
+ JSONObject dataJson = new JSONObject();
+ dataJson.put("name", Util.null2String(rs.getString("docsubject")));
+ dataJson.put("link", "/spa/document/index.jsp?id=" + Util.null2String(rs.getString("id")));
+ dataJson.put("date", Util.null2String(rs.getString("doccreatedate")));
+ data.add(dataJson);
+ }
+
+ return data.toString();
+ }
+}
diff --git a/src/main/java/com/api/bokang/xiao/zhenn/controller/BankController.java b/src/main/java/com/api/bokang/xiao/zhenn/controller/BankController.java
index cbc3692..9a03898 100644
--- a/src/main/java/com/api/bokang/xiao/zhenn/controller/BankController.java
+++ b/src/main/java/com/api/bokang/xiao/zhenn/controller/BankController.java
@@ -96,7 +96,7 @@ public class BankController {
String encodedFileName = URLEncoder.encode(fileName, "UTF-8");
return Response.ok(streamingOutput, MediaType.APPLICATION_OCTET_STREAM)
// 指定编码方式为 UTF-8
- .header("Content-Disposition", "attachment; filename*=UTF-8''" + encodedFileName)
+ .header("Content-Disposition", "attachment;" + encodedFileName)
.build();
}catch (Exception e){
log.error("exportExcel error ==> "+Util.getErrString(e));
diff --git a/src/main/java/com/api/bokang/xiao/zhenn/mapper/BankMapper.java b/src/main/java/com/api/bokang/xiao/zhenn/mapper/BankMapper.java
index ef56c57..ab334d7 100644
--- a/src/main/java/com/api/bokang/xiao/zhenn/mapper/BankMapper.java
+++ b/src/main/java/com/api/bokang/xiao/zhenn/mapper/BankMapper.java
@@ -67,7 +67,7 @@ public interface BankMapper {
* @return 付款信息列表
*/
@Select("select id,txnamt amount,txnamt difAmount,txnamt outAmount,insid," +
- " insid outFlowNo,txndate_time,actacn,tobank inCompany from uf_bank_trade_info " +
+ " insid outFlowNo,txndate_time,actacn,concat(toname,'-',actacn_receipt) inCompany from uf_bank_trade_info " +
"where txndate_time BETWEEN #{beginDate} AND #{endDate} " +
" and trncur = #{currencySpan}" +
" and actacn = #{currentBankAccount}")
@@ -79,7 +79,7 @@ public interface BankMapper {
* @return 收款信息列表
*/
@Select("select id,id payInfo,txnamt amount,txnamt difAmount,txnamt inAmount,insid," +
- " insid inFlowNo,txndate_time,actacn,ibkname outCompany from uf_bank_trade_info " +
+ " insid inFlowNo,txndate_time,actacn,concat(acntname,'-',actacn) outCompany from uf_bank_trade_info " +
"where txndate_time BETWEEN #{beginDate} AND #{endDate} " +
" and trncur = #{currencySpan}" +
" and actacn_receipt = #{currentBankAccount}")
@@ -106,4 +106,31 @@ public interface BankMapper {
" and IvFisPeriod = MONTH(#{beginDate})")
double queryBankStatementBalance(Map param);
+ /**
+ * 查询流程付款信息
+ * @param param 查询参数
+ * @return 付款信息列表
+ */
+ @Select("SELECT t.requestid requestId,t.$t{amountField} amount,t.$t{amountField} outAmount," +
+ " $t{inCompany} inCompany,wb.lastoperatedate outDate,$t{bankFlowField} bankFlow " +
+ "FROM $t{tableName} t " +
+ "INNER JOIN workflow_requestbase wb ON t.requestid = wb.requestid " +
+ "WHERE wb.currentnodetype = 3 " +
+ " AND wb.lastoperatedate BETWEEN #{beginDate} AND #{endDate} " +
+ " AND $t{currencyField} = #{currency}")
+ List