| | |
| | | import java.util.Map; |
| | | |
| | | import com.talentcard.server.business.DatabaseRows; |
| | | import com.talentcard.server.business.payment.huifu.HuifuPayload; |
| | | import org.springframework.jdbc.core.JdbcTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | return alreadySucceeded ? SettlementOutcome.ALREADY_SETTLED : SettlementOutcome.AMOUNT_MISMATCH; |
| | | } |
| | | |
| | | String expectedHuifuId = HuifuPaymentPayload.firstNonBlank(text(payment.get("providerHuifuId")), text(payment.get("collectHuifuId"))); |
| | | String expectedHuifuId = HuifuPayload.firstNonBlank(text(payment.get("providerHuifuId")), text(payment.get("collectHuifuId"))); |
| | | if (expectedHuifuId.isBlank()) { |
| | | issues.issue(ISSUE_COLLECTOR_UNKNOWN, fact.paymentNo(), orderNo, "collecting sub-merchant", fact.huifuId(), |
| | | amountInCent, "Order has no collecting Huifu sub-merchant"); |