三维对接保证金付款申请单
This commit is contained in:
parent
19e3e8d5aa
commit
05c309cae9
|
@ -53,6 +53,15 @@ public class MarginPaymentPluginInitializer extends PluginBaseEntity{
|
|||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @content 保证金付款申请到哪同步BIP
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-04-17 9:06
|
||||
*
|
||||
*/
|
||||
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
package com.hzya.frame.plugin.serviceData.plugin;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.seeyon.paybill.service.IPayBillService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 业务数据同步
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class PayReceivedPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(PayReceivedPluginInitializer.class);
|
||||
|
||||
|
||||
@Resource
|
||||
private IPayBillService payBillService;
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "PayReceivedPluginInitializer";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "业务数据抽取";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "PayReceivedPluginInitializer";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @content 付款申请单SW-D同步更新BIP
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-04-17 9:08
|
||||
*
|
||||
*/
|
||||
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
logger.info("======开始执行业务数据信息同步========");
|
||||
return payBillService.sendPayReceivedToBip(requestJson);
|
||||
}catch (Exception e){
|
||||
logger.info("======执行业务数据同步失败:{}========",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("操作成功");
|
||||
}
|
||||
}
|
|
@ -50,6 +50,15 @@ public class ReceivedPluginInitializer extends PluginBaseEntity{
|
|||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @content 保证金付款申请同步更新BIP
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-04-17 9:06
|
||||
*
|
||||
*/
|
||||
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
|
|
|
@ -5,4 +5,5 @@
|
|||
<bean name="ServiceDataDistributePluginInitializer" class="com.hzya.frame.plugin.serviceData.plugin.ServiceDataDistributePluginInitializer" />
|
||||
<bean name="MarginPaymentPluginInitializer" class="com.hzya.frame.plugin.serviceData.plugin.MarginPaymentPluginInitializer" />
|
||||
<bean name="ReceivedPluginInitializer" class="com.hzya.frame.plugin.serviceData.plugin.ReceivedPluginInitializer" />
|
||||
<bean name="PayReceivedPluginInitializer" class="com.hzya.frame.plugin.serviceData.plugin.PayReceivedPluginInitializer" />
|
||||
</beans>
|
||||
|
|
|
@ -48,4 +48,14 @@ JsonResultEntity sendEngineerPayBillToBip(JSONObject requestJson);
|
|||
*/
|
||||
|
||||
JsonResultEntity sendReceivedToBip(JSONObject requestJson);
|
||||
/**
|
||||
*
|
||||
* @content 付款申请单SW-D同步更新BIP
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-04-17 9:09
|
||||
*
|
||||
*/
|
||||
|
||||
JsonResultEntity sendPayReceivedToBip(JSONObject requestJson);
|
||||
}
|
||||
|
|
|
@ -165,6 +165,11 @@ public class PayBillServiceImpl extends BaseService<PaymentEntity,String> implem
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonResultEntity sendPayReceivedToBip(JSONObject requestJson) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// private JSONObject bindingReceivedRLAdd(PayBillEntity pay) {
|
||||
// JSONObject head = new JSONObject();
|
||||
// head.put("c_bill_type","F9");//单据类型 保证金付款申请单固定F9
|
||||
|
@ -195,7 +200,7 @@ public class PayBillServiceImpl extends BaseService<PaymentEntity,String> implem
|
|||
JSONObject head = new JSONObject();
|
||||
head.put("c_bill_type","F9");//单据类型 保证金付款申请单固定F9
|
||||
head.put("formCode",pay.getFormCode());//单据号(NC有重复校验)
|
||||
head.put("orgCode",pay.getOrgCode());//公司编码
|
||||
head.put("orgCode",pay.getOrgCode());//公司编码fanc
|
||||
head.put("deptCode",pay.getDeptCode());//事业部大类编码
|
||||
head.put("fklxName",pay.getFklxName());//付款类型
|
||||
head.put("zffsName",pay.getZffsName());//支付方式
|
||||
|
|
Loading…
Reference in New Issue