mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
优化余额支付订单
This commit is contained in:
@@ -20,8 +20,11 @@ import com.jsowell.adapay.dto.QueryAcctFlowDTO;
|
||||
import com.jsowell.adapay.dto.QueryPaymentConfirmDTO;
|
||||
import com.jsowell.adapay.dto.SettleAccountDTO;
|
||||
import com.jsowell.adapay.factory.AdapayConfigFactory;
|
||||
import com.jsowell.adapay.operation.PaymentReverseOperation;
|
||||
import com.jsowell.adapay.response.PaymentConfirmResponse;
|
||||
import com.jsowell.adapay.response.PaymentReverseResponse;
|
||||
import com.jsowell.adapay.response.QueryPaymentConfirmDetailResponse;
|
||||
import com.jsowell.adapay.response.RefundResponse;
|
||||
import com.jsowell.adapay.service.AdapayService;
|
||||
import com.jsowell.adapay.vo.DrawCashDetailVO;
|
||||
import com.jsowell.common.constant.CacheConstants;
|
||||
@@ -652,6 +655,37 @@ public class SpringBootTestController {
|
||||
System.out.println(JSON.toJSONString(paymentConfirmResponse));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createPaymentReverseRequestTest() {
|
||||
String paymentId = "002212023082411000810540619496373694464";
|
||||
BigDecimal refundAmount = new BigDecimal("1.00");
|
||||
String wechatAppId = "wx20abc5210391649c";
|
||||
String memberId = "42012388";
|
||||
|
||||
// 延迟分账未确认调撤销调撤销接口退款
|
||||
PaymentReverseOperation operation = new PaymentReverseOperation();
|
||||
operation.setPaymentId(paymentId);
|
||||
operation.setReverseAmt(refundAmount);
|
||||
operation.setMerchantKey(wechatAppId);
|
||||
operation.setMemberId(memberId);
|
||||
operation.setScenarioType(ScenarioEnum.ORDER.getValue());
|
||||
operation.setOrderCode(null);
|
||||
PaymentReverseResponse response = adapayService.createPaymentReverseRequest(operation);
|
||||
System.out.println(JSON.toJSONString(response));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createRefundRequestTest() {
|
||||
String paymentId = "002212023091416460110548316686591795200";
|
||||
BigDecimal refundAmount = new BigDecimal("1.00");
|
||||
String wechatAppId = "wx20abc5210391649c";
|
||||
String memberId = "42012388";
|
||||
// 调汇付的交易退款接口
|
||||
RefundResponse response = adapayService.createRefundRequest(paymentId, refundAmount,
|
||||
wechatAppId, memberId, ScenarioEnum.ORDER.getValue(), null);
|
||||
System.out.println(JSON.toJSONString(response));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量支付确认撤销
|
||||
* @throws BaseAdaPayException
|
||||
@@ -680,417 +714,7 @@ public class SpringBootTestController {
|
||||
|
||||
public List<String> getList() {
|
||||
List<String> list = Lists.newArrayList();
|
||||
list.add("002212023080209304810532624482967433216");
|
||||
list.add("002212023080209480910532628850635452416");
|
||||
list.add("002212023080210055210532633306584395776");
|
||||
list.add("002212023080210373610532641294365573120");
|
||||
list.add("002212023080211223110532652595735678976");
|
||||
list.add("002212023080211414410532657434426290176");
|
||||
list.add("002212023080212100210532664557262045184");
|
||||
list.add("002212023080212095810532664539210924032");
|
||||
list.add("002212023080213491410532689520353902592");
|
||||
list.add("002212023080214552910532706191122325504");
|
||||
list.add("002212023080215052310532708684073394176");
|
||||
list.add("002212023080215473910532719321689083904");
|
||||
list.add("002212023080216002610532722537476587520");
|
||||
list.add("002212023080216265010532729182505263104");
|
||||
list.add("002212023080216503910532735175199764480");
|
||||
list.add("002212023080218432310532763544244314112");
|
||||
list.add("002212023080219174810532772206388719616");
|
||||
list.add("002212023080220203410532788003051888640");
|
||||
list.add("002212023080222075710532815027940179968");
|
||||
list.add("002212023080222471310532824906748997632");
|
||||
list.add("002212023080223250110532834419384467456");
|
||||
list.add("002212023080300022210532843818643652608");
|
||||
list.add("002212023080300174410532847688406716416");
|
||||
list.add("002212023080307131910532952274419613696");
|
||||
list.add("002212023080310370610533003557404594176");
|
||||
list.add("002212023080310462310533005894214828032");
|
||||
list.add("002212023080312194510533029387116949504");
|
||||
list.add("002212023080312251310533030763680223232");
|
||||
list.add("002212023080312444610533035684332818432");
|
||||
list.add("002212023080312485510533036730747838464");
|
||||
list.add("002212023080313052710533040889794519040");
|
||||
list.add("002212023080316074110533086748158525440");
|
||||
list.add("002212023080316451210533096192530862080");
|
||||
list.add("002212023080316535710533098395504259072");
|
||||
list.add("002212023080317473810533111904093356032");
|
||||
list.add("002212023080319090310533132392003317760");
|
||||
list.add("002212023080321005510533160543205449728");
|
||||
list.add("002212023080321020010533160819025924096");
|
||||
list.add("002212023080321101610533162896586084352");
|
||||
list.add("002212023080321320110533168370325549056");
|
||||
list.add("002212023080401152510533224590910226432");
|
||||
list.add("002212023080404555810533280094390910976");
|
||||
list.add("002212023080408122410533329529971576832");
|
||||
list.add("002212023080411564710533385998821474304");
|
||||
list.add("002212023080413221010533407484810792960");
|
||||
list.add("002212023080413451410533413289979002880");
|
||||
list.add("002212023080414375910533426565034954752");
|
||||
list.add("002212023080415515610533445175959420928");
|
||||
list.add("002212023080418490410533489751169449984");
|
||||
list.add("002212023080419262010533499128296812544");
|
||||
list.add("002212023080420352310533516505161465856");
|
||||
list.add("002212023080420390010533517415842131968");
|
||||
list.add("002212023080421293310533530139375620096");
|
||||
list.add("002212023080421545910533536540168704000");
|
||||
list.add("002212023080422414010533548289086472192");
|
||||
list.add("002212023080423430310533563732962390016");
|
||||
list.add("002212023080500101210533570567592120320");
|
||||
list.add("002212023080505544510533657276523376640");
|
||||
list.add("002212023080505561810533657668010266624");
|
||||
list.add("002212023080506131210533661918371139584");
|
||||
list.add("002212023080508594710533703841853194240");
|
||||
list.add("002212023080510543710533732738062241792");
|
||||
list.add("002212023080511562710533748299144167424");
|
||||
list.add("002212023080512021010533749740462067712");
|
||||
list.add("002212023080512443910533760432203874304");
|
||||
list.add("002212023080512510110533762031124295680");
|
||||
list.add("002212023080513243310533770471908462592");
|
||||
list.add("002212023080514004710533779590359445504");
|
||||
list.add("002212023080514224810533785129733832704");
|
||||
list.add("002212023080514323710533787602477273088");
|
||||
list.add("002212023080514371310533788758360903680");
|
||||
list.add("002212023080515104010533797175999692800");
|
||||
list.add("002212023080515240410533800548910125056");
|
||||
list.add("002212023080516343610533818301536440320");
|
||||
list.add("002212023080516362710533818763921485824");
|
||||
list.add("002212023080518440410533850881523990528");
|
||||
list.add("002212023080518595410533854863581032448");
|
||||
list.add("002212023080519222710533860539474182144");
|
||||
list.add("002212023080519484110533867142319329280");
|
||||
list.add("002212023080520024110533870665660518400");
|
||||
list.add("002212023080520460010533881565299003392");
|
||||
list.add("002212023080521234310533891056818343936");
|
||||
list.add("002212023080521323910533893305393106944");
|
||||
list.add("002212023080521512210533898015132798976");
|
||||
list.add("002212023080521594510533900124874756096");
|
||||
list.add("002212023080523005510533915519569809408");
|
||||
list.add("002212023080523452910533926735360835584");
|
||||
list.add("002212023080600142810533934030671745024");
|
||||
list.add("002212023080601060210533947006192791552");
|
||||
list.add("002212023080601133610533948908857888768");
|
||||
list.add("002212023080606591810534035907757379584");
|
||||
list.add("002212023080607060910534037632706842624");
|
||||
list.add("002212023080607334510534044577691328512");
|
||||
list.add("002212023080608285510534058460836171776");
|
||||
list.add("002212023080608491810534063591573311488");
|
||||
list.add("002212023080608561110534065324675084288");
|
||||
list.add("002212023080609081610534068364209094656");
|
||||
list.add("002212023080610051310534082693944651776");
|
||||
list.add("002212023080610372010534090780495654912");
|
||||
list.add("002212023080612581810534126253346279424");
|
||||
list.add("002212023080616170610534176284240084992");
|
||||
list.add("002212023080616352210534180880470585344");
|
||||
list.add("002212023080616481010534184101661560832");
|
||||
list.add("002212023080617041010534188127913525248");
|
||||
list.add("002212023080617352510534195990543196160");
|
||||
list.add("002212023080620385010534242151172390912");
|
||||
list.add("002212023080621171810534251829785153536");
|
||||
list.add("002212023080704262310534359813880119296");
|
||||
list.add("002212023080706432810534394310708244480");
|
||||
list.add("002212023080707310410534406292671545344");
|
||||
list.add("002212023080711042010534459959331303424");
|
||||
list.add("002212023080711143610534462545445249024");
|
||||
list.add("002212023080711254910534465368567382016");
|
||||
list.add("002212023080713192410534493950907236352");
|
||||
list.add("002212023080713200010534494101252526080");
|
||||
list.add("002212023080715331110534527617663303680");
|
||||
list.add("002212023080715351510534528139980337152");
|
||||
list.add("002212023080716120510534537407597457408");
|
||||
list.add("002212023080717255610534555995598409728");
|
||||
list.add("002212023080718241310534570662967369728");
|
||||
list.add("002212023080718503510534577298047545344");
|
||||
list.add("002212023080718534410534578088885956608");
|
||||
list.add("002212023080719124010534582854595268608");
|
||||
list.add("002212023080719274710534586656814104576");
|
||||
list.add("002212023080720525210534608069813067776");
|
||||
list.add("002212023080801542510534683958601048064");
|
||||
list.add("002212023080808380710534785552100425728");
|
||||
list.add("002212023080809160710534795114014994432");
|
||||
list.add("002212023080811040110534822269050580992");
|
||||
list.add("002212023080811334810534829765096157184");
|
||||
list.add("002212023080811373310534830708006043648");
|
||||
list.add("002212023080812352810534845284078075904");
|
||||
list.add("002212023080813331210534859813536059392");
|
||||
list.add("002212023080814455610534878116213346304");
|
||||
list.add("002212023080816532910534910216790360064");
|
||||
list.add("002212023080817383510534921566006726656");
|
||||
list.add("002212023080817471010534923724588310528");
|
||||
list.add("002212023080817500210534924446569517056");
|
||||
list.add("002212023080818423110534937654006304768");
|
||||
list.add("002212023080821424410534983008546377728");
|
||||
list.add("002212023080823153910535006388962349056");
|
||||
list.add("002212023080823362510535011617733234688");
|
||||
list.add("002212023080901035210535033625387511808");
|
||||
list.add("002212023080906044310535109334048505856");
|
||||
list.add("002212023080909503410535166171638497280");
|
||||
list.add("002212023080910280010535175594690818048");
|
||||
list.add("002212023080912233010535204661163380736");
|
||||
list.add("002212023080912395310535208782099804160");
|
||||
list.add("002212023080912462610535210431823462400");
|
||||
list.add("002212023080913264010535220557232308224");
|
||||
list.add("002212023080916415010535269672050536448");
|
||||
list.add("002212023080919111210535307260075339776");
|
||||
list.add("002212023080920275910535326584028102656");
|
||||
list.add("002212023080920554310535333563591184384");
|
||||
list.add("002212023080921195110535339635431276544");
|
||||
list.add("002212023080922470410535361583891247104");
|
||||
list.add("002212023080923284810535372087431712768");
|
||||
list.add("002212023080923552010535378764935278592");
|
||||
list.add("002212023081002480410535422237083856896");
|
||||
list.add("002212023081004241110535446422335619072");
|
||||
list.add("002212023081009122910535518976624742400");
|
||||
list.add("002212023081010041210535531993052758016");
|
||||
list.add("002212023081010333710535539394039934976");
|
||||
list.add("002212023081012312610535569042240159744");
|
||||
list.add("002212023081013095510535578730189975552");
|
||||
list.add("002212023081014080510535593367799873536");
|
||||
list.add("002212023081014101610535593917740236800");
|
||||
list.add("002212023081015242410535612574518628352");
|
||||
list.add("002212023081016184610535626255337705472");
|
||||
list.add("002212023081016343210535630223471083520");
|
||||
list.add("002212023081016412510535631956416057344");
|
||||
list.add("002212023081017103910535639311193886720");
|
||||
list.add("002212023081017573810535651137062850560");
|
||||
list.add("002212023081018303910535659446015197184");
|
||||
list.add("002212023081018521910535664898486472704");
|
||||
list.add("002212023081019145710535670591067586560");
|
||||
list.add("002212023081019273710535673778903179264");
|
||||
list.add("002212023081019332210535675228421111808");
|
||||
list.add("002212023081020083810535684101953368064");
|
||||
list.add("002212023081020254110535688393728798720");
|
||||
list.add("002212023081020270110535688726536040448");
|
||||
list.add("002212023081020544310535695698233823232");
|
||||
list.add("002212023081021262110535703658870648832");
|
||||
list.add("002212023081021275910535704069260722176");
|
||||
list.add("002212023081022021110535712677017079808");
|
||||
list.add("002212023081022101210535714696941965312");
|
||||
list.add("002212023081022265910535718919588274176");
|
||||
list.add("002212023081023250610535733546606936064");
|
||||
list.add("002212023081023281310535734327745523712");
|
||||
list.add("002212023081100385310535752112508399616");
|
||||
list.add("002212023081101440710535768529232977920");
|
||||
list.add("002212023081102175010535777016355209216");
|
||||
list.add("002212023081103312510535795533792133120");
|
||||
list.add("002212023081109074710535880179831459840");
|
||||
list.add("002212023081110453310535904786147696640");
|
||||
list.add("002212023081111213210535913840780414976");
|
||||
list.add("002212023081113331010535946967512436736");
|
||||
list.add("002212023081113545210535952429178572800");
|
||||
list.add("002212023081114564710535968011643416576");
|
||||
list.add("002212023081114591110535968613017997312");
|
||||
list.add("002212023081115281410535975926873100288");
|
||||
list.add("002212023081115522310535982000889413632");
|
||||
list.add("002212023081116000510535983942119763968");
|
||||
list.add("002212023081116021410535984482737639424");
|
||||
list.add("002212023081116045810535985170092933120");
|
||||
list.add("002212023081116443710535995147764936704");
|
||||
list.add("002212023081116455110535995459850514432");
|
||||
list.add("002212023081116483410535996140458790912");
|
||||
list.add("002212023081116495210535996468065898496");
|
||||
list.add("002212023081117162910536003168982159360");
|
||||
list.add("002212023081117231210536004859271761920");
|
||||
list.add("002212023081117412110536009424213823488");
|
||||
list.add("002212023081117442810536010209508999168");
|
||||
list.add("002212023081117521810536012179033391104");
|
||||
list.add("002212023081118190410536018915653996544");
|
||||
list.add("002212023081118354310536023104910098432");
|
||||
list.add("002212023081119190010536033999630004224");
|
||||
list.add("002212023081119413310536039672279007232");
|
||||
list.add("002212023081120053210536045710980460544");
|
||||
list.add("002212023081120070310536046091648552960");
|
||||
list.add("002212023081120080110536046336742428672");
|
||||
list.add("002212023081120125110536047551743045632");
|
||||
list.add("002212023081120183710536049002654633984");
|
||||
list.add("002212023081120272010536051196078739456");
|
||||
list.add("002212023081120354910536053330275364864");
|
||||
list.add("002212023081120524410536057589623853056");
|
||||
list.add("002212023081121053910536060836852838400");
|
||||
list.add("002212023081121125910536062682579853312");
|
||||
list.add("002212023081121180710536063974776225792");
|
||||
list.add("002212023081121391610536069300187451392");
|
||||
list.add("002212023081121443610536070641430102016");
|
||||
list.add("002212023081121550410536073274983108608");
|
||||
list.add("002212023081122025510536075249151037440");
|
||||
list.add("002212023081122103610536077185673408512");
|
||||
list.add("002212023081123092910536092000987136000");
|
||||
list.add("002212023081123483010536101821032267776");
|
||||
list.add("002212023081202380910536144516784746496");
|
||||
list.add("002212023081202511410536147808900395008");
|
||||
list.add("002212023081203222410536155652040146944");
|
||||
list.add("002212023081203244510536156243971092480");
|
||||
list.add("002212023081203313410536157958555631616");
|
||||
list.add("002212023081204351810536173998358286336");
|
||||
list.add("002212023081204580410536179728367529984");
|
||||
list.add("002212023081205483910536192454555152384");
|
||||
list.add("002212023081207095310536212899296804864");
|
||||
list.add("002212023081208191510536230355565535232");
|
||||
list.add("002212023081209040310536241630499635200");
|
||||
list.add("002212023081209171810536244964435611648");
|
||||
list.add("002212023081209301410536248221211836416");
|
||||
list.add("002212023081210214510536261182496194560");
|
||||
list.add("002212023081210234510536261686956544000");
|
||||
list.add("002212023081210313510536263656718897152");
|
||||
list.add("002212023081210324110536263934321930240");
|
||||
list.add("002212023081210343710536264422835109888");
|
||||
list.add("002212023081210375910536265270789136384");
|
||||
list.add("002212023081211100010536273324714274816");
|
||||
list.add("002212023081211113610536273730510942208");
|
||||
list.add("002212023081211241310536276906020745216");
|
||||
list.add("002212023081211334710536279312014499840");
|
||||
list.add("002212023081211350810536279651257221120");
|
||||
list.add("002212023081212075510536287902803755008");
|
||||
list.add("002212023081212595510536300986994159616");
|
||||
list.add("002212023081213194710536305988186398720");
|
||||
list.add("002212023081213445810536312324219461632");
|
||||
list.add("002212023081214063410536317760480890880");
|
||||
list.add("002212023081214261510536322715669417984");
|
||||
list.add("002212023081215195610536336223685033984");
|
||||
list.add("002212023081215345210536339980542377984");
|
||||
list.add("002212023081215520710536344323890970624");
|
||||
list.add("002212023081216143210536349963682152448");
|
||||
list.add("002212023081216173810536350743720165376");
|
||||
list.add("002212023081216231810536352169713197056");
|
||||
list.add("002212023081216400010536356373478572032");
|
||||
list.add("002212023081217225710536367180442923008");
|
||||
list.add("002212023081217423910536372141053689856");
|
||||
list.add("002212023081217452410536372833861840896");
|
||||
list.add("002212023081217534910536374951258804224");
|
||||
list.add("002212023081218341010536385104585207808");
|
||||
list.add("002212023081218464810536388284103938048");
|
||||
list.add("002212023081219125610536394860567121920");
|
||||
list.add("002212023081219301710536399228213284864");
|
||||
list.add("002212023081219554010536405613638225920");
|
||||
list.add("002212023081220222410536412341014024192");
|
||||
list.add("002212023081220345210536415479007727616");
|
||||
list.add("002212023081221114410536424755682758656");
|
||||
list.add("002212023081221211610536427157100003328");
|
||||
list.add("002212023081222120510536439945480556544");
|
||||
list.add("002212023081222183410536441576339165184");
|
||||
list.add("002212023081222341810536445536972877824");
|
||||
list.add("002212023081222372010536446301520416768");
|
||||
list.add("002212023081223264710536458744159088640");
|
||||
list.add("002212023081223310910536459844898426880");
|
||||
list.add("002212023081304373010536536938041880576");
|
||||
list.add("002212023081304425610536538306430816256");
|
||||
list.add("002212023081304471810536539405305409536");
|
||||
list.add("002212023081306095110536560179961999360");
|
||||
list.add("002212023081306251910536564071806717952");
|
||||
list.add("002212023081306503110536570412168302592");
|
||||
list.add("002212023081309250210536609298692956160");
|
||||
list.add("002212023081309352310536611902223101952");
|
||||
list.add("002212023081309424710536613766024200192");
|
||||
list.add("002212023081310285810536625386195931136");
|
||||
list.add("002212023081310422410536628769162153984");
|
||||
list.add("002212023081310484310536630358372413440");
|
||||
list.add("002212023081311113710536636122640199680");
|
||||
list.add("002212023081311170310536637489162391552");
|
||||
list.add("002212023081311353510536642153020145664");
|
||||
list.add("002212023081311471010536645067840729088");
|
||||
list.add("002212023081312013810536648710305939456");
|
||||
list.add("002212023081312020110536648804723740672");
|
||||
list.add("002212023081312582310536662991423913984");
|
||||
list.add("002212023081313111410536666224758771712");
|
||||
list.add("002212023081313385710536673196962369536");
|
||||
list.add("002212023081313392410536673310117359616");
|
||||
list.add("002212023081313445810536674712882171904");
|
||||
list.add("002212023081314282310536685638331760640");
|
||||
list.add("002212023081314394510536688498932695040");
|
||||
list.add("002212023081315275210536700610158424064");
|
||||
list.add("002212023081318004210536739068757454848");
|
||||
list.add("002212023081318033910536739813256253440");
|
||||
list.add("002212023081318074310536740834154008576");
|
||||
list.add("002212023081318302410536746546335834112");
|
||||
list.add("002212023081318460010536750469486469120");
|
||||
list.add("002212023081319090010536756259956625408");
|
||||
list.add("002212023081319101910536756588674039808");
|
||||
list.add("002212023081319582610536768700992344064");
|
||||
list.add("002212023081320195510536774106464571392");
|
||||
list.add("002212023081320503110536781805784383488");
|
||||
list.add("002212023081320573110536783568511942656");
|
||||
list.add("002212023081321025110536784908047417344");
|
||||
list.add("002212023081322570110536813642252042240");
|
||||
list.add("002212023081323084110536816576427536384");
|
||||
list.add("002212023081400442110536840652674715648");
|
||||
list.add("002212023081408310010536958090217705472");
|
||||
list.add("002212023081413253710537032231247040512");
|
||||
list.add("002212023081414224810537046621496324096");
|
||||
list.add("002212023081414443210537052091410698240");
|
||||
list.add("002212023081414482510537053068845481984");
|
||||
list.add("002212023081414520610537053994173763584");
|
||||
list.add("002212023081415571710537070397476372480");
|
||||
list.add("002212023081417134510537089641443221504");
|
||||
list.add("002212023081418090610537103572601483264");
|
||||
list.add("002212023081419191010537121204464701440");
|
||||
list.add("002212023081419244810537122621685018624");
|
||||
list.add("002212023081419375010537125903648206848");
|
||||
list.add("002212023081419555110537130435188781056");
|
||||
list.add("002212023081420061210537133040388878336");
|
||||
list.add("002212023081420145910537135252850683904");
|
||||
list.add("002212023081420395310537141516677828608");
|
||||
list.add("002212023081420460310537143070169313280");
|
||||
list.add("002212023081511244510537364200278503424");
|
||||
list.add("002212023081511380010537367534449610752");
|
||||
list.add("002212023081511450110537369303817904128");
|
||||
list.add("002212023081512085610537375322261344256");
|
||||
list.add("002212023081512200110537378110166192128");
|
||||
list.add("002212023081513535610537401744796233728");
|
||||
list.add("002212023081514144510537406985096294400");
|
||||
list.add("002212023081514151510537407108244754432");
|
||||
list.add("002212023081515014410537418806001971200");
|
||||
list.add("002212023081515355510537427411438710784");
|
||||
list.add("002212023081515584410537433152302428160");
|
||||
list.add("002212023081515591510537433283662336000");
|
||||
list.add("002212023081516363410537442671929667584");
|
||||
list.add("002212023081517085010537450792706560000");
|
||||
list.add("002212023081517445210537459862744764416");
|
||||
list.add("002212023081517524310537461837080743936");
|
||||
list.add("002212023081517581810537463243549016064");
|
||||
list.add("002212023081518303310537471356211744768");
|
||||
list.add("002212023081518435810537474733931036672");
|
||||
list.add("002212023081519275010537485772248469504");
|
||||
list.add("002212023081519310710537486599821967360");
|
||||
list.add("002212023081519352810537487695998136320");
|
||||
list.add("002212023081519560910537492900934217728");
|
||||
list.add("002212023081520143110537497521369165824");
|
||||
list.add("002212023081522385410537533859322548224");
|
||||
list.add("002212023081523161210537543244876533760");
|
||||
list.add("002212023081606132710537648247452282880");
|
||||
list.add("002212023081607563310537674196242288640");
|
||||
list.add("002212023081608573410537689551904083968");
|
||||
list.add("002212023081609314410537698147643408384");
|
||||
list.add("002212023081611264210537727082197757952");
|
||||
list.add("002212023081612180110537739993872257024");
|
||||
list.add("002212023081613261410537757161648451584");
|
||||
list.add("002212023081613324810537758815530438656");
|
||||
list.add("002212023081613332010537758948456321024");
|
||||
list.add("002212023081615102410537783375251034112");
|
||||
list.add("002212023081615155010537784742309068800");
|
||||
list.add("002212023081615205610537786025702756352");
|
||||
list.add("002212023081615423810537791487488454656");
|
||||
list.add("002212023081616003810537796018679762944");
|
||||
list.add("002212023081616371310537805224568500224");
|
||||
list.add("002212023081616463010537807559550320640");
|
||||
list.add("002212023081618175410537830562149425152");
|
||||
list.add("002212023081618490110537838392130482176");
|
||||
list.add("002212023081620302010537863890661953536");
|
||||
list.add("002212023081623284210537908776792244224");
|
||||
list.add("002212023081714084910538130267692662784");
|
||||
list.add("002212023081714374110538137529223925760");
|
||||
list.add("002212023081715281610538150261655592960");
|
||||
list.add("002212023081715501110538155776214872064");
|
||||
list.add("002212023081717080810538175393304428544");
|
||||
list.add("002212023081717165110538177585892978688");
|
||||
list.add("002212023081717181710538177947907018752");
|
||||
list.add("002212023081717295010538180853137821696");
|
||||
list.add("002212023081717322510538181503738630144");
|
||||
list.add("002212023081718034010538189366450900992");
|
||||
list.add("002212023081719470410538215391914283008");
|
||||
list.add("002212023081719530910538216921602260992");
|
||||
list.add("002212023081720025710538219388484026368");
|
||||
list.add("002212023081722140210538252374003314688");
|
||||
|
||||
list.add("002212023082411000810540619496373694464");
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ import com.jsowell.pile.vo.web.BalanceDeductionAmountVO;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import com.jsowell.pile.vo.web.UpdateMemberBalanceDTO;
|
||||
import com.jsowell.wxpay.dto.WechatSendMsgDTO;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.cglib.beans.BeanMap;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -248,7 +247,6 @@ public class DelayMerchantOrderLogic extends AbstractOrderLogic {
|
||||
List<BalanceDeductionAmountVO> list = calculateTheBalanceDeductionAmount(dto.getMemberId(), chargeAmount);
|
||||
|
||||
// 记录订单支付流水
|
||||
// JSONArray jsonArray = new JSONArray();
|
||||
BigDecimal payAmt = BigDecimal.ZERO;
|
||||
List<PaymentInfo> paymentInfos = Lists.newArrayList();
|
||||
for (BalanceDeductionAmountVO balanceDeductionAmountVO : list) {
|
||||
@@ -256,10 +254,6 @@ public class DelayMerchantOrderLogic extends AbstractOrderLogic {
|
||||
// 此交易单扣除金额
|
||||
BigDecimal deductionAmount = balanceDeductionAmountVO.getDeductionAmount();
|
||||
payAmt = payAmt.add(deductionAmount);
|
||||
// JSONObject json = new JSONObject();
|
||||
// json.put("paymentId", paymentId);
|
||||
// json.put("amount", deductionAmount);
|
||||
// jsonArray.add(json);
|
||||
|
||||
PaymentInfo paymentInfo = new PaymentInfo();
|
||||
paymentInfo.setPaymentId(paymentId);
|
||||
@@ -279,21 +273,17 @@ public class DelayMerchantOrderLogic extends AbstractOrderLogic {
|
||||
|
||||
// 记录支订单付流水
|
||||
List<OrderPayRecord> payRecordList = Lists.newArrayList(build);
|
||||
orderPayRecordService.batchInsert(payRecordList);
|
||||
|
||||
// 订单支付流水入库
|
||||
if (CollectionUtils.isNotEmpty(payRecordList)) {
|
||||
orderPayRecordService.batchInsert(payRecordList);
|
||||
|
||||
// 把消费金额冻结
|
||||
for (OrderPayRecord record : payRecordList) {
|
||||
List<PaymentInfo> paymentInfoList = parseDeductionRecord(record.getDeductionRecord());
|
||||
// 循环冻结金额
|
||||
for (PaymentInfo paymentInfo : paymentInfoList) {
|
||||
String paymentId = paymentInfo.getPaymentId();
|
||||
BigDecimal amount = new BigDecimal(paymentInfo.getAmount());
|
||||
// 余额支付 临时冻结金额
|
||||
memberAdapayRecordService.updateFreezeAmount(paymentId, amount);
|
||||
}
|
||||
// 把消费金额冻结
|
||||
for (OrderPayRecord record : payRecordList) {
|
||||
List<PaymentInfo> paymentInfoList = parseDeductionRecord(record.getDeductionRecord());
|
||||
// 循环冻结金额
|
||||
for (PaymentInfo paymentInfo : paymentInfoList) {
|
||||
String paymentId = paymentInfo.getPaymentId();
|
||||
BigDecimal amount = new BigDecimal(paymentInfo.getAmount());
|
||||
// 余额支付 临时冻结金额
|
||||
memberAdapayRecordService.updateFreezeAmount(paymentId, amount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ import com.jsowell.pile.vo.web.BalanceDeductionAmountVO;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import com.jsowell.pile.vo.web.UpdateMemberBalanceDTO;
|
||||
import com.jsowell.wxpay.dto.WechatSendMsgDTO;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.cglib.beans.BeanMap;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -248,36 +247,39 @@ public class NotDelayMerchantOrderLogic extends AbstractOrderLogic{
|
||||
// 查询余额充值有剩余的记录
|
||||
List<BalanceDeductionAmountVO> list = calculateTheBalanceDeductionAmount(dto.getMemberId(), chargeAmount);
|
||||
// 记录支订单付流水
|
||||
List<OrderPayRecord> payRecordList = Lists.newArrayList();
|
||||
List<PaymentInfo> paymentInfos = Lists.newArrayList();
|
||||
BigDecimal deductionAmount = BigDecimal.ZERO;
|
||||
for (BalanceDeductionAmountVO balanceDeductionAmountVO : list) {
|
||||
String paymentId = balanceDeductionAmountVO.getPaymentId();
|
||||
BigDecimal deductionAmount = balanceDeductionAmountVO.getDeductionAmount();
|
||||
// JSONObject json = new JSONObject();
|
||||
// json.put("paymentId", paymentId);
|
||||
// json.put("amount", deductionAmount);
|
||||
deductionAmount = deductionAmount.add(balanceDeductionAmountVO.getDeductionAmount());
|
||||
|
||||
PaymentInfo paymentInfo = new PaymentInfo();
|
||||
paymentInfo.setPaymentId(paymentId);
|
||||
paymentInfo.setAmount(deductionAmount.toString());
|
||||
// 记录流水
|
||||
payRecordList.add(OrderPayRecord.builder()
|
||||
.orderCode(orderCode)
|
||||
.payMode(OrderPayRecordEnum.PRINCIPAL_BALANCE_PAYMENT.getValue())
|
||||
.payAmount(deductionAmount)
|
||||
.acquirer(AcquirerEnum.LOCAL.getValue())
|
||||
// .deductionRecord(json.toJSONString())
|
||||
.deductionRecord(JSON.toJSONString(paymentInfo))
|
||||
.createBy(dto.getMemberId())
|
||||
.delFlag(DelFlagEnum.NORMAL.getValue())
|
||||
.build());
|
||||
paymentInfos.add(paymentInfo);
|
||||
}
|
||||
// 记录流水
|
||||
OrderPayRecord orderPayRecord = OrderPayRecord.builder()
|
||||
.orderCode(orderCode)
|
||||
.payMode(OrderPayRecordEnum.PRINCIPAL_BALANCE_PAYMENT.getValue())
|
||||
.payAmount(deductionAmount)
|
||||
.acquirer(AcquirerEnum.LOCAL.getValue())
|
||||
.deductionRecord(JSON.toJSONString(paymentInfos))
|
||||
.createBy(dto.getMemberId())
|
||||
.delFlag(DelFlagEnum.NORMAL.getValue())
|
||||
.build();
|
||||
|
||||
// 订单支付流水入库
|
||||
if (CollectionUtils.isNotEmpty(payRecordList)) {
|
||||
orderPayRecordService.batchInsert(payRecordList);
|
||||
for (OrderPayRecord record : payRecordList) {
|
||||
String deductionRecord = record.getDeductionRecord();
|
||||
JSONObject jsonObject = JSON.parseObject(deductionRecord);
|
||||
String paymentId = jsonObject.getString("paymentId");
|
||||
BigDecimal amount = jsonObject.getBigDecimal("amount");
|
||||
List<OrderPayRecord> payRecordList = Lists.newArrayList(orderPayRecord);
|
||||
orderPayRecordService.batchInsert(payRecordList);
|
||||
|
||||
// 把消费金额冻结
|
||||
for (OrderPayRecord record : payRecordList) {
|
||||
List<PaymentInfo> paymentInfoList = parseDeductionRecord(record.getDeductionRecord());
|
||||
// 循环冻结金额
|
||||
for (PaymentInfo paymentInfo : paymentInfoList) {
|
||||
String paymentId = paymentInfo.getPaymentId();
|
||||
BigDecimal amount = new BigDecimal(paymentInfo.getAmount());
|
||||
// 余额支付 临时冻结金额
|
||||
memberAdapayRecordService.updateFreezeAmount(paymentId, amount);
|
||||
}
|
||||
|
||||
@@ -46,6 +46,15 @@
|
||||
>批量修改站点</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['pile:basic:batchAdd']"
|
||||
>批量新增</el-button
|
||||
>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
@@ -305,6 +314,14 @@ export default {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getPileList();
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.getMerchantList();
|
||||
this.title = "批量添加设备";
|
||||
this.open = true;
|
||||
this.getModelList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.queryParams = {
|
||||
|
||||
Reference in New Issue
Block a user