@ruoli
2019-01-02T06:14:00.000000Z
字数 4777
阅读 1680
工作记录
admin 4297f44b13955235245b2497399d7a93
18588884425 e10adc3949ba59abbe56e057f20f883e
List<String> sList = Arrays.asList("str1", "str2");//这种方法生成的list,是不支持添加或删除元素的Map<Integer, String> newsEventMap = new HashMap<Integer, String>(){{put("k1","v1");put("k2","v2");}};ImmutableMap<String,BigDecimal> dataBase=ImmutableMap.of("quotes",quotes);将Map转为Beanpublic static void main(String[] args) throws IllegalAccessException, InvocationTargetException {TRetailUser user_parameter=new TRetailUser();Map<String,String> map= new HashMap<String, String>(){{put("userAccount","v1");put("remark","v2");}};//import org.apache.commons.beanutils.BeanUtils;BeanUtils.populate(user_parameter, map);System.out.println(user_parameter.getUserAccount());System.out.println(user_parameter.getRemark());}
下单交易
ws://172.16.1.68:9002/websocket
[{"fid": 0,"terminalType": "2","fcount": 0,"wtid": 264,"fcreateTime": 1530617718095,"version": 1,"fstatus": 1,"cmd": "fentrust_m2t","fhasSubscription": 0,"userId": 166,"fprize": 0,"fisSell": 0,"ftrademappingId": 13,"fisMarket": 1,"famount": 1.0}]
Git SSH-Key 生成:
git config --global user.name "ruoli"git config --global user.email "mytcc@vip.qq.com"ssh-keygen -t rsa -C "mytcc@vip.qq.com"yes
Svn账号配置:
APP需求原型:svn://172.16.1.250/btk/APP
账号密码:ruoli ruoli@666
GitLib系统地址:http://192.168.1.128/dashboard/projects
账号密码:mytcc@vip.qq.com Ruoli1004
Jira地址:http://jira.btktrade.com/secure/Dashboard.jspa
账号密码:Ruoli Ruoli1004
Mysql测试环境IP:172.16.1.122:4006
testbtk / Btk#20180506
WiFi密码:
btk/btk201888
BTK/Btk@123456
//交易大区限额判断if(org.apache.commons.lang3.StringUtils.equals(fTradeArea, "common")){//普通区if(fcurrency.equals("USDT")){if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 15000 ) ) >= 0){return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "普通区最小限额不能大于15000USD" );}}else if(fcurrency.equals("CNY")){if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 100000 ) ) >= 0){return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "普通区最小限额不能大于100000CNY" );}}}else if(org.apache.commons.lang3.StringUtils.equals(fTradeArea, "bulk")){//大宗交易区//只有商家等级达到1颗钻石后,才可发布大宗交易区的广告C2CUserInfoDTO userInfoDto=userInfoService.selectByUserId(fuser.getFid());if(userInfoDto.getRankType()!=2){return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "大宗交易区仅限钻石以上用户" );}if(fcurrency.equals("USDT")){if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 15000 ) ) < 0){return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "大宗交易区最小限额不能小于15000USD" );}}else if(fcurrency.equals("CNY")){if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 100000 ) ) < 0){return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "大宗交易区最小限额不能小于100000CNY" );}}}else{return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "交易大区错误" );}
商户后台地址:
http://172.16.1.80/#/ ---测试商户后台
http://172.16.1.81/#/ ---测试管理后台
http://ufx.btktrade.com/#/ ---UAT商户后台
http://ufxadmin.btktrade.com/#/ ---UAT管理后台
http://fx.btktrade.com/#/ ---生产T商户后台
http://fxadmin.btktrade.com/#/ ---生产管理后台
http://172.16.1.52/#/trade ---操盘端
Fuser fuser = this.frontUserService.findById(fuser1.getFid()) ;
test1 环境 web日志查看:
tail -f /opt/tomcat/logs/catalina.out
启动本地 配置中心docker run --rm -p 81:8080 -v /app/data/tomcat/webapps/:/usr/local/tomcat/webapps/ -it tomcat:8.5.34-jre8-alpine启动本地 Reidsdocker run --rm -p 6379:6379 --name redis -it redis:4.0.11docker run --rm -p 6379:6379 -v /app/data/redis/redis.conf:/usr/local/etc/redis/redis.conf --name redis -it redis:4.0.11redis-server /usr/local/redis_cluster/7001/redis.confredis-server /usr/local/redis_cluster/7002/redis.confredis-server /usr/local/redis_cluster/7003/redis.confredis-server /usr/local/redis_cluster/7004/redis.confredis-server /usr/local/redis_cluster/7005/redis.confredis-server /usr/local/redis_cluster/7006/redis.conf/root/redis/redis-3.2.1/src/redis-trib.rb create --replicas 1 192.168.1.150:7001 192.168.1.150:7002 192.168.1.150:7003 192.168.1.150:7004 192.168.1.150:7005 192.168.1.150:7006
分销后台 http://fhadmin.btktrade.com/#/ Max 0727
商务后台 http://fh.btktrade.com/#/ BTK0001 Aa111111
UAT分销:
分销后台 http://ufxadmin.trming.co/ Max 0727
商务后台 http://ufx.trming.co/ BTK0001 Aa111111
UAT 主系统地址:
生产环境分销管理后台 密码 :Max/BTKmax
生产环境分销商户后台 密码 :BTK0001/ Aa111111
分销后台 Max BTKmax
商务后台 BTK001 Aa111111 http://fhadmin.btktrade.com/#/ http://fh.btktrade.com/#/ @若离
Redis5-Cluster
/root/software/redis/redis-5.0.0/src/redis-server /root/software/redis/redis-cluster-conf/7001/redis.conf/root/software/redis/redis-5.0.0/src/redis-cli --cluster create 192.168.2.40:7001 192.168.2.40:7002 192.168.2.40:7003 192.168.2.40:7004 192.168.2.40:7005 192.168.2.40:7006 --cluster-replicas 1
翻墙服务:
ShadowSocks
Geth 同步节点:
geth -datadir "/root/software/eth-blockchain" -syncmode "fast" -rpc -rpcaddr "0.0.0.0" -rpcport "8545" -rpcapi "db,eth,net,web3,miner,personal" -cache 1000 -maxpeers 100