From 5217bbc0a0278915e5c641316c20489d8f1868f1 Mon Sep 17 00:00:00 2001 From: heheng <heheng@123456> Date: 星期二, 21 一月 2025 08:31:05 +0800 Subject: [PATCH] 特种作业非煤缴费版本 --- exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java index 5ca08df..c7f231a 100644 --- a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java +++ b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java @@ -186,8 +186,10 @@ StringBuilder failureMsg = new StringBuilder(); for (NonCoalPayStudent stu : nonCoalPayStudents) { try { - if (idCardToNameMap.get(stu.getIdCard().trim()) != null) { + if (StringUtils.isEmpty(stu.getIdCard()) || StringUtils.isEmpty(stu.getName()) || StringUtils.isEmpty(stu.getPhone()) || stu.getSex() == null) { failureMsg.append("<br/>" + failureNum + "、身份证号: " + stu.getIdCard() + " 数据已存在"); + } else if (idCardToNameMap.get(stu.getIdCard().trim()) != null) { + failureMsg.append("<br/>" + failureNum + "、导入数据为空: " + stu.getIdCard() + " 数据错误"); } else { stu.setPayType(1L); stu.setPayStatus(0L); -- Gitblit v1.9.2