package com.xkrs.allinpay.model; import java.util.Map; public class UnitOrderPayUtils { public static UnitOrderPayEntity getEntityByMap(Map map) { UnitOrderPayEntity entity = new UnitOrderPayEntity(); entity.setCusid(map.get("cusid")); entity.setAppid(map.get("appid")); entity.setTrxid(map.get("trxid")); entity.setChnltrxid(map.get("chnltrxid")); entity.setReqsn(map.get("reqsn")); entity.setRandomstr(map.get("randomstr")); entity.setTrxstatus(map.get("trxstatus")); entity.setFintime(map.get("fintime")); entity.setErrmsg(map.get("errmsg")); entity.setPayinfo(map.get("payinfo")); entity.setTrxcode(map.get("trxcode")); return entity; } private static String getTrxStatusDesc(String trxStatus) { return null; } private static String getTrxCodeDesc(String trxCode) { if ("VSP501".equals(trxCode)) { return "微信支付"; } if ("VSP502".equals(trxCode)) { return "微信支付撤销"; } if ("VSP503".equals(trxCode)) { return "微信支付退款"; } if ("VSP511".equals(trxCode)) { return "支付宝支付"; } if ("VSP512".equals(trxCode)) { return "支付宝支付撤销"; } if ("VSP513".equals(trxCode)) { return "支付宝支付退款"; } if ("VSP541".equals(trxCode)) { return "扫码支付"; } if ("VSP542".equals(trxCode)) { return "扫码撤销"; } if ("VSP543".equals(trxCode)) { return "扫码退货"; } if ("VSP551".equals(trxCode)) { return "银联扫码支付"; } if ("VSP552".equals(trxCode)) { return "银联扫码撤销"; } if ("VSP553".equals(trxCode)) { return "银联扫码退货"; } if ("VSP907".equals(trxCode)) { return "差错借记调整"; } if ("VSP908".equals(trxCode)) { return "差错贷记调整"; } if ("VSP611".equals(trxCode)) { return "数字货币支付"; } if ("VSP612".equals(trxCode)) { return "数字货币撤销"; } if ("VSP613".equals(trxCode)) { return "数字货币退货"; } if ("VSP621".equals(trxCode)) { return "分期支付"; } if ("VSP622".equals(trxCode)) { return "分期撤销"; } if ("VSP623".equals(trxCode)) { return "分期退货"; } if ("300002".equals(trxCode)) { return "充值"; } if ("VSP681".equals(trxCode)) { return "微信订单预消费"; } if ("VSP682".equals(trxCode)) { return "微信订单退款"; } if ("VSP683".equals(trxCode)) { return "微信订单完成"; } if ("VSP684".equals(trxCode)) { return "微信订单完成退款"; } return null; } }