| | |
| | | |
| | | 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; |
| | |
| | | protected final Logger logger = LoggerFactory.getLogger(getClass()); |
| | | @Resource |
| | | private PaymentFeedbackMapper paymentFeedbackMapper; |
| | | @Resource |
| | | private AgingLogMapper agingLogMapper; |
| | | |
| | | |
| | | /** |
| | |
| | | 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; |
| | | } |
| | | |
| | | /** |