20250507 更新

1.修改推送时时间类型不匹配问题
master
陈江保 17 hours ago
parent d478ab71ff
commit 7ea75643ca
  1. 3
      src/main/java/digital/laboratory/platform/identifybook/service/impl/PushDataToLabsCareServiceImpl.java

@ -237,7 +237,6 @@ public class PushDataToLabsCareServiceImpl implements PushDataToLabsCareService
.eq(IdentifyBookApprove::getRelevanceBusinessId, entrustmentDTO.getId()));
// 创建 SimpleDateFormat
SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
// 封装推送定性报告数据
JSONObject jsonObject = new JSONObject();
@ -249,7 +248,7 @@ public class PushDataToLabsCareServiceImpl implements PushDataToLabsCareService
jsonObject.set("jyyr2qm", entrustmentDTO.getAppraisalUserName()); // 检测人
jsonObject.set("jyy1zc", NULL_PLACEHOLDER); // 检验人1专业技术资格或职称
jsonObject.set("jyy2zc", NULL_PLACEHOLDER); // 检验人2专业技术资格或职称
jsonObject.set("qfrq", sdf.format(LocalDate.now()));
jsonObject.set("qfrq", LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")));
jsonObject.set("qrcode", NULL_PLACEHOLDER); // 二维码地址
jsonObject.set("sjr1List", CollUtil.newArrayList(entrustInfo.getDeliver1Name(), entrustInfo.getDeliver2Name())); // 送检人
jsonObject.set("slrq", entrustInfo.getAcceptDate().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")));

Loading…
Cancel
Save