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

com.diboot.devtools.v2.OO0O0OO000O0OO00 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.baomidou.mybatisplus.core.toolkit.Wrappers; import com.diboot.core.exception.BusinessException; import com.diboot.core.util.Encryptor; import com.diboot.core.util.S; 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.context.annotation.Primary; import org.springframework.stereotype.Service; import java.util.List; import java.util.stream.Collectors; @Primary @Service @Slf4j @Deprecated() public class OO0O0OO000O0OO00 implements OO0OOOO0O000O000 { public static final String ll1ll11l1l1l11 = OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlhb2Jhb2xl"); public static final String lllll1l1l1l1l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("cGxhY2Vob2xkZXI="); @Autowired private O0O00OO000O00000 l11ll1ll11111; @Autowired private O0OO0OO000OO0000 l111l1lll1l1l; @Autowired private O0O00OO00000000O l111l1l1l1ll1; @Override @Deprecated() public String lll1ll111ll1l11(OO00OOOOOOOOO0OO ll1ll11l1l1l) throws Exception { ll1ll11l1l1l.setVersion(O0O0O0000OO0O000.lll1l1l1111l111()); String ll11111ll1l1 = OO0O00OOOO00OO00.l1ll11lll111lll(); ll1ll11l1l1l.setProjectType(S.upperCase(ll11111ll1l1)); O00OOO0O0OO0O0OO lll1l1111l1l = new O00OOO0O0OO0O0OO().lllllll1l1lllll().ll111111lll1ll1(ll1ll11l1l1l); O0O0OO000000OOO0 ll1l1l11l1l1 = null; try { ll1l1l11l1l1 = O00OOO000OOOOO00.lll11l11l1l1lll(lll1l1111l1l); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yid5aeL5Luj56CB5aSx6LSlOiB7fQ=="), e.getMessage()); } if (V.isEmpty(ll1l1l11l1l1)) { throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("55Sf5oiQ5Luj56CB5aSx6LSl77yM6K+36YeN6K+V77yB")); } List lll1lll111l1 = ll1l1l11l1l1.getGenerateFileActions(); if (V.isEmpty(lll1lll111l1)) { throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("55Sf5oiQ5p6E5bu65Luj56CB5aSx6LSl77yB")); } if (V.notEmpty(ll1l1l11l1l1.getResultCommandModelList())) { for (OOOOO00O0OOOO0O0 ll11ll11lll1 : ll1l1l11l1l1.getResultCommandModelList()) { OO0O0O0O000OOOOO l11l11lllll1 = ll11ll11lll1.getModelInfo(); O00OO000OOOO00O0 ll11ll1l11l1 = null; if (V.notEquals(ll11ll11lll1.getEffectPanel(), OOO0OO00O00O00OO.l11llll1ll11ll1("c3RhdGlzdGljYWxDaGFydA=="))) { O00000O0OOO0O0OO l111lllll111 = OO0O00OOOO00OO00.l1l111llll1llll(l11l11lllll1.getTableName()); O000000O0O0OO000 lll111111l1l = l11ll1ll11111.l11l111llll1ll1(l11l11lllll1.getTableName()); l11l11lllll1.setPrimaryColumn(lll111111l1l); if (V.isEmpty(l111lllll111)) { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("e30g6KGo5LiN5a2Y5Zyo"), l11l11lllll1.getTableName()); continue; } ll11ll1l11l1 = OO0O00OOOO00OO00.l1l11l111llllll(l111lllll111, l11ll1ll11111); l11l11lllll1.setModule(l111lllll111.getModule()); } O00OOO0O0OO0O0OO, OO0O0O0O000OOOOO, String> ll11111l111l = new O00OOO0O0OO0O0OO().lllllll1l1lllll().ll111111lll1ll1(ll1ll11l1l1l); List lllllllll111 = OO0O00OOOO00OO00.l11ll1ll11ll1l1(l11l11lllll1, ll11ll11lll1.getModifyList()); ll11111l111l.setModelObject(ll11ll1l11l1).setAdditionalObj1(lllllllll111).setAdditionalObj2(l11l11lllll1).setAdditionalObj3(ll11ll11lll1.getEffectPanel()).setCommand(V.isEmpty(lllllllll111) && V.equals(ll11ll11lll1.getEffectPanel(), OOO0OO00O00O00OO.l11llll1ll11ll1("c3RhdGlzdGljYWxDaGFydA==")) ? OOO0OO00O00O00OO.l11llll1ll11ll1("SU5JVA==") : OOO0OO00O00O00OO.l11llll1ll11ll1("VVBEQVRF")); O0O0OO000000OOO0 l11ll1l1l11l = O00OOO000OOOOO00.lll1l11lll1ll1l(ll11111l111l); if (l11ll1l1l11l != null) { ll1l1l11l1l1 = l11ll1l1l11l; lll1lll111l1.addAll(ll1l1l11l1l1.getGenerateFileActions()); } } } this.l1111l11111ll(lll1lll111l1, ll1ll11l1l1l); ll1l1l11l1l1.setGenerateFileActions(lll1lll111l1); ll1l1l11l1l1.ll1l1ll11l1lll1(null); String l1ll1l1llll1 = ll1l1l11l1l1.l11lllll1l1lll1(); String ll111l1l111l = OO0O0OOOOO0O0O00.llll11l1ll111l1(O0O0O0000OO0O000.LYR.VIEW); List l11ll1llll1l = lll1lll111l1.stream().filter(l1l11ll111l1 -> { return V.equals(l1l11ll111l1.getGenerateType(), O00OO0000O000O0O.FRONTEND); }).map(OOO0O00OO00000O0::getPath).map(l1l111l11l11 -> { return S.replace(l1l111l11l11, ll111l1l111l, ""); }).collect(Collectors.toList()); l111l1l1l1ll1.lll1l11l1l1l1l1(l11ll1llll1l); if (V.notEmpty(ll1l1l11l1l1.getErrorMsg()) && (ll1l1l11l1l1.getErrorMsg().contains("登录") || ll1l1l11l1l1.getErrorMsg().contains("账号"))) { log.warn(ll1l1l11l1l1.getErrorMsg()); return ll1l1l11l1l1.getErrorMsg(); } if (V.notEmpty(l1ll1l1llll1)) { log.warn(l1ll1l1llll1); return l1ll1l1llll1; } return null; } @Override @Deprecated() public OOO0OO00O00OO00O l11l1l1l1l1111l(O0OO00O000OOO00O l111l1l11l11) { boolean l1l1llll111l = O0O0O0000OO0O000.l11111111l1ll1.equals(l111l1l11l11.getTableName()); if (V.isEmpty(l111l1l11l11.getStorageVersion()) && !l1l1llll111l) { return null; } String ll1l1l11ll11 = l1l1llll111l ? l111l1l11l11.getClassLabel() : l111l1l11l11.getStorageVersion(); OOO0OO00O00OO00O l1l11ll11ll1 = l111l1lll1l1l.getSingleEntity(Wrappers.lambdaQuery().eq(OOO0OO00O00OO00O::getPanelCode, l111l1l11l11.getTableName()).eq(OOO0OO00O00OO00O::getProjectType, O0O0O0000OO0O000.ll1l1llll11lll).eq(OOO0OO00O00OO00O::getPanelName, ll1l1l11ll11)); if (l1l11ll11ll1 == null) { l1l11ll11ll1 = new OOO0OO00O00OO00O(); } l1l11ll11ll1.setPanelCode(l111l1l11l11.getTableName()).setFileName(lllll1l1l1l1l1).setDirPath(lllll1l1l1l1l1).setPanelName(ll1l1l11ll11).setProjectType(O0O0O0000OO0O000.ll1l1llll11lll).setConfigData(this.l111l1ll1lll1(l111l1l11l11.getConfig())); if (V.notEmpty(l1l11ll11ll1.getId())) { l111l1lll1l1l.updateEntity(l1l11ll11ll1); } else { l111l1lll1l1l.createEntity(l1l11ll11ll1); } return l1l11ll11ll1; } @Override @Deprecated() public OOO0OO00O00OO00O l11l1l1l1l1111l(OO0OO000O0O0OOOO lllll1l1l11l) { if (V.isEmpty(lllll1l1l11l.getStorageVersion())) { return null; } OOO0OO00O00OO00O l11l11lll11l = l111l1lll1l1l.getSingleEntity(Wrappers.lambdaQuery().eq(OOO0OO00O00OO00O::getPanelCode, lllll1l1l11l.getTableName()).eq(OOO0OO00O00OO00O::getProjectType, O0O0O0000OO0O000.l111l1ll1l1111).eq(OOO0OO00O00OO00O::getPanelName, lllll1l1l11l.getStorageVersion())); if (l11l11lll11l == null) { l11l11lll11l = new OOO0OO00O00OO00O(); } l11l11lll11l.setPanelCode(lllll1l1l11l.getTableName()).setFileName(lllll1l1l1l1l1).setDirPath(lllll1l1l1l1l1).setPanelName(lllll1l1l11l.getStorageVersion()).setProjectType(O0O0O0000OO0O000.l111l1ll1l1111).setConfigData(this.l111l1ll1lll1(lllll1l1l11l.getConfig())); if (V.notEmpty(l11l11lll11l.getId())) { l111l1lll1l1l.updateEntity(l11l11lll11l); } else { l111l1lll1l1l.createEntity(l11l11lll11l); } return l11l11lll11l; } @Override @Deprecated() public OOO0OO00O00OO00O l1l1l11l1l1l111(OO00OOOOOOOOO0OO ll11111111ll, boolean ll111l11l111) { OOO0OO00O00OO00O l1ll11ll1lll = new OOO0OO00O00OO00O(); if (V.notEmpty(ll11111111ll.getPanelId())) { l1ll11ll1lll = l111l1lll1l1l.getEntity(ll11111111ll.getPanelId()); } l1ll11ll1lll.setPanelName(ll11111111ll.getName()).setPanelCode(ll11111111ll.getCode()).setDirPath(ll11111111ll.getDirPath()).setFileName(ll11111111ll.getFileName()).setProjectType(ll11111111ll.getProjectType()).setParamData(this.l111l1ll1lll1(ll11111111ll.getParamData())).setEventData(this.l111l1ll1lll1(ll11111111ll.getEventData())).setMethodsData(this.l111l1ll1lll1(ll11111111ll.getMethodsData())).setConfigData(this.l111l1ll1lll1(ll11111111ll.getConfig())); if (ll111l11l111) { l1ll11ll1lll.setProjectType(OOO0OO00O00OO00O.ABSTRACT_PANEL); } if (V.notEmpty(ll11111111ll.getPanelId())) { l111l1lll1l1l.updateEntity(l1ll11ll1lll); } else { l111l1lll1l1l.createEntity(l1ll11ll1lll); List ll1l1l111ll1 = l111l1lll1l1l.getEntityList(Wrappers.lambdaQuery().eq(OOO0OO00O00OO00O::getPanelName, ll11111111ll.getName()).eq(OOO0OO00O00OO00O::getPanelCode, ll11111111ll.getCode())); Long ll1lll111lll = l1ll11ll1lll.getId(); if (V.notEmpty(ll1l1l111ll1) && V.notEmpty(ll1lll111lll)) { List l11111ll1ll1 = ll1l1l111ll1.stream().filter(l1l11111ll1l -> { return !V.equals(ll1lll111lll, l1l11111ll1l.getId()); }).collect(Collectors.toList()); if (V.notEmpty(l11111ll1ll1)) { l111l1lll1l1l.deleteEntities(l11111ll1ll1); } } } return l1ll11ll1lll; } @Override @Deprecated() public void ll1l1111llll1l1(OOO0OO00O00OO00O l111l1l1111l) { if (l111l1l1111l == null) { return; } l111l1l1111l.setParamData(this.l1111lll11111(l111l1l1111l.getParamData())); l111l1l1111l.setEventData(this.l1111lll11111(l111l1l1111l.getEventData())); l111l1l1111l.setMethodsData(this.l1111lll11111(l111l1l1111l.getMethodsData())); l111l1l1111l.setConfigData(this.l1111lll11111(l111l1l1111l.getConfigData())); } @Override @Deprecated() public void lll1ll1111llll1(List l11111l111l1) { if (V.isEmpty(l11111l111l1)) { return; } for (OOO0OO00O00OO00O l111l11l11ll : l11111l111l1) { this.ll1l1111llll1l1(l111l11l11ll); } } @Deprecated() private void l1111l11111ll(List l11ll1l11l11, OO00OOOOOOOOO0OO l1llll1ll1l1) { if (V.isEmpty(l11ll1l11l11)) { return; } for (OOO0O00OO00000O0 l1llll111l1l : l11ll1l11l11) { if (V.isEmpty(l1llll111l1l.getVariableCodePath())) { continue; } if (!l1llll111l1l.getVariableCodePath().contains(OOO0OO00O00OO00O.DEFAULT_PANEL_PATH)) { continue; } if (V.notEmpty(l1llll1ll1l1.getDirPath())) { l1llll111l1l.setPath(S.replace(l1llll111l1l.getPath(), OOO0OO00O00OO00O.DEFAULT_PANEL_PATH, l1llll1ll1l1.getDirPath())); l1llll111l1l.setVariableCodePath(S.replace(l1llll111l1l.getVariableCodePath(), OOO0OO00O00OO00O.DEFAULT_PANEL_PATH, l1llll1ll1l1.getDirPath())); } else { l1llll1ll1l1.setDirPath(S.replace(l1llll111l1l.getVariableCodePath(), OOO0OO00O00O00OO.l11llll1ll11ll1("JHtvdXRwdXRQYXRoRnJvbnRlbmR9Lw=="), "")); } } } @Deprecated() private String l111l1ll1lll1(String lllll111lll1) { if (V.isEmpty(lllll111lll1)) { return lllll111lll1; } lllll111lll1 = Encryptor.encrypt(lllll111lll1, O00O00OO0000OO0O.llllll1l1l111l1(ll1ll11l1l1l11, O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.D.name()), O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.TEXT.name()))); if (lllll111lll1.length() < 10) { return lllll111lll1; } return O00O00OO0000OO0O.llllll1l1l111l1(lllll111lll1, O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.INPUT.name()), O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.TEXTAREA.name())); } @Deprecated() private String l1111lll11111(String l1lllll11ll1) { if (V.notEmpty(l1lllll11ll1) && !l1lllll11ll1.contains("{")) { try { if (l1lllll11ll1.length() >= 10) { l1lllll11ll1 = O00O00OO0000OO0O.llllll1l1l111l1(l1lllll11ll1, O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.TEXTAREA.name()), O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.INPUT.name())); } l1lllll11ll1 = Encryptor.decrypt(l1lllll11ll1, O00O00OO0000OO0O.llllll1l1l111l1(ll1ll11l1l1l11, O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.TEXT.name()), O00O00OO0000OO0O.l1lll11l111l11.get(O00O00OO0000OO0O.CDS.D.name()))); } catch (Exception e) { } } return l1lllll11ll1; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy