CZT
2023-11-15 cc0c09e96a829613bcfb4c2cc1ee5ebf998f016c
宁夏省平台接口调试1
已修改6个文件
已添加5个文件
573 ■■■■■ 文件已修改
src/main/java/com/fzzy/api/entity/Api1212.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1212.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/order/OrderServer.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/nx2023/NX2023ApiRemoteService.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1108.java 75 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1111.java 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1112.java 87 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1201.java 150 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1205.java 159 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sh2023/SH2023ApiRemoteService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sh2023/dto/SH2023Api1108.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1212.java
@@ -23,7 +23,7 @@
@Entity
@Table(name = "API_1212")
@EqualsAndHashCode(callSuper = false)
public class Api1212 extends ApiParent implements Serializable {
public class Api1212 implements Serializable {
    public static String SORT_PROP = "kqmc";
@@ -112,5 +112,13 @@
    @Column(name = "zhgxsj")
    private Date zhgxsj;
    @JSONField(serialize = false)
    @PropertyDef(label = "业务id")
    @Column(name = "bizId", length = 40)
    private String bizId;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1212.java
@@ -57,7 +57,7 @@
            List<Fz40InoutCustomer> list = fzzySync1212Rep.listInoutCustomer(deptId);
            if (null == list || list.isEmpty()) {
                log.debug("-------------没有获取到合同信息------------------");
                log.debug("-------------没有获取到客户信息------------------");
                return;
            }
src/main/java/com/fzzy/order/OrderServer.java
@@ -40,7 +40,7 @@
        //心跳指令,直接返回
        if(OrderConstant.ORDER_TYPE_0.equals(req.getType())){
            OrderResp resp = new OrderResp(OrderResult.ORDER_CODE_200.getCode(), OrderResult.ORDER_CODE_500.getResult());
            OrderResp resp = new OrderResp(OrderResult.ORDER_CODE_200.getCode(), OrderResult.ORDER_CODE_200.getResult());
            log.info("心跳指令返回信息={}", resp);
            return resp;
        }
src/main/java/com/fzzy/push/nx2023/NX2023ApiRemoteService.java
@@ -11,8 +11,7 @@
import com.fzzy.api.utils.*;
import com.fzzy.api.view.repository.*;
import com.fzzy.order.data.OrderData;
import com.fzzy.push.nx2023.dto.Nx2023Api1101;
import com.fzzy.push.nx2023.dto.Nx2023Api1102;
import com.fzzy.push.nx2023.dto.*;
import com.fzzy.push.sh2023.dto.*;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
@@ -195,12 +194,37 @@
            api1102.setLkxz("1");
            return api1102;
        }
        if (NX2023Constant.NX_2023_API_CODE_1108.equals(inteId)) {
            Nx2023Api1108 api1108 = new Nx2023Api1108();
            BeanUtils.copyProperties(data, api1108);
            return api1108;
        }
        if (NX2023Constant.NX_2023_API_CODE_1109.equals(inteId)) {
            Api1109 apiData = (Api1109) data;
            apiData.setWjl(FileUtils.fileToByteString(apiData.getWjdz()));
            return apiData;
        }
        if (NX2023Constant.NX_2023_API_CODE_1111.equals(inteId)) {
            Nx2023Api1111 api1111 = new Nx2023Api1111();
            BeanUtils.copyProperties(data, api1111);
            return api1111;
        }
        if (NX2023Constant.NX_2023_API_CODE_1112.equals(inteId)) {
            Nx2023Api1112 api1112 = new Nx2023Api1112();
            BeanUtils.copyProperties(data, api1112);
            return api1112;
        }
        if (NX2023Constant.NX_2023_API_CODE_1201.equals(inteId)) {
            Nx2023Api1201 api1201 = new Nx2023Api1201();
            BeanUtils.copyProperties(data, api1201);
            return api1201;
        }
        if (NX2023Constant.NX_2023_API_CODE_1205.equals(inteId)) {
            Nx2023Api1205 api1205 = new Nx2023Api1205();
            BeanUtils.copyProperties(data, api1205);
            api1205.setSzlx("09");
            return api1205;
        }
        return data;
    }
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1108.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,75 @@
package com.fzzy.push.nx2023.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * æŽ¥å£è¡¨-药剂信息
 */
@Data
public class Nx2023Api1108 implements Serializable {
    @PropertyDef(label = "库区代码")
    private String kqdm;
    @PropertyDef(label = "单位代码")
    private String dwdm;
    @PropertyDef(label = "库区名称")
    private String kqmc;
    @PropertyDef(label = "药剂编号")
    private String yjbh;
    @PropertyDef(label = "药剂名称")
    private String yjmc;
    @PropertyDef(label = "包装物")
    private String bzw;
    @PropertyDef(label = "型号规格")
    private String ggxh;
    @PropertyDef(label = "安全使用说明书")
    private String aqsysms;
    @PropertyDef(label = "生产厂家")
    private String sccj;
    @PropertyDef(label = "采购来源")
    private String cgly;
    @PropertyDef(label = "储存条件")
    private String cctj;
    @PropertyDef(label = "储存地点")
    private String ccdd;
    @PropertyDef(label = "包装物处理方式")
    private String bzwclfs;
    @PropertyDef(label = "残渣处理方式")
    private String czclfs;
    @PropertyDef(label = "保质期")
    @JSONField(format = "yyyy-MM-dd")
    private Date bzq;
    @PropertyDef(label = "采购日期")
    @JSONField(format = "yyyy-MM-dd")
    private Date cgrq;
    @PropertyDef(label = "库存数量")
    private Double kcsl;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @PropertyDef(label = "最后更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1111.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,53 @@
package com.fzzy.push.nx2023.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * æŽ¥å£è¡¨-库区图视频监控设备点位标注
 */
@Data
public class Nx2023Api1111 implements Serializable {
    @PropertyDef(label = "单位名称" )
    private String dwmc;
    @PropertyDef(label = "单位代码" )
    private String dwdm;
    @PropertyDef(label = "库区名称" )
    private String kqmc;
    @PropertyDef(label = "库区代码" )
    private String kqdm;
    @PropertyDef(label = "视频监控设备名称" )
    private String spjksbmc;
    @PropertyDef(label = "视频监控设备id" )
    private String spjksbid;
    @PropertyDef(label = "视频监控设备相对位置" )
    private String spjksbxdwz;
    @PropertyDef(label = "视频监控设备位置样式" )
    private String spjksbwzys;
    @PropertyDef(label = "备注" )
    private String bz;
    @PropertyDef(label = "操作标志" )
    private String czbz;
    @PropertyDef(label = "最后更新时间" )
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1112.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,87 @@
package com.fzzy.push.nx2023.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * æŽ¥å£è¡¨-人员信息
 */
@Data
public class Nx2023Api1112 implements Serializable {
    @PropertyDef(label = "单位代码" )
    private String dwdm;
    @PropertyDef(label = "单位名称" )
    private String dwmc;
    @PropertyDef(label = "隶属部门" )
    private String lsbm;
    @PropertyDef(label = "行政区划代码" )
    private String xzqhdm;
    @PropertyDef(label = "姓名" )
    private String xm;
    @PropertyDef(label = "性别" )
    private String xb;
    @PropertyDef(label = "身份证号码" )
    private String sfzhm;
    @PropertyDef(label = "入职日期" )
    @JSONField(format = "yyyy-MM-dd")
    private Date rzrq;
    @PropertyDef(label = "岗位性质" )
    private String gwxz;
    @PropertyDef(label = "在岗状态" )
    private String zgzt;
    @PropertyDef(label = "离职日期" )
    @JSONField(format = "yyyy-MM-dd")
    private Date lzrq;
    @PropertyDef(label = "座机电话" )
    private String zjdh;
    @PropertyDef(label = "移动电话" )
    private String yddh;
    @PropertyDef(label = "电子邮箱" )
    private String dzyx;
    @PropertyDef(label = "民族" )
    private String mz;
    @PropertyDef(label = "政治面貌" )
    private String zzmm;
    @PropertyDef(label = "人员类别" )
    private String rylb;
    @PropertyDef(label = "专业" )
    private String zy;
    @PropertyDef(label = "取得最高职称或职业资格时间" )
    @JSONField(format = "yyyy-MM-dd")
    private Date qdzgzchzyzgsj;
    @PropertyDef(label = "学历" )
    private String xl;
    @PropertyDef(label = "职务" )
    private String zw;
    @PropertyDef(label = "操作标志" )
    private String czbz;
    @PropertyDef(label = "最后更新时间" )
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1201.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,150 @@
package com.fzzy.push.nx2023.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import com.fzzy.conf.NumberSerializer;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * æŽ¥å£è¡¨-合同信息
 */
@Data
public class Nx2023Api1201 implements Serializable {
    @PropertyDef(label = "合同号")
    private String hth;
    @PropertyDef(label = "合同名称")
    private String htmc;
    @PropertyDef(label = "单位代码")
    private String dwdm;
    @PropertyDef(label = "业务类别")
    private String ywlx;
    @PropertyDef(label = "客户类型")
    private String khlx;
    @PropertyDef(label = "客户统一社会信用代码")
    private String khtyshxydm;
    @PropertyDef(label = "客户名称")
    private String khmc;
    @PropertyDef(label = "法定代表人")
    private String fddbr;
    @PropertyDef(label = "通讯地址")
    private String txdz;
    @PropertyDef(label = "邮政编码")
    private String yzbm;
    @PropertyDef(label = "联系人姓名")
    private String lxrxm;
    @PropertyDef(label = "联系电话")
    private String lxrdh;
    @PropertyDef(label = "身份证号")
    private String sfzh;
    @PropertyDef(label = "电子信箱")
    private String dzyx;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "签订日期")
    private Date qdrq;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "约定完成时间")
    private Date ydwcsj;
    @PropertyDef(label = "签订地点")
    private String qddd;
    @PropertyDef(label = "粮食品种代码")
    private String lspzdm;
    @PropertyDef(label = "粮食性质代码")
    private String lsxzdm;
    @PropertyDef(label = "合同单价")
    private double htdj;
    @PropertyDef(label = "约定购销粮食数量")
    private double ydgxlssl;
    @JSONField(serializeUsing = NumberSerializer.class)
    @PropertyDef(label = "合同总金额")
    private BigDecimal htzje;
    @PropertyDef(label = "履约保证金")
    private double lybzj;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "实际完成时间")
    private Date sswcsj;
    @JSONField(name = "Lysl")
    @PropertyDef(label = "履约数量")
    private double lysl;
    @JSONField(name = "Lyl")
    @PropertyDef(label = "履约率")
    private double lyl;
    @JSONField(name = "Jsjg")
    @PropertyDef(label = "结算价格")
    private double jsjg;
    @JSONField(name = "Jszje", serializeUsing = NumberSerializer.class)
    @PropertyDef(label = "结算总金额")
    private BigDecimal jszje;
    @PropertyDef(label = "结算与合同一致性")
    private String jsyhtyzx;
    @PropertyDef(label = "结算与合同不一致原因")
    private String jsyhtbyzyy;
    @PropertyDef(label = "客户方开户行")
    private String khfkhh;
    @PropertyDef(label = "客户方账号")
    private String khfzh;
    @PropertyDef(label = "客户签约人")
    private String khqyr;
    @PropertyDef(label = "本方开户行")
    private String bfkhh;
    @PropertyDef(label = "本方账号")
    private String bfzh;
    @PropertyDef(label = "本方签约人")
    private String bfqyr;
    @PropertyDef(label = "审批人")
    private String shr;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "审批时间")
    private Date shsj;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "完成日期")
    private Date wcrq;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/nx2023/dto/Nx2023Api1205.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,159 @@
package com.fzzy.push.nx2023.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import com.fzzy.api.entity.ApiParent;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * æŽ¥å£è¡¨-粮食出库信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Nx2023Api1205 extends ApiParent implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -6381473449862569451L;
    //业务单号由 12 ä½æ•°å­—组成,第 1-2 ä½ä¸ºä¸šåŠ¡ç¼–ç ï¼ˆ15 ä»£è¡¨ç²®é£Ÿå‡ºåº“),第 3-8 ä½ä¾æ¬¡ä¸ºå¹´ä»½çš„后两位、2 ä½æœˆä»½ã€2位日期,后四位为顺序码。例如:141605041234
    @Id
    @PropertyDef(label = "出库业务单号")
    private String ckywdh;
    @PropertyDef(label = "货位代码")
    private String hwdm;
    @PropertyDef(label = "出库通知单号")
    private String cktzdh;
    @PropertyDef(label = "业务类型", description = "1:出库(默认)")
    private String ywlx = "1";
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "业务日期")
    private Date ywrq;
    @PropertyDef(label = "合同号")
    private String hth;
    @PropertyDef(label = "承运人")
    private String cyr;
    @PropertyDef(label = "联系电话")
    private String lxdh;
    @PropertyDef(label = "身份证号")
    private String sfzh;
    @PropertyDef(label = "运输工具")
    private String ysgj;
    @PropertyDef(label = "卸粮地点")
    private String xldd;
    @PropertyDef(label = "车船号")
    private String cch;
    @PropertyDef(label = "挂车号")
    private String gch;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "登记时间")
    private Date djsj;
    @PropertyDef(label = "登记门岗人员姓名")
    private String djmgryxm;
    @PropertyDef(label = "粮食品种代码")
    private String lspzdm;
    @PropertyDef(label = "粮食等级代码")
    private String lsdjdm;
    @PropertyDef(label = "粮食性质代码")
    private String lsxzdm;
    @PropertyDef(label = "收获年度")
    private String shnd;
    @PropertyDef(label = "产地代码")
    private String cddm;
    @PropertyDef(label = "皮重(公斤)")
    private double pz;
    @PropertyDef(label = "皮重监磅员")
    private String pzjby;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "皮重计量时间")
    private Date pzjlsj;
    @PropertyDef(label = "皮重计量员")
    private String pzjly;
    @PropertyDef(label = "毛重(公斤)")
    private double mz;
    @PropertyDef(label = "毛重监磅员")
    private String mzjby;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "毛重计量时间")
    private Date mzjlsj;
    @PropertyDef(label = "毛重计量员")
    private String mzjly;
    @PropertyDef(label = "包装物")
    private String bzw;
    @PropertyDef(label = "标准包单包重(公斤)")
    private double bzbdbz;
    @PropertyDef(label = "标准包件数(ä»¶)")
    private Integer bzbjs;
    @PropertyDef(label = "净重(公斤)")
    private double jz;
    @PropertyDef(label = "扣/增量(公斤)")
    private double kzl;
    @PropertyDef(label = "值仓保管员姓名")
    private String zcbgyxm;
    @PropertyDef(label = "装卸作业单位")
    private String zxzydw;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "出门时间")
    private Date cmsj;
    @PropertyDef(label = "出门确认门岗人员姓名")
    private String cmqrmgryxm;
    @PropertyDef(label = "出库结算单号")
    private String ckjsdh;
    @PropertyDef(label = "收支类型")
    private String szlx;
    @PropertyDef(label = "备注")
    private String bz;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/sh2023/SH2023ApiRemoteService.java
@@ -241,6 +241,7 @@
            BeanUtils.copyProperties(apiData, api1104);
            api1104.setAjdm(apiData.getAjdh());
            api1104.setCfdm(apiData.getCfbh());
            api1104.setLsxzdm("122");
            //设置空属性为默认值
            changeObject(api1104);
src/main/java/com/fzzy/push/sh2023/dto/SH2023Api1108.java
@@ -64,8 +64,8 @@
    @PropertyDef(label = "残渣处理方式")
    private String czclfs;
    @PropertyDef(label = "保质期")
    private String bzq;
    @JSONField(format = "yyyy-MM-dd")
    private Date bzq;
    @PropertyDef(label = "库存数量")
    private Double kcsl;