mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-26 05:06:39 +08:00
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
'use strict';const _0x5a83dd=_0x21e0;(function(_0xa7d4d8,_0x21b55f){const _0x5798df=_0x21e0,_0x2e54ab=_0xa7d4d8();while(!![]){try{const _0x42e6e5=-parseInt(_0x5798df(0x19c))/0x1+-parseInt(_0x5798df(0x1a3))/0x2+-parseInt(_0x5798df(0x199))/0x3*(parseInt(_0x5798df(0x1b1))/0x4)+-parseInt(_0x5798df(0x188))/0x5+-parseInt(_0x5798df(0x1ae))/0x6*(-parseInt(_0x5798df(0x1a1))/0x7)+-parseInt(_0x5798df(0x1a8))/0x8+parseInt(_0x5798df(0x14d))/0x9*(parseInt(_0x5798df(0x18e))/0xa);if(_0x42e6e5===_0x21b55f)break;else _0x2e54ab['push'](_0x2e54ab['shift']());}catch(_0x460247){_0x2e54ab['push'](_0x2e54ab['shift']());}}}(_0x3547,0x193e9));var __decorate=this&&this[_0x5a83dd(0x162)]||function(_0x5d1b6d,_0x170bf9,_0x3d1a5c,_0x396678){const _0x4561d6=_0x5a83dd;var _0x3f06a9=arguments[_0x4561d6(0x1ab)],_0x26346a=_0x3f06a9<0x3?_0x170bf9:_0x396678===null?_0x396678=Object[_0x4561d6(0x173)](_0x170bf9,_0x3d1a5c):_0x396678,_0x3a9426;if(typeof Reflect===_0x4561d6(0x17d)&&typeof Reflect['decorate']===_0x4561d6(0x16b))_0x26346a=Reflect[_0x4561d6(0x192)](_0x5d1b6d,_0x170bf9,_0x3d1a5c,_0x396678);else{for(var _0x17c0a1=_0x5d1b6d[_0x4561d6(0x1ab)]-0x1;_0x17c0a1>=0x0;_0x17c0a1--)if(_0x3a9426=_0x5d1b6d[_0x17c0a1])_0x26346a=(_0x3f06a9<0x3?_0x3a9426(_0x26346a):_0x3f06a9>0x3?_0x3a9426(_0x170bf9,_0x3d1a5c,_0x26346a):_0x3a9426(_0x170bf9,_0x3d1a5c))||_0x26346a;}return _0x3f06a9>0x3&&_0x26346a&&Object[_0x4561d6(0x187)](_0x170bf9,_0x3d1a5c,_0x26346a),_0x26346a;},__metadata=this&&this[_0x5a83dd(0x17f)]||function(_0x12a717,_0x138ea5){const _0x17de0b=_0x5a83dd;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x17de0b(0x16b))return Reflect[_0x17de0b(0x18d)](_0x12a717,_0x138ea5);},__param=this&&this['__param']||function(_0x193b1f,_0x498d55){return function(_0x469526,_0x4c4879){_0x498d55(_0x469526,_0x4c4879,_0x193b1f);};};Object['defineProperty'](exports,_0x5a83dd(0x195),{'value':!![]}),exports[_0x5a83dd(0x158)]=void 0x0;const globalConfig_service_1=require(_0x5a83dd(0x15e)),common_1=require(_0x5a83dd(0x1b3)),salesUsers_entity_1=require('./salesUsers.entity'),typeorm_1=require(_0x5a83dd(0x157)),typeorm_2=require('typeorm'),salesRecords_entity_1=require(_0x5a83dd(0x14f)),utils_1=require(_0x5a83dd(0x1b6)),user_entity_1=require(_0x5a83dd(0x190)),decimal_js_1=require('decimal.js'),salesOrder_entity_1=require(_0x5a83dd(0x14e));function _0x21e0(_0x36beda,_0x4ae910){const _0x3547ff=_0x3547();return _0x21e0=function(_0x21e066,_0xb3fa7a){_0x21e066=_0x21e066-0x148;let _0x33b622=_0x3547ff[_0x21e066];return _0x33b622;},_0x21e0(_0x36beda,_0x4ae910);}let SalesService=class SalesService{constructor(_0x4e30f8,_0x74afbc,_0x4ef015,_0x175951,_0x5c130a){const _0x1d7458=_0x5a83dd;this[_0x1d7458(0x193)]=_0x4e30f8,this[_0x1d7458(0x1b7)]=_0x74afbc,this[_0x1d7458(0x1ad)]=_0x4ef015,this[_0x1d7458(0x186)]=_0x175951,this[_0x1d7458(0x183)]=_0x5c130a;}async[_0x5a83dd(0x17c)](_0xf3106d){const _0x27980f=_0x5a83dd;try{const {id:_0x36f48c}=_0xf3106d['user'];let _0xe6b6a8=await this[_0x27980f(0x193)][_0x27980f(0x1a4)]({'where':{'userId':_0x36f48c}});if(!_0xe6b6a8){const {salesBaseRatio:salesBaseRatio=0xa,salesBaseTitle:salesBaseTitle=_0x27980f(0x194)}=await this[_0x27980f(0x183)][_0x27980f(0x191)]([_0x27980f(0x174),_0x27980f(0x14b)]);_0xe6b6a8=await this[_0x27980f(0x185)]({'userId':_0x36f48c,'performanceRatio':Number(salesBaseRatio),'salesOutletName':salesBaseTitle});}const _0x1f362b=(0x0,utils_1[_0x27980f(0x17a)])(_0xe6b6a8),_0x2fca0=await this['salesRecordsEntity']['count']({'where':{'inviterUserId':_0x36f48c}}),_0x54a95b=await this[_0x27980f(0x1ad)][_0x27980f(0x1a4)]({'where':{'id':_0x36f48c}})||{'inviteLinkCount':0x0,'inviteCode':_0x27980f(0x1af)},{inviteLinkCount:_0x105ba8,inviteCode:_0x3b8198}=_0x54a95b,_0x4a4932=await this[_0x27980f(0x1ad)][_0x27980f(0x1aa)]({'where':{'invitedBy':_0x3b8198}});return Object[_0x27980f(0x1b9)](Object['assign']({},_0x1f362b),{'orderCount':_0x2fca0,'inviteCount':_0x4a4932,'inviteLinkCount':_0x105ba8});}catch(_0x230dd5){console[_0x27980f(0x1a5)](_0x27980f(0x175),_0x230dd5);}}async[_0x5a83dd(0x168)](_0x1e6e71,_0x329f7e){const _0x334bfa=_0x5a83dd;try{const {id:_0x246fe6}=_0x1e6e71['user'],{page:_0x1e6f9d,size:_0x4c72e1}=_0x329f7e,[_0x3b173b,_0x39048a]=await this[_0x334bfa(0x1b7)][_0x334bfa(0x172)]({'where':{'inviterUserId':_0x246fe6},'order':{'createdAt':_0x334bfa(0x176)},'skip':(_0x1e6f9d-0x1)*_0x4c72e1,'take':_0x4c72e1});return{'rows':(0x0,utils_1[_0x334bfa(0x17a)])(_0x3b173b),'count':_0x39048a};}catch(_0x389826){console[_0x334bfa(0x1a5)](_0x334bfa(0x175),_0x389826);}}async[_0x5a83dd(0x151)](_0x52f478,_0x378432){const _0x40e43f=_0x5a83dd;try{const {page:_0x3cbbbe,size:_0x27c6a9,orderId:_0x3ce75a,orderPrice:_0x5e5eb3}=_0x378432;let _0x500f0f={};_0x3ce75a&&(_0x500f0f={'orderId':_0x3ce75a}),_0x5e5eb3&&(_0x500f0f={'orderPrice':_0x5e5eb3});const [_0x4a4568,_0x36e674]=await this[_0x40e43f(0x1b7)][_0x40e43f(0x172)]({'where':_0x500f0f,'order':{'createdAt':_0x40e43f(0x176)},'skip':(_0x3cbbbe-0x1)*_0x27c6a9,'take':_0x27c6a9}),_0x320e0f=[];_0x4a4568[_0x40e43f(0x18c)](_0x3a8f35=>{const _0x510a47=_0x40e43f;_0x320e0f[_0x510a47(0x1b8)](_0x3a8f35[_0x510a47(0x182)]),_0x320e0f[_0x510a47(0x1b8)](_0x3a8f35[_0x510a47(0x178)]);});const _0x12d699=await this['userEntity']['find']({'where':{'id':(0x0,typeorm_2['In'])(_0x320e0f)}});return _0x4a4568[_0x40e43f(0x167)](_0x1d0bd2=>{const _0x52313b=_0x40e43f,_0x1a6c9f=_0x12d699['find'](_0x16be6b=>_0x16be6b['id']===_0x1d0bd2['inviterUserId']),_0x3d51fc=_0x12d699['find'](_0x4f9e21=>_0x4f9e21['id']===_0x1d0bd2[_0x52313b(0x178)]),{username:_0x4186a9,email:_0x33fa15,avatar:_0x152507}=_0x12d699['find'](_0x1df3fc=>_0x1df3fc['id']===_0x1d0bd2[_0x52313b(0x182)]);_0x1d0bd2[_0x52313b(0x180)]=_0x1a6c9f===null||_0x1a6c9f===void 0x0?void 0x0:_0x1a6c9f['username'],_0x1d0bd2[_0x52313b(0x170)]=_0x1a6c9f===null||_0x1a6c9f===void 0x0?void 0x0:_0x1a6c9f[_0x52313b(0x156)],_0x1d0bd2['inviterAvatar']=_0x1a6c9f===null||_0x1a6c9f===void 0x0?void 0x0:_0x1a6c9f[_0x52313b(0x163)],_0x1d0bd2[_0x52313b(0x1a6)]=_0x3d51fc===null||_0x3d51fc===void 0x0?void 0x0:_0x3d51fc[_0x52313b(0x15c)],_0x1d0bd2[_0x52313b(0x161)]=_0x3d51fc===null||_0x3d51fc===void 0x0?void 0x0:_0x3d51fc[_0x52313b(0x156)],_0x1d0bd2[_0x52313b(0x18f)]=_0x3d51fc===null||_0x3d51fc===void 0x0?void 0x0:_0x3d51fc[_0x52313b(0x163)];}),_0x52f478[_0x40e43f(0x15b)]['role']!==_0x40e43f(0x166)&&_0x4a4568['forEach'](_0x3d6383=>{const _0xf6629d=_0x40e43f;_0x3d6383[_0xf6629d(0x170)]=_0x3d6383[_0xf6629d(0x170)]?(0x0,utils_1[_0xf6629d(0x155)])(_0x3d6383[_0xf6629d(0x170)]):'',_0x3d6383[_0xf6629d(0x161)]=_0x3d6383[_0xf6629d(0x161)]?(0x0,utils_1['hideString'])(_0x3d6383['inviteeEmail']):'';}),{'rows':(0x0,utils_1[_0x40e43f(0x17a)])(_0x4a4568),'count':_0x36e674};}catch(_0x532283){console[_0x40e43f(0x1a5)](_0x40e43f(0x175),_0x532283);}}async[_0x5a83dd(0x185)](_0xfc17a7){const _0x395200=_0x5a83dd,{userId:_0x482e0e,performanceRatio:_0x4ec862,salesOutletName:_0x35c431}=_0xfc17a7;return await this['salesUsersEntity'][_0x395200(0x153)]({'userId':_0x482e0e,'performanceRatio':_0x4ec862,'salesOutletName':_0x35c431});}async[_0x5a83dd(0x15d)](_0x514eb6){const _0x4560ea=_0x5a83dd;return await this[_0x4560ea(0x193)][_0x4560ea(0x153)](_0x514eb6);}async['createSalesRecords'](_0x3c8606){const _0x36f2b7=_0x5a83dd;return await this[_0x36f2b7(0x1b7)][_0x36f2b7(0x153)](_0x3c8606);}async[_0x5a83dd(0x16c)](_0xb628f3,_0x392b5d){const _0x4fb168=_0x5a83dd,_0x15f7fd=await this[_0x4fb168(0x193)]['findOne']({'where':{'userId':_0xb628f3}});if(!_0x15f7fd)return;const {totalAmount:_0x2803c6,distributionBalance:_0x3c2960}=_0x15f7fd;return console[_0x4fb168(0x1a5)](_0x4fb168(0x1b5),_0x2803c6,_0x3c2960),await this['salesUsersEntity']['update']({'userId':_0xb628f3},{'totalAmount':new decimal_js_1[(_0x4fb168(0x17b))](_0x2803c6)['plus'](_0x392b5d)[_0x4fb168(0x15a)](),'distributionBalance':new decimal_js_1[(_0x4fb168(0x17b))](_0x3c2960)[_0x4fb168(0x16d)](_0x392b5d)[_0x4fb168(0x15a)]()});}async[_0x5a83dd(0x179)](_0x2e7d95,_0x6a3a26){const _0x1ce62b=_0x5a83dd,{id:_0x5ab3d5}=_0x2e7d95[_0x1ce62b(0x15b)],{withdrawalAmount:_0x59a872,withdrawalChannels:_0xd5603c,contactInformation:_0x3ed1da,remark:_0x595f45}=_0x6a3a26,_0x357c9e=await this[_0x1ce62b(0x183)]['getConfigs']([_0x1ce62b(0x19f)])||0xa;if(typeof _0x59a872!==_0x1ce62b(0x181)||_0x59a872<=0x0)throw new common_1[(_0x1ce62b(0x1b4))](_0x1ce62b(0x1a7),common_1[_0x1ce62b(0x14c)][_0x1ce62b(0x154)]);if(Number(_0x59a872)<Number(_0x357c9e))throw new common_1[(_0x1ce62b(0x1b4))]('提现金额最低必须为'+_0x357c9e+'元',common_1['HttpStatus'][_0x1ce62b(0x154)]);const _0x5f4ac3=await this[_0x1ce62b(0x193)][_0x1ce62b(0x1a4)]({'where':{'userId':_0x5ab3d5}}),{distributionBalance:_0x4dd056,drawMoneyIn:_0x102b47}=_0x5f4ac3;if(Number(_0x4dd056)<Number(_0x59a872))throw new common_1[(_0x1ce62b(0x1b4))]('提现金额不足',common_1[_0x1ce62b(0x14c)][_0x1ce62b(0x154)]);const _0x24d6a5=new decimal_js_1[(_0x1ce62b(0x17b))](_0x4dd056)[_0x1ce62b(0x196)](_0x59a872)[_0x1ce62b(0x15a)](),_0x33e0={'userId':_0x5ab3d5,'withdrawalAmount':_0x59a872,'orderStatus':0x0,'auditStatus':0x0,'withdrawalChannels':_0xd5603c,'contactInformation':_0x3ed1da,'remark':_0x595f45};await this[_0x1ce62b(0x197)](_0x33e0);const _0x4cf0d0=await this[_0x1ce62b(0x193)][_0x1ce62b(0x171)]({'userId':_0x5ab3d5},{'distributionBalance':_0x24d6a5,'drawMoneyIn':new decimal_js_1[(_0x1ce62b(0x17b))](_0x102b47)[_0x1ce62b(0x16d)](_0x59a872)[_0x1ce62b(0x15a)]()});}async['drawMoneyOrder'](_0x566809,_0x517166){const _0x3be1eb=_0x5a83dd,{id:_0x3e0744}=_0x566809['user'],{page:_0x4ea166,size:_0x425254}=_0x517166,[_0x3efb48,_0x409969]=await this[_0x3be1eb(0x186)]['findAndCount']({'where':{'userId':_0x3e0744},'order':{'createdAt':_0x3be1eb(0x176)},'skip':(_0x4ea166-0x1)*_0x425254,'take':_0x425254}),_0x1c14d3=_0x3efb48[_0x3be1eb(0x18c)](_0xa45b61=>_0xa45b61[_0x3be1eb(0x19e)]),_0x408aa8=await this[_0x3be1eb(0x1ad)][_0x3be1eb(0x18b)]({'where':{'id':(0x0,typeorm_2['In'])(_0x1c14d3)}});return _0x3efb48['forEach'](_0x1889ef=>{const _0x50f9a7=_0x3be1eb,_0x3fccb0=_0x408aa8['find'](_0x58d7f5=>_0x58d7f5['id']===_0x1889ef[_0x50f9a7(0x19e)]);_0x1889ef[_0x50f9a7(0x19a)]=_0x3fccb0?_0x3fccb0[_0x50f9a7(0x15c)]:'';}),{'rows':(0x0,utils_1['formatCreateOrUpdateDate'])(_0x3efb48),'count':_0x409969};}async[_0x5a83dd(0x150)](_0x1e17b8,_0x45ee80){const _0x4771aa=_0x5a83dd,{page:_0x1d918e,size:_0x3a2f51}=_0x45ee80,_0x3baa40={};_0x45ee80[_0x4771aa(0x159)]!==undefined&&_0x45ee80[_0x4771aa(0x159)]!==''&&(_0x3baa40[_0x4771aa(0x159)]=_0x45ee80[_0x4771aa(0x159)]),_0x45ee80[_0x4771aa(0x1a0)]&&(_0x3baa40[_0x4771aa(0x1a0)]=_0x45ee80[_0x4771aa(0x1a0)]);const [_0x15451d,_0x579692]=await this[_0x4771aa(0x186)][_0x4771aa(0x172)]({'where':_0x3baa40,'order':{'createdAt':_0x4771aa(0x176)},'skip':(_0x1d918e-0x1)*_0x3a2f51,'take':_0x3a2f51}),_0x12289a=_0x15451d['map'](_0x2d13b4=>_0x2d13b4[_0x4771aa(0x19d)]),_0x13653c=await this[_0x4771aa(0x1ad)][_0x4771aa(0x18b)]({'where':{'id':(0x0,typeorm_2['In'])(_0x12289a)}});return _0x15451d[_0x4771aa(0x167)](_0x5d015d=>{const _0xea32d0=_0x4771aa,_0x138a60=_0x13653c[_0xea32d0(0x18b)](_0x3e49d1=>_0x3e49d1['id']===_0x5d015d['userId']);if(_0x138a60){const {username:_0x53d9f0,email:_0x3cf6f1,avatar:_0x461db3}=_0x138a60;_0x5d015d[_0xea32d0(0x1a2)]={'username':_0x53d9f0,'avatar':_0x461db3,'email':(0x0,utils_1['hideString'])(_0x3cf6f1)};}}),{'rows':(0x0,utils_1[_0x4771aa(0x17a)])(_0x15451d),'count':_0x579692};}async['createOrder'](_0xd3fd05){const _0x230a44=_0x5a83dd;try{return await this[_0x230a44(0x186)][_0x230a44(0x153)](_0xd3fd05);}catch(_0x4632cc){console[_0x230a44(0x1a5)](_0x230a44(0x175),_0x4632cc);throw new common_1[(_0x230a44(0x1b4))](_0x230a44(0x16a),common_1[_0x230a44(0x14c)]['BAD_REQUEST']);}}async[_0x5a83dd(0x169)](_0x5709bb,_0x2b2758){const _0x22be4b=_0x5a83dd;try{const {id:_0xa952f6}=_0x5709bb[_0x22be4b(0x15b)],{id:_0x4926c7,status:_0x21c45b}=_0x2b2758;if(![0x1,-0x1]['includes'](_0x21c45b))throw new common_1[(_0x22be4b(0x1b4))](_0x22be4b(0x18a),common_1[_0x22be4b(0x14c)][_0x22be4b(0x154)]);const _0x233f3c=await this[_0x22be4b(0x186)][_0x22be4b(0x1a4)]({'where':{'id':_0x4926c7}});if(_0x233f3c['orderStatus']!==0x0)throw new common_1[(_0x22be4b(0x1b4))](_0x22be4b(0x1a9),common_1[_0x22be4b(0x14c)]['BAD_REQUEST']);const _0x1a58e0=await this[_0x22be4b(0x193)]['findOne']({'where':{'userId':_0x233f3c[_0x22be4b(0x19d)]}}),{withdrawalAmount:_0x2b8374,drawMoneyIn:_0x2f5eaa}=_0x1a58e0,_0x1a3cfb=new decimal_js_1[(_0x22be4b(0x17b))](_0x2b8374)[_0x22be4b(0x16d)](_0x233f3c[_0x22be4b(0x16e)])[_0x22be4b(0x15a)](),_0x25c077=new decimal_js_1[(_0x22be4b(0x17b))](_0x2f5eaa)['minus'](_0x233f3c[_0x22be4b(0x16e)])[_0x22be4b(0x15a)]();return await this[_0x22be4b(0x193)][_0x22be4b(0x171)]({'userId':_0x233f3c[_0x22be4b(0x19d)]},{'withdrawalAmount':_0x1a3cfb,'drawMoneyIn':_0x25c077}),await this['salesOrderEntity'][_0x22be4b(0x171)]({'id':_0x4926c7},{'orderStatus':_0x21c45b,'auditStatus':_0x21c45b,'auditUserId':_0xa952f6,'paymentStatus':_0x21c45b}),_0x22be4b(0x184);}catch(_0x47020d){console[_0x22be4b(0x1a5)]('error:\x20',_0x47020d);throw new common_1['HttpException'](_0x22be4b(0x15f),common_1[_0x22be4b(0x14c)][_0x22be4b(0x154)]);}}async['salesUserList'](_0x36ae71,_0x106b34){const _0x5796d8=_0x5a83dd,{page:_0x18a208,size:_0x428a08,salesOutletName:_0x42d11f,performanceRatio:_0x598aec}=_0x106b34,_0x40cf78={};_0x42d11f&&(_0x40cf78[_0x5796d8(0x165)]=(0x0,typeorm_2[_0x5796d8(0x149)])('%'+_0x42d11f+'%')),_0x598aec&&(_0x40cf78['performanceRatio']=_0x598aec);const [_0x108482,_0x399cc9]=await this['salesUsersEntity'][_0x5796d8(0x172)]({'where':_0x40cf78,'order':{'id':_0x5796d8(0x176)},'skip':(_0x18a208-0x1)*_0x428a08,'take':_0x428a08}),_0x550e96=_0x108482[_0x5796d8(0x18c)](_0x2ab998=>_0x2ab998[_0x5796d8(0x19d)]),_0x26f5a2=await this['userEntity'][_0x5796d8(0x18b)]({'where':{'id':(0x0,typeorm_2['In'])(_0x550e96)}});return _0x108482[_0x5796d8(0x167)](_0x13e21a=>{const _0x15a8b7=_0x5796d8,_0xd0b7c9=_0x26f5a2[_0x15a8b7(0x18b)](_0x4b75d=>_0x4b75d['id']===_0x13e21a['userId']);_0x13e21a['userInfo']=_0xd0b7c9?_0xd0b7c9:{};}),_0x36ae71['user'][_0x5796d8(0x164)]!==_0x5796d8(0x166)&&_0x108482['forEach'](_0x2973b2=>{const _0xd75daa=_0x5796d8;var _0x1b516f,_0x22f7c6;_0x2973b2[_0xd75daa(0x1a2)][_0xd75daa(0x156)]=((_0x1b516f=_0x2973b2['userInfo'])===null||_0x1b516f===void 0x0?void 0x0:_0x1b516f[_0xd75daa(0x156)])?(0x0,utils_1['hideString'])((_0x22f7c6=_0x2973b2['userInfo'])===null||_0x22f7c6===void 0x0?void 0x0:_0x22f7c6['email']):'';}),{'rows':_0x108482,'count':_0x399cc9};}async[_0x5a83dd(0x19b)](_0x393344,_0x4c2e81){const _0x3d5689=_0x5a83dd,{performanceRatio:_0xb9346f,salesOutletName:_0xf6053c,userId:_0x2e738d}=_0x4c2e81,_0x4945b9=await this[_0x3d5689(0x193)][_0x3d5689(0x1a4)]({'where':{'userId':_0x2e738d}});if(!_0x4945b9)throw new common_1[(_0x3d5689(0x1b4))](_0x3d5689(0x16f),common_1[_0x3d5689(0x14c)]['BAD_REQUEST']);const _0x53d912=await this[_0x3d5689(0x193)][_0x3d5689(0x171)]({'userId':_0x2e738d},{'performanceRatio':_0xb9346f,'salesOutletName':_0xf6053c});if(_0x53d912[_0x3d5689(0x1b2)]>0x0)return _0x3d5689(0x152);else throw new common_1[(_0x3d5689(0x1b4))](_0x3d5689(0x160),common_1[_0x3d5689(0x14c)][_0x3d5689(0x154)]);}};SalesService=__decorate([(0x0,common_1[_0x5a83dd(0x148)])(),__param(0x0,(0x0,typeorm_1[_0x5a83dd(0x189)])(salesUsers_entity_1[_0x5a83dd(0x177)])),__param(0x1,(0x0,typeorm_1[_0x5a83dd(0x189)])(salesRecords_entity_1[_0x5a83dd(0x1ac)])),__param(0x2,(0x0,typeorm_1['InjectRepository'])(user_entity_1[_0x5a83dd(0x17e)])),__param(0x3,(0x0,typeorm_1['InjectRepository'])(salesOrder_entity_1[_0x5a83dd(0x1b0)])),__metadata(_0x5a83dd(0x14a),[typeorm_2[_0x5a83dd(0x198)],typeorm_2[_0x5a83dd(0x198)],typeorm_2[_0x5a83dd(0x198)],typeorm_2[_0x5a83dd(0x198)],globalConfig_service_1['GlobalConfigService']])],SalesService),exports[_0x5a83dd(0x158)]=SalesService;function _0x3547(){const _0x2e4842=['inviteRecords','修改成功','save','BAD_REQUEST','hideString','email','@nestjs/typeorm','SalesService','orderStatus','toNumber','user','username','changeUserBaseSalesInfo','../globalConfig/globalConfig.service','审核失败','修改失败','inviteeEmail','__decorate','avatar','role','salesOutletName','super','forEach','getMineRecords','auditOrder','创建提现工单失败','function','saveCommissionAmount','plus','withdrawalAmount','用户不存在','inviterEmail','update','findAndCount','getOwnPropertyDescriptor','salesBaseRatio','error:\x20','DESC','SalesUsersEntity','inviteeUserId','appForMoney','formatCreateOrUpdateDate','default','getMineAccount','object','UserEntity','__metadata','inviterUsername','number','inviterUserId','globalConfigService','审核完成','creaetUserBaseSalesInfo','salesOrderEntity','defineProperty','534315gnXQEm','InjectRepository','审核状态错误','find','map','metadata','4370DVxinz','inviteeAvatar','../user/user.entity','getConfigs','decorate','salesUsersEntity','新秀分销商','__esModule','minus','createOrder','Repository','3TdIktn','auditUserName','updateUserSales','170326wOuYgQ','userId','auditUserId','salesAllowDrawMoney','withdrawalChannels','926247DSJjwW','userInfo','10576xLqXzS','findOne','log','inviteeUsername','提现金额必须为数字且大于0','314664iUlxhv','该工单已审核过','count','length','SalesRecordsEntity','userEntity','6aGevhy','xxxxxxx','SalesOrderEntity','648108bqnGmr','affected','@nestjs/common','HttpException','totalAmount,\x20distributionBalance:\x20','../../common/utils','salesRecordsEntity','push','assign','Injectable','Like','design:paramtypes','salesBaseTitle','HttpStatus','9369DsQPKU','./salesOrder.entity','./salesRecords.entity','salesOrder'];_0x3547=function(){return _0x2e4842;};return _0x3547();} |