com.diboot.devtools.v2.OO00O00OO0OO0OOO 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.util.SqlFileInitializer;
import com.diboot.core.util.V;
import com.diboot.core.vo.JsonResult;
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.validation.Valid;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@Hidden
@Slf4j
@RestController
@RequestMapping("/diboot/devtools/pnds")
@Deprecated()
public class OO00O00OO0OO0OOO {
private static final String lll11l11l1ll1 = OOO0OO00O00O00OO.l11llll1ll11ll1("U0VMRUNUIGlkIEZST00gJHtTQ0hFTUF9LmRpYm9vdF9jdXN0b21fcGFuZWwgV0hFUkUgaWQ9MA==");
@Autowired
private OO0OOOO0O000O000 l1lllllll1l1l;
@Autowired
private O0OO0OO000OO0000 l1l11lll11lll;
@Autowired
private O0OOO0OO00OOO00O ll1lllllll11l;
@O0O0OO0O00O00O00
@PostMapping("/gn")
@Deprecated()
public JsonResult lll1lllllll11l1(@Valid @ModelAttribute OO00OOOOOOOOO0OO llll1lll1l11) throws Exception {
String llll1ll1l111 = OO0O0OOOOO0O0O00.lll1l1l1lllll11();
if (V.notEmpty(llll1ll1l111)) {
return JsonResult.FAIL_VALIDATION(llll1ll1l111);
}
String l111l1111l11 = l1lllllll1l1l.lll1ll111ll1l11(llll1lll1l11);
if (V.notEmpty(l111l1111l11)) {
return JsonResult.FAIL_OPERATION(l111l1111l11);
}
OOO0OO00O00OO00O lll1lll1llll = l1lllllll1l1l.l1l1l11l1l1l111(llll1lll1l11, false);
l1lllllll1l1l.ll1l1111llll1l1(lll1lll1llll);
return JsonResult.OK(lll1lll1llll);
}
@O0O0OO0O00O00O00
@PostMapping("/svastpn")
@Deprecated()
public JsonResult lllll11llll1lll(@Valid @ModelAttribute OO00OOOOOOOOO0OO l1llllllll1l) throws Exception {
String l1lll111ll1l = OO0O0OOOOO0O0O00.lll1l1l1lllll11();
if (V.notEmpty(l1lll111ll1l)) {
return JsonResult.FAIL_VALIDATION(l1lll111ll1l);
}
OOO0OO00O00OO00O l1lll1ll11ll = l1lllllll1l1l.l1l1l11l1l1l111(l1llllllll1l, true);
l1lllllll1l1l.ll1l1111llll1l1(l1lll1ll11ll);
return JsonResult.OK(l1lll1ll11ll);
}
@O0O0OO0O00O00O00
@GetMapping("/pnls")
@Deprecated()
public JsonResult lllll1l11ll1lll() throws Exception {
List ll1ll1l111ll = l1l11lll11lll.getEntityList(Wrappers.lambdaQuery().notIn(OOO0OO00O00OO00O::getProjectType, Arrays.asList(O0O0O0000OO0O000.ll1l1llll11lll, O0O0O0000OO0O000.l111l1ll1l1111)).orderByDesc(OOO0OO00O00OO00O::getId));
l1lllllll1l1l.lll1ll1111llll1(ll1ll1l111ll);
return JsonResult.OK(ll1ll1l111ll);
}
@O0O0OO0O00O00O00
@PostMapping("rm/{id}")
@Deprecated()
public JsonResult l1l111l1l1ll11l(@PathVariable("id") Long l11ll1ll1ll1) throws Exception {
boolean l1ll111l1l11 = l1l11lll11lll.deleteEntity(l11ll1ll1ll1);
return JsonResult.OK(l1ll111l1l11);
}
@O0O0OO0O00O00O00
@GetMapping("/pnif/{code}")
@Deprecated()
public JsonResult ll11111lllllll1(@PathVariable("code") String l111ll1111l1) throws Exception {
OOO0OO00O00OO00O lll1ll11l11l = O00OOO000OOOOO00.l1l11ll111llll1(l111ll1111l1);
if (lll1ll11l11l == null) {
return JsonResult.FAIL_EXCEPTION(OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5pWw5o2u5aSx6LSl"));
}
l1lllllll1l1l.ll1l1111llll1l1(lll1ll11l11l);
return JsonResult.OK(lll1ll11l11l);
}
@O0O0OO0O00O00O00
@GetMapping("/drls")
@Deprecated()
public JsonResult l1llll1ll1l1l1l() throws Exception {
return JsonResult.OK(ll1lllllll11l.l111l11lll111l1(null));
}
@O0O0OO0O00O00O00
@PostMapping("/cpntb")
@Deprecated()
public JsonResult l1llllll111lll1() throws Exception {
String l1l1111111ll = OO0O0OOOOO0O0O00.lll1l1l1lllll11();
if (V.notEmpty(l1l1111111ll)) {
return JsonResult.FAIL_VALIDATION(l1l1111111ll);
}
boolean llll11ll1lll = SqlFileInitializer.checkSqlExecutable(lll11l11l1ll1);
if (llll11ll1lll) {
return JsonResult.OK(OOO0OO00O00O00OO.l11llll1ll11ll1("6Z2i5p2/6KGo5bey5a2Y5Zyo"));
}
String l1llll1ll111 = O0OOOO00OO0O00O0.l11lll1llll1111();
SqlFileInitializer.extractAndExecuteSqls(this.getClass(), l1llll1ll111, new ArrayList() {
{
add(OOO0OO00O00O00OO.l11llll1ll11ll1("ZGlib290X2N1c3RvbV9wYW5lbA=="));
}
}, Collections.emptyList());
return JsonResult.OK(OOO0OO00O00O00OO.l11llll1ll11ll1("5Yib5bu66Z2i5p2/6KGo5oiQ5Yqf"));
}
@O0O0OO0O00O00O00
@GetMapping("/chknmdup")
@Deprecated()
public JsonResult l11ll11ll1111l1(@RequestParam(required = false, name = "id") Long l1ll1l1ll1ll, @RequestParam(name = "panelName") String ll1l1111l1ll) {
if (V.notEmpty(ll1l1111l1ll)) {
LambdaQueryWrapper llll1l111ll1 = Wrappers.lambdaQuery().select(OOO0OO00O00OO00O::getId).eq(OOO0OO00O00OO00O::getPanelName, ll1l1111l1ll);
if (V.notEmpty(l1ll1l1ll1ll)) {
llll1l111ll1.ne(OOO0OO00O00OO00O::getId, l1ll1l1ll1ll);
}
boolean lllll1ll1l1l = l1l11lll11lll.exists(llll1l111ll1);
if (lllll1ll1l1l) {
return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6Z2i5p2/5ZCN56ew5bey5a2Y5Zyo"));
}
}
return JsonResult.OK();
}
@O0O0OO0O00O00O00
@GetMapping("/chkcddup")
@Deprecated()
public JsonResult ll11l1l1ll11ll1(@RequestParam(required = false, name = "id") Long ll1ll1lll1ll, @RequestParam(name = "panelCode") String l11ll1l111l1) {
if (V.notEmpty(l11ll1l111l1)) {
LambdaQueryWrapper ll1l111l1l11 = Wrappers.lambdaQuery().select(OOO0OO00O00OO00O::getId).eq(OOO0OO00O00OO00O::getPanelCode, l11ll1l111l1);
if (V.notEmpty(ll1ll1lll1ll)) {
ll1l111l1l11.ne(OOO0OO00O00OO00O::getId, ll1ll1lll1ll);
}
boolean l111111l11l1 = l1l11lll11lll.exists(ll1l111l1l11);
if (l111111l11l1) {
return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6Z2i5p2/57yW56CB5bey5a2Y5Zyo"));
}
}
return JsonResult.OK();
}
}