平潭生产日期失效日期其他缺失字段补齐

dev
anthonywj 2 years ago
parent 735cf27c62
commit 4aaae418c6

@ -202,7 +202,7 @@ public class PtxhyyClient extends CommonHttpClient {
.czgh(userName)
.lzfs(udiwmsOrderRequest.getBillType())
.dwxh(udiwmsOrderRequest.getCorpId())
.rkrq(LocalDate.from(cn.hutool.core.date.DateUtil.parseLocalDateTime(udiwmsOrderRequest.getBillDate())))
.rkrq(udiwmsOrderRequest.getBillDate())
.djje(djje)
.fpbz(fbbz)
.zdrq(udiwmsOrderRequest.getBillDate())
@ -250,6 +250,9 @@ public class PtxhyyClient extends CommonHttpClient {
.fphm(fphm)
.fprq(fprq)
.djrq(DateUtil.formatDate(orderEntity.getCreateTime(), "yyyy-MM-dd"))
.producedDate(i.getProductDate())
.expireDate(i.getExpireDate())
.registerNo(i.getRegisterNo())
.build();
ptxhyyOrderRequest.getDetailList().add(detailRequest);
}

@ -21,7 +21,6 @@ public class UdiInfoUploadController {
/**
*
*
* @param files
* @param thirdSys
* @return
*/

@ -87,4 +87,9 @@ public class PtxhyyOrderDetailRequest {
private String fprq;
private String mjph;
private String producedDate;
private String expireDate;
private String registerNo;
}

@ -53,7 +53,7 @@ public class PtxhyyOrderRequest {
/**
*
*/
private LocalDate rkrq;
private String rkrq;
/**
*
@ -85,5 +85,6 @@ public class PtxhyyOrderRequest {
*/
private String udixh;
private List<PtxhyyOrderDetailRequest> detailList;
}

@ -2,6 +2,7 @@ package com.glxp.mipsdl.util;
import cn.hutool.core.date.format.FastDateFormat;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import lombok.extern.slf4j.Slf4j;
@ -456,6 +457,8 @@ public class DateUtil {
}
public static String formatExpireTime(String str) {
if (StrUtil.isEmpty(str))
return null;
try {
Date date = cn.hutool.core.date.DateUtil.parse(str, "yyyyMMdd");
return formatDate(date, "yyyy-MM-dd");
@ -464,4 +467,4 @@ public class DateUtil {
}
return str;
}
}
}

@ -110,8 +110,8 @@ public class SubmitOrderUtil {
UdiwmsOrderDetailRequest item = new UdiwmsOrderDetailRequest();
BeanUtil.copyProperties(detailBizEntity, item);
item.setProductDate(StrUtil.isBlank(detailBizEntity.getProductDate()) ? null : "20" + detailBizEntity.getProductDate());
item.setExpireDate(StrUtil.isBlank(detailBizEntity.getExpireDate()) ? null : "20" + detailBizEntity.getExpireDate());
item.setProductDate(DateUtil.formatExpireTime(StrUtil.isBlank(detailBizEntity.getProductDate()) ? null : "20" + detailBizEntity.getProductDate()));
item.setExpireDate(DateUtil.formatExpireTime(StrUtil.isBlank(detailBizEntity.getExpireDate()) ? null : "20" + detailBizEntity.getExpireDate()));
String thirdProductId = (String) ReflectUtil.getFieldValue(basicUdirel, thirdSysConfig.getThirdId());
item.setProductId(thirdProductId); //产品ID

Loading…
Cancel
Save