parent
11d418a5b3
commit
4f798570f0
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.seeyon.dongj.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.seeyon.dongj.entity.Formmain0044Entity;
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/7/26 11:01
|
||||
**/
|
||||
public interface IFormmain0044Dao extends IBaseDao<Formmain0044Entity,String> {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.seeyon.dongj.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.seeyon.dongj.dao.IFormmain0044Dao;
|
||||
import com.hzya.frame.seeyon.dongj.entity.Formmain0044Entity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/7/26 11:02
|
||||
**/
|
||||
@Repository()
|
||||
public class Formmain0044DaoImpl extends MybatisGenericDao<Formmain0044Entity,String> implements IFormmain0044Dao {
|
||||
}
|
|
@ -0,0 +1,146 @@
|
|||
package com.hzya.frame.seeyon.dongj.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* @Description oa收款明细底表
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/7/26 10:56
|
||||
**/
|
||||
public class Formmain0044Entity extends BaseEntity {
|
||||
private String field0001; // 我方账号
|
||||
private String field0017; // 我方开户行
|
||||
private String field0024; // 我方户名
|
||||
private String field0029; // 客户方账号
|
||||
private String field0022; // 客户方户名
|
||||
private String field0030; // 客户方开户行
|
||||
private String field0018; // 交易日期
|
||||
private String field0019; // 交易流水号 唯一值
|
||||
private String field0020; // 收款金额
|
||||
private String field0021; // 摘要
|
||||
private String field0025; // 银行类型
|
||||
private String field0026; // 银行流水号
|
||||
private String field0027; // 币种
|
||||
private String field0028; // 用途
|
||||
private String start_date;
|
||||
|
||||
public String getField0001() {
|
||||
return field0001;
|
||||
}
|
||||
|
||||
public void setField0001(String field0001) {
|
||||
this.field0001 = field0001;
|
||||
}
|
||||
|
||||
public String getField0017() {
|
||||
return field0017;
|
||||
}
|
||||
|
||||
public void setField0017(String field0017) {
|
||||
this.field0017 = field0017;
|
||||
}
|
||||
|
||||
public String getField0024() {
|
||||
return field0024;
|
||||
}
|
||||
|
||||
public void setField0024(String field0024) {
|
||||
this.field0024 = field0024;
|
||||
}
|
||||
|
||||
public String getField0029() {
|
||||
return field0029;
|
||||
}
|
||||
|
||||
public void setField0029(String field0029) {
|
||||
this.field0029 = field0029;
|
||||
}
|
||||
|
||||
public String getField0022() {
|
||||
return field0022;
|
||||
}
|
||||
|
||||
public void setField0022(String field0022) {
|
||||
this.field0022 = field0022;
|
||||
}
|
||||
|
||||
public String getField0030() {
|
||||
return field0030;
|
||||
}
|
||||
|
||||
public void setField0030(String field0030) {
|
||||
this.field0030 = field0030;
|
||||
}
|
||||
|
||||
public String getField0018() {
|
||||
return field0018;
|
||||
}
|
||||
|
||||
public void setField0018(String field0018) {
|
||||
this.field0018 = field0018;
|
||||
}
|
||||
|
||||
public String getField0019() {
|
||||
return field0019;
|
||||
}
|
||||
|
||||
public void setField0019(String field0019) {
|
||||
this.field0019 = field0019;
|
||||
}
|
||||
|
||||
public String getField0020() {
|
||||
return field0020;
|
||||
}
|
||||
|
||||
public void setField0020(String field0020) {
|
||||
this.field0020 = field0020;
|
||||
}
|
||||
|
||||
public String getField0021() {
|
||||
return field0021;
|
||||
}
|
||||
|
||||
public void setField0021(String field0021) {
|
||||
this.field0021 = field0021;
|
||||
}
|
||||
|
||||
public String getField0025() {
|
||||
return field0025;
|
||||
}
|
||||
|
||||
public void setField0025(String field0025) {
|
||||
this.field0025 = field0025;
|
||||
}
|
||||
|
||||
public String getField0026() {
|
||||
return field0026;
|
||||
}
|
||||
|
||||
public void setField0026(String field0026) {
|
||||
this.field0026 = field0026;
|
||||
}
|
||||
|
||||
public String getField0027() {
|
||||
return field0027;
|
||||
}
|
||||
|
||||
public void setField0027(String field0027) {
|
||||
this.field0027 = field0027;
|
||||
}
|
||||
|
||||
public String getField0028() {
|
||||
return field0028;
|
||||
}
|
||||
|
||||
public void setField0028(String field0028) {
|
||||
this.field0028 = field0028;
|
||||
}
|
||||
|
||||
public String getStart_date() {
|
||||
return start_date;
|
||||
}
|
||||
|
||||
public void setStart_date(String start_date) {
|
||||
this.start_date = start_date;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.seeyon.dongj.dao.impl.Formmain0044DaoImpl">
|
||||
<resultMap id="get-Formmain0044Entity-result" type="com.hzya.frame.seeyon.dongj.entity.Formmain0044Entity">
|
||||
<result property="id" column="id" />
|
||||
<result property="field0001" column="field0001" />
|
||||
<result property="field0017" column="field0017" />
|
||||
<result property="field0024" column="field0024" />
|
||||
<result property="field0029" column="field0029" />
|
||||
<result property="field0022" column="field0022" />
|
||||
<result property="field0030" column="field0030" />
|
||||
<result property="field0018" column="field0018" />
|
||||
<result property="field0019" column="field0019" />
|
||||
<result property="field0020" column="field0020" />
|
||||
<result property="field0021" column="field0021" />
|
||||
<result property="field0025" column="field0025" />
|
||||
<result property="field0026" column="field0026" />
|
||||
<result property="field0027" column="field0027" />
|
||||
<result property="field0028" column="field0028" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Formmain0044Entity_Base_Column_List">
|
||||
id,
|
||||
field0001,
|
||||
field0017,
|
||||
field0024,
|
||||
field0029,
|
||||
field0022,
|
||||
field0030,
|
||||
field0018,
|
||||
field0019,
|
||||
field0020,
|
||||
field0021,
|
||||
field0025,
|
||||
field0026,
|
||||
field0027,
|
||||
field0028
|
||||
</sql>
|
||||
|
||||
<!-- 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-Formmain0044Entity-result" parameterType="com.hzya.frame.seeyon.dongj.entity.Formmain0044Entity">
|
||||
select
|
||||
<include refid="Formmain0044Entity_Base_Column_List"/>
|
||||
from
|
||||
formmain_0044
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="field0001 != null and field0001 !='' "> field0001 = #{field0001} </if>
|
||||
<if test="field0019 != null and field0019 !='' "> and field0019 = #{field0019} </if>
|
||||
<if test="field0018 != null and field0018 !='' "> and field0018 = #{field0018} </if>
|
||||
<if test="start_date != null and start_date !='' "> and start_date >= #{start_date} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.seeyon.dongj.service;
|
||||
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.seeyon.dongj.entity.Formmain0044Entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/7/26 11:03
|
||||
**/
|
||||
public interface IFormmain0044Service extends IBaseService<Formmain0044Entity,String> {
|
||||
|
||||
List<Formmain0044Entity> querySeridId(Formmain0044Entity entity);
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.hzya.frame.seeyon.dongj.service.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||
import com.hzya.frame.seeyon.cbs8.service.ICbsLogService;
|
||||
import com.hzya.frame.seeyon.dongj.dao.IFormmain0044Dao;
|
||||
import com.hzya.frame.seeyon.dongj.entity.Formmain0044Entity;
|
||||
import com.hzya.frame.seeyon.dongj.service.IFormmain0044Service;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/7/26 11:05
|
||||
**/
|
||||
@Service
|
||||
public class Formmain0044ServiceImpl extends BaseService<Formmain0044Entity,String> implements IFormmain0044Service {
|
||||
Logger log = LoggerFactory.getLogger(getClass());
|
||||
|
||||
private IFormmain0044Dao formmain0044Dao;
|
||||
|
||||
@Autowired
|
||||
public void setFormmain0044Dao(IFormmain0044Dao dao) {
|
||||
this.formmain0044Dao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
@DS(value = "#entity.dataSourceCode")
|
||||
@Override
|
||||
public List<Formmain0044Entity> querySeridId(Formmain0044Entity entity) {
|
||||
List<Formmain0044Entity> list = formmain0044Dao.query(entity);
|
||||
return list;
|
||||
}
|
||||
}
|
|
@ -26,4 +26,11 @@ public interface ISeeyonExtService {
|
|||
* @param logEntity
|
||||
*/
|
||||
void ydcSeeyon2u8CallBack(SysMessageManageLogEntity logEntity);
|
||||
|
||||
/**
|
||||
* 东进 宁波银行交易明细保存到OA底表参数组装
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
SysExtensionApiEntity dongjAccLog(SysExtensionApiEntity entity);
|
||||
}
|
||||
|
|
|
@ -5,8 +5,10 @@ import cn.hutool.core.util.StrUtil;
|
|||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.ningboBankTreasury.dto.res.AccTransactionRes;
|
||||
import com.hzya.frame.seeyon.entity.OAWorkflowEventDataEntity;
|
||||
import com.hzya.frame.seeyon.service.ISeeyonExtService;
|
||||
import com.hzya.frame.seeyon.util.RestUtil;
|
||||
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
|
||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService;
|
||||
|
@ -14,6 +16,7 @@ import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity;
|
|||
import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogStatusEnum;
|
||||
import com.hzya.frame.u8.util.U8Util;
|
||||
import com.hzya.frame.uuid.UUIDLong;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -21,6 +24,7 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
@ -36,6 +40,8 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
|
|||
|
||||
@Autowired
|
||||
private IIntegrationTaskLivingDetailsService taskLivingDetailsService;
|
||||
@Autowired
|
||||
private RestUtil restUtil;
|
||||
|
||||
/**
|
||||
* 英德赛 OA档案传U8
|
||||
|
@ -150,6 +156,20 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 东进 宁波银行交易明细保存到OA底表参数组装
|
||||
*
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public SysExtensionApiEntity dongjAccLog(SysExtensionApiEntity entity) {
|
||||
String token = restUtil.getToken("", "8000340000");
|
||||
Map<String, String> headers = entity.getHeaders();
|
||||
headers.put("token",token);
|
||||
return entity;
|
||||
}
|
||||
|
||||
//存货参数组装
|
||||
private SysExtensionApiEntity getInventory(JSONObject businessData,SysExtensionApiEntity param){
|
||||
if (null != businessData){
|
||||
|
|
Loading…
Reference in New Issue