All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diboot.devtools.v2.O0OO0000O000O0OO Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
 * 

* ---- 版权声明 ---- * Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。 * Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。 * * 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。 * 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。 * * 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底! *

*/ package com.diboot.devtools.v2; import com.diboot.core.exception.BusinessException; import com.diboot.core.util.ContextHelper; import com.diboot.core.util.JSON; import com.diboot.core.util.SqlFileInitializer; import com.diboot.core.util.V; import com.diboot.core.vo.Status; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.core.annotation.Order; import org.springframework.core.env.Environment; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; @Slf4j @Component @Order(999) @Deprecated() public class O0OO0000O000O0OO implements ApplicationRunner { @Autowired private OOOO00O0OO0O0O00 l11l11ll1111l; @Autowired private Environment l1lll11lll111; @Override @Deprecated() public void run(ApplicationArguments args) throws Exception { OO0O0OOOOO0O0O00.init(l11l11ll1111l, l1lll11lll111); if (l11l11ll1111l.ll11l1lll1l1lll() == false) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("RGlib290IGRldnRvb2xzIOWIneWni+WMluW8guW4uDog6K+35a6M5ZaE5Lul5LiK6YWN572u6aG55ZCO57un57ut77yBZGV2dG9vbHPmmK/lvIDlj5Hov4fnqIvotYvog73lt6XlhbfvvIznpoHmraLmiZPljIXoh7PpnZ7lvIDlj5Hnjq/looPvvIzmiZPljIXliY3liqHlv4XlnKhwb23kvp3otZbkuK3liZTpmaRkZXZ0b29sc+S+nei1luOAgg==")); throw new BusinessException(Status.FAIL_VALIDATION, OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290IGRldnRvb2xzIOWIneWni+WMluW8guW4uO+8gQ==")); } if (!OO00000O0O00O000.ll1l11111111lll()) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("RGlib290IGRldnRvb2xzIOWIneWni+WMluWksei0pTog6K+l54mI5pys5bey5YGc5q2i5pSv5oyB44CC6K+36K6/6Zeu77yaaHR0cHM6Ly9tdm5yZXBvc2l0b3J5LmNvbS9hcnRpZmFjdC9jb20uZGlib290L2RpYm9vdC1kZXZ0b29scy1zcHJpbmctYm9vdC1zdGFydGVyIOiOt+WPluacgOaWsOeJiOacrO+8gQ==")); return; } l111llllll111l1(l1lll11lll111, l11l11ll1111l); } @Deprecated() public void l111llllll111l1(Environment l1lll11lll111, OOOO00O0OO0O0O00 l11l11ll1111l) { log.info(OOO0OO00O00O00OO.l11llll1ll11ll1("RGlib290IGRldnRvb2xzIOWIneWni+WMluW8gOWniw==")); SqlFileInitializer.init(l1lll11lll111); OOO0O000000OOO00 llll111l1ll1 = OO0OOOO0OOO0000O.l111ll1ll11lll1(); if (!OOO0OO00O00O00OO.l11llll1ll11ll1("ZmFsc2U=").equalsIgnoreCase(l1lll11lll111.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290Lmdsb2JhbC5pbml0LXNxbA==")))) { if (O0OOOO00OO0O00O0.l1l1l1l1ll1l1ll() == false) { String l11lll1111l1 = O0OOOO00OO0O00O0.l11lll1llll1111(); SqlFileInitializer.extractAndExecuteSqls(this.getClass(), l11lll1111l1); } else { String l11lll1111l1 = O0OOOO00OO0O00O0.l11lll1llll1111(); if (O0OOOO00OO0O00O0.l1llll11l111l11(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290X2N1c3RvbV9wYW5lbA==")) == false) { SqlFileInitializer.extractAndExecuteSqls(this.getClass(), l11lll1111l1, Arrays.asList(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290X2N1c3RvbV9wYW5lbA==")), Collections.emptyList()); } if (O0OOOO00OO0O00O0.l1llll11l111l11(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290X3RhYmxlX2V4dA==")) == false) { SqlFileInitializer.extractAndExecuteSqls(this.getClass(), l11lll1111l1, Arrays.asList(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290X3RhYmxlX2V4dA==")), Collections.emptyList()); } ContextHelper.getBean(OO0000OO0O0OOO00.class).l111ll11l11l11l(); } this.l111l1lll11ll(); } llll111l1ll1.l111l1l1l1ll1l1(); boolean l11ll1l11l1l = OO00000O0O00O000.l1ll11111lll111(llll111l1ll1); if (l11ll1l11l1l) { String PORT = OOO0OO00O00O00OO.l11llll1ll11ll1("e3BvcnR9"); String CONTEXTPATH = ""; if (l1lll11lll111.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("c2VydmVyLnBvcnQ=")) != null) { PORT = l1lll11lll111.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("c2VydmVyLnBvcnQ=")); } String lll111111l1l = l1lll11lll111.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("c2VydmVyLnNlcnZsZXQuY29udGV4dC1wYXRo")); if (lll111111l1l == null) { lll111111l1l = l1lll11lll111.getProperty(OOO0OO00O00O00OO.l11llll1ll11ll1("c3ByaW5nLmFwcGxpY2F0aW9uLm5hbWU=")); } if (lll111111l1l != null) { CONTEXTPATH = lll111111l1l; if ("/".equalsIgnoreCase(CONTEXTPATH)) { CONTEXTPATH = ""; } } if (V.equals(OOO0OO00O00O00OO.l11llll1ll11ll1("e3BvcnR9"), PORT)) { PORT = OOO0OO00O00O00OO.l11llll1ll11ll1("ODA4MA=="); } System.out.println(OOO0OO00O00O00OO.l11llll1ll11ll1("LS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0=")); System.out.println(OOO0OO00O00O00OO.l11llll1ll11ll1("LS0gRGlib290IGRldnRvb2xzIHY=") + O0O0O0000OO0O000.lll1l1l1111l111() + OOO0OO00O00O00OO.l11llll1ll11ll1("IOWIneWni+WMluWujOaIkDog")); System.out.println(OOO0OO00O00O00OO.l11llll1ll11ll1("LT4gVVJMOiBodHRwOi8vbG9jYWxob3N0Og==") + PORT + CONTEXTPATH + OOO0OO00O00O00OO.l11llll1ll11ll1("L2RpYm9vdC9pbmRleC5odG1s")); System.out.println(OOO0OO00O00O00OO.l11llll1ll11ll1("LS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0gLS0=")); } } @Deprecated() private void l111l1lll11ll() { Object l1llll1l1ll1 = O0OOOO00OO0O00O0.llll11ll1l11l1l(OOO0OO00O00O00OO.l11llll1ll11ll1("U0VMRUNUIGlkIEZST00gZGlib290X2NvbHVtbl9leHQgV0hFUkUgdGFibGVfbmFtZT0naWFtX3VzZXIn"), "id"); if (l1llll1l1ll1 != null) { return; } String[] RELATIONS_DATA = { "{\"tableName\":\"iam_user\",\"colName\":\"org_id\",\"refType\":\"T\",\"refRelationship\":\"n-1\", \"refTable\":\"iam_org\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_account\",\"colName\":\"user_id\",\"refType\":\"T\",\"refRelationship\":\"n-1\", \"refTable\":\"iam_user\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_user\",\"colName\":\"id\",\"refType\":\"T\",\"refRelationship\":\"n-n\", \"refTable\":\"iam_role\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_resource_permission\",\"colName\":\"parent_id\",\"refType\":\"T\",\"refRelationship\":\"n-1\", \"refTable\":\"iam_resource_permission\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_role\",\"colName\":\"id\",\"refType\":\"T\",\"refRelationship\":\"n-n\", \"refTable\":\"iam_resource_permission\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_login_trace\",\"colName\":\"user_id\",\"refType\":\"T\",\"refRelationship\":\"n-1\", \"refTable\":\"iam_user\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_org\",\"colName\":\"parent_id\",\"refType\":\"T\",\"refRelationship\":\"n-1\", \"refTable\":\"iam_org\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_org\",\"colName\":\"manager_id\",\"refType\":\"T\",\"refRelationship\":\"n-1\", \"refTable\":\"iam_user\", \"refColumn\":\"id\"}", "{\"tableName\":\"iam_account\",\"colName\":\"auth_type\",\"refType\":\"D\", \"refColumn\":\"AUTH_TYPE\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_account\",\"colName\":\"status\",\"refType\":\"D\", \"refColumn\":\"ACCOUNT_STATUS\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_user\",\"colName\":\"gender\",\"refType\":\"D\", \"refColumn\":\"GENDER\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_user\",\"colName\":\"status\",\"refType\":\"D\", \"refColumn\":\"USER_STATUS\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_member\",\"colName\":\"gender\",\"refType\":\"D\", \"refColumn\":\"GENDER\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_member\",\"colName\":\"status\",\"refType\":\"D\", \"refColumn\":\"MEMBER_STATUS\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_login_trace\",\"colName\":\"auth_type\",\"refType\":\"D\", \"refColumn\":\"AUTH_TYPE\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_org\",\"colName\":\"type\",\"refType\":\"D\", \"refColumn\":\"ORG_TYPE\", \"formType\":\"S_SELECT\"}", "{\"tableName\":\"iam_position\",\"colName\":\"data_permission_type\",\"refType\":\"D\", \"refColumn\":\"DATA_PERMISSION_TYPE\", \"formType\":\"S_SELECT\"}" }; List l111lllllll1 = new ArrayList<>(); for (String l11l1llll11l : RELATIONS_DATA) { O0O00OO00O0O0OO0 l1lll111ll1l = JSON.toJavaObject(l11l1llll11l, O0O00OO00O0O0OO0.class); l111lllllll1.add(l1lll111ll1l); } ContextHelper.getBean(O0O0000O00O00O0O.class).createEntities(l111lllllll1); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy