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

com.diboot.devtools.v2.O0O00O0OOOOOOO00 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.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.diboot.core.exception.BusinessException; import com.diboot.core.service.impl.BaseServiceImpl; import com.diboot.core.util.BeanUtils; 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.context.annotation.Primary; import org.springframework.stereotype.Service; import java.util.*; @Primary @Service @Slf4j @Deprecated() public class O0O00O0OOOOOOO00 extends BaseServiceImpl implements OO0O0000O0O000OO { @Override @Deprecated() public List lll1lll11l1llll() { if (OO0O0OOOOO0O0O00.l1l1l1lll11lll1()) { return this.l11111l11l11l(); } else { return this.llll11111llll(); } } @Override @Deprecated() public O00OO000O0O0O0O0 l1l1ll11l1ll1l1(Map ll1l111l1l11) { O00OO000O0O0O0O0 l111llll1l11 = new O00OO000O0O0O0O0(); BeanUtils.bindProperties(l111llll1l11, ll1l111l1l11); if (V.isEmpty(l111llll1l11.getResourceCode())) { throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("5YmN56uv55Sf5oiQ5b+F6aG75byV5YWlZGlib290LWlhbee7hOS7tg==")); } l111llll1l11.setResourceCode(l111llll1l11.getResourceCode().toLowerCase()); if (V.equals(l111llll1l11.getResourceCode(), OOO0OO00O00O00OO.l11llll1ll11ll1("c3lzdGVt"))) { throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I+c5Y2V57yW56CBIOS4jeWFgeiuuOiuvue9ruS4uumihOe9rueahCdzeXN0ZW0n")); } if (OO0O0OOOOO0O0O00.l1l1l1lll11lll1()) { return this.ll1ll1l1l111l(l111llll1l11); } else { return this.lll111l1l1l1l(l111llll1l11); } } @Deprecated() private List llll11111llll() { LambdaQueryWrapper l11l1llll111 = Wrappers.lambdaQuery(); l11l1llll111.eq(O00OO000O0O0O0O0::getParentId, 0L).eq(O00OO000O0O0O0O0::getDisplayType, OOO0OO00O00O00OO.l11llll1ll11ll1("TUVOVQ==")).ne(O00OO000O0O0O0O0::getResourceCode, OOO0OO00O00O00OO.l11llll1ll11ll1("c3lzdGVt")); if (V.notEmpty(OO0O0OOOOO0O0O00.lll1111lll1l11l())) { l11l1llll111.eq(O00OO000O0O0O0O0::getAppModule, OO0O0OOOOO0O0O00.lll1111lll1l11l()); } List l1lll1ll111l = getEntityList(l11l1llll111); if (V.isEmpty(l1lll1ll111l)) { return Collections.emptyList(); } return l1lll1ll111l; } @Deprecated() private List l11111l11l11l() { return O00O0OO0OO00OO00.lll1lll11l1llll(OO0O0OOOOO0O0O00.lll1111lll1l11l()); } @Deprecated() private O00OO000O0O0O0O0 lll111l1l1l1l(O00OO000O0O0O0O0 lll1l1l1l1ll) { LambdaQueryWrapper lllll1l11ll1 = Wrappers.lambdaQuery().eq(O00OO000O0O0O0O0::getResourceCode, lll1l1l1l1ll.getResourceCode()).eq(O00OO000O0O0O0O0::getDisplayType, OOO0OO00O00O00OO.l11llll1ll11ll1("TUVOVQ==")); boolean l1111l1l1111 = super.exists(lllll1l11ll1); if (l1111l1l1111) { throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I+c5Y2V57yW56CBKA==") + lll1l1l1l1ll.getResourceCode() + OOO0OO00O00O00OO.l11llll1ll11ll1("KeW3suWtmOWcqO+8jCDor7fkuI3opoHph43lpI3mt7vliqA=")); } String l11ll1111lll = OO0O0OOOOO0O0O00.lll1111lll1l11l(); lll1l1l1l1ll.setAppModule(l11ll1111lll); lll1l1l1l1ll.setSortId(5L); if (super.createEntity(lll1l1l1l1ll)) { return lll1l1l1l1ll; } throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("5re75Yqg6I+c5Y2V5aSx6LSl")); } @Deprecated() private O00OO000O0O0O0O0 ll1ll1l1l111l(O00OO000O0O0O0O0 l1l1ll11l1ll) { boolean lll1ll111111 = O00O0OO0OO00OO00.llll111lll1l111(l1l1ll11l1ll.getResourceCode()); if (lll1ll111111) { throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I+c5Y2V57yW56CBKA==") + l1l1ll11l1ll.getResourceCode() + OOO0OO00O00O00OO.l11llll1ll11ll1("KeW3suWtmOWcqO+8jCDor7fkuI3opoHph43lpI3mt7vliqA=")); } String l11l11ll111l = OO0O0OOOOO0O0O00.lll1111lll1l11l(); l1l1ll11l1ll.setAppModule(l11l11ll111l); l1l1ll11l1ll.setSortId(5L); return O00O0OO0OO00OO00.l11lll1lll111l1(l1l1ll11l1ll); } @Override @Deprecated() public void l111l1lllll111l(O0OO00O000OOO00O lll1l1lll111, O00000O0OOO0O0OO llll1111l11l, Map> llll1ll11l11) { if (OO0O0OOOOO0O0O00.l1l1l1lll11lll1()) { this.l111ll11l1l1l(lll1l1lll111, llll1111l11l, llll1ll11l11); } else { this.lllll11ll1l11(lll1l1lll111, llll1111l11l, llll1ll11l11); } } @Deprecated() private void l111ll11l1l1l(O0OO00O000OOO00O ll1111llllll, O00000O0OOO0O0OO l111ll11l1ll, Map> l111ll1ll1ll) { List ll1ll11l1lll = l111ll1ll1ll.get(OOO0OO00O00O00OO.l11llll1ll11ll1("bGlzdA==")); if (V.isEmpty(ll1ll11l1lll)) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5YiX6KGo5Li65YWl5Y+j5p2D6ZmQ77yM5b+F6aG76YWN572u77yB")); return; } O00OO000O0O0O0O0 ll1l11lll1ll = O00O0OO0OO00OO00.l11ll1ll1lllll1(ll1111llllll.getModuleId(), ll1111llllll.getClassName()); String lll11lll11l1 = ll1111llllll.getClassName(); if (V.isEmpty(ll1l11lll1ll)) { ll1l11lll1ll = this.l1l111111ll1l(ll1111llllll, ll1ll11l1lll, lll11lll11l1); ll1l11lll1ll = O00O0OO0OO00OO00.l11lll1lll111l1(ll1l11lll1ll); } l111ll1ll1ll.remove(OOO0OO00O00O00OO.l11llll1ll11ll1("bGlzdA==")); ll1l11ll11ll1(l111ll1ll1ll, ll1l11lll1ll, lll11lll11l1); } @Deprecated() private void ll1l11ll11ll1(Map> lllll1lll111, O00OO000O0O0O0O0 l1ll111lll1l, String l1ll1l11lll1) { List l111l11ll111 = new ArrayList<>(); for (Map.Entry> ll11ll11lll1 : lllll1lll111.entrySet()) { for (O000OOO0O0O00000 l111111l1lll : ll11ll11lll1.getValue()) { O00OO000O0O0O0O0 lllll111l1l1 = new O00OO000O0O0O0O0(); String l11l1l11l1ll = l1ll1lllll1ll(l111111l1lll.getPermCode(), l1ll1l11lll1); lllll111l1l1.setPermissionCode(l11l1l11l1ll); lllll111l1l1.setParentId(l1ll111lll1l.getId()); lllll111l1l1.setResourceCode(ll11ll11lll1.getKey()); lllll111l1l1.setDisplayType(OOO0OO00O00O00OO.l11llll1ll11ll1("UEVSTUlTU0lPTg==")); lllll111l1l1.setAppModule(OO0O0OOOOO0O0O00.lll1111lll1l11l()); lllll111l1l1.setDisplayName(l111111l1lll.getApiName()); lllll111l1l1.setSortId(5L); l111l11ll111.add(lllll111l1l1); } } l1ll111lll1l.setPermissionList(l111l11ll111); O00O0OO0OO00OO00.l11l1l11l11l11l(l1ll111lll1l); } @Deprecated() private void lllll11ll1l11(O0OO00O000OOO00O ll1ll11l111l, O00000O0OOO0O0OO lll11l1lll1l, Map> ll11l1l11l11) { List ll1l11lll1l1 = ll11l1l11l11.get(OOO0OO00O00O00OO.l11llll1ll11ll1("bGlzdA==")); if (V.isEmpty(ll1l11lll1l1)) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5YiX6KGo5Li65YWl5Y+j5p2D6ZmQ77yM5b+F6aG76YWN572u77yB")); return; } O00OO000O0O0O0O0 l111l11ll111 = getSingleEntity(Wrappers.lambdaQuery().eq(O00OO000O0O0O0O0::getParentId, ll1ll11l111l.getModuleId()).eq(O00OO000O0O0O0O0::getResourceCode, ll1ll11l111l.getClassName())); String ll111ll1lll1 = ll1ll11l111l.getClassName(); if (V.isEmpty(l111l11ll111)) { l111l11ll111 = this.l1l111111ll1l(ll1ll11l111l, ll1l11lll1l1, ll111ll1lll1); createEntity(l111l11ll111); } ll11l1l11l11.remove(OOO0OO00O00O00OO.l11llll1ll11ll1("bGlzdA==")); ll111l11l11l1(ll11l1l11l11, l111l11ll111, ll111ll1lll1); } @Deprecated() private void ll111l11l11l1(Map> ll1l1ll1l1ll, O00OO000O0O0O0O0 l1l111l111ll, String ll111lll11l1) { List l11l1ll1ll11 = super.getEntityList(Wrappers.lambdaQuery().eq(O00OO000O0O0O0O0::getParentId, l1l111l111ll.getId())); Map l1lll1111l11 = BeanUtils.convertToStringKeyObjectMap(l11l1ll1ll11, BeanUtils.convertToFieldName(O00OO000O0O0O0O0::getResourceCode)); List l11l111lll1l = new ArrayList<>(); for (Map.Entry> lllllll1111l : ll1l1ll1l1ll.entrySet()) { O00OO000O0O0O0O0 l1ll11l11l1l = l1lll1111l11.get(lllllll1111l.getKey()); if (V.notEmpty(l1ll11l11l1l)) { continue; } l11l111lll1l.clear(); for (O000OOO0O0O00000 l1llll11llll : lllllll1111l.getValue()) { O00OO000O0O0O0O0 l11l1llll1l1 = new O00OO000O0O0O0O0(); String ll1ll1l1l1l1 = l1ll1lllll1ll(l1llll11llll.getPermCode(), ll111lll11l1); l11l1llll1l1.setPermissionCode(ll1ll1l1l1l1); l11l1llll1l1.setParentId(l1l111l111ll.getId()); l11l1llll1l1.setResourceCode(lllllll1111l.getKey()); l11l1llll1l1.setDisplayType(OOO0OO00O00O00OO.l11llll1ll11ll1("UEVSTUlTU0lPTg==")); l11l1llll1l1.setAppModule(OO0O0OOOOO0O0O00.lll1111lll1l11l()); l11l1llll1l1.setDisplayName(l1llll11llll.getApiName()); l11l1llll1l1.setSortId(5L); l11l111lll1l.add(l11l1llll1l1); } if (V.notEmpty(l11l111lll1l)) { super.createEntities(l11l111lll1l); } } if (V.notEmpty(l11l1ll1ll11)) { List ll11ll11l11l = new ArrayList<>(); Set l1l1ll111ll1 = ll1l1ll1l1ll.keySet(); for (O00OO000O0O0O0O0 l1l1111l1111 : l11l1ll1ll11) { String l1l111ll1l1l = l1l1111l1111.getResourceCode(); if (!l1l1ll111ll1.contains(l1l111ll1l1l)) { l1l1111l1111.setDeleted(true); ll11ll11l11l.add(l1l1111l1111.getId()); } } super.deleteEntities(ll11ll11l11l); } } @Deprecated() private O00OO000O0O0O0O0 l1l111111ll1l(O0OO00O000OOO00O lll1l1l1l111, List l1l111111l1l, String lll1ll1ll1ll) { O00OO000O0O0O0O0 l1111l11lll1 = new O00OO000O0O0O0O0(); String lll111l11ll1 = l1ll1lllll1ll(l1l111111l1l.get(0).getPermCode(), lll1ll1ll1ll); l1111l11lll1.setPermissionCode(lll111l11ll1); l1111l11lll1.setParentId(lll1l1l1l111.getModuleId()); l1111l11lll1.setResourceCode(lll1l1l1l111.getClassName()); l1111l11lll1.setDisplayType(OOO0OO00O00O00OO.l11llll1ll11ll1("TUVOVQ==")); l1111l11lll1.setAppModule(OO0O0OOOOO0O0O00.lll1111lll1l11l()); l1111l11lll1.setSortId(5L); l1111l11lll1.setDisplayName(S.join(lll1l1l1l111.getClassLabel(), "管理")); return l1111l11lll1; } @Deprecated() private String l1ll1lllll1ll(String ll1111l1lll1, String l1lll1ll111l) { String l1l11lll1lll = S.replace(ll1111l1lll1, OOO0OO00O00O00OO.l11llll1ll11ll1("JHtjbGFzc05hbWV9"), l1lll1ll111l); return l1l11lll1lll; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy