| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.enums.PartyTypeEnum; |
| | | import com.ruoyi.account.pojo.PaymentRecord; |
| | | import com.ruoyi.account.service.PaymentRecordService; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | |
| | | if (paymentRecord.getPartyType() == null || paymentRecord.getPartyId() == null) { |
| | | throw new RuntimeException("请选择往来方"); |
| | | } |
| | | if (PartyTypeEnum.getByCode(paymentRecord.getPartyType()) == null) { |
| | | throw new RuntimeException("往来方类型不合法"); |
| | | } |
| | | if (paymentRecord.getDirection() == null) { |
| | | throw new RuntimeException("请选择方向(付款/回款)"); |
| | | } |