教育训练处考试制证系统后端
“djh”
2025-02-05 cff3c43f216c6f01f675e4821832e15f2a77c57c
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java
@@ -60,7 +60,7 @@
    }
    @Override
    public NonCoalPayDetailH5RepDto selectNonCoalPayByStu(String phone, String idCard) {
    public List<NonCoalPayDetailH5RepDto> selectNonCoalPayByStu(String phone, String idCard) {
        return nonCoalPayMapper.selectNonCoalPayByParam(phone, idCard);
    }
@@ -161,7 +161,7 @@
                .eq(NonCoalPay::getDistrictCode, nonCoalPay.getDistrictCode())
                .eq(NonCoalPay::getBatchName, nonCoalPay.getBatchName())
                .eq(NonCoalPay::getDelFlag, 0);
        if (nonCoalPay.getId() == null) {
        if (nonCoalPay.getId() != null) {
            lambdaQueryWrapper.ne(NonCoalPay::getId, nonCoalPay.getId());
        }
        Long l = baseMapper.selectCount(lambdaQueryWrapper);
@@ -208,7 +208,7 @@
    @Override
    @Transactional
    public int updateNonCoalPayTypeStatus(int payPersonType, Long id) {
        NonCoalPay byId = getById(id);
        NonCoalPay byId = nonCoalPayMapper.selectNonCoalPayById(id);
        if (byId == null) {
            throw new ServiceException("该数据不存在");
        }
@@ -246,8 +246,8 @@
     */
    @Override
    public int deleteNonCoalPayById(Long id) {
        NonCoalPay byId = getById(id);
        if (byId == null) {
        NonCoalPay nonCoalPay = nonCoalPayMapper.selectNonCoalPayById(id);
        if (nonCoalPay == null) {
            throw new ServiceException("该数据不存在");
        }
        //验证是否有学员已缴费