admin
2025-05-09 6159dc58f50d3e4680779b7989bbd4d49a76bad5
src/test/java/com/taoke/autopay/MapperTest.java
@@ -1,11 +1,13 @@
package com.taoke.autopay;
import com.taoke.autopay.entity.KeyOrder;
import com.taoke.autopay.entity.*;
import com.taoke.autopay.entity.agent.*;
import org.junit.jupiter.api.Test;
import org.yeshi.utils.generater.GeneraterManagerV2;
import org.yeshi.utils.generater.mybatis.ColumnParseUtil;
import org.yeshi.utils.generater.mybatis.MyBatisMapperUtil;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.yeshi.utils.generater.vo.xmlconfig.GenertorConfig;
import org.yeshi.utils.generater.vo.xmlconfig.dao.DaoData;
/**
 * @author hxh
@@ -17,19 +19,29 @@
    @Test
    public void test() {
//        MyBatisMapperUtil.createMapper(ClientInfo.class);
//        MyBatisMapperUtil.createMapper(PayMoneySetting.class);
//        MyBatisMapperUtil.createMapper(KeyOrder.class);
        String orderNoStr = "抖音电商商家 即时到账--抖音电商-订单编号6931067415405008690";
        Pattern pattern = Pattern.compile("\\d+"); // 匹配连续的数字
        Matcher matcher = pattern.matcher(orderNoStr);
        while (matcher.find()) {
            String number = matcher.group(); // 获取匹配到的数字字符串
            if(number.length()>10){
                orderNoStr = number;
                break;
            }
        }
        System.out.println(orderNoStr);
//        MyBatisMapperUtil.createMapper(SystemConfig.class);
//        MyBatisMapperUtil.createMapper(WxUserInfo.class);
//        MyBatisMapperUtil.createMapper(WxUserOrderCount.class);
//        MyBatisMapperUtil.createMapper(AdminUser.class);
        ColumnParseUtil.parseColumn(KeyOrder.class,
                "D:\\workspace\\taoke_pay\\src\\main\\resources\\mapper\\KeyOrderMapper.xml");
//        System.out.println(   MyBatisMapperUtil.createSQL(ChannelAgentOrderStatisticRecord.class));
//        System.out.println(   MyBatisMapperUtil.createSQL(ChannelAgentSettings.class));
//        System.out.println(MyBatisMapperUtil.createSQL(ChannelAgentSettleRecord.class));
//        System.out.println(   MyBatisMapperUtil.createSQL(UserPayCount.class));
//        MyBatisMapperUtil.createMapper(ChannelAgentOrderStatisticRecord.class);
//        MyBatisMapperUtil.createMapper(ChannelAgentSettings.class);
//        MyBatisMapperUtil.createMapper(ChannelAgentSettleRecord.class);
//        MyBatisMapperUtil.createMapper(UserPayCount.class);
//      System.out.println(  new BigDecimal("3.26").multiply(new BigDecimal(100)).setScale(0, RoundingMode.FLOOR).intValue());
    }