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

com.diboot.devtools.v2.OOO0OOO0O0OO00O0 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.util.BeanUtils; import com.diboot.core.util.D; import com.diboot.core.util.JSON; import com.diboot.core.util.V; import java.util.*; @Deprecated() public class OOO0OOO0O0OO00O0 { @Deprecated() public static void lll11lll1l1ll1l(List ll1l1111lll1, String lll1lll1ll11) { for (O000000O0O0OO000 l1l1l11l1l11 : ll1l1111lll1) { l1l1l11l1l11.setTableName(lll1lll1ll11); O0O00OO00O0O0OO0 lllll1l1ll11 = l1l1l11l1l11.getColumnExt(); if (lllll1l1ll11 != null) { lllll1l1ll11.setTableName(lll1lll1ll11); lllll1l1ll11.setColName(l1l1l11l1l11.getColName()); if (lllll1l1ll11.getFormType() != null && lllll1l1ll11.getFormType().startsWith("M_") && lllll1l1ll11.getFormType().endsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("X1VQTE9BRA=="))) { if (l1l1l11l1l11.getColLength() <= 150) { l1l1l11l1l11.setColLength(300); } } } l1l1l11l1l11.setExtensionMap(l1l1l11l1l11.getExtensionMap()); if (lllll1l1ll11 != null && "T".equalsIgnoreCase(lllll1l1ll11.getRefType()) && V.notEmpty(lllll1l1ll11.getTableName()) && lllll1l1ll11.getTableName().equalsIgnoreCase(lllll1l1ll11.getRefTable())) { lllll1l1ll11.setObjectBind(O0O00OO00O0O0OO0.OBJ_BND_TP.REF_TARGET_BIND_LIST.name()); lllll1l1ll11.setObjectBindList(new String[] { lllll1l1ll11.getObjectBind() }); if (V.notEmpty(lllll1l1ll11.getExtensions())) { Map lll1ll1l1l11 = l1l1l11l1l11.getExtensionMap(); lll1ll1l1l11.put(BeanUtils.convertToFieldName(OO0O0O00000OOO0O::getRefTargetBindListFieldName), OOO0OO00O00O00OO.l11llll1ll11ll1("Y2hpbGRyZW4=")); l1l1l11l1l11.setExtensionMap(lll1ll1l1l11); } } } lllll1lllll11l1(ll1l1111lll1, true); } @Deprecated() public static void lllll1lllll11l1(List lll1l111111l, boolean l1l11l111l11) { if (lll1l111111l.size() > 1) { if (l1l11l111l11) { lll1l111111l.get(0).setNewColIndex(0); } else { lll1l111111l.get(0).setColIndex(0); } for (int l1l1ll1111l1 = 1; l1l1ll1111l1 < lll1l111111l.size(); l1l1ll1111l1++) { O000000O0O0OO000 lllll1l11ll1 = lll1l111111l.get(l1l1ll1111l1); if (l1l11l111l11) { lllll1l11ll1.setNewColIndex(l1l1ll1111l1); } else { lllll1l11ll1.setColIndex(l1l1ll1111l1); } O000000O0O0OO000 ll1ll1l11l11 = lll1l111111l.get(l1l1ll1111l1 - 1); lllll1l11ll1.setAfterCol(ll1ll1l11l11.getColName()); } } } @Deprecated() public static Map l1l1111lll11111(O000000O0O0OO000 l1l1ll11lll1) { Map ll111llll1l1 = new HashMap<>(); String lll11l111111 = l1l1ll11lll1.getFieldPackagingType(); String ll1ll1l111l1 = l1l1ll11lll1.getColType(); List l11ll11ll1ll = new ArrayList<>(); if (V.notEmpty(ll1ll1l111l1)) { if (String.class.getSimpleName().equals(lll11l111111) && ll1ll1l111l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("Y2hhcg=="))) { l11ll11ll1ll = lllll1l1ll11l1l(l11ll11ll1ll, OOO0OO00O00O00OO.l11llll1ll11ll1("Zml4ZWQ=")); } else if (Date.class.getSimpleName().equals(lll11l111111)) { if (ll1ll1l111l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZQ==")) && !ll1ll1l111l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZXRpbWU="))) { ll111llll1l1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("Zm9ybWF0dGVy"), D.FORMAT_DATE_Y4MD); } else { ll111llll1l1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("Zm9ybWF0dGVy"), D.FORMAT_DATETIME_Y4MDHM); } } } ll111llll1l1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("Y29uZmlnTGlzdA=="), l11ll11ll1ll); return ll111llll1l1; } @Deprecated() public static List l1lll11ll111111(O000000O0O0OO000 lll11l1l1ll1) { List l11lll1l1l11 = null; String l1l1l1ll1lll = lll11l1l1ll1.getFieldPackagingType(); String l1l1ll11l1l1 = lll11l1l1ll1.getColType(); if (V.notEmpty(l1l1ll11l1l1)) { if (OOO0OO00O00O00OO.l11llll1ll11ll1("U3RyaW5n").equals(l1l1l1ll1lll) && l1l1ll11l1l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("Y2hhcg=="))) { l11lll1l1l11 = lllll1l1ll11l1l(l11lll1l1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("Zml4ZWQ=")); } else if ((OOO0OO00O00O00OO.l11llll1ll11ll1("RG91Ymxl").equals(l1l1l1ll1lll) || OOO0OO00O00O00OO.l11llll1ll11ll1("QmlnRGVjaW1hbA==").equals(l1l1l1ll1lll)) && l1l1ll11l1l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGVjaW1hbA=="))) { } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("RGF0ZQ==").equals(l1l1l1ll1lll)) { if (l1l1ll11l1l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZQ==")) && !l1l1ll11l1l1.startsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF0ZXRpbWU="))) { l11lll1l1l11 = lllll1l1ll11l1l(l11lll1l1l11, D.FORMAT_DATE_Y4MD); } else { l11lll1l1l11 = lllll1l1ll11l1l(l11lll1l1l11, D.FORMAT_DATETIME_Y4MDHM); } } } return l11lll1l1l11; } @Deprecated() public static List l1l1lllll1ll111(List lll1ll1111l1) { List lll1l111l1l1 = new ArrayList<>(); if (V.isEmpty(lll1ll1111l1)) { return lll1l111l1l1; } for (O000000O0O0OO000 ll1l1ll111l1 : lll1ll1111l1) { if (ll1l1ll111l1.getColumnExt() != null) { O0O00OO00O0O0OO0 ll111l1l1l1l = ll1l1ll111l1.getColumnExt(); ll111l1l1l1l.setId(null); lll1l111l1l1.add(ll111l1l1l1l); } } return lll1l111l1l1; } @Deprecated() public static List lllll1l1ll11l1l(List ll111lll1ll1, Object l11l11l1l1l1) { if (ll111lll1ll1 == null) { ll111lll1ll1 = new ArrayList(); } ll111lll1ll1.add(l11l11l1l1l1); return ll111lll1ll1; } @Deprecated() public static boolean lll1ll111l111ll(O000000O0O0OO000 l1ll11ll1ll1) { if (V.notEmpty(l1ll11ll1ll1.isHasReference()) && V.notEmpty(l1ll11ll1ll1.getColumnExt())) { OOO00OO00000O00O ll1l11111l1l = new OOO00OO00000O00O(); ll1l11111l1l.setRefType(l1ll11ll1ll1.getColumnExt().getRefType()); ll1l11111l1l.setRefRelationship(l1ll11ll1ll1.getColumnExt().getRefRelationship()); String l1ll1l1llll1 = l1ll11ll1ll1.getColumnExt().getRefTable(); ll1l11111l1l.setRefTable(V.isEmpty(l1ll1l1llll1) ? "" : l1ll1l1llll1); ll1l11111l1l.setColumn(l1ll11ll1ll1.getColName()); ll1l11111l1l.setRefColumn(l1ll11ll1ll1.getColumnExt().getRefColumn()); ll1l11111l1l.setAsColumn(l1ll11ll1ll1.getColumnExt().getAsColumn()); ll1l11111l1l.setObjectBind(l1ll11ll1ll1.getColumnExt().getObjectBind()); ll1l11111l1l.setObjectBindList(l1ll11ll1ll1.getColumnExt().getObjectBindList()); ll1l11111l1l.setOldObjectBind(l1ll11ll1ll1.getColumnExt().getOldObjectBind()); ll1l11111l1l.setOldObjectBindList(l1ll11ll1ll1.getColumnExt().getObjectBindList()); ll1l11111l1l.setExtensionMap(l1ll11ll1ll1.getExtensionMap()); String l111l1111ll1 = OOOO0O0OO0OO0000.llll11lllll1l1l().l1ll1l1l1ll1111(ll1l11111l1l.getRefTable(), ll1l11111l1l.getAsColumn()); ll1l11111l1l.setAsColumnLabel(l111l1111ll1); String lllllllll1ll = l1ll11ll1ll1.getColumnExt().getOldExtensions(); if (V.isEmpty(lllllllll1ll)) { lllllllll1ll = "{}"; } ll1l11111l1l.setOldExtensionMap(JSON.toMap(lllllllll1ll)); l1ll11ll1ll1.l11llllllll1l1l(ll1l11111l1l); return true; } return false; } @Deprecated() public static boolean l11l11l1ll11l11(O000000O0O0OO000 ll111ll1l1ll) { if (V.isEmpty(ll111ll1l1ll.getColumnExt()) && V.isEmpty(ll111ll1l1ll.getColumnExt().getFormType())) { return false; } return ll111ll1l1ll.getColumnExt().getFormType().endsWith(OOO0OO00O00O00OO.l11llll1ll11ll1("RklMRV9VUExPQUQ=")); } @Deprecated() public static boolean lll111l1l111111(O000000O0O0OO000 l1111ll1llll, String l1llll1l1111) { String llll1lll111l = l1111ll1llll.getColumnExt().getFormType(); OOO00OO00000O00O lll1l1l1l111 = new OOO00OO00000O00O(); lll1l1l1l111.setVirtual(true); lll1l1l1l111.setRefType("T"); Map l1llll11lll1 = new HashMap<>(2); if (llll1lll111l.startsWith("S_")) { lll1l1l1l111.setRefRelationship(OOO0OO00O00O00OO.l11llll1ll11ll1("MS0x")); String l1111l1ll111 = l1111ll1llll.getFieldName() + OOO0OO00O00O00OO.l11llll1ll11ll1("RmlsZQ=="); l1llll11lll1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("c2VsZkJpbmRPYmplY3RGaWVsZE5hbWU="), l1111l1ll111); } else { lll1l1l1l111.setRefRelationship(OOO0OO00O00O00OO.l11llll1ll11ll1("bi0x")); String l1111l1ll111 = l1111ll1llll.getFieldName() + OOO0OO00O00O00OO.l11llll1ll11ll1("RmlsZUxpc3Q="); l1llll11lll1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("c2VsZkJpbmRPYmplY3RGaWVsZE5hbWU="), l1111l1ll111); } lll1l1l1l111.setColumn(l1llll1l1111); lll1l1l1l111.setRefTable(OOO0OO00O00O00OO.l11llll1ll11ll1("dXBsb2FkX2ZpbGU=")); lll1l1l1l111.setRefColumn(l1111ll1llll.getColName()); lll1l1l1l111.setFieldName(l1111ll1llll.getFieldName()); lll1l1l1l111.setExtensionMap(l1llll11lll1); l1111ll1llll.l11llllllll1l1l(lll1l1l1l111); return false; } @Deprecated() public static boolean l1ll11lll11l1l1(String ll11lllllll1) { return O0OOO00OO0OOOO0O.llll1l111ll111.contains(ll11lllllll1.toLowerCase()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy