| | |
| | | public int insertNonCoalPayStudent(NonCoalPayStudent nonCoalPayStudent) { |
| | | checkSameData(nonCoalPayStudent); |
| | | NonCoalPay nonCoalPay = checkNonCoalPay(nonCoalPayStudent.getNonCoalPayId()); |
| | | nonCoalPayStudent.setPayType(nonCoalPay.getPayType()); |
| | | nonCoalPayStudent.setPayType(nonCoalPay.getPayPersonType().longValue()); |
| | | nonCoalPayStudent.setCreateBy(SecurityUtils.getUsername()); |
| | | return nonCoalPayStudentMapper.insertNonCoalPayStudent(nonCoalPayStudent); |
| | | } |
| | |
| | | for (NonCoalPayStudent stu : nonCoalPayStudents) { |
| | | try { |
| | | 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 if (idCardToNameMap.get(stu.getIdCard().trim()) != null) { |
| | | failureMsg.append("<br/>" + failureNum + "、身份证号: " + stu.getIdCard() + " 数据已存在"); |
| | | } else { |
| | | stu.setPayType(1L); |
| | | stu.setPayStatus(0L); |