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

com.diboot.devtools.v2.O0O00OOOO0O0OO00 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.service.DictionaryServiceExtProvider; import com.diboot.core.util.*; import com.diboot.core.vo.JsonResult; import com.diboot.core.vo.LabelValue; import io.swagger.v3.oas.annotations.Hidden; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.*; import java.util.stream.Collectors; @Hidden @Slf4j @RestController @RequestMapping("/diboot/devtools/db") @Deprecated() public class O0O00OOOO0O0OO00 { private static final String ll1l1l1l11lll = OOO0OO00O00O00OO.l11llll1ll11ll1("YXhpcw=="); private static final String ll11llllllll1 = OOO0OO00O00O00OO.l11llll1ll11ll1("c2VyaWVzTmFtZQ=="); private static final String ll1111ll1ll11 = OOO0OO00O00O00OO.l11llll1ll11ll1("Y291bnQ="); @Autowired private O0O00OO000O00000 llll1111lllll; @Autowired private O0O0000O00O00O0O ll111ll11l11l; @Autowired(required = false) private DictionaryServiceExtProvider ll1lll11l11ll; @O0O0OO0O00O00O00 @GetMapping({ "/kwd/{columnName}", "/kwd/" }) @Deprecated() public JsonResult ll1l11l1111l1l1(@PathVariable(value = "columnName", required = false) String lll1l1l11ll1) throws Exception { if (V.isEmpty(lll1l1l11ll1)) { return JsonResult.OK(); } boolean l11llllll1l1 = OOOO0O0OO0OO0000.llll11lllll1l1l().ll111111ll1l111(lll1l1l11ll1); return JsonResult.OK(l11llllll1l1); } @O0O0OO0O00O00O00 @GetMapping("/rot") @Deprecated() public JsonResult l111l1l111ll1l1() throws Exception { if (OOOO0O0OO0OO0000.llll11lllll1l1l().lll11111l1l1ll1()) { List l1lll1l11lll = new ArrayList<>(O0OOO00OO0OOOO0O.llll1l111ll111.size()); for (String l1l11l1ll1ll : O0OOO00OO0OOOO0O.llll1l111ll111) { l1lll1l11lll.add(l1l11l1ll1ll.toUpperCase()); } return JsonResult.OK(l1lll1l11lll); } return JsonResult.OK(O0OOO00OO0OOOO0O.llll1l111ll111); } @O0O0OO0O00O00O00 @GetMapping("/tp") @Deprecated() public JsonResult getDbType() throws Exception { return JsonResult.OK(ContextHelper.getDatabaseType()); } @O0O0OO0O00O00O00 @GetMapping("/tbls") @Deprecated() public JsonResult ll1l1ll111l1l11(HttpServletRequest lll1lll1lll1) { List lll111l1l1ll = llll1111lllll.l1lll1ll1ll11ll(true); return JsonResult.OK(lll111l1l1ll); } @O0O0OO0O00O00O00 @GetMapping("/edttbls") @Deprecated() public JsonResult ll1111l111lllll(HttpServletRequest l11lll1ll11l) { List l1l11ll11ll1 = llll1111lllll.l1lll1ll1ll11ll(false); return JsonResult.OK(l1l11ll11ll1); } @O0O0OO0O00O00O00 @GetMapping("/rltn/{tableName}") @Deprecated() public JsonResult ll1llll111ll11l(@PathVariable("tableName") String lll11l1ll1ll) { O00O00OOO0OOOO0O ll1l1lll11l1 = new O00O00OOO0OOOO0O(); List l111ll1ll11l = llll1111lllll.l1ll11111ll1l11(lll11l1ll1ll); if (V.isEmpty(l111ll1ll11l)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5YiX5L+h5oGv5aSx6LSl")); } List ll1l1llll1ll = new ArrayList<>(); List l111l11l11ll = new ArrayList<>(); List l1ll1l1l1l1l = new ArrayList<>(); for (O000000O0O0OO000 ll1ll1lll1ll : l111ll1ll11l) { if (ll1ll1lll1ll.getColumnExt() == null || !"T".equals(ll1ll1lll1ll.getColumnExt().getRefType())) { continue; } boolean l111111111ll = OOO0OOO0O0OO00O0.lll1ll111l111ll(ll1ll1lll1ll); if (!l111111111ll) { continue; } OOO00OO00000O00O l1ll11l1l1l1 = ll1ll1lll1ll.getReferenceField(); O00000O0OOO0O0OO ll111ll1l111 = llll1111lllll.l1l111llll1llll(l1ll11l1l1l1.getRefTable()); OOOO0OO0000OO000 ll11111l11l1 = new OOOO0OO0000OO000(); ll11111l11l1.setRefTableInfo(ll111ll1l111).setReferenceField(l1ll11l1l1l1); ll1l1llll1ll.add(ll11111l11l1); List ll1111llll11 = llll1111lllll.l1ll11111ll1l11(l1ll11l1l1l1.getRefTable()); if (V.isEmpty(ll1111llll11)) { continue; } boolean l1lll11l1111 = ll1111llll11.stream().anyMatch(l1lll111l1ll -> { return l1lll111l1ll.getColumnExt() != null && V.equals(l1lll111l1ll.getTableName(), l1lll111l1ll.getColumnExt().getRefTable()); }); if (l1lll11l1111) { l111l11l11ll.add(ll11111l11l1); } } List ll11l11ll11l = ll111ll11l11l.getEntityList(Wrappers.lambdaQuery().eq(O0O00OO00O0O0OO0::getRefType, "T").eq(O0O00OO00O0O0OO0::getRefTable, lll11l1ll1ll)); if (V.notEmpty(ll11l11ll11l)) { List lll11l1llll1 = ll11l11ll11l.stream().map(O0O00OO00O0O0OO0::getTableName).distinct().collect(Collectors.toList()); if (V.notEmpty(lll11l1llll1)) { for (String l1l11ll11l11 : lll11l1llll1) { List l1ll1111111l = llll1111lllll.l1ll11111ll1l11(l1l11ll11l11); for (O000000O0O0OO000 ll1ll1lll1ll : l1ll1111111l) { if (ll1ll1lll1ll.getColumnExt() == null || !"T".equals(ll1ll1lll1ll.getColumnExt().getRefType())) { continue; } if (lll11l1ll1ll.equals(ll1ll1lll1ll.getColumnExt().getRefTable())) { O00000O0OOO0O0OO ll111ll1l111 = llll1111lllll.l1l111llll1llll(l1l11ll11l11); OOO0OOO0O0OO00O0.lll1ll111l111ll(ll1ll1lll1ll); OOO00OO00000O00O l1ll11l1l1l1 = ll1ll1lll1ll.getReferenceField(); OOOO0OO0000OO000 ll11111l11l1 = new OOOO0OO0000OO000(); ll11111l11l1.setRefTableInfo(ll111ll1l111).setReferenceField(l1ll11l1l1l1); l1ll1l1l1l1l.add(ll11111l11l1); break; } } } } } ll1l1lll11l1.setRefs(ll1l1llll1ll).setTreeRefs(l111l11l11ll).setRefChildren(l1ll1l1l1l1l); return JsonResult.OK(ll1l1lll11l1); } @O0O0OO0O00O00O00 @GetMapping("/trtbls") @Deprecated() public JsonResult lllll111llll1ll() { List l1lllll11lll = ll111ll11l11l.ll1l1ll1ll1ll1l(); if (V.isEmpty(l1lllll11lll)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List ll11l111ll1l = l1lllll11lll.stream().filter(ll1ll111l111 -> { return V.equals(ll1ll111l111.getTableName(), ll1ll111l111.getRefTable()); }).collect(Collectors.toList()); if (V.isEmpty(ll11l111ll1l)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List l111lll11ll1 = llll1111lllll.l1lll1ll1ll11ll(true); List ll111111111l = BeanUtils.collectToList(l111lll11ll1, O00000O0OOO0O0OO::getTableName); ll11l111ll1l = ll11l111ll1l.stream().filter(ll1ll111l111 -> { return ll111111111l.contains(ll1ll111l111.getTableName()); }).collect(Collectors.toList()); if (V.isEmpty(ll11l111ll1l)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List l11111l1l1l1 = BeanUtils.collectToList(ll11l111ll1l, O0O00OO00O0O0OO0::getTableName); List ll1l11l1lll1 = l111lll11ll1.stream().filter(l1111lll11ll -> { return l11111l1l1l1.contains(l1111lll11ll.getTableName()); }).collect(Collectors.toList()); if (V.isEmpty(ll1l11l1lll1)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } return JsonResult.OK(ll1l11l1lll1); } @O0O0OO0O00O00O00 @GetMapping("/trlsttbls") @Deprecated() public JsonResult l11ll111lll1l1l() { List l11l1l11l1l1 = ll111ll11l11l.ll1l1ll1ll1ll1l(); if (V.isEmpty(l11l1l11l1l1)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List ll111lllll1l = l11l1l11l1l1.stream().filter(l1lllllll1ll -> { return V.equals(l1lllllll1ll.getTableName(), l1lllllll1ll.getRefTable()); }).collect(Collectors.toList()); if (V.isEmpty(ll111lllll1l)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List ll1111111lll = BeanUtils.collectToList(ll111lllll1l, O0O00OO00O0O0OO0::getTableName); List l1l111ll1lll = l11l1l11l1l1.stream().filter(l1lllllll1ll -> { return !V.equals(l1lllllll1ll.getTableName(), l1lllllll1ll.getRefTable()) && ll1111111lll.contains(l1lllllll1ll.getRefTable()); }).collect(Collectors.toList()); if (V.isEmpty(l1l111ll1lll)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List lll1ll1ll111 = llll1111lllll.l1lll1ll1ll11ll(true); List ll1l1l1l1111 = BeanUtils.collectToList(lll1ll1ll111, O00000O0OOO0O0OO::getTableName); ll111lllll1l = ll111lllll1l.stream().filter(l1lllllll1ll -> { return ll1l1l1l1111.contains(l1lllllll1ll.getTableName()); }).collect(Collectors.toList()); l1l111ll1lll = l1l111ll1lll.stream().filter(l1lllllll1ll -> { return ll1l1l1l1111.contains(l1lllllll1ll.getTableName()); }).collect(Collectors.toList()); if (V.isEmpty(ll111lllll1l) || V.isEmpty(l1l111ll1lll)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } List l11111l1ll1l = BeanUtils.collectToList(ll111lllll1l, O0O00OO00O0O0OO0::getTableName); Map> lll11lll11ll = BeanUtils.convertToStringKeyObjectListMap(l1l111ll1lll, BeanUtils.convertToFieldName(O0O00OO00O0O0OO0::getRefTable)); List llll111lll1l = lll1ll1ll111.stream().filter(ll11lllll111 -> { return l11111l1ll1l.contains(ll11lllll111.getTableName()); }).collect(Collectors.toList()); List ll11l1lll11l = new ArrayList<>(); for (O00000O0OOO0O0OO ll1l11ll1ll1 : llll111lll1l) { List ll1lll1l11l1 = lll11lll11ll.get(ll1l11ll1ll1.getTableName()); if (V.isEmpty(ll1lll1l11l1)) { continue; } List l11lll1ll1l1 = BeanUtils.collectToList(ll1lll1l11l1, O0O00OO00O0O0OO0::getTableName); ll1l11ll1ll1.setChildren(lll1ll1ll111.stream().filter(ll11lllll111 -> { return l11lll1ll1l1.contains(ll11lllll111.getTableName()); }).collect(Collectors.toList())); ll11l1lll11l.add(ll1l11ll1ll1); } if (V.isEmpty(ll11l1lll11l)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6L+Y5rKh5pyJ56ym5ZCI5p2h5Lu255qE5a6e5L2T5YiX6KGo5Y+v5L6b6YCJ5oup")); } return JsonResult.OK(ll11l1lll11l); } @O0O0OO0O00O00O00 @GetMapping("/cols/{table}") @Deprecated() public JsonResult llllll1l1l1ll11(@PathVariable("table") String l1lll1ll11ll) { try { List l11llll111l1 = llll1111lllll.l1ll11111ll1l11(l1lll1ll11ll); for (O000000O0O0OO000 l1l1ll1lll11 : l11llll111l1) { if (l1l1ll1lll11.getColumnExt() != null && l1l1ll1lll11.getColumnExt().isRefTreeStruct() && V.notEmpty(l1l1ll1lll11.getColumnExt().getRefTable())) { List l1llllllll11 = llll1111lllll.l1l1111ll11lll1(l1l1ll1lll11.getColumnExt().getRefTable()); if (l1llllllll11 != null && l1llllllll11.size() > 0) { for (O000000O0O0OO000 l1llllll1lll : l1llllllll11) { if (l1llllll1lll.isPrimaryKey()) { l1l1ll1lll11.getColumnExt().setRefPrimaryFieldName(l1llllll1lll.getFieldName()); break; } } } } } return JsonResult.OK(l11llll111l1); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W6KGo57uT5p6E5aSx6LSlOiB7fQ=="), e.getMessage()); return JsonResult.FAIL_OPERATION("获取" + l1lll1ll11ll + OOO0OO00O00O00OO.l11llll1ll11ll1("6KGo55qE6KGo57uT5p6E5aSx6LSl")); } } @O0O0OO0O00O00O00 @GetMapping("/idx/{table}") @Deprecated() public JsonResult l11ll1l1llllll1(@PathVariable("table") String ll1l111111l1) { try { List lllllll1111l = llll1111lllll.llllll111l1ll11(ll1l111111l1); return JsonResult.OK(lllllll1111l); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W6KGo5L+h5oGv5aSx6LSlOiB7fQ=="), e.getMessage()); return JsonResult.FAIL_OPERATION("获取" + ll1l111111l1 + OOO0OO00O00O00OO.l11llll1ll11ll1("6KGo55qE6KGo5L+h5oGv5aSx6LSl")); } } @O0O0OO0O00O00O00 @GetMapping("/rfcolfld/{table}") @Deprecated() public JsonResult ll11l1lll1l11ll(@PathVariable("table") String ll1l1l1ll1ll) { try { Map ll11l1ll1l1l = llll1111lllll.llll11l111l11l1(ll1l1l1ll1ll); return JsonResult.OK(ll11l1ll1l1l); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W6KGo57uT5p6E5aSx6LSlOiB7fQ=="), e.getMessage()); return JsonResult.FAIL_OPERATION("获取" + ll1l1l1ll1ll + OOO0OO00O00O00OO.l11llll1ll11ll1("6KGo55qE6KGo57uT5p6E5aSx6LSl")); } } @O0O0OO0O00O00O00 @GetMapping("/exmpdt/{tableName}") @Deprecated() public JsonResult lllll1l111lll1l(@PathVariable("tableName") String l1l1l111lll1) throws Exception { try { List> l111ll1l11l1 = llll1111lllll.ll111l1l111l11l(l1l1l111lll1, 5); return JsonResult.OK(l111ll1l11l1); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W6KGo5qC35L6L5pWw5o2u5YiX6KGo5aSx6LSlOiB7fQ=="), e.getMessage()); return JsonResult.FAIL_OPERATION("获取" + l1l1l111lll1 + OOO0OO00O00O00OO.l11llll1ll11ll1("6KGo55qE5qC35L6L5pWw5o2u5YiX6KGo5aSx6LSl")); } } @O0O0OO0O00O00O00 @PostMapping("/tbl") @Deprecated() public JsonResult l111l11l1l1ll11(@ModelAttribute O00000O0OOO0O0OO l1lll1lll11l) { try { llll1111lllll.lll111ll1lll1l1(l1lll1lll11l); } catch (Exception e) { return JsonResult.FAIL_OPERATION(e.getMessage()); } return JsonResult.OK().msg(OOO0OO00O00O00OO.l11llll1ll11ll1("5pWw5o2u6KGo5re75Yqg5oiQ5Yqf")); } @O0O0OO0O00O00O00 @PostMapping("/drp/{tableName}") @Deprecated() public JsonResult l11111l1111ll11(@PathVariable("tableName") String l11111llllll) { String ll1ll111l1l1 = llll1111lllll.llll11l1lll1111(l11111llllll); if (ll1ll111l1l1 != null) { return JsonResult.FAIL_OPERATION(ll1ll111l1l1); } return JsonResult.OK().msg(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yig6Zmk5pWw5o2u6KGoIA==") + l11111llllll + OOO0OO00O00O00OO.l11llll1ll11ll1("IOaIkOWKnw==")); } @O0O0OO0O00O00O00 @PostMapping("/rnm/{tableName}") @Deprecated() public JsonResult lll1l111ll111ll(@PathVariable("tableName") String l1l1lll1l1l1, @ModelAttribute O00000O0OOO0O0OO lllllll1l11l) { String l1llll1lll11 = llll1111lllll.lll1ll1ll1llll1(l1l1lll1l1l1, lllllll1l11l); if (l1llll1lll11 != null) { return JsonResult.FAIL_OPERATION(l1llll1lll11); } return JsonResult.OK().msg(OOO0OO00O00O00OO.l11llll1ll11ll1("6YeN5ZG95ZCN5pWw5o2u6KGoIA==") + l1l1lll1l1l1 + OOO0OO00O00O00OO.l11llll1ll11ll1("IOaIkOWKn++8jOivt+eojeWQjuehruiupOS/ruaUuee7k+aenOOAgg==")); } @O0O0OO0O00O00O00 @PostMapping("/mdf/{tableName}") @Deprecated() public JsonResult ll1l1l1l1111lll(@PathVariable("tableName") String l1111111llll, HttpServletRequest l11l11l1l111) { String ll11ll1llll1 = l11l11l1l111.getParameter(OOO0OO00O00O00OO.l11llll1ll11ll1("Y29uZmlnZGF0YQ==")); boolean l1lll1l11lll = OOO0OO00O00O00OO.l11llll1ll11ll1("dHJ1ZQ==").equals(l11l11l1l111.getParameter(OOO0OO00O00O00OO.l11llll1ll11ll1("dXBkYXRlQ29kZXM="))); boolean ll1lll111111 = OOO0OO00O00O00OO.l11llll1ll11ll1("dHJ1ZQ==").equals(l11l11l1l111.getParameter(OOO0OO00O00O00OO.l11llll1ll11ll1("Z2VuZXJhdGVDb2Rlcw=="))); try { String ll1lllll1l1l = llll1111lllll.l1l1l111l111l11(l1111111llll, ll11ll1llll1, ll1lll111111, l1lll1l11lll); return JsonResult.OK(ll1lllll1l1l); } catch (Exception e) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("55Sf5oiQ5Luj56CB5aSx6LSlOiB7fQ=="), e.getMessage()); return JsonResult.FAIL_OPERATION(e.getMessage()); } } @O0O0OO0O00O00O00 @PostMapping("/tblIdx") @Deprecated() public JsonResult l1l11111l11l111(@ModelAttribute OO0OOO00000O00O0 l11l11l111ll) { boolean l1l111l11ll1 = llll1111lllll.ll1l11ll1l1l1l1(l11l11l111ll); if (l1l111l11ll1) { return JsonResult.OK(); } return JsonResult.FAIL_OPERATION(""); } @O0O0OO0O00O00O00 @PostMapping("/drpTblIdx") @Deprecated() public JsonResult l11l111ll11lll1(@ModelAttribute OO0OOO00000O00O0 l111l111111l) { boolean ll11lll11l1l = llll1111lllll.llll111l11l1ll1(l111l111111l); if (ll11lll11l1l) { return JsonResult.OK(); } return JsonResult.FAIL_OPERATION(""); } @O0O0OO0O00O00O00 @PostMapping("/eqs") @Deprecated() public JsonResult l1lll1111ll111l(@RequestBody Map l1l1l1lll1ll) { if (V.isEmpty(l1l1l1lll1ll) || l1l1l1lll1ll.get(OOO0OO00O00O00OO.l11llll1ll11ll1("c3Fs")) == null) { return JsonResult.FAIL_EXCEPTION(OOO0OO00O00O00OO.l11llll1ll11ll1("5Y+C5pWw6ZSZ6K+v")); } Object lll1ll1l1lll = l1l1l1lll1ll.get(OOO0OO00O00O00OO.l11llll1ll11ll1("ZXh0Q29udmVydG9yQ29sdW1ucw==")); List l11ll111l1l1 = Collections.emptyList(); if (lll1ll1l1lll != null) { l11ll111l1l1 = JSON.parseArray(JSON.toJSONString(lll1ll1l1lll), O000000O0O0OO000.class); } int lll11l111lll = 7; Object ll1l1l1ll1l1 = l1l1l1lll1ll.get(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGF5cw==")); if (ll1l1l1ll1l1 != null) { lll11l111lll = Integer.valueOf(String.valueOf(ll1l1l1ll1l1)); } try { String ll1l1llll11l = String.valueOf(l1l1l1lll1ll.get(OOO0OO00O00O00OO.l11llll1ll11ll1("c3Fs"))); List> lll11111l11l = SqlExecutor.executeQuery(ll1l1llll11l, Collections.emptyList()); if (V.isEmpty(lll11111l11l)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5pWw5o2u5Li656m6")); } Map> l1l1lll11l11 = new HashMap<>(); if (V.notEmpty(l11ll111l1l1)) { Map> l1lllll1l1l1 = new HashMap<>(); for (O000000O0O0OO000 l1ll111l1111 : l11ll111l1l1) { if (l1ll111l1111.getColumnExt() != null && V.equals("D", l1ll111l1111.getColumnExt().getRefType()) && V.notEmpty(l1ll111l1111.getColumnExt().getRefColumn())) { String lll1lll111ll = l1ll1lll1llll(l1ll111l1111); if (V.isEmpty(lll1lll111ll) || l1lllll1l1l1.get(lll1lll111ll) != null) { continue; } List l111ll11ll1l = ll1lll11l11ll.getLabelValueList(l1ll111l1111.getColumnExt().getRefColumn()); Map ll111l11l1ll = BeanUtils.convertToStringKeyObjectMap(l111ll11ll1l, LabelValue::getValue); l1lllll1l1l1.put(lll1lll111ll, ll111l11l1ll); List lll1111llll1 = l111ll11ll1l.stream().map(LabelValue::getLabel).collect(Collectors.toList()); l1l1lll11l11.put(l1ll111l1111.getFieldLabel(), lll1111llll1); } else if (l1ll111l1111.getColumnExt() != null && V.equals("T", l1ll111l1111.getColumnExt().getRefType()) && V.notEmpty(l1ll111l1111.getColumnExt().getRefTable()) && V.notEmpty(l1ll111l1111.getColumnExt().getRefColumn()) && V.notEmpty(l1ll111l1111.getColumnExt().getAsColumn())) { String l1ll11lll111 = l1ll1lll1llll(l1ll111l1111); if (V.isEmpty(l1ll11lll111) || l1lllll1l1l1.get(l1ll11lll111) != null) { continue; } LabelValue llll11l11l11 = new LabelValue(l1ll111l1111.getColumnExt().getAsColumn(), l1ll111l1111.getColumnExt().getRefColumn()); List l111ll11ll1l = llll1111lllll.l1l111ll11l1111(l1ll111l1111.getColumnExt().getRefTable(), llll11l11l11, 20); Map ll111l11l1ll = BeanUtils.convertToStringKeyObjectMap(l111ll11ll1l, LabelValue::getValue); l1lllll1l1l1.put(l1ll11lll111, ll111l11l1ll); List l1ll111l1ll1 = l111ll11ll1l.stream().map(LabelValue::getLabel).collect(Collectors.toList()); l1l1lll11l11.put(l1ll111l1111.getFieldLabel(), l1ll111l1ll1); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("RGF0ZQ==").equals(l1ll111l1111.getFieldPackagingType())) { Date l111l11l1l11 = new Date(); Date ll1l111111l1 = D.addDays(l111l11l1l11, -lll11l111lll + 1); List l1ll11l1ll1l = D.rangeDateList(ll1l111111l1, l111l11l1l11); l1l1lll11l11.put(l1ll111l1111.getFieldLabel(), l1ll11l1ll1l); } } for (Map llll1l1111l1 : lll11111l11l) { for (O000000O0O0OO000 l1ll111l1111 : l11ll111l1l1) { if ((V.notEmpty(l1ll111l1111.getColumnExt()) && V.equals("D", l1ll111l1111.getColumnExt().getRefType()) && V.notEmpty(l1ll111l1111.getColumnExt().getRefColumn())) || (V.notEmpty(V.notEmpty(l1ll111l1111.getColumnExt()) && V.equals("T", l1ll111l1111.getColumnExt().getRefType()) && V.notEmpty(l1ll111l1111.getColumnExt().getRefTable()) && V.notEmpty(l1ll111l1111.getColumnExt().getRefColumn()) && V.notEmpty(l1ll111l1111.getColumnExt().getAsColumn())))) { String lll1lll111ll = l1ll1lll1llll(l1ll111l1111); if (V.isEmpty(lll1lll111ll) || l1lllll1l1l1.get(lll1lll111ll) == null) { continue; } Map ll1l1lllll1l = l1lllll1l1l1.get(lll1lll111ll); String l111l1llll1l = l1ll111l1111.getFieldLabel(); if (V.isEmpty(ll1l1lllll1l) || V.isEmpty(llll1l1111l1.get(l111l1llll1l))) { continue; } String llll11lll11l = String.valueOf(llll1l1111l1.get(l111l1llll1l)); if (ll1l1lllll1l.get(llll11lll11l) != null) { llll1l1111l1.put(l111l1llll1l, ll1l1lllll1l.get(llll11lll11l).getLabel()); } } } } } String l1ll111l1l11 = ""; String l11llll111l1 = "数量"; String l1ll11111l11 = ""; List l11ll111lll1 = new ArrayList<>(); List lllll11111ll = new ArrayList<>(); Map l11l11111l1l = lll11111l11l.get(0); Set l1l1l1l1l1l1 = l11l11111l1l.keySet(); if (l1l1l1l1l1l1.containsAll(Arrays.asList(ll1l1l1l11lll, ll1111ll1ll11))) { l1ll111l1l11 = ll1l1l1l11lll; l1ll11111l11 = ll1111ll1ll11; if (l1l1l1l1l1l1.contains(ll11llllllll1)) { l11llll111l1 = ll11llllllll1; lllll11111ll = lll11111l11l.stream().map(llll1l1111l1 -> String.valueOf(llll1l1111l1.get(ll11llllllll1))).distinct().collect(Collectors.toList()); } l11ll111lll1 = lll11111l11l.stream().map(llll1l1111l1 -> String.valueOf(llll1l1111l1.get(ll1l1l1l11lll))).distinct().collect(Collectors.toList()); } else { Set l11lll11lll1 = new HashSet<>(); for (Map llll1l1111l1 : lll11111l11l) { for (Map.Entry l1llll1ll1l1 : llll1l1111l1.entrySet()) { Object llll11lll11l = l1llll1ll1l1.getValue(); if (llll11lll11l instanceof Long || llll11lll11l instanceof Integer || llll11lll11l instanceof Double || llll11lll11l instanceof Float) { l1ll11111l11 = l1llll1ll1l1.getKey(); } else { l11lll11lll1.add(l1llll1ll1l1.getKey()); } } } if (V.isEmpty(l11lll11lll1) || V.isEmpty(l1ll11111l11)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("5pWw5o2u5qC85byP5pyq5Yy56YWN")); } String l11ll11llll1 = ""; Double lll1lll1l1ll = 0.00; for (String ll11ll1l1l1l : l11lll11lll1) { List l1lll1l1l1l1 = lll11111l11l.stream().map(llll1l1111l1 -> String.valueOf(llll1l1111l1.get(ll11ll1l1l1l))).distinct().collect(Collectors.toList()); if (l1lll1l1l1l1.size() == lll11111l11l.size() && V.isEmpty(l1ll111l1l11)) { l1ll111l1l11 = ll11ll1l1l1l; l11ll111lll1 = l1lll1l1l1l1; } else { l11llll111l1 = ll11ll1l1l1l; lllll11111ll = l1lll1l1l1l1; } if (V.isEmpty(l1ll111l1l11)) { Double ll1l1lllllll = l1lll1l1l1l1.size() / Double.valueOf(String.valueOf(lll11111l11l.size())); if (ll1l1lllllll > lll1lll1l1ll) { l11ll11llll1 = ll11ll1l1l1l; } lll1lll1l1ll = ll1l1lllllll; } } if (V.isEmpty(l1ll111l1l11)) { for (String ll11ll1l1l1l : l11lll11lll1) { List l1lll1l1l1l1 = lll11111l11l.stream().map(llll1l1111l1 -> { return String.valueOf(llll1l1111l1.get(ll11ll1l1l1l)); }).distinct().collect(Collectors.toList()); if (V.equals(ll11ll1l1l1l, l11ll11llll1)) { l1ll111l1l11 = ll11ll1l1l1l; l11ll111lll1 = l1lll1l1l1l1; } else { l11llll111l1 = ll11ll1l1l1l; lllll11111ll = l1lll1l1l1l1; } } } } boolean ll1111ll11ll = false; if (V.isEmpty(lllll11111ll)) { lllll11111ll.add("数量"); ll1111ll11ll = true; } if (V.notEmpty(l1l1lll11l11.get(l11llll111l1))) { lllll11111ll = l1l1lll11l11.get(l11llll111l1); } if (V.notEmpty(l1l1lll11l11.get(l1ll111l1l11))) { l11ll111lll1 = l1l1lll11l11.get(l1ll111l1l11); } Map> l11l111ll1l1 = new HashMap<>(); for (String l1lllll111l1 : lllll11111ll) { List l1111l1l11ll = new ArrayList<>(); for (String l11l111111l1 : l11ll111lll1) { Object llll11lll11l = 0; for (Map l111l11llll1 : lll11111l11l) { String l111111ll111 = String.valueOf(l111l11llll1.get(l1ll111l1l11)); String l11l1ll1l1l1 = String.valueOf(l111l11llll1.get(l11llll111l1)); if (V.equals(l111111ll111, l11l111111l1) && (ll1111ll11ll || V.equals(l11l1ll1l1l1, l1lllll111l1))) { llll11lll11l = l111l11llll1.get(l1ll11111l11); break; } } l1111l1l11ll.add(llll11lll11l); } l11l111ll1l1.put(l1lllll111l1, l1111l1l11ll); } Map lllll1l1111l = new HashMap(); if (!ll1l1l1l11lll.equals(l1ll111l1l11)) { lllll1l1111l.put(l1ll111l1l11, ll1l1l1l11lll); } if (V.notEmpty(l11llll111l1) && !V.equals(l1ll111l1l11, l11llll111l1) && !"数量".equals(l11llll111l1) && !ll11llllllll1.equals(l11llll111l1)) { lllll1l1111l.put(l11llll111l1, ll11llllllll1); } if (!ll1111ll1ll11.equals(l1ll11111l11)) { lllll1l1111l.put(l1ll11111l11, ll1111ll1ll11); } Map llll1ll1l1ll = new HashMap<>(); llll1ll1l1ll.put(OOO0OO00O00O00OO.l11llll1ll11ll1("dGl0bGU="), l11ll111lll1); llll1ll1l1ll.put(OOO0OO00O00O00OO.l11llll1ll11ll1("Z3JvdXBEYXRh"), l11l111ll1l1); llll1ll1l1ll.put(OOO0OO00O00O00OO.l11llll1ll11ll1("YWR2aWNlRmllbGRNYXA="), lllll1l1111l); return JsonResult.OK(llll1ll1l1ll); } catch (Exception e) { return JsonResult.FAIL_EXCEPTION(OOO0OO00O00O00OO.l11llll1ll11ll1("5p+l6K+i5omn6KGM5aSx6LSl77yM6K+35qOA5p+lU1FM6K+t5Y+l")); } } @Deprecated() private String l1ll1lll1llll(O000000O0O0OO000 l11ll1l111l1) { if (V.equals("T", l11ll1l111l1.getColumnExt().getRefType())) { return l11ll1l111l1.getColumnExt().getRefTable() + "__" + l11ll1l111l1.getColumnExt().getRefColumn(); } if (V.equals("D", l11ll1l111l1.getColumnExt().getRefType())) { return l11ll1l111l1.getColumnExt().getRefColumn(); } return ""; } }