com.diboot.devtools.v2.OOO00O0OO00000O0 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.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.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;
import java.io.*;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
@Slf4j
@Service
@Primary
@Deprecated()
public class OOO00O0OO00000O0 implements O0O0OO0O0O000000 {
@Autowired
private O0O00OO000O00000 l1111l1l111l1;
@Autowired
private O0O00OO00000000O lll1ll1llll11;
@Autowired
private OO0O0000O0O000OO l1llll1ll11l1;
private static ConcurrentHashMap> lll1l11llll11 = new ConcurrentHashMap<>();
private static final String l1111lll1ll1l = System.lineSeparator();
private static String ll1l111l11lll = OOO0OO00O00O00OO.l11llll1ll11ll1("Z2VuZXJhdGVSb3V0ZXJNYXA=");
private static String l1ll1l111111l = OOO0OO00O00O00OO.l11llll1ll11ll1("Li4uZ2VuZXJhdGVSb3V0ZXJNYXA=");
private static String ll111l1l1ll11 = OOO0OO00O00O00OO.l11llll1ll11ll1("JHtnZW5lcmF0ZVJvdXRlck1hcH0=");
@Override
@Deprecated()
public String l11l11lll1ll111(O0OO00O000OOO00O l11llllll1ll) throws Exception {
boolean l1l1l1l1111l = O0O0O0000OO0O000.l11111111l1ll1.equals(l11llllll1ll.getTableName());
O00000O0OOO0O0OO l1ll1l1l1l1l = null;
O00OO000OOOO00O0 l11111l111ll = null;
if (!l1l1l1l1111l) {
l1ll1l1l1l1l = l1111l1l111l1.l1l111llll1llll(l11llllll1ll.getTableName());
if (V.isEmpty(l1ll1l1l1l1l)) {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("5b2T5YmN6KGo5LiN5a2Y5Zyo77yB"));
}
l11111l111ll = OO0O00OOOO00OO00.l1l11l111llllll(l1ll1l1l1l1l, l1111l1l111l1);
}
O00OOO0O0OO0O0OO ll111lll11l1 = new O00OOO0O0OO0O0OO().lllllll1l1lllll();
if (!l1l1l1l1111l) {
ll111lll11l1.setModelObject(l11111l111ll).setAdditionalObj1(lllll1l11lll1(l1ll1l1l1l1l.getModule(), l1ll1l1l1l1l.getClassName()));
}
l11llllll1ll.setVersion(O0O0O0000OO0O000.lll1l1l1111l111());
ll111lll11l1.setQueryMapDto(l11llllll1ll);
O0O0OO000000OOO0 l1l1l1111lll = null;
try {
l1l1l1111lll = OO0OO0O0O0O00OOO.lll11l11l1l1lll(ll111lll11l1);
} catch (Exception e) {
log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yid5aeL5Luj56CB5aSx6LSlOiB7fQ=="), e.getMessage());
}
if (V.isEmpty(l1l1l1111lll)) {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("55Sf5oiQ5Luj56CB5aSx6LSl77yM6K+36YeN6K+V77yB"));
}
List lllll1l111l1 = l1l1l1111lll.getGenerateFileActions();
if (V.isEmpty(lllll1l111l1)) {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("55Sf5oiQ5p6E5bu65Luj56CB5aSx6LSl77yB"));
}
if (V.notEmpty(l1l1l1111lll.getResultCommandModelList())) {
O00OOO0O0OO0O0OO, OO0O0O0O000OOOOO, String> lll1111l1111 = new O00OOO0O0OO0O0OO().lllllll1l1lllll().setModelObject(l11111l111ll).setQueryMapDto(l11llllll1ll);
for (OOOOO00O0OOOO0O0 l11ll11l11l1 : l1l1l1111lll.getResultCommandModelList()) {
OO0O0O0O000OOOOO lll1l1ll1l1l = l11ll11l11l1.getModelInfo();
if (V.isEmpty(lll1l1ll1l1l.getTableName()) && V.equals(l1ll1l1l1l1l.getTableName(), l1ll1l1l1l1l.getTableName())) {
lll1l1ll1l1l.setModule(l1ll1l1l1l1l.getModule());
lll1l1ll1l1l.setTableName(l1ll1l1l1l1l.getTableName());
lll1l1ll1l1l.setClassName(l1ll1l1l1l1l.getClassName());
lll1l1ll1l1l.setInstClassName(l1ll1l1l1l1l.getInstClassName());
lll1l1ll1l1l.setObjName(l1ll1l1l1l1l.getObjName());
} else {
O00000O0OOO0O0OO l1ll111l1l11 = l1111l1l111l1.l1l111llll1llll(lll1l1ll1l1l.getTableName());
O00OO000OOOO00O0 l11llll11111 = OO0O00OOOO00OO00.l1l11l111llllll(l1ll111l1l11, l1111l1l111l1);
if (l1ll111l1l11 != null) {
lll1l1ll1l1l.setModule(l1ll111l1l11.getModule());
lll1l1ll1l1l.setClassName(l1ll111l1l11.getClassName());
lll1l1ll1l1l.setInstClassName(l1ll111l1l11.getInstClassName());
lll1l1ll1l1l.setObjName(l1ll111l1l11.getObjName());
lll1l1ll1l1l.setModelObject(l11llll11111);
}
}
OO0O0O0O000OOOOO lll1ll1ll1ll = new OO0O0O0O000OOOOO();
lll1ll1ll1ll.setModule(l1ll1l1l1l1l.getModule()).setTableName(l1ll1l1l1l1l.getTableName()).setClassName(l1ll1l1l1l1l.getClassName()).setInstClassName(l1ll1l1l1l1l.getInstClassName()).setObjName(l1ll1l1l1l1l.getObjName());
lll1l1ll1l1l.setEnableSwagger(OO0O0OOOOO0O0O00.l11111l1ll1ll1l().isEnableSwagger());
lll1l1ll1l1l.setEnableDibootIam(OO0O0OOOOO0O0O00.l11111l1ll1ll1l().isEnableDibootIam());
lll1l1ll1l1l.setEnableLombok(OO0O0OOOOO0O0O00.l11111l1ll1ll1l().isEnableLombok());
lll1111l1111.setModelObject(l11111l111ll).setAdditionalObj1(OO0O00OOOO00OO00.l11ll1ll11ll1l1(lll1ll1ll1ll, l11ll11l11l1.getModifyList())).setAdditionalObj2(lll1l1ll1l1l).setAdditionalObj3(l11ll11l11l1.getEffectPanel());
if (V.notEmpty(lll1111l1111.getAdditionalObj1())) {
Map lll1111ll111 = BeanUtils.convertToStringKeyObjectMap(lllll1l111l1, OOO0O00OO00000O0::getPath);
for (OOO0O00OO00000O0 l1l1ll1lll1l : lll1111l1111.getAdditionalObj1()) {
OOO0O00OO00000O0 l1lll1l111l1 = lll1111ll111.get(l1l1ll1lll1l.getPath());
if (l1lll1l111l1 != null) {
l1l1ll1lll1l.setContent(l1lll1l111l1.getContent());
}
}
}
O0O0OO000000OOO0 l1l1lll1111l = OO0OO0O0O0O00OOO.lll1l11lll1ll1l(lll1111l1111);
lllll1l111l1.addAll(l1l1lll1111l.getGenerateFileActions());
}
}
if (V.notEmpty(l1l1l1111lll.getErrorMsg()) && (l1l1l1111lll.getErrorMsg().contains("登录") || l1l1l1111lll.getErrorMsg().contains("账号"))) {
log.warn(l1l1l1111lll.getErrorMsg());
return l1l1l1111lll.getErrorMsg();
}
if (l11111l111ll != null) {
l1l1l1111lll.ll1l1ll11l1lll1(l11111l111ll.getModel());
} else {
l1l1l1111lll.ll1l1ll11l1lll1(null);
}
String l111l111l1l1 = l1l1l1111lll.l11lllll1l1lll1();
if (l11llllll1ll.isHasListPage()) {
l11llll1l11ll(l11llllll1ll);
}
l1llll1ll11l1.l111l1lllll111l(l11llllll1ll, l1ll1l1l1l1l, l1l1l1111lll.getFrontendPermissionApiListMap());
String lll11ll11l1l = OO0O0OOOOO0O0O00.llll11l1ll111l1(O0O0O0000OO0O000.LYR.VIEW);
List l1111l1ll111 = lllll1l111l1.stream().filter(l111l11l11l1 -> {
return V.equals(l111l11l11l1.getGenerateType(), O00OO0000O000O0O.FRONTEND);
}).map(OOO0O00OO00000O0::getPath).map(l1l1lll111ll -> OOO0O00O00O0OO0O.ll1l1llll1ll11l(S.replace(l1l1lll111ll, lll11ll11l1l, ""))).collect(Collectors.toList());
lll1ll1llll11.lll1l11l1l1l1l1(l1111l1ll111);
if (V.notEmpty(l111l111l1l1)) {
log.warn(l111l111l1l1);
return l111l111l1l1;
}
return null;
}
@Override
@Deprecated()
public List lll1l11l1lll11l(String l1ll111111l1, String lllll1l111l1) throws Exception {
OO00OOO0OOO0OOOO ll1111l11lll = O0O00OO000O0OO0O.ll1l1111111111l(l1ll111111l1);
String llll11l1l1ll = OOO0OO0O00OO00O0.lll1l111l1llll1(lllll1l111l1, ll1111l11lll.getClassName(), ll1111l11lll.getModule());
String l11ll1l1ll1l = OO0OOOO0OOO0000O.ll111l1llllll11(llll11l1l1ll);
if (V.isEmpty(l11ll1l1ll1l)) {
log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("e30uamF2YSDmlofku7bkuI3lrZjlnKjvvIzor7fnlJ/miJDlvZPliY3ooajnmoTlkI7nq6/ku6PnoIHlkI7lho3kvb/nlKjliY3nq6/nlJ/miJDlmajvvIzlkKbliJnliY3nq6/lsIbml6Dms5Xlr7nlhbPogZTlrZfmrrXlgZrlpITnkIbjgII="), ll1111l11lll.getClassName());
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6K+35YWI55Sf5oiQ5b2T5YmN6KGoIA==") + l1ll111111l1 + OOO0OO00O00O00OO.l11llll1ll11ll1("IOeahOWQjuerr+S7o+eggQ=="));
}
String l111ll11lll1 = DigestUtils.md5DigestAsHex(l11ll1l1ll1l.getBytes());
List l1ll11l1ll11 = lll1l11llll11.get(l111ll11lll1);
if (l1ll11l1ll11 != null) {
return l1ll11l1ll11;
}
l1ll11l1ll11 = this.llll11ll1l111(ll1111l11lll, lllll1l111l1, l11ll1l1ll1l);
lll1l11llll11.put(l111ll11lll1, l1ll11l1ll11);
return l1ll11l1ll11;
}
@Override
@Deprecated()
public String l1l111ll11l11l1() throws Exception {
String ll1ll1l1111l = OO0O00OOOO00OO00.l1ll11lll111lll();
File lllllll1ll1l = lllll1l1ll111(ll1ll1l1111l);
FileInputStream ll1111lll1l1 = new FileInputStream(lllllll1ll1l);
InputStreamReader l1lllll11lll = new InputStreamReader(ll1111lll1l1);
BufferedReader ll1l11111l1l = new BufferedReader(l1lllll11lll);
String ll1111l1l111 = null;
StringBuilder lll1ll1ll111 = new StringBuilder();
int l1l111ll1lll = 0;
int lll1lllll1l1 = 0;
boolean l11lll1111ll = false;
while ((ll1111l1l111 = ll1l11111l1l.readLine()) != null) {
if (ll1111l1l111.contains(ll1l111l11lll) || l11lll1111ll) {
l11lll1111ll = true;
if (ll1111l1l111.contains("[")) {
l1l111ll1lll++;
}
if (ll1111l1l111.contains("]")) {
lll1lllll1l1++;
}
if (l1l111ll1lll == lll1lllll1l1) {
break;
}
lll1ll1ll111.append(ll1111l1l111).append("\n");
}
}
try {
ll1111lll1l1.close();
l1lllll11lll.close();
ll1l11111l1l.close();
} catch (IOException e) {
log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("SU9FeGNlcHRpb27vvJp7fQ=="), e.getMessage());
}
if (V.isEmpty(lll1ll1ll111.toString())) {
return "";
}
return lll1ll1ll111.toString().substring(lll1ll1ll111.toString().indexOf("[") + 1);
}
@Deprecated()
private void l11llll1l11ll(O0OO00O000OOO00O l111l111ll11) throws Exception {
String ll111l1ll1ll = l111l111ll11.getOriginRouter();
String ll111111ll1l = "";
boolean lll1llll11ll = true;
if (V.notEmpty(ll111l1ll1ll)) {
String l1111l1lllll = O0O0O0000OO0O000.l11111111l1ll1.equals(l111l111ll11.getTableName()) ? OOO0OO00O00O00OO.l11llll1ll11ll1("SW5kZXg=") : OOO0OO00O00O00OO.l11llll1ll11ll1("TGlzdA==");
String lllll111111l = S.join("'", S.uncapFirst(l111l111ll11.getClassName()), l1111l1lllll, "'");
String ll11111l1l11 = S.join("\"", S.uncapFirst(l111l111ll11.getClassName()), l1111l1lllll, "\"");
boolean l1l111lll1l1 = ll111l1ll1ll.contains(lllll111111l);
boolean lll11l1lllll = ll111l1ll1ll.contains(ll11111l1l11);
if (l1l111lll1l1 || lll11l1lllll) {
String l1111ll11lll = l1l111lll1l1 ? lllll111111l : ll11111l1l11;
try {
Map l111l1ll1l11 = ll11l11l11lll(ll111l1ll1ll, l1111ll11lll, l111l111ll11.getModuleName());
ll111l1ll1ll = String.valueOf(l111l1ll1l11.get(OOO0OO00O00O00OO.l11llll1ll11ll1("b3JpZ2luUm91dGVy")));
if (V.notEmpty(l111l1ll1l11.get(OOO0OO00O00O00OO.l11llll1ll11ll1("aGFzQ2hpbGRyZW4=")))) {
lll1llll11ll = Boolean.valueOf(String.valueOf(l111l1ll1l11.get(OOO0OO00O00O00OO.l11llll1ll11ll1("aGFzQ2hpbGRyZW4="))));
}
} catch (Exception e) {
log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yqo5oCB5pu05pS56Lev55Sx5aSx6LSl77yM57u05oyB5LmL5YmN6Lev55Sx5L+h5oGv77yM6K+35omL5Yqo6Iez6Lev55Sx5paH5Lu25Lit6LCD5pW077yB"));
return;
}
}
}
if (V.isEmpty(ll111l1ll1ll)) {
ll111111ll1l = l111l111ll11.getCurrentGenerateRouter();
} else {
String l11lllll1lll = ll111l1ll1ll.trim();
boolean lllll1lll111 = l11lllll1lll.endsWith(",");
if (l111l11llllll(ll111l1ll1ll, l111l111ll11.getModuleName())) {
String[] llllllll1ll1 = ll111l1ll1ll.split("\n");
boolean l111ll111ll1 = false;
List lll1l1l11l1l = Arrays.asList(llllllll1ll1);
List l1l11ll11111 = new ArrayList<>(lll1l1l11l1l);
int l111l1l111l1 = 0;
int l1lll11l11l1 = 0;
int ll1l1lll1111 = 0;
int lll1l11l11l1 = 0;
boolean l111ll1llll1 = false;
boolean ll11lll11l11 = false;
for (int ll11l1l11l1l = 0, lll1l111ll1l = lll1l1l11l1l.size(); ll11l1l11l1l < lll1l111ll1l; ll11l1l11l1l++) {
String llll1111111l = lll1l1l11l1l.get(ll11l1l11l1l);
if (l111l11llllll(llll1111111l, l111l111ll11.getModuleName()) || l111ll111ll1) {
l111ll111ll1 = true;
if (llll1111111l.contains("[")) {
ll1l1lll1111++;
}
if (llll1111111l.contains("]")) {
lll1l11l11l1++;
}
if (l111ll111ll1 && l111l11llllll(llll1111111l, l111l111ll11.getModuleName()) && ll1l1lll1111 != 0) {
continue;
}
if (ll1l1lll1111 == lll1l11l11l1 && ll1l1lll1111 != 0) {
if (llll1111111l.contains("},")) {
ll11lll11l11 = true;
l1lll11l11l1 = ll11l1l11l1l;
break;
} else if (llll1111111l.contains("}")) {
l111ll1llll1 = true;
l1lll11l11l1 = ll11l1l11l1l;
break;
}
l111l1l111l1 = ll11l1l11l1l;
break;
}
}
}
if (!l111ll1llll1 && !ll11lll11l11) {
if (lll1llll11ll) {
l1l11ll11111.add(l111l1l111l1, S.join(",", l111l111ll11.getCurrentChildRouter()));
} else {
l1l11ll11111.add(l111l1l111l1, S.join(l111l111ll11.getCurrentChildRouter()));
}
}
if (ll11lll11l11) {
String ll11l11llll1 = l1l11ll11111.get(l1lll11l11l1);
ll11l11llll1 = ll11l11llll1.replaceFirst("\\},]", S.join("},", l111l111ll11.getCurrentChildRouter(), "]"));
l1l11ll11111.set(l1lll11l11l1, ll11l11llll1);
}
if (l111ll1llll1) {
String ll11l11llll1 = l1l11ll11111.get(l1lll11l11l1);
ll11l11llll1 = ll11l11llll1.replaceFirst("\\}]", S.join("},", l111l111ll11.getCurrentChildRouter(), "]"));
l1l11ll11111.set(l1lll11l11l1, ll11l11llll1);
}
ll111111ll1l = S.join(l1l11ll11111, "\n");
} else {
if (lllll1lll111) {
ll111111ll1l = S.join(ll111l1ll1ll, l111l111ll11.getCurrentGenerateRouter());
} else {
ll111111ll1l = S.join(l11lllll1lll, ",", l111l111ll11.getCurrentGenerateRouter());
}
}
}
String lll1lll11l11 = OO0O00OOOO00OO00.l1ll11lll111lll();
File l1ll1llllll1 = lllll1l1ll111(lll1lll11l11);
FileInputStream lll1l1l1l1l1 = new FileInputStream(l1ll1llllll1);
InputStreamReader ll1lll111lll = new InputStreamReader(lll1l1l1l1l1);
BufferedReader l111lll11ll1 = new BufferedReader(ll1lll111lll);
String llll11ll1111 = null;
StringBuilder l1l11l1ll111 = new StringBuilder();
int ll1l1lll1111 = 0;
int lll1l11l11l1 = 0;
boolean lll1l111lll1 = false;
while ((llll11ll1111 = l111lll11ll1.readLine()) != null) {
if (llll11ll1111.contains(ll1l111l11lll) || lll1l111lll1) {
if (llll11ll1111.contains(l1ll1l111111l)) {
l1l11l1ll111.append(llll11ll1111).append(l1111lll1ll1l);
continue;
}
if (!lll1l111lll1) {
l1l11l1ll111.append(ll111l1l1ll11).append(l1111lll1ll1l);
}
lll1l111lll1 = true;
if (llll11ll1111.contains("[")) {
ll1l1lll1111++;
}
if (llll11ll1111.contains("]")) {
lll1l11l11l1++;
}
if (ll1l1lll1111 == lll1l11l11l1 && ll1l1lll1111 != 0) {
lll1l111lll1 = false;
}
} else {
l1l11l1ll111.append(llll11ll1111).append(l1111lll1ll1l);
}
}
try {
lll1l1l1l1l1.close();
ll1lll111lll.close();
l111lll11ll1.close();
} catch (IOException e) {
log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("SU9FeGNlcHRpb27vvJp7fQ=="), e.getMessage());
}
if (!l1l11l1ll111.toString().contains(ll111l1l1ll11)) {
l1l11l1ll111.append(ll111l1l1ll11).append(l1111lll1ll1l);
}
if (!l1l11l1ll111.toString().contains(l1ll1l111111l)) {
if (V.equals(OOO0OO00O00O00OO.l11llll1ll11ll1("YW50ZHY="), lll1lll11l11)) {
l1l11l1ll111.append(OOO0OO00O00O00OO.l11llll1ll11ll1("YXN5bmNSb3V0ZXJNYXBbMF0uY2hpbGRyZW4uc3BsaWNlKDEsIDAsIA==")).append(l1ll1l111111l).append(")").append(l1111lll1ll1l);
} else {
l1l11l1ll111.append(OOO0OO00O00O00OO.l11llll1ll11ll1("YXN5bmNSb3V0ZXMuc3BsaWNlKDAsIDAsIA==")).append(l1ll1l111111l).append(")").append(l1111lll1ll1l);
}
}
ll111111ll1l = S.join(OOO0OO00O00O00OO.l11llll1ll11ll1("Y29uc3Qg"), ll1l111l11lll, OOO0OO00O00O00OO.l11llll1ll11ll1("ID0gWw=="), l1111lll1ll1l, ll111111ll1l.trim(), l1111lll1ll1l, "]");
String l11lllll1l11 = l1l11l1ll111.toString().replace(ll111l1l1ll11, ll111111ll1l);
if (l11lllll1l11.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("PSZndDs="))) {
l11lllll1l11 = S.replaceChars(l11lllll1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("PSZndDs="), "=>");
}
FileUtils.writeStringToFile(l1ll1llllll1, l11lllll1l11, OOO0OO00O00O00OO.l11llll1ll11ll1("VVRGLTg="));
}
@Deprecated()
private Map ll11l11l11lll(String llllll111lll, String llllll1ll1l1, String llll111lllll) throws Exception {
Map ll111lll111l = new HashMap<>();
llllll111lll = llllll111lll.trim();
String[] l1ll111111l1 = llllll111lll.split(llllll1ll1l1);
String l11ll1lllll1 = l1ll111111l1[0];
String l11llll1lll1 = l1ll111111l1[1];
String l11l1l1lllll = l11ll1lllll1.substring(0, l11ll1lllll1.lastIndexOf("{")).trim();
int l1111111l111 = l11llll1lll1.indexOf("}") + 1;
String l11l1l111l11 = l1ll111111l1[1].substring(l1111111l111);
int lll111ll11l1 = l11l1l111l11.indexOf("}") + 1;
String l111111l11l1 = l11l1l111l11.substring(lll111ll11l1).trim();
if (l111111l11l1.startsWith(",")) {
l111111l11l1 = l111111l11l1.substring(1).trim();
}
if (!l111111l11l1.startsWith("{") && l11l1l1lllll.endsWith(",")) {
l11l1l1lllll = l11l1l1lllll.substring(0, l11l1l1lllll.length() - 1).trim();
}
if (l11l1l1lllll.endsWith("[") && l111111l11l1.startsWith("]")) {
if (!l111l11llllll(l11l1l1lllll, llll111lllll)) {
int ll1111lll1ll = l11l1l1lllll.lastIndexOf("{");
l11l1l1lllll = l11l1l1lllll.substring(0, ll1111lll1ll);
int lll1l11l111l = l11l1l1lllll.lastIndexOf("{");
l11l1l1lllll = l11l1l1lllll.substring(0, lll1l11l111l).trim();
int lll11llll111 = l111111l11l1.indexOf("}") + 1;
l111111l11l1 = l111111l11l1.substring(lll11llll111).trim();
if (l111111l11l1.startsWith(",")) {
l111111l11l1 = l111111l11l1.substring(1).trim();
}
} else {
ll111lll111l.put(OOO0OO00O00O00OO.l11llll1ll11ll1("aGFzQ2hpbGRyZW4="), false);
}
}
ll111lll111l.put(OOO0OO00O00O00OO.l11llll1ll11ll1("b3JpZ2luUm91dGVy"), (l11l1l1lllll + "\n" + OOO0OO00O00O00OO.l11llll1ll11ll1("ICAgICAg") + l111111l11l1).trim());
return ll111lll111l;
}
@Deprecated()
private File lllll1l1ll111(String ll1ll11l1lll) throws Exception {
String l1111l1l11l1 = "";
String l1ll1lll1l11 = OO0O0OOOOO0O0O00.llll11l1ll111l1(O0O0O0000OO0O000.LYR.VIEW);
if (V.equals(ll1ll11l1lll, OOO0OO00O00O00OO.l11llll1ll11ll1("YW50ZHY="))) {
l1111l1l11l1 = l1ll1lll1l11 + OOO0OO00O00O00OO.l11llll1ll11ll1("c3JjL2NvbmZpZy9yb3V0ZXIuY29uZmlnLmpz");
} else if (V.equals(ll1ll11l1lll, OOO0OO00O00O00OO.l11llll1ll11ll1("ZWxlbWVudA=="))) {
l1111l1l11l1 = l1ll1lll1l11 + OOO0OO00O00O00OO.l11llll1ll11ll1("c3JjL3JvdXRlci9pbmRleC5qcw==");
} else {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5YmN56uv6aG555uu57G75Z6L5aSx6LSl77yM6K+35qOA5p+l5YmN56uv6aG555uu6YWN572u"));
}
File lll1l1l1l1l1 = new File(l1111l1l11l1);
if (!lll1l1l1l1l1.exists()) {
log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5b2T5YmN6K6/6Zeu55qE6Lev55Sx5paH5Zyw5Z2A5Li677yae30="), l1111l1l11l1);
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5YmN56uv6Lev55Sx6YWN572u5aSx6LSl77yM6K+35qOA5p+l5YmN56uv6aG56Lev55Sx55uu6YWN572u"));
}
return lll1l1l1l1l1;
}
@Deprecated()
private OOO0O00OO00000O0 lllll1l11lll1(String lll1111ll11l, String l1lll1111lll) {
String llll111llll1 = OOO0OO0O00OO00O0.l11111lll11llll(l1lll1111lll, lll1111ll11l);
String ll1111ll1ll1 = OO0OOOO0OOO0000O.ll111l1llllll11(llll111llll1);
OOO0O00OO00000O0 l111l1l11l1l = null;
if (V.notEmpty(ll1111ll1ll1)) {
l111l1l11l1l = new OOO0O00OO00000O0().setKey(OOO0OO00O00O00OO.l11llll1ll11ll1("ZHRv")).setContent(ll1111ll1ll1).setPath(llll111llll1);
}
return l111l1l11l1l;
}
@Deprecated()
private List llll11ll1l111(OO00OOO0OOO0OOOO lll1l1l11lll, String ll1l1llll11l, String l11ll1ll1l1l) throws Exception {
String ll11111l111l = lll1l1l11lll.getClassName();
List ll111lllll1l = l1111l1l111l1.l1111ll11ll1ll1(lll1l1l11lll.getTableName());
O00OOO0O0OO0O0OO, ?, String, List, String> l1ll1ll1ll11 = new O00OOO0O0OO0O0OO();
l1ll1ll1ll11.lllllll1l1lllll().setAdditionalObj1(l11ll1ll1l1l).setAdditionalObj2(ll111lllll1l).setAdditionalObj3(ll11111l111l + ll1l1llll11l);
List l1l11l1l1111 = OO0OO0O0O0O00OOO.ll11llll11l1l11(l1ll1ll1ll11);
if (V.isEmpty(l1l11l1l1111)) {
return Collections.emptyList();
}
List llll11ll1l111 = new ArrayList<>();
List ll1l1l1ll111 = l1111l1l111l1.l1lll1ll1ll11ll(false);
Map l1ll1l1l1l11 = BeanUtils.convertToStringKeyObjectMap(ll1l1l1ll111, BeanUtils.convertToFieldName(O00000O0OOO0O0OO::getClassName));
for (O000000O0O0OO000 lll1ll111ll1 : l1l11l1l1111) {
if (lll1ll111ll1.getColumnExt() == null) {
if (V.notEmpty(lll1ll111ll1.getFieldName()) && V.notEmpty(lll1ll111ll1.getFieldLabel())) {
O0O0O0OOOO0OO0O0 l11111l1l1l1 = new O0O0O0OOOO0OO0O0();
BeanUtils.copyProperties(lll1ll111ll1, l11111l1l1l1);
l11111l1l1l1.setExample(OOO0OO00O00O00OO.l11llll1ll11ll1("5YWz6IGU5pWw5o2u56S65L6L"));
if (V.equals(lll1ll111ll1.getColType(), OOO0OO00O00O00OO.l11llll1ll11ll1("anNvbg==")) && V.equals(lll1ll111ll1.getFieldPackagingType(), OOO0OO00O00O00OO.l11llll1ll11ll1("TGlzdA=="))) {
l11111l1l1l1.setRefCodeType(OOO0OO00O00O00OO.l11llll1ll11ll1("QmluZERpY3Q="));
}
llll11ll1l111.add(l11111l1l1l1);
}
continue;
}
O0O00OO00O0O0OO0 ll11l11111l1 = lll1ll111ll1.getColumnExt();
if (V.isEmpty(ll11l11111l1.getRefType())) {
continue;
}
if (O0O0O0OOOO0OO0O0.RF_CD_TP.BindEntity.name().equals(ll11l11111l1.getRefType()) || O0O0O0OOOO0OO0O0.RF_CD_TP.BindEntityList.name().equals(ll11l11111l1.getRefType())) {
if (V.notEmpty(ll11l11111l1.getRefTable()) && l1ll1l1l1l11.get(ll11l11111l1.getRefTable()) != null) {
O00000O0OOO0O0OO lll111llllll = l1ll1l1l1l11.get(ll11l11111l1.getRefTable());
String l1l111111l11 = lll111llllll.getObjName();
if (O0O0O0OOOO0OO0O0.RF_CD_TP.BindEntityList.name().equals(ll11l11111l1.getRefType())) {
l1l111111l11 += "列表";
}
O0O0O0OOOO0OO0O0 l11111l1l1l1 = new O0O0O0OOOO0OO0O0();
l11111l1l1l1.setFieldName(lll1ll111ll1.getFieldName());
l11111l1l1l1.setFieldLabel(l1l111111l11);
l11111l1l1l1.setRefCodeType(ll11l11111l1.getRefType());
List lll1ll11ll1l = l1111l1l111l1.l1ll11111ll1l11(lll111llllll.getTableName());
l11111l1l1l1.setColumns(lll1ll11ll1l);
llll11ll1l111.add(l11111l1l1l1);
}
} else if (O0O0O0OOOO0OO0O0.RF_CD_TP.BindFieldList.name().equals(ll11l11111l1.getRefType())) {
if (V.notEmpty(ll11l11111l1.getRefTable()) && l1ll1l1l1l11.get(ll11l11111l1.getRefTable()) != null) {
O00000O0OOO0O0OO lll111llllll = l1ll1l1l1l11.get(ll11l11111l1.getRefTable());
String l1l111111l11 = lll111llllll.getObjName();
AtomicReference llll111l1l1l = new AtomicReference<>();
if (V.notEmpty(ll11l11111l1.getAsColumn())) {
List lll1ll11ll1l = l1111l1l111l1.l1111ll11ll1ll1(lll111llllll.getTableName());
lll1ll11ll1l.stream().filter(ll1l1l1lll1l -> {
return ll11l11111l1.getAsColumn().equals(ll1l1l1lll1l.getFieldName());
}).findFirst().ifPresent(ll1l1l1lll1l -> {
llll111l1l1l.set(ll1l1l1lll1l.getFieldLabel());
});
}
l1l111111l11 += V.notEmpty(llll111l1l1l.get()) ? llll111l1l1l.get() : "";
l1l111111l11 += "列表";
O0O0O0OOOO0OO0O0 l11111l1l1l1 = new O0O0O0OOOO0OO0O0();
l11111l1l1l1.setFieldName(lll1ll111ll1.getFieldName());
l11111l1l1l1.setFieldLabel(l1l111111l11);
l11111l1l1l1.setRefCodeType(ll11l11111l1.getRefType());
llll11ll1l111.add(l11111l1l1l1);
}
}
}
return llll11ll1l111;
}
@Deprecated()
private boolean l111l11llllll(String l1l1ll1lll1l, String llllll11l11l) {
if (V.isEmpty(l1l1ll1lll1l)) {
return false;
}
return (l1l1ll1lll1l.contains(S.join("'", llllll11l11l, "'")) || l1l1ll1lll1l.contains(S.join("\"", llllll11l11l, "\"")));
}
}