admin
2024-06-29 7ac0b5be02902a96bd1feb658e41a9b69fa50738
src/test/java/com/taoke/autopay/MapperTest.java
@@ -1,11 +1,8 @@
package com.taoke.autopay;
import com.taoke.autopay.entity.KeyOrder;
import com.taoke.autopay.entity.AdminUser;
import org.junit.jupiter.api.Test;
import org.yeshi.utils.generater.mybatis.MyBatisMapperUtil;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
 * @author hxh
@@ -19,17 +16,11 @@
    public void test() {
//        MyBatisMapperUtil.createMapper(ClientInfo.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);
    }