2026-06-14代码初始提交

This commit is contained in:
2026-06-14 00:18:59 +08:00
parent 7e845f22dc
commit 1d60486159
10 changed files with 108 additions and 9 deletions

View File

@@ -214,7 +214,6 @@ public class InterestMeasurementController extends BaseController {
render(response, JSONUtil.toJSONString(res));
return null;
}
type = "农发行利息测算";
}else{

View File

@@ -71,7 +71,6 @@ public class YdctLeaseBillController extends BaseController {
Map<String, Object> res = new HashMap<>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmsssss");
InterestCalculationUtil rentCalculationUtil = new InterestCalculationUtil();
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");

View File

@@ -73,13 +73,20 @@ public abstract class U8CCashCommonNode extends ACommonSuperNode {
String param = paramUtil.param(request,getMethod(),formDataVo);
Cap4ReturnUtil cap4ReturnUtil = new Cap4ReturnUtil();
try {
if("/u8cloud/api/cmp/sj/audit".equals(getMethod())){
if("DiaoBoYdctCollectionNode".equals(getNodeId())){
FieldDataVo fhjg = formDataVo.getFieldData("U8C-返回结果收");
String value = fhjg.getStringValue();
if(value.startsWith("推送U8C成功")) {
return context.success("跳过:" + value);
}
}
if("YDCT资金调拨推送U8C付款结算单".equals(getNodeId())){
FieldDataVo fhjg = formDataVo.getFieldData("U8C-返回结果付");
String value = fhjg.getStringValue();
if(value.startsWith("推送U8C成功")) {
return context.success("跳过:" + value);
}
}
} catch (Exception e) {
context.setException(true);
context.back("处理异常:OA跳过处理异常" + e.getMessage());
@@ -117,15 +124,23 @@ public abstract class U8CCashCommonNode extends ACommonSuperNode {
// 设置公司编码
JSONObject paramJSON =JSON.parseObject(param);
log.info("请求参数"+paramJSON);
JSONObject parentvoparam = new JSONObject();
if("DiaoBoYdctRemittanceNode".equals(getNodeId())){
JSONObject billvoparam = paramJSON.getJSONObject("billvo");
parentvoparam = billvoparam.getJSONObject("parentvo");
bill.put("dwbm",parentvoparam.getString("dwbm"));
}else{
JSONArray billvoparams = paramJSON.getJSONArray("billvo");
JSONObject billvoparam = billvoparams.getJSONObject(0);
JSONObject parentvoparam = billvoparam.getJSONObject("parentvo");
parentvoparam = billvoparam.getJSONObject("parentvo");
bill.put("dwbm",parentvoparam.getString("dwbm"));
// 设置审核人编码
}
FieldDataVo shrbm = formDataVo.getFieldData("U8C-审核人编码");
bill.put("operatorid",shrbm.getStringValue());
bills.add(bill);
auditObject.put("bills",bills);
// 设置审核人编码
log.info("审核请求参数:"+auditObject.toString());
// 调用审核单接口
String auditUrl = configVo.getParamVal(U8cConstants.u8cUrl.name());
@@ -142,6 +157,7 @@ public abstract class U8CCashCommonNode extends ACommonSuperNode {
auditResponse = U8cHttpUtil.doPost(auditUrl, auditObject.toString(),u8cSystem,u8cUsercode,u8cPassword,u8cConnection,u8cContentType);
// 处理审核单返回接口
log.info("审核返回:"+auditResponse);
System.out.println("审核返回:"+auditResponse);
}catch (Exception e){
// 审核异常调用删除接口删除生成数据
JSONObject deleteObject = new JSONObject();
@@ -197,7 +213,7 @@ public abstract class U8CCashCommonNode extends ACommonSuperNode {
}else{
formDataVo.getNewFieldDataMap().put("U8C-返回结果", "推送U8C成功:" + u8cResponse.getStatus());
}
} else {
}else {
// 设置单据删除参数
// 设置审核单参数
JSONObject deleteObject = new JSONObject();

View File

@@ -0,0 +1,30 @@
package com.seeyon.apps.ydctu8c.cash.node;
import com.seeyon.apps.ydctu8c.U8CCashCommonNode;
/**
* 功能描述:<br>
* <pre>
*
* </pre>
*
* @Author: HuangZhengguo
* @Date: 2024/9/19
*/
public class FinanceTongYongYdctCollectionNode extends U8CCashCommonNode {
@Override
public String getMethod() {
return "/u8cloud/api/cmp/sj/insert";
}
@Override
public String getNodeId() {
return "FinanceTongYongYdctCollectionNode";
}
@Override
public String getNodeName() {
return "YDCT财务通用收款推送U8C收款结算单";
}
}

View File

@@ -0,0 +1,30 @@
package com.seeyon.apps.ydctu8c.cash.node;
import com.seeyon.apps.ydctu8c.U8CCashCommonNode;
/**
* 功能描述:<br>
* <pre>
*
* </pre>
*
* @Author: HuangZhengguo
* @Date: 2024/9/19
*/
public class FinanceTongYongYdctPaymentNode extends U8CCashCommonNode {
@Override
public String getMethod() {
return "/u8cloud/api/cmp/fj/insert";
}
@Override
public String getNodeId() {
return "FinanceTongYongYdctPaymentNode";
}
@Override
public String getNodeName() {
return "YDCT财务通用付款推送U8C付款结算单";
}
}

View File

@@ -26,6 +26,7 @@ public class U8cHttpUtil {
.header("connection", connection)
.header("Content-Type", contentType)
.header("system", u8cSystem)
.header("needStackTrace", "Y")
.header("usercode", u8cUsercode)
.header("password", u8cPassword)
.body(body).execute().body();

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>src_edocInspection</id>
<name>公文督办流程触发</name>
<category>20260613</category>
</plugin>

View File

@@ -0,0 +1,8 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd" default-autowire="byName">
<bean id="edocInspectionEvent" class="com.seeyon.apps.src_edocInspection.event.EdocInspectionEvent" />
</beans>

View File

@@ -0,0 +1,8 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd" default-autowire="byName">
<bean id="EdocInspectionPluginApi" class="com.seeyon.apps.src_edocInspection.EdocInspectionPluginApi" />
</beans>

View File

@@ -38,6 +38,8 @@
<bean id="diaoBoYdctRemittanceNode" class="com.seeyon.apps.ydctu8c.cash.node.DiaoBoYdctRemittanceNode" />
<bean id="ziChanShouKuanYdctCollectionNode" class="com.seeyon.apps.ydctu8c.cash.node.ZiChanShouKuanYdctCollectionNode" />
<bean id="ziChanFuKuanYdctPaymentNode" class="com.seeyon.apps.ydctu8c.cash.node.ZiChanFuKuanYdctPaymentNode" />
<bean id="financeTongYongYdctCollectionNode" class="com.seeyon.apps.ydctu8c.cash.node.FinanceTongYongYdctCollectionNode" />
<bean id="financeTongYongYdctPaymentNode" class="com.seeyon.apps.ydctu8c.cash.node.FinanceTongYongYdctPaymentNode" />
</beans>