package com.palatform.yijia;

import com.platform.yijia.pojo.CustomerElectronicCard;
import com.platform.yijia.pojo.PayOrder;
import com.platform.yijia.utils.*;
import net.sf.json.JSONObject;
import org.apache.commons.codec.digest.DigestUtils;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.Bidi;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

public class test {

    public static void main(String[] args) throws ParseException {

        String yyyyMMddhhmmss = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date());
        System.out.println(yyyyMMddhhmmss);

//        BigDecimal discountPrice = new BigDecimal("5.52");
//        BigDecimal oilLiters = new BigDecimal("35.59");
//
//        BigDecimal amt = discountPrice.multiply(oilLiters);
//        System.out.println(amt);


//        BigDecimal driverDiscountAmt = sellDiscountAmt.multiply(new BigDecimal("1").subtract(new BigDecimal("97").divide(new BigDecimal("100"))));
//        System.out.println(driverDiscountAmt);


//        Date parse = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").parse("2021-04-24 22:22:22");
//        System.out.println(parse);

//        String location = LocationUtil.getLocation("117.12009", "36.65184");
//        System.out.println(location);
        //117.022388,36.667508
//        JSONObject locationInfo = BaiduMapUtil.getLocation("117.12009", "36.65184");
//        System.out.println(locationInfo);



//        String detailAddress = BaiduMapUtil.getDetailAddress("117.12009", "36.65184");
//        System.out.println(detailAddress);


//        BigDecimal discountPrice = new BigDecimal("5.36");
//        BigDecimal sellPrice = discountPrice.multiply(new BigDecimal("98")).divide(new BigDecimal("100"));
//        System.out.println(sellPrice.toString());


        //QRcodeUtils.encode();
        //QRcodeUtils.imgContainQRcode();

//        Thread_A a1 = new Thread_A("A线程");
//        Thread_B b2 = new Thread_B("B线程");
//
//        Thread t1 = new Thread(a1);
//        //t1.setPriority(10);
//        Thread t2 = new Thread(b2);
//        //t2.setPriority(1);
//        t1.start();
//        t2.start();


//
//        String data = "123";
//        String pwd = "LAnZ8RRSkIY0EGVYheu2IjEk";
//        String encryptDataStr= DESUtils.encrypt(data, pwd);
//        System.out.println("加密后得到的密文......");
//        System.out.println(encryptDataStr);
//        String decryptDataStr=DESUtils.decrypt(encryptDataStr, pwd);
//        System.out.println("解密后得到的明文......");
//        System.out.println(decryptDataStr);


    }




    public static boolean isEqual(byte[] digesta, byte[] digestb) {
        if (digesta.length != digestb.length) {
            return false;
        }

        int result = 0;
        for (int i = 0; i < digesta.length; i++) {
            result |= digesta[i] ^ digestb[i];
            System.out.println(digesta[i] ^ digestb[i]);
            //System.out.println(result);
        }
        return result == 0;
    }



}
