修改密码
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.czg;
|
package com.czg;
|
||||||
|
|
||||||
|
import cn.hutool.crypto.SecureUtil;
|
||||||
import com.czg.market.entity.MkLimitTimeDiscount;
|
import com.czg.market.entity.MkLimitTimeDiscount;
|
||||||
import com.mybatisflex.codegen.Generator;
|
import com.mybatisflex.codegen.Generator;
|
||||||
import com.mybatisflex.codegen.config.*;
|
import com.mybatisflex.codegen.config.*;
|
||||||
@@ -27,6 +28,8 @@ public class Main {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
//or条件sql写法示例
|
//or条件sql写法示例
|
||||||
// orSqlTest();
|
// orSqlTest();
|
||||||
|
//修改密码
|
||||||
|
// getPassword(1L, "czg2303");
|
||||||
|
|
||||||
|
|
||||||
// String packageName = "system";
|
// String packageName = "system";
|
||||||
@@ -252,4 +255,11 @@ public class Main {
|
|||||||
|
|
||||||
return globalConfig;
|
return globalConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void getPassword(Long sysUserId, String accountPwd) {
|
||||||
|
System.out.println("将生成的密码 替换sys_user表中的密码即可");
|
||||||
|
System.out.println(SecureUtil.md5(sysUserId + accountPwd));
|
||||||
|
System.out.println("-------------------------------------");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user