wujianwei
2026-03-20 b2e717310b8a177b435e0a3532f520839ec26402
service/src/main/java/com/ruoyi/cwgl/service/impl/PaymentFeedbackServiceImpl.java
@@ -4,6 +4,10 @@
import com.ruoyi.common.utils.DateUtils;
import javax.annotation.Resource;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.cwgl.domain.AgingLog;
import com.ruoyi.cwgl.mapper.AgingLogMapper;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import org.springframework.scheduling.annotation.Async;
@@ -33,6 +37,8 @@
    protected final Logger logger = LoggerFactory.getLogger(getClass());
    @Resource
    private PaymentFeedbackMapper paymentFeedbackMapper;
    @Resource
    private AgingLogMapper agingLogMapper;
    /**
@@ -103,7 +109,17 @@
    public int insertPaymentFeedback(PaymentFeedback paymentFeedback)
    {
        paymentFeedback.setCreateTime(DateUtils.getNowDate());
        return paymentFeedbackMapper.insertPaymentFeedback(paymentFeedback);
        int i = paymentFeedbackMapper.insertPaymentFeedback(paymentFeedback);
        // 记录操作日志
        if (i > 0) {
            AgingLog log = new AgingLog();
            log.setHeadId(paymentFeedback.getHeadId());
            log.setCreateBy(SecurityUtils.getUsername());
            log.setCreateTime(DateUtils.getNowDate());
            log.setOperation("提交回款进度反馈");
            agingLogMapper.insertAgingLog(log);
        }
        return i;
    }
    /**