diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/controller/OnlCgformAuthController.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/controller/OnlCgformAuthController.java index 7cc5043e..286718d1 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/controller/OnlCgformAuthController.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/controller/OnlCgformAuthController.java @@ -101,7 +101,7 @@ public class OnlCgformAuthController { @DeleteMapping({"/authData/{id}"}) public Result b(@PathVariable("id") String paramString) { this.onlAuthDataService.deleteOne(paramString); - return Result.ok("删除成功!"); + return Result.OK("删除成功!"); } diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/a/a.java new file mode 100644 index 00000000..9f1c3f2a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/a/a.java @@ -0,0 +1,178 @@ +package com.jero.generater.modules.online.cgform.a; + +public class a { + private String a; + private String b; + private String c; + private String d; + private String e; + private String f; + private String g; + private String h; + + /* access modifiers changed from: protected */ + public boolean a(Object obj) { + return obj instanceof a; + } + + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof a)) { + return false; + } + a aVar = (a) o; + if (!aVar.a(this)) { + return false; + } + String table = getTable(); + String table2 = aVar.getTable(); + if (table != null ? !table.equals(table2) : table2 != null) { + return false; + } + String txt = getTxt(); + String txt2 = aVar.getTxt(); + if (txt != null ? !txt.equals(txt2) : txt2 != null) { + return false; + } + String key = getKey(); + String key2 = aVar.getKey(); + if (key != null ? !key.equals(key2) : key2 != null) { + return false; + } + String linkField = getLinkField(); + String linkField2 = aVar.getLinkField(); + if (linkField != null ? !linkField.equals(linkField2) : linkField2 != null) { + return false; + } + String idField = getIdField(); + String idField2 = aVar.getIdField(); + if (idField != null ? !idField.equals(idField2) : idField2 != null) { + return false; + } + String pidField = getPidField(); + String pidField2 = aVar.getPidField(); + if (pidField != null ? !pidField.equals(pidField2) : pidField2 != null) { + return false; + } + String pidValue = getPidValue(); + String pidValue2 = aVar.getPidValue(); + if (pidValue != null ? !pidValue.equals(pidValue2) : pidValue2 != null) { + return false; + } + String condition = getCondition(); + String condition2 = aVar.getCondition(); + if (condition == null) { + if (condition2 == null) { + return true; + } + } else if (condition.equals(condition2)) { + return true; + } + return false; + } + + public int hashCode() { + int i = 43; + String table = getTable(); + int hashCode = table == null ? 43 : table.hashCode(); + String txt = getTxt(); + int i2 = (hashCode + 59) * 59; + int hashCode2 = txt == null ? 43 : txt.hashCode(); + String key = getKey(); + int i3 = (hashCode2 + i2) * 59; + int hashCode3 = key == null ? 43 : key.hashCode(); + String linkField = getLinkField(); + int i4 = (hashCode3 + i3) * 59; + int hashCode4 = linkField == null ? 43 : linkField.hashCode(); + String idField = getIdField(); + int i5 = (hashCode4 + i4) * 59; + int hashCode5 = idField == null ? 43 : idField.hashCode(); + String pidField = getPidField(); + int i6 = (hashCode5 + i5) * 59; + int hashCode6 = pidField == null ? 43 : pidField.hashCode(); + String pidValue = getPidValue(); + int i7 = (hashCode6 + i6) * 59; + int hashCode7 = pidValue == null ? 43 : pidValue.hashCode(); + String condition = getCondition(); + int i8 = (hashCode7 + i7) * 59; + if (condition != null) { + i = condition.hashCode(); + } + return i8 + i; + } + + public void setCondition(String condition) { + this.h = condition; + } + + public void setIdField(String idField) { + this.e = idField; + } + + public void setKey(String key) { + this.c = key; + } + + public void setLinkField(String linkField) { + this.d = linkField; + } + + public void setPidField(String pidField) { + this.f = pidField; + } + + public void setPidValue(String pidValue) { + this.g = pidValue; + } + + public void setTable(String table) { + this.a = table; + } + + public void setTxt(String txt) { + this.b = txt; + } + + public String toString() { + return "LinkDown(table=" + getTable() + ", txt=" + getTxt() + ", key=" + getKey() + ", linkField=" + getLinkField() + ", idField=" + getIdField() + ", pidField=" + getPidField() + ", pidValue=" + getPidValue() + ", condition=" + getCondition() + ")"; + } + + public String getTable() { + return this.a; + } + + public String getTxt() { + return this.b; + } + + public String getKey() { + return this.c; + } + + public String getLinkField() { + return this.d; + } + + public String getIdField() { + return this.e; + } + + public String getPidField() { + return this.f; + } + + public String getPidValue() { + return this.g; + } + + public String getCondition() { + return this.h; + } + + private String getQuerySql() { + new StringBuffer().append(b.a); + return null; + } +} \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/a.java new file mode 100644 index 00000000..b3126007 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/a.java @@ -0,0 +1,1228 @@ +package com.jero.generater.modules.online.cgform.b; +import cn.hutool.core.io.FileUtil; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import java.io.BufferedInputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.net.URLEncoder; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.stream.Collectors; +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.sql.DataSource; + +import com.google.common.collect.Lists; +import com.jero.generater.modules.online.cgform.service.IOnlCgformHeadService; +import com.jero.generater.modules.online.cgform.service.IOnlineService; +import org.apache.poi.ss.usermodel.Workbook; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.common.aspect.annotation.OnlineAuth; +import com.jero.common.aspect.annotation.PermissionData; +import com.jero.common.constant.enums.ModuleType; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.DictModel; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.auth.service.IOnlAuthPageService; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.model.OnlGenerateModel; +import com.jero.generater.modules.online.cgform.model.TreeModel; +import com.jero.generater.modules.online.cgform.model.OnlComplexModel; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import com.jero.generater.modules.online.cgform.service.IOnlCgformSqlService; +import com.jero.generater.modules.online.cgform.util.EnhanceJsUtil; +import com.jero.generater.modules.online.config.b.d; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.jeecgframework.poi.excel.ExcelExportUtil; +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.jdbc.support.incrementer.OracleSequenceMaxValueIncrementer; +import org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; + +@RestController("onlCgformApiController") +@RequestMapping({"/online/cgform/api"}) +public class a { + private static final Logger a = LoggerFactory.getLogger(a.class); + @Autowired + private IOnlCgformHeadService onlCgformHeadService; + @Autowired + private IOnlCgformFieldService onlCgformFieldService; + @Autowired + private IOnlCgformSqlService onlCgformSqlService; + @Autowired + private IOnlAuthPageService onlAuthPageService; + @Autowired + private ISysBaseAPI sysBaseAPI; + @Autowired + private IOnlineService onlineService; + @Value("${jeecg.path.upload}") + private String upLoadPath; + @Value("${jeecg.uploadType}") + private String uploadType; + + public a() { + } + + @PostMapping({"/addAll"}) + public Result a(@RequestBody com.jero.generater.modules.online.cgform.model.a var1) { + try { + String var2 = var1.getHead().getTableName(); + return d.a(var2) ? Result.error("数据库表[" + var2 + "]已存在,请从数据库导入表单") : this.onlCgformHeadService.addAll(var1); + } catch (Exception var3) { + a.error("OnlCgformApiController.addAll()发生异常:" + var3.getMessage(), var3); + return Result.error("操作失败"); + } + } + + @PutMapping({"/editAll"}) + public Result b(@RequestBody com.jero.generater.modules.online.cgform.model.a var1) { + try { + return this.onlCgformHeadService.editAll(var1); + } catch (Exception var3) { + a.error("OnlCgformApiController.editAll()发生异常:" + var3.getMessage(), var3); + return Result.error("操作失败"); + } + } + + @AutoLog( + operateType = 1, + value = "online列表加载", + module = ModuleType.ONLINE + ) + @OnlineAuth("getColumns") + @GetMapping({"/getColumns/{code}"}) + public Result a(@PathVariable("code") String var1) { + Result var2 = new Result(); + OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var3 == null) { + var2.error500("实体不存在"); + return var2; + } else { + b var4 = this.onlineService.queryOnlineConfig(var3); + var4.setIsDesForm(var3.getIsDesForm()); + var4.setDesFormCode(var3.getDesFormCode()); + var2.setResult(var4); + var2.setOnlTable(var3.getTableName()); + return var2; + } + } + + @AutoLog( + operateType = 1, + value = "online列表数据查询", + module = ModuleType.ONLINE + ) + @PermissionData + @OnlineAuth("getData") + @GetMapping({"/getData/{code}"}) + public Result> a(@PathVariable("code") String var1, HttpServletRequest var2) { + Result var3 = new Result(); + OnlCgformHead var4 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var4 == null) { + var3.error500("实体不存在"); + return var3; + } else { + try { + String var5 = var4.getTableName(); + Map var6 = com.jero.generater.modules.online.cgform.util.b.a(var2); + Map var7 = this.onlCgformFieldService.queryAutolistPage(var5, var1, var6, (List)null); + this.a(var4, var7); + var3.setResult(var7); + } catch (Exception var8) { + a.error(var8.getMessage(), var8); + var3.error500("数据库查询失败," + var8.getMessage()); + } + + var3.setOnlTable(var4.getTableName()); + return var3; + } + } + + @AutoLog( + operateType = 1, + value = "online表单加载", + module = ModuleType.ONLINE + ) + @OnlineAuth("getFormItem") + @GetMapping({"/getFormItem/{code}"}) + public Result b(@PathVariable("code") String var1, HttpServletRequest var2) { + OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var3 == null) { + Result.error("表不存在"); + } + + Result var4 = new Result(); + OnlCgformEnhanceJs var5 = this.onlCgformHeadService.queryEnhanceJs(var1, "form"); + JSONObject var6 = this.onlineService.queryOnlineFormObj(var3, var5); + var6.put("formTemplate", var3.getFormTemplate()); + if (var3.getTableType() == 2) { + JSONObject var7 = var6.getJSONObject("schema"); + String var8 = var3.getSubTableStr(); + if (oConvertUtils.isNotEmpty(var8)) { + ArrayList var9 = new ArrayList(); + String[] var10 = var8.split(","); + int var11 = var10.length; + + for(int var12 = 0; var12 < var11; ++var12) { + String var13 = var10[var12]; + OnlCgformHead var14 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var13)); + if (var14 != null) { + var9.add(var14); + } + } + + if (var9.size() > 0) { + Collections.sort(var9, new Comparator() { + public int a(OnlCgformHead var1, OnlCgformHead var2) { + Integer var3 = var1.getTabOrderNum(); + if (var3 == null) { + var3 = 0; + } + + Integer var4 = var2.getTabOrderNum(); + if (var4 == null) { + var4 = 0; + } + + return var3.compareTo(var4); + } + }); + Iterator var16 = var9.iterator(); + + while(var16.hasNext()) { + OnlCgformHead var17 = (OnlCgformHead)var16.next(); + List var18 = this.onlCgformFieldService.queryAvailableFields(var17.getId(), var17.getTableName(), (String)null, false); + EnhanceJsUtil.b(var5, var17.getTableName(), var18); + JSONObject var19 = new JSONObject(); + List var20 = this.onlAuthPageService.queryFormDisabledCode(var17.getId()); + if (1 == var17.getRelationType()) { + var19 = com.jero.generater.modules.online.cgform.util.b.a(var18, var20, (e)null); + } else { + var19.put("columns", com.jero.generater.modules.online.cgform.util.b.a(var18, var20)); + List var15 = this.onlAuthPageService.queryListHideButton((String)null, var17.getId()); + var19.put("hideButtons", var15); + } + + var19.put("id", var17.getId()); + var19.put("describe", var17.getTableTxt()); + var19.put("key", var17.getTableName()); + var19.put("view", "tab"); + var19.put("order", var17.getTabOrderNum()); + var19.put("relationType", var17.getRelationType()); + var7.getJSONObject("properties").put(var17.getTableName(), var19); + } + } + } + + if (var5 != null && oConvertUtils.isNotEmpty(var5.getCgJs())) { + var6.put("enhanceJs", EnhanceJsUtil.a(var5.getCgJs())); + } + } + + var4.setResult(var6); + var4.setOnlTable(var3.getTableName()); + return var4; + } + + @AutoLog( + operateType = 1, + value = "online根据表名加载表单", + module = ModuleType.ONLINE + ) + @GetMapping({"/getFormItemBytbname/{table}"}) + public Result a(@PathVariable("table") String var1, @RequestParam(name = "taskId",required = false) String var2) { + Result var3 = new Result(); + LambdaQueryWrapper var4 = new LambdaQueryWrapper(); + var4.eq(OnlCgformHead::getTableName, var1); + OnlCgformHead var5 = (OnlCgformHead)this.onlCgformHeadService.getOne(var4); + if (var5 == null) { + Result.error("表不存在"); + } + + JSONObject var6 = new JSONObject(); + var5.setTaskId(var2); + var6.put("schema", this.onlCgformHeadService.queryFormItem(var5)); + var6.put("head", var5); + var3.setResult(var6); + var3.setOnlTable(var1); + return var3; + } + + @OnlineAuth("getEnhanceJs") + @GetMapping({"/getEnhanceJs/{code}"}) + public Result c(@PathVariable("code") String var1, HttpServletRequest var2) { + String var3 = ""; + OnlCgformEnhanceJs var4 = this.onlCgformHeadService.queryEnhanceJs(var1, "form"); + if (var4 != null && oConvertUtils.isNotEmpty(var4.getCgJs())) { + var3 = EnhanceJsUtil.b(var4.getCgJs(), (List)null); + } + + return Result.OK(var3); + } + + @AutoLog( + operateType = 1, + value = "online表单数据查询" + ) + @GetMapping({"/form/{code}/{id}"}) + public Result b(@PathVariable("code") String var1, @PathVariable("id") String var2) { + try { + Map var3 = this.onlCgformHeadService.queryManyFormData(var1, var2); + return Result.OK(com.jero.generater.modules.online.cgform.util.b.b(var3)); + } catch (Exception var4) { + a.error("Online表单查询异常:" + var4.getMessage(), var4); + return Result.error("查询失败," + var4.getMessage()); + } + } + + @GetMapping({"/subform/{table}/{mainId}"}) + public Result c(@PathVariable("table") String var1, @PathVariable("mainId") String var2) { + try { + Map var3 = this.onlCgformHeadService.querySubFormData(var1, var2); + return Result.OK(com.jero.generater.modules.online.cgform.util.b.b(var3)); + } catch (Exception var4) { + a.error("Online表单查询异常:" + var4.getMessage(), var4); + return Result.error("查询失败," + var4.getMessage()); + } + } + + @GetMapping({"/subform/list/{table}/{mainId}"}) + public Result d(@PathVariable("table") String var1, @PathVariable("mainId") String var2) { + try { + return Result.OK(this.onlCgformHeadService.queryManySubFormData(var1, var2)); + } catch (Exception var4) { + a.error("Online表单查询异常:" + var4.getMessage(), var4); + return Result.error("查询失败," + var4.getMessage()); + } + } + + @AutoLog( + operateType = 1, + value = "online根据表名查询表单数据", + module = ModuleType.ONLINE + ) + @GetMapping({"/form/table_name/{tableName}/{dataId}"}) + public Result e(@PathVariable("tableName") String var1, @PathVariable("dataId") String var2) { + try { + LambdaQueryWrapper var3 = new LambdaQueryWrapper(); + var3.eq(OnlCgformHead::getTableName, var1); + OnlCgformHead var4 = (OnlCgformHead)this.onlCgformHeadService.getOne(var3); + if (var4 == null) { + throw new Exception("OnlCgform tableName: " + var1 + " 不存在!"); + } else { + Result var5 = this.b(var4.getId(), var2); + var5.setOnlTable(var1); + return var5; + } + } catch (Exception var6) { + a.error("Online表单查询异常," + var6.getMessage(), var6); + return Result.error("查询失败," + var6.getMessage()); + } + } + + @AutoLog( + operateType = 2, + value = "online新增数据", + module = ModuleType.ONLINE + ) + @OnlineAuth("form") + @PostMapping({"/form/{code}"}) + public Result a(@PathVariable("code") String var1, @RequestBody JSONObject var2, HttpServletRequest var3) { + Result var4 = new Result(); + + try { + String var5 = com.jero.generater.modules.online.cgform.util.b.a(); + var2.put("id", var5); + String var6 = TokenUtils.getTokenByRequest(var3); + String var7 = this.onlCgformHeadService.saveManyFormData(var1, var2, var6); + var4.setSuccess(true); + var4.setResult(var5); + var4.setOnlTable(var7); + } catch (Exception var8) { + a.error("OnlCgformApiController.formAdd()发生异常:", var8); + var4.setSuccess(false); + var4.setMessage("保存失败," + com.jero.generater.modules.online.cgform.util.b.a(var8)); + } + + return var4; + } + + @AutoLog( + operateType = 3, + value = "online修改数据", + module = ModuleType.ONLINE + ) + @OnlineAuth("form") + @PutMapping({"/form/{code}"}) + public Result a(@PathVariable("code") String var1, @RequestBody JSONObject var2) { + try { + String var3 = this.onlCgformHeadService.editManyFormData(var1, var2); + Result var4 = Result.OK("修改成功!"); + var4.setOnlTable(var3); + return var4; + } catch (Exception var5) { + a.error("OnlCgformApiController.formEdit()发生异常:" + var5.getMessage(), var5); + return Result.error("修改失败," + com.jero.generater.modules.online.cgform.util.b.a(var5)); + } + } + + @AutoLog( + operateType = 4, + value = "online删除数据", + module = ModuleType.ONLINE + ) + @OnlineAuth("form") + @DeleteMapping({"/form/{code}/{id}"}) + public Result f(@PathVariable("code") String var1, @PathVariable("id") String var2) { + OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var3 == null) { + return Result.error("实体不存在"); + } else { + try { + String var4 = ""; + if ("Y".equals(var3.getIsTree())) { + var2 = this.onlCgformFieldService.queryTreeChildIds(var3, var2); + var4 = this.onlCgformFieldService.queryTreePids(var3, var2); + } + + if (var2.indexOf(",") > 0) { + String var5; + if (var3.getTableType() == 2) { + this.onlCgformFieldService.deleteAutoListMainAndSub(var3, var2); + } else { + var5 = var3.getTableName(); + this.onlCgformFieldService.deleteAutoListById(var5, var2); + } + + if ("Y".equals(var3.getIsTree())) { + var5 = var3.getTableName(); + String var6 = var3.getTreeIdField(); + String[] var7 = var4.split(","); + String[] var8 = var7; + int var9 = var7.length; + + for(int var10 = 0; var10 < var9; ++var10) { + String var11 = var8[var10]; + this.onlCgformFieldService.updateTreeNodeNoChild(var5, var6, var11); + } + } + } else { + this.onlCgformHeadService.deleteOneTableInfo(var1, var2); + } + + if (oConvertUtils.isNotEmpty(var3.getIsDesForm()) && "1".equals(var3.getIsDesForm())) { + this.onlCgformFieldService.deleteAutoList("design_form_data", "online_form_data_id", var2); + } + } catch (Exception var12) { + a.error("OnlCgformApiController.formEdit()发生异常:" + var12.getMessage(), var12); + return Result.error("删除失败"); + } + + Result var13 = Result.OK("删除成功!"); + var13.setOnlTable(var3.getTableName()); + return var13; + } + } + + @AutoLog( + operateType = 4, + value = "online删除数据", + module = ModuleType.ONLINE + ) + @DeleteMapping({"/formByCode/{code}/{id}"}) + public Result g(@PathVariable("code") String var1, @PathVariable("id") String var2) { + OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var1)); + if (var3 == null) { + return Result.error("实体不存在"); + } else { + try { + if (var2.indexOf(",") > 0) { + String var4 = var3.getTableName(); + this.onlCgformFieldService.deleteAutoListById(var4, var2); + } else { + this.onlCgformHeadService.deleteOneTableInfo(var3.getId(), var2); + } + } catch (Exception var5) { + a.error("OnlCgformApiController.formEdit()发生异常:" + var5.getMessage(), var5); + return Result.error("删除失败"); + } + + Result var6 = Result.OK("删除成功!"); + var6.setOnlTable(var3.getTableName()); + return var6; + } + } + + @OnlineAuth("getQueryInfo") + @GetMapping({"/getQueryInfo/{code}"}) + public Result b(@PathVariable("code") String var1) { + try { + List var2 = this.onlCgformFieldService.getAutoListQueryInfo(var1); + return Result.OK(var2); + } catch (Exception var3) { + a.error("OnlCgformApiController.getQueryInfo()发生异常:" + var3.getMessage(), var3); + return Result.error("查询失败"); + } + } + + @PostMapping({"/doDbSynch/{code}/{synMethod}"}) + public Result h(@PathVariable("code") String var1, @PathVariable("synMethod") String var2) { + try { + long var3 = System.currentTimeMillis(); + this.onlCgformHeadService.doDbSynch(var1, var2); + a.info("==同步数据库消耗时间" + (System.currentTimeMillis() - var3) + "毫秒"); + } catch (Exception var5) { + a.error(var5.getMessage(), var5); + return Result.error("同步数据库失败," + com.jero.generater.modules.online.cgform.util.b.a(var5)); + } + + return Result.OK("同步数据库成功!"); + } + + @OnlineAuth("exportXls") + @PermissionData + @GetMapping({"/exportXls/{code}"}) + public void a(@PathVariable("code") String var1, HttpServletRequest var2, HttpServletResponse var3) { + OnlCgformHead var4 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var4 != null) { + String var5 = var4.getTableTxt(); + String var6 = var2.getParameter("paramsStr"); + Object var7 = new HashMap(); + Object var8 = null; + if (oConvertUtils.isNotEmpty(var6)) { + var7 = (Map)JSONObject.parseObject(var6, Map.class); + } + + ((Map)var7).put("pageSize", -521); + Map var9 = this.onlCgformFieldService.queryAutolistPage(var4.getTableName(), var4.getId(), (Map)var7, (List)null); + List var10 = (List)var9.get("fieldList"); + Object var11 = (List)var9.get("records"); + Object var12 = new ArrayList(); + String var13 = ((Map)var7).get("selections") == null ? null : ((Map)var7).get("selections").toString(); + List var14; + if (oConvertUtils.isNotEmpty(var13)) { + var14 = Arrays.asList(var13.split(",")); + var12 = (List)((List)var11).stream().filter((var1x) -> { + return var14.contains(var1x.get("id")); + }).collect(Collectors.toList()); + } else { + if (var11 == null) { + var11 = new ArrayList(); + } + + ((List)var12).addAll((Collection)var11); + } + + com.jero.generater.modules.online.cgform.converter.b.a(1, (List)var12, var10); + + try { + this.onlCgformHeadService.executeEnhanceExport(var4, (List)var12); + } catch (BusinessException var31) { + a.error("导出java增强处理出错", var31.getMessage()); + } + + var14 = this.a(var10, "id"); + if (var4.getTableType() == 2 && oConvertUtils.isEmpty(((Map)var7).get("exportSingleOnly"))) { + String var15 = var4.getSubTableStr(); + if (oConvertUtils.isNotEmpty(var15)) { + String[] var16 = var15.split(","); + String[] var17 = var16; + int var18 = var16.length; + + for(int var19 = 0; var19 < var18; ++var19) { + String var20 = var17[var19]; + this.a(var20, (Map)var7, (List)var12, var14); + } + } + } + + Workbook var33 = ExcelExportUtil.exportExcel(new ExportParams((String)null, var5), var14, (Collection)var12); + ServletOutputStream var34 = null; + + try { + var3.setContentType("application/x-msdownload;charset=utf-8"); + String var35 = BrowserUtils.checkBrowse(var2); + String var36 = var4.getTableTxt() + "-v" + var4.getTableVersion(); + if ("MSIE".equalsIgnoreCase(var35.substring(0, 4))) { + var3.setHeader("content-disposition", "attachment;filename=" + URLEncoder.encode(var36, "UTF-8") + ".xls"); + } else { + String var37 = new String(var36.getBytes("UTF-8"), "ISO8859-1"); + var3.setHeader("content-disposition", "attachment;filename=" + var37 + ".xls"); + } + + var34 = var3.getOutputStream(); + var33.write(var34); + var3.flushBuffer(); + } catch (Exception var30) { + a.error("--通过流的方式获取文件异常--" + var30.getMessage(), var30); + } finally { + if (var34 != null) { + try { + var34.close(); + } catch (IOException var29) { + a.error(var29.getMessage(), var29); + } + } + + } + + } + } + + @OnlineAuth("importXls") + @PostMapping({"/importXls/{code}"}) + public Result b(@PathVariable("code") String var1, HttpServletRequest var2, HttpServletResponse var3) { + long var4 = System.currentTimeMillis(); + Result var6 = new Result(); + String var7 = ""; + + try { + OnlCgformHead var8 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var8 == null) { + return Result.error("数据库不存在该表记录"); + } + + LambdaQueryWrapper var9 = new LambdaQueryWrapper(); + var9.eq(OnlCgformField::getCgformHeadId, var1); + List var10 = this.onlCgformFieldService.list(var9); + String var11 = var2.getParameter("isSingleTableImport"); + List var12 = com.jero.generater.modules.online.cgform.util.b.e(var10); + if (oConvertUtils.isEmpty(var11) && var8.getTableType() == 2 && oConvertUtils.isNotEmpty(var8.getSubTableStr())) { + String[] var13 = var8.getSubTableStr().split(","); + int var14 = var13.length; + + for(int var15 = 0; var15 < var14; ++var15) { + String var16 = var13[var15]; + OnlCgformHead var17 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var16)); + if (var17 != null) { + List var18 = this.onlCgformFieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, var17.getId())); + List var19 = com.jero.generater.modules.online.cgform.util.b.b(var18, var17.getTableTxt()); + if (var19.size() > 0) { + var12.addAll(var19); + } + } + } + } + + JSONObject var47 = null; + String var48 = var2.getParameter("foreignKeys"); + if (oConvertUtils.isNotEmpty(var48)) { + var47 = JSONObject.parseObject(var48); + } + + MultipartHttpServletRequest var49 = (MultipartHttpServletRequest)var2; + Map var50 = var49.getFileMap(); + DataSource var51 = (DataSource)SpringContextUtils.getApplicationContext().getBean(DataSource.class); + String var52 = d.a(var51); + Iterator var53 = var50.entrySet().iterator(); + + while(true) { + while(var53.hasNext()) { + Map.Entry var20 = (Map.Entry)var53.next(); + MultipartFile var21 = (MultipartFile)var20.getValue(); + ImportParams var22 = new ImportParams(); + var22.setImageList(var12); + var22.setDataHanlder(new com.jero.generater.modules.online.cgform.util.a(var10, this.upLoadPath, this.uploadType)); + List var23 = ExcelImportUtil.importExcel(var21.getInputStream(), Map.class, var22); + if (var23 != null) { + Object var24 = ""; + ArrayList var25 = new ArrayList(); + + Map var27; + for(Iterator var26 = var23.iterator(); var26.hasNext(); var27.put("$mainTable$id", var24)) { + var27 = (Map)var26.next(); + boolean var28 = false; + Set var29 = var27.keySet(); + HashMap var30 = new HashMap(); + Iterator var31 = var29.iterator(); + + String var32; + while(var31.hasNext()) { + var32 = (String)var31.next(); + if (var32.indexOf("$subTable$") == -1) { + if (var32.indexOf("$mainTable$") != -1 && oConvertUtils.isNotEmpty(var27.get(var32).toString())) { + var28 = true; + var24 = this.a(var8, var51, var52); + } + + var30.put(var32.replace("$mainTable$", ""), var27.get(var32)); + } + } + + if (var28) { + var30.put("id", var24); + var25.add(var30); + var24 = var30.get("id"); + } + + if (var47 != null) { + var31 = var47.keySet().iterator(); + + while(var31.hasNext()) { + var32 = (String)var31.next(); + System.out.println(var32 + "=" + var47.getString(var32)); + var30.put(var32, var47.getString(var32)); + } + } + } + + if (var25 == null || var25.size() == 0) { + var6.setSuccess(false); + var6.setMessage("导入失败,匹配的数据条数为零!"); + return var6; + } + + this.onlCgformSqlService.saveBatchOnlineTable(var8, var10, var25); + if (oConvertUtils.isEmpty(var11) && var8.getTableType() == 2 && oConvertUtils.isNotEmpty(var8.getSubTableStr())) { + String[] var54 = var8.getSubTableStr().split(","); + int var55 = var54.length; + + for(int var56 = 0; var56 < var55; ++var56) { + String var57 = var54[var56]; + OnlCgformHead var58 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var57)); + if (var58 != null) { + LambdaQueryWrapper var59 = new LambdaQueryWrapper(); + var59.eq(OnlCgformField::getCgformHeadId, var58.getId()); + List var60 = this.onlCgformFieldService.list(var59); + ArrayList var33 = new ArrayList(); + String var34 = var58.getTableTxt(); + Iterator var35 = var23.iterator(); + + while(var35.hasNext()) { + Map var36 = (Map)var35.next(); + boolean var37 = false; + HashMap var38 = new HashMap(); + Iterator var39 = var60.iterator(); + + while(var39.hasNext()) { + OnlCgformField var40 = (OnlCgformField)var39.next(); + String var41 = var40.getMainTable(); + String var42 = var40.getMainField(); + boolean var43 = var8.getTableName().equals(var41) && oConvertUtils.isNotEmpty(var42); + String var44 = var34 + "_" + var40.getDbFieldTxt(); + if (var43) { + var38.put(var40.getDbFieldName(), var36.get("$mainTable$" + var42)); + } + + Object var45 = var36.get("$subTable$" + var44); + if (null != var45 && oConvertUtils.isNotEmpty(var45.toString())) { + var37 = true; + var38.put(var40.getDbFieldName(), var45); + } + } + + if (var37) { + var38.put("id", this.a(var58, var51, var52)); + var33.add(var38); + } + } + + if (var33.size() > 0) { + this.onlCgformSqlService.saveBatchOnlineTable(var58, var60, var33); + } + } + } + } + + var7 = "文件导入成功!"; + } else { + var7 = "识别模版数据错误"; + a.error(var7); + } + } + + var6.setSuccess(true); + var6.setMessage("导入成功!"); + break; + } + } catch (Exception var46) { + var6.setSuccess(false); + var6.setMessage(var46.getMessage()); + a.error(var46.getMessage(), var46); + } + + a.info("=====online导入数据完成,耗时:" + (System.currentTimeMillis() - var4) + "毫秒====="); + return var6; + } + + @PostMapping({"/doButton"}) + public Result a(@RequestBody JSONObject var1) { + String var2 = var1.getString("formId"); + String var3 = var1.getString("dataId"); + String var4 = var1.getString("buttonCode"); + JSONObject var5 = var1.getJSONObject("uiFormData"); + + try { + this.onlCgformHeadService.executeCustomerButton(var4, var2, var3); + } catch (Exception var7) { + a.error(var7.getMessage(), var7); + return Result.error("执行失败!"); + } + + return Result.OK("执行成功!"); + } + + public Object a(OnlCgformHead var1, DataSource var2, String var3) throws SQLException, DBException { + Object var4 = null; + String var5 = var1.getIdType(); + String var6 = var1.getIdSequence(); + if (oConvertUtils.isNotEmpty(var5) && "UUID".equalsIgnoreCase(var5)) { + var4 = com.jero.generater.modules.online.cgform.util.b.a(); + } else { + PostgreSQLSequenceMaxValueIncrementer var7; + OracleSequenceMaxValueIncrementer var13; + if (oConvertUtils.isNotEmpty(var5) && "NATIVE".equalsIgnoreCase(var5)) { + if (oConvertUtils.isNotEmpty(var3) && "oracle".equalsIgnoreCase(var3)) { + var13 = new OracleSequenceMaxValueIncrementer(var2, "HIBERNATE_SEQUENCE"); + + try { + var4 = var13.nextLongValue(); + } catch (Exception var12) { + a.error(var12.getMessage(), var12); + } + } else if (oConvertUtils.isNotEmpty(var3) && "postgres".equalsIgnoreCase(var3)) { + var7 = new PostgreSQLSequenceMaxValueIncrementer(var2, "HIBERNATE_SEQUENCE"); + + try { + var4 = var7.nextLongValue(); + } catch (Exception var11) { + a.error(var11.getMessage(), var11); + } + } else { + var4 = null; + } + } else if (oConvertUtils.isNotEmpty(var5) && "SEQUENCE".equalsIgnoreCase(var5)) { + if (oConvertUtils.isNotEmpty(var3) && "oracle".equalsIgnoreCase(var3)) { + var13 = new OracleSequenceMaxValueIncrementer(var2, var6); + + try { + var4 = var13.nextLongValue(); + } catch (Exception var10) { + a.error(var10.getMessage(), var10); + } + } else if (oConvertUtils.isNotEmpty(var3) && "postgres".equalsIgnoreCase(var3)) { + var7 = new PostgreSQLSequenceMaxValueIncrementer(var2, var6); + + try { + var4 = var7.nextLongValue(); + } catch (Exception var9) { + a.error(var9.getMessage(), var9); + } + } else { + var4 = null; + } + } else { + var4 = com.jero.generater.modules.online.cgform.util.b.a(); + } + } + + return var4; + } + + private void a(Map var1, List var2) { + Iterator var3 = var2.iterator(); + + while(true) { + OnlCgformField var4; + String var5; + String var6; + String var7; + do { + do { + if (!var3.hasNext()) { + return; + } + + var4 = (OnlCgformField)var3.next(); + var5 = var4.getDictTable(); + var6 = var4.getDictField(); + var7 = var4.getDictText(); + } while(oConvertUtils.isEmpty(var5) && oConvertUtils.isEmpty(var6)); + } while("popup".equals(var4.getFieldShowType())); + + String var9 = String.valueOf(var1.get(var4.getDbFieldName())); + List var8; + if (oConvertUtils.isEmpty(var5)) { + var8 = this.sysBaseAPI.queryDictItemsByCode(var6); + } else { + var8 = this.sysBaseAPI.queryTableDictItemsByCode(var5, var7, var6); + } + + Iterator var10 = var8.iterator(); + + while(var10.hasNext()) { + DictModel var11 = (DictModel)var10.next(); + if (var9.equals(var11.getText())) { + var1.put(var4.getDbFieldName(), var11.getValue()); + } + } + } + } + + private List a(List var1, String var2) { + ArrayList var3 = new ArrayList(); + + for(int var4 = 0; var4 < var1.size(); ++var4) { + if ((null == var2 || !var2.equals(((OnlCgformField)var1.get(var4)).getDbFieldName())) && ((OnlCgformField)var1.get(var4)).getIsShowList() == 1) { + String var5 = ((OnlCgformField)var1.get(var4)).getDbFieldName(); + ExcelExportEntity var6 = new ExcelExportEntity(((OnlCgformField)var1.get(var4)).getDbFieldTxt(), var5); + if ("image".equals(((OnlCgformField)var1.get(var4)).getFieldShowType())) { + var6.setType(2); + var6.setExportImageType(3); + var6.setImageBasePath(this.upLoadPath); + var6.setHeight(50.0D); + var6.setWidth(60.0D); + } else { + int var7 = ((OnlCgformField)var1.get(var4)).getDbLength() == 0 ? 12 : (((OnlCgformField)var1.get(var4)).getDbLength() > 30 ? 30 : ((OnlCgformField)var1.get(var4)).getDbLength()); + if (((OnlCgformField)var1.get(var4)).getFieldShowType().equals("date")) { + var6.setFormat("yyyy-MM-dd"); + } else if (((OnlCgformField)var1.get(var4)).getFieldShowType().equals("datetime")) { + var6.setFormat("yyyy-MM-dd HH:mm:ss"); + } + + if (var7 < 10) { + var7 = 10; + } + + var6.setWidth((double)var7); + } + + var3.add(var6); + } + } + + return var3; + } + + private void a(String var1, Map var2, List> var3, List var4) { + OnlCgformHead var5 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var1)); + LambdaQueryWrapper var6 = new LambdaQueryWrapper(); + var6.eq(OnlCgformField::getCgformHeadId, var5.getId()); + var6.orderByAsc(OnlCgformField::getOrderNum); + List var7 = this.onlCgformFieldService.list(var6); + String var8 = ""; + String var9 = ""; + Iterator var10 = var7.iterator(); + + while(var10.hasNext()) { + OnlCgformField var11 = (OnlCgformField)var10.next(); + if (oConvertUtils.isNotEmpty(var11.getMainField())) { + var8 = var11.getMainField(); + var9 = var11.getDbFieldName(); + break; + } + } + + ExcelExportEntity var14 = new ExcelExportEntity(var5.getTableTxt(), var1); + var14.setList(this.a(var7, "id")); + var4.add(var14); + + for(int var15 = 0; var15 < var3.size(); ++var15) { + var2.put(var9, ((Map)var3.get(var15)).get(var8)); + String var12 = com.jero.generater.modules.online.cgform.util.b.a(var5.getTableName(), var7, var2); + a.info("-----------动态列表查询子表sql》》" + var12); + List var13 = this.onlCgformHeadService.queryListData(var12); + com.jero.generater.modules.online.cgform.converter.b.a(1, var13, var7); + ((Map)var3.get(var15)).put(var1, com.jero.generater.modules.online.cgform.util.b.d(var13)); + } + + } + + @GetMapping({"/checkOnlyTable"}) + public Result i(@RequestParam("tbname") String var1, @RequestParam("id") String var2) { + OnlCgformHead var3; + if (oConvertUtils.isEmpty(var2)) { + if (d.a(var1)) { + return Result.OK(-1); + } + + var3 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var1)); + if (oConvertUtils.isNotEmpty(var3)) { + return Result.OK(-1); + } + } else { + var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var2); + if (!var1.equals(var3.getTableName()) && d.a(var1)) { + return Result.OK(-1); + } + } + + return Result.OK(1); + } + + @PostMapping({"/codeGenerate"}) + public Result b(@RequestBody JSONObject var1) { + OnlGenerateModel var2 = (OnlGenerateModel)JSONObject.parseObject(var1.toJSONString(), OnlGenerateModel.class); + List var3 = null; + + try { + if ("1".equals(var2.getJformType())) { + var3 = this.onlCgformHeadService.generateCode(var2); + } else { + var3 = this.onlCgformHeadService.generateOneToMany(var2); + } + + return Result.OK(var3); + } catch (Exception var5) { + var5.printStackTrace(); + return Result.error(var5.getMessage()); + } + } + + @GetMapping({"/downGenerateCode"}) + public void a(@RequestParam("fileList") List var1, HttpServletRequest var2, HttpServletResponse var3) { + List var4 = (List)var1.stream().filter((var0) -> { + return var0.indexOf("src/main/java") == -1 && var0.indexOf("src%5Cmain%5Cjava") == -1; + }).collect(Collectors.toList()); + if (var1 != null && (var4 == null || var4.size() <= 0)) { + String var5 = "生成代码_" + System.currentTimeMillis() + ".zip"; + final String var6 = "/opt/temp/codegenerate/" + var5; + File var7 = com.jero.generater.modules.online.cgform.util.d.a(var1, var6); + if (var7.exists()) { + var3.setContentType("application/force-download"); + var3.addHeader("Content-Disposition", "attachment;fileName=" + var5); + byte[] var8 = new byte[1024]; + FileInputStream var9 = null; + BufferedInputStream var10 = null; + + try { + var9 = new FileInputStream(var7); + var10 = new BufferedInputStream(var9); + ServletOutputStream var11 = var3.getOutputStream(); + + for(int var12 = var10.read(var8); var12 != -1; var12 = var10.read(var8)) { + var11.write(var8, 0, var12); + } + } catch (Exception var25) { + var25.printStackTrace(); + } finally { + if (var10 != null) { + try { + var10.close(); + } catch (IOException var24) { + var24.printStackTrace(); + } + } + + if (var9 != null) { + try { + var9.close(); + } catch (IOException var23) { + var23.printStackTrace(); + } + } + + class NamelessClass_1 extends Thread { + NamelessClass_1() { + } + + public void run() { + try { + Thread.sleep(10000L); + FileUtil.del(var6); + } catch (InterruptedException var2) { + var2.printStackTrace(); + } + + } + } + + (new NamelessClass_1()).start(); + } + } + + } else { + a.error(" fileList 不合法!!!", var1); + } + } + + @AutoLog( + operateType = 1, + value = "online列表数据查询", + module = ModuleType.ONLINE + ) + @GetMapping({"/getTreeData/{code}"}) + @PermissionData + public Result> d(@PathVariable("code") String var1, HttpServletRequest var2) { + Result var3 = new Result(); + OnlCgformHead var4 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var4 == null) { + var3.error500("实体不存在"); + return var3; + } else { + try { + String var5 = var4.getTableName(); + String var6 = var4.getTreeIdField(); + String var7 = var4.getTreeParentIdField(); + ArrayList var8 = Lists.newArrayList(new String[]{var6, var7}); + Map var9 = com.jero.generater.modules.online.cgform.util.b.a(var2); + String var10 = null; + if (var9.get(var6) != null) { + var10 = var9.get(var6).toString(); + } + + if (var9.get("hasQuery") != null && "false".equals(var9.get("hasQuery")) && var9.get(var7) == null) { + var9.put(var7, "0"); + } else { + var9.put("pageSize", -521); + var9.put(var7, var9.get(var7)); + } + + var9.put(var6, (Object)null); + Map var11 = this.onlCgformFieldService.queryAutoTreeNoPage(var5, var1, var9, var8, var7); + this.a(var4, var11); + var3.setResult(var11); + } catch (Exception var12) { + a.error(var12.getMessage(), var12); + var3.error500("数据库查询失败" + var12.getMessage()); + } + + var3.setOnlTable(var4.getTableName()); + return var3; + } + } + + private void a(OnlCgformHead var1, Map var2) throws BusinessException { + List var3 = (List)var2.get("records"); + this.onlCgformHeadService.executeEnhanceList(var1, "query", var3); + } + + @PostMapping({"/crazyForm/{name}"}) + public Result b(@PathVariable("name") String var1, @RequestBody JSONObject var2) { + Result var3 = new Result(); + + try { + String var4 = com.jero.generater.modules.online.cgform.util.b.a(); + var2.put("id", var4); + this.onlCgformHeadService.addCrazyFormData(var1, var2); + var3.setResult(var4); + var3.setMessage("保存成功"); + return var3; + } catch (Exception var5) { + a.error("OnlCgformApiController.formAddForDesigner()发生异常:" + var5.getMessage(), var5); + return Result.error("保存失败"); + } + } + + @PutMapping({"/crazyForm/{name}"}) + public Result c(@PathVariable("name") String var1, @RequestBody JSONObject var2) { + try { + var2.remove("create_by"); + var2.remove("create_time"); + var2.remove("update_by"); + var2.remove("update_time"); + this.onlCgformHeadService.editCrazyFormData(var1, var2); + } catch (Exception var4) { + a.error("OnlCgformApiController.formEditForDesigner()发生异常:" + var4.getMessage(), var4); + return Result.error("保存失败"); + } + + return Result.OK("保存成功!"); + } + + @AutoLog( + operateType = 1, + value = "online列表加载", + module = ModuleType.ONLINE + ) + @GetMapping({"/getErpColumns/{code}"}) + public Result> c(@PathVariable("code") String var1) { + Result var2 = new Result(); + OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var3 == null) { + var2.error500("实体不存在"); + return var2; + } else { + HashMap var4 = new HashMap(); + b var5 = this.onlineService.queryOnlineConfig(var3); + var4.put("main", var5); + if ("erp".equals(var3.getThemeTemplate()) && var3.getTableType() == 2) { + String var6 = var3.getSubTableStr(); + if (oConvertUtils.isNotEmpty(var6)) { + ArrayList var7 = new ArrayList(); + String[] var8 = var6.split(","); + int var9 = var8.length; + + for(int var10 = 0; var10 < var9; ++var10) { + String var11 = var8[var10]; + OnlCgformHead var12 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var11)); + if (var12 != null) { + var7.add(this.onlineService.queryOnlineConfig(var12)); + } + } + + if (var7.size() > 0) { + var4.put("subList", var7); + } + } + } + + var2.setOnlTable(var3.getTableName()); + var2.setResult(var4); + var2.setSuccess(true); + return var2; + } + } + + @AutoLog( + operateType = 1, + value = "online表单加载", + module = ModuleType.ONLINE + ) + @GetMapping({"/getErpFormItem/{code}"}) + public Result e(@PathVariable("code") String var1, HttpServletRequest var2) { + OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1); + if (var3 == null) { + Result.error("表不存在"); + } + + Result var4 = new Result(); + JSONObject var5 = this.onlineService.queryOnlineFormObj(var3); + var4.setResult(var5); + var4.setOnlTable(var3.getTableName()); + return var4; + } + + @GetMapping({"/querySelectOptions"}) + public Result> a(@ModelAttribute com.jero.generater.modules.online.cgform.a.a var1) { + Result var2 = new Result(); + List var3 = this.onlCgformFieldService.queryDataListByLinkDown(var1); + var2.setResult(var3); + var2.setSuccess(true); + return var2; + } +} \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/b.java new file mode 100644 index 00000000..424dd75d --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/b.java @@ -0,0 +1,192 @@ +package com.jero.generater.modules.online.cgform.b; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.Arrays; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.service.IOnlCgformButtonService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + + + + + + + +@RestController("onlCgformButtonController") +@RequestMapping({"/online/cgform/button"}) +public class b +{ + private static final Logger a = LoggerFactory.getLogger(b.class); + + + + + + + @Autowired + private IOnlCgformButtonService onlCgformButtonService; + + + + + + + + @GetMapping({"/list/{code}"}) + public Result> a(OnlCgformButton paramOnlCgformButton, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest, @PathVariable("code") String paramString) { + Result> result = new Result(); + paramOnlCgformButton.setCgformHeadId(paramString); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgformButton, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgformButtonService.page((IPage)page, (Wrapper)queryWrapper); + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgformButton paramOnlCgformButton) { + Result result = new Result(); + try { + this.onlCgformButtonService.save(paramOnlCgformButton); + result.success("添加成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + result.error500("操作失败"); + } + return result; + } + + + + + + + @PostMapping({"/aitest"}) + public Result a(@RequestBody JSONArray paramJSONArray) { + Result result = new Result(); + try { + for (byte b1 = 0; b1 < paramJSONArray.size(); b1++) { + JSONObject jSONObject = paramJSONArray.getJSONObject(b1); + OnlCgformButton onlCgformButton = (OnlCgformButton)JSONObject.parseObject(jSONObject.toJSONString(), OnlCgformButton.class); + this.onlCgformButtonService.saveButton(onlCgformButton); + } + result.success("添加成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + result.error500("操作失败"); + } + return result; + } + + + + + + + + + @PutMapping({"/edit"}) + public Result b(@RequestBody OnlCgformButton paramOnlCgformButton) { + Result result = new Result(); + OnlCgformButton onlCgformButton = (OnlCgformButton)this.onlCgformButtonService.getById(paramOnlCgformButton.getId()); + if (onlCgformButton == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformButtonService.updateById(paramOnlCgformButton); + + if (bool) { + result.success("修改成功!"); + } + } + + return result; + } + + + + + + + @DeleteMapping({"/delete"}) + public Result a(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformButton onlCgformButton = (OnlCgformButton)this.onlCgformButtonService.getById(paramString); + if (onlCgformButton == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformButtonService.removeById(paramString); + if (bool) { + result.success("删除成功!"); + } + } + + return result; + } + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result b(@RequestParam(name = "ids", required = true) String paramString) { + Result result = new Result(); + if (paramString == null || "".equals(paramString.trim())) { + result.error500("参数不识别!"); + } else { + this.onlCgformButtonService.removeByIds(Arrays.asList(paramString.split(","))); + result.success("删除成功!"); + } + return result; + } + + + + + + + @GetMapping({"/queryById"}) + public Result c(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformButton onlCgformButton = (OnlCgformButton)this.onlCgformButtonService.getById(paramString); + if (onlCgformButton == null) { + result.error500("未找到对应实体"); + } else { + result.setResult(onlCgformButton); + result.setSuccess(true); + } + return result; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\b\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/c.java new file mode 100644 index 00000000..ab0db2b6 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/c.java @@ -0,0 +1,205 @@ +package com.jero.generater.modules.online.cgform.b; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.lang.invoke.SerializedLambda; +import java.util.Arrays; +import java.util.List; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import com.jero.generater.modules.online.cgform.service.IOnlCgformHeadService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + + + + + + +@RestController("onlCgformFieldController") +@RequestMapping({"/online/cgform/field"}) +public class c +{ + private static final Logger a = LoggerFactory.getLogger(c.class); + + + @Autowired + private IOnlCgformHeadService onlCgformHeadService; + + + @Autowired + private IOnlCgformFieldService onlCgformFieldService; + + + + @GetMapping({"/listByHeadCode"}) + public Result a(@RequestParam("headCode") String paramString) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformHead::getTableName, paramString); + + OnlCgformHead onlCgformHead = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)lambdaQueryWrapper); + if (onlCgformHead == null) { + return Result.error("不存在的code"); + } + return b(onlCgformHead.getId()); + } + + + + + @GetMapping({"/listByHeadId"}) + public Result b(@RequestParam("headId") String paramString) { + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("cgform_head_id", paramString); + queryWrapper.orderByAsc("order_num"); + List list = this.onlCgformFieldService.list((Wrapper)queryWrapper); + return Result.OK(list); + } + + + + + + + + + + + + + + @GetMapping({"/list"}) + public Result> a(OnlCgformField paramOnlCgformField, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + Result> result = new Result(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgformField, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgformFieldService.page((IPage)page, (Wrapper)queryWrapper); + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgformField paramOnlCgformField) { + Result result = new Result(); + try { + this.onlCgformFieldService.save(paramOnlCgformField); + result.success("添加成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + result.error500("操作失败"); + } + return result; + } + + + + + + + + @PutMapping({"/edit"}) + public Result b(@RequestBody OnlCgformField paramOnlCgformField) { + Result result = new Result(); + OnlCgformField onlCgformField = (OnlCgformField)this.onlCgformFieldService.getById(paramOnlCgformField.getId()); + if (onlCgformField == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformFieldService.updateById(paramOnlCgformField); + + if (bool) { + result.success("修改成功!"); + } + } + + return result; + } + + + + + + + + @DeleteMapping({"/delete"}) + public Result c(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformField onlCgformField = (OnlCgformField)this.onlCgformFieldService.getById(paramString); + if (onlCgformField == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformFieldService.removeById(paramString); + if (bool) { + result.success("删除成功!"); + } + } + + return result; + } + + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result d(@RequestParam(name = "ids", required = true) String paramString) { + Result result = new Result(); + if (paramString == null || "".equals(paramString.trim())) { + result.error500("参数不识别!"); + } else { + this.onlCgformFieldService.removeByIds(Arrays.asList(paramString.split(","))); + result.success("删除成功!"); + } + return result; + } + + + + + + + + @GetMapping({"/queryById"}) + public Result e(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformField onlCgformField = (OnlCgformField)this.onlCgformFieldService.getById(paramString); + if (onlCgformField == null) { + result.error500("未找到对应实体"); + } else { + result.setResult(onlCgformField); + result.setSuccess(true); + } + return result; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\b\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/d.java new file mode 100644 index 00000000..9522e1e0 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/d.java @@ -0,0 +1,706 @@ +package com.jero.generater.modules.online.cgform.b; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Comparator; +import java.util.HashMap; +import java.util.List; +import java.util.Properties; +import javax.servlet.http.HttpServletRequest; +import org.apache.shiro.authz.annotation.RequiresRoles; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.util.JwtUtil; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJava; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceSql; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.config.exception.DBException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.core.io.Resource; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestParam; + +@RestController("onlCgformHeadController") +@RequestMapping({"/online/cgform/head"}) +public class d { + private static final Logger a = LoggerFactory.getLogger(d.class); + + + @Autowired + private IOnlCgformHeadService onlCgformHeadService; + + + @Autowired + private IOnlCgformFieldService onlCgformFieldService; + + + @Autowired + private IOnlCgformEnhanceService onlCgformEnhanceService; + + + private static List b = null; + + + + + + @Autowired + ResourceLoader resourceLoader; + + + + + + private static String c; + + + + + + @GetMapping({"/list"}) + public Result> a(OnlCgformHead paramOnlCgformHead, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + Result> result = new Result(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgformHead, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgformHeadService.page((IPage)page, (Wrapper)queryWrapper); + if (paramOnlCgformHead.getCopyType() != null && paramOnlCgformHead.getCopyType().intValue() == 0) { + this.onlCgformHeadService.initCopyState(iPage.getRecords()); + } + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgformHead paramOnlCgformHead) { + Result result = new Result(); + try { + this.onlCgformHeadService.save(paramOnlCgformHead); + result.success("添加成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + result.error500("操作失败"); + } + return result; + } + + + + + + + + @PutMapping({"/edit"}) + public Result b(@RequestBody OnlCgformHead paramOnlCgformHead) { + Result result = new Result(); + OnlCgformHead onlCgformHead = (OnlCgformHead)this.onlCgformHeadService.getById(paramOnlCgformHead.getId()); + if (onlCgformHead == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformHeadService.updateById(paramOnlCgformHead); + + if (bool) { + result.success("修改成功!"); + } + } + + return result; + } + + + + + + + + @DeleteMapping({"/delete"}) + public Result a(@RequestParam(name = "id", required = true) String paramString) { + try { + this.onlCgformHeadService.deleteRecordAndTable(paramString); + } catch (DBException dBException) { + return Result.error("删除失败" + dBException.getMessage()); + } catch (SQLException sQLException) { + return Result.error("删除失败" + sQLException.getMessage()); + } + return Result.OK("删除成功!"); + } + + @DeleteMapping({"/removeRecord"}) + public Result b(@RequestParam(name = "id", required = true) String paramString) { + try { + this.onlCgformHeadService.deleteRecord(paramString); + } catch (DBException dBException) { + return Result.error("移除失败" + dBException.getMessage()); + } catch (SQLException sQLException) { + return Result.error("移除失败" + sQLException.getMessage()); + } + return Result.OK("移除成功!"); + } + + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result a(@RequestParam(name = "ids", required = true) String paramString1, @RequestParam(name = "flag") String paramString2) { + Result result = new Result(); + if (paramString1 == null || "".equals(paramString1.trim())) { + result.error500("参数不识别!"); + } else { + this.onlCgformHeadService.deleteBatch(paramString1, paramString2); + result.success("删除成功!"); + } + return result; + } + + + + + + + + @GetMapping({"/queryById"}) + public Result c(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformHead onlCgformHead = (OnlCgformHead)this.onlCgformHeadService.getById(paramString); + if (onlCgformHead == null) { + result.error500("未找到对应实体"); + } else { + result.setResult(onlCgformHead); + result.setSuccess(true); + } + return result; + } + + + + + + + + @GetMapping({"/queryByTableNames"}) + public Result d(@RequestParam(name = "tableNames", required = true) String paramString) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + + String[] arrayOfString = paramString.split(","); + lambdaQueryWrapper.in(OnlCgformHead::getTableName, Arrays.asList(arrayOfString)); + + List list = this.onlCgformHeadService.list((Wrapper)lambdaQueryWrapper); + if (list == null) { + return Result.error("未找到对应实体"); + } + return Result.OK(list); + } + + + + + @PostMapping({"/enhanceJs/{code}"}) + public Result a(@PathVariable("code") String paramString, @RequestBody OnlCgformEnhanceJs paramOnlCgformEnhanceJs) { + try { + paramOnlCgformEnhanceJs.setCgformHeadId(paramString); + this.onlCgformHeadService.saveEnhance(paramOnlCgformEnhanceJs); + return Result.OK("保存成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("保存失败!"); + } + } + @GetMapping({"/enhanceJs/{code}"}) + public Result a(@PathVariable("code") String paramString, HttpServletRequest paramHttpServletRequest) { + try { + String str = paramHttpServletRequest.getParameter("type"); + OnlCgformEnhanceJs onlCgformEnhanceJs = this.onlCgformHeadService.queryEnhance(paramString, str); + if (onlCgformEnhanceJs == null) { + return Result.error("查询为空"); + } + return Result.OK(onlCgformEnhanceJs); + } + catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("查询失败!"); + } + } + @PutMapping({"/enhanceJs/{code}"}) + public Result b(@PathVariable("code") String paramString, @RequestBody OnlCgformEnhanceJs paramOnlCgformEnhanceJs) { + try { + paramOnlCgformEnhanceJs.setCgformHeadId(paramString); + this.onlCgformHeadService.editEnhance(paramOnlCgformEnhanceJs); + return Result.OK("保存成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("保存失败!"); + } + } + + + + + + + + + + @GetMapping({"/enhanceButton/{formId}"}) + public Result b(@PathVariable("formId") String paramString, HttpServletRequest paramHttpServletRequest) { + try { + List list = this.onlCgformHeadService.queryButtonList(paramString); + if (list == null || list.size() == 0) { + return Result.error("查询为空"); + } + return Result.OK(list); + } + catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("查询失败!"); + } + } + + + @GetMapping({"/enhanceSql/{formId}"}) + public Result c(@PathVariable("formId") String paramString, HttpServletRequest paramHttpServletRequest) { + List list = this.onlCgformEnhanceService.queryEnhanceSqlList(paramString); + return Result.OK(list); + } + + @RequiresRoles({"admin"}) + @PostMapping({"/enhanceSql/{formId}"}) + public Result a(@PathVariable("formId") String paramString, @RequestBody OnlCgformEnhanceSql paramOnlCgformEnhanceSql) { + try { + paramOnlCgformEnhanceSql.setCgformHeadId(paramString); + if (this.onlCgformEnhanceService.checkOnlyEnhance(paramOnlCgformEnhanceSql)) { + this.onlCgformEnhanceService.saveEnhanceSql(paramOnlCgformEnhanceSql); + return Result.OK("保存成功!"); + } + return Result.error("保存失败,该按钮已存在增强配置!"); + } + catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("保存失败!"); + } + } + + @RequiresRoles({"admin"}) + @PutMapping({"/enhanceSql/{formId}"}) + public Result b(@PathVariable("formId") String paramString, @RequestBody OnlCgformEnhanceSql paramOnlCgformEnhanceSql) { + try { + paramOnlCgformEnhanceSql.setCgformHeadId(paramString); + if (this.onlCgformEnhanceService.checkOnlyEnhance(paramOnlCgformEnhanceSql)) { + this.onlCgformEnhanceService.updateEnhanceSql(paramOnlCgformEnhanceSql); + return Result.OK("保存成功!"); + } + return Result.error("保存失败,该按钮已存在增强配置!"); + } + catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("保存失败!"); + } + } + + + @DeleteMapping({"/enhanceSql"}) + public Result e(@RequestParam(name = "id", required = true) String paramString) { + try { + this.onlCgformEnhanceService.deleteEnhanceSql(paramString); + return Result.OK("删除成功"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("删除失败!"); + } + } + + + @DeleteMapping({"/deletebatchEnhanceSql"}) + public Result f(@RequestParam(name = "ids", required = true) String paramString) { + try { + List list = Arrays.asList(paramString.split(",")); + this.onlCgformEnhanceService.deleteBatchEnhanceSql(list); + return Result.OK("删除成功"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("删除失败!"); + } + } + + + + + + @GetMapping({"/enhanceJava/{formId}"}) + public Result a(@PathVariable("formId") String paramString, OnlCgformEnhanceJava paramOnlCgformEnhanceJava) { + List list = this.onlCgformEnhanceService.queryEnhanceJavaList(paramString); + return Result.OK(list); + } + + + @PostMapping({"/enhanceJava/{formId}"}) + public Result b(@PathVariable("formId") String paramString, @RequestBody OnlCgformEnhanceJava paramOnlCgformEnhanceJava) { + try { + if (!b.a(paramOnlCgformEnhanceJava)) { + return Result.error("类实例化失败,请检查!"); + } + paramOnlCgformEnhanceJava.setCgformHeadId(paramString); + if (this.onlCgformEnhanceService.checkOnlyEnhance(paramOnlCgformEnhanceJava)) { + this.onlCgformEnhanceService.saveEnhanceJava(paramOnlCgformEnhanceJava); + return Result.OK("保存成功!"); + } + return Result.error("保存失败,配置重复了!"); + } + catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("保存失败!"); + } + } + + + @PutMapping({"/enhanceJava/{formId}"}) + public Result c(@PathVariable("formId") String paramString, @RequestBody OnlCgformEnhanceJava paramOnlCgformEnhanceJava) { + try { + if (!b.a(paramOnlCgformEnhanceJava)) { + return Result.error("类实例化失败,请检查!"); + } + paramOnlCgformEnhanceJava.setCgformHeadId(paramString); + if (this.onlCgformEnhanceService.checkOnlyEnhance(paramOnlCgformEnhanceJava)) { + this.onlCgformEnhanceService.updateEnhanceJava(paramOnlCgformEnhanceJava); + return Result.OK("保存成功!"); + } + return Result.error("保存失败,配置重复了!"); + } + catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("保存失败!"); + } + } + + + @DeleteMapping({"/enhanceJava"}) + public Result g(@RequestParam(name = "id", required = true) String paramString) { + try { + this.onlCgformEnhanceService.deleteEnhanceJava(paramString); + return Result.OK("删除成功"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("删除失败!"); + } + } + + + @DeleteMapping({"/deleteBatchEnhanceJava"}) + public Result h(@RequestParam(name = "ids", required = true) String paramString) { + try { + List list = Arrays.asList(paramString.split(",")); + this.onlCgformEnhanceService.deleteBatchEnhanceJava(list); + return Result.OK("删除成功"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("删除失败!"); + } + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @GetMapping({"/queryTables"}) + public Result a(@RequestParam(name = "tableName", required = false) String paramString, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + String str = JwtUtil.getUserNameByToken(paramHttpServletRequest); + if (!"admin".equals(str)) { + return Result.error("noadminauth"); + } + List list = new ArrayList(); + + try { + list = DbReadTableUtil.a(); + } catch (SQLException sQLException) { + a.error(sQLException.getMessage(), sQLException); + return Result.error("同步失败,未获取数据库表信息"); + } + b.b(list); + + list = b.f(list); + + List list1 = this.onlCgformHeadService.queryOnlinetables(); + + b(); + + list.removeAll(list1); + ArrayList> arrayList = new ArrayList(); + for (String str1 : list) { + if (l(str1)) { + continue; + } + HashMap hashMap = new HashMap<>(); + hashMap.put("id", str1); + arrayList.add(hashMap); + } + return Result.OK(arrayList); + } + + + + @PostMapping({"/transTables/{tbnames}"}) + @RequiresRoles({"admin"}) + public Result d(@PathVariable("tbnames") String paramString, HttpServletRequest paramHttpServletRequest) { + String str = JwtUtil.getUserNameByToken(paramHttpServletRequest); + if (!"admin".equals(str)) { + return Result.error("noadminauth"); + } + if (oConvertUtils.isEmpty(paramString)) { + return Result.error("未识别的表名信息"); + } + if (c != null && c.equals(paramString)) { + return Result.error("不允许重复生成!"); + } + c = paramString; + + + String[] arrayOfString = paramString.split(","); + for (byte b = 0; b < arrayOfString.length; b++) { + if (oConvertUtils.isNotEmpty(arrayOfString[b])) { + int i = this.onlCgformHeadService.count((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, arrayOfString[b])); + if (i <= 0) { + + + a.info("[IP] [online数据库导入表] --表名:" + arrayOfString[b]); + this.onlCgformHeadService.saveDbTable2Online(arrayOfString[b]); + } + } + } c = null; + return Result.OK("同步完成!"); + } + + + + + @GetMapping({"/rootFile"}) + public Result a() { + JSONArray jSONArray = new JSONArray(); + File[] arrayOfFile = File.listRoots(); + for (File file : arrayOfFile) { + JSONObject jSONObject = new JSONObject(); + if (file.isDirectory()) { + + jSONObject.put("key", file.getAbsolutePath()); + jSONObject.put("title", file.getPath()); + jSONObject.put("opened", Boolean.valueOf(false)); + JSONObject jSONObject1 = new JSONObject(); + jSONObject1.put("icon", "custom"); + jSONObject.put("scopedSlots", jSONObject1); + jSONObject.put("isLeaf", Boolean.valueOf((file.listFiles() == null || (file.listFiles()).length == 0))); + } + jSONArray.add(jSONObject); + } + return Result.OK(jSONArray); + } + + + + + @GetMapping({"/fileTree"}) + public Result i(@RequestParam(name = "parentPath", required = true) String paramString) { + JSONArray jSONArray = new JSONArray(); + File file = new File(paramString); + File[] arrayOfFile = file.listFiles(); + for (File file1 : arrayOfFile) { + if (file1.isDirectory() && oConvertUtils.isNotEmpty(file1.getPath())) { + JSONObject jSONObject1 = new JSONObject(); + System.out.println(file1.getPath()); + jSONObject1.put("key", file1.getAbsolutePath()); + jSONObject1.put("title", file1.getPath().substring(file1.getPath().lastIndexOf(File.separator) + 1)); + jSONObject1.put("isLeaf", Boolean.valueOf((file1.listFiles() == null || (file1.listFiles()).length == 0))); + jSONObject1.put("opened", Boolean.valueOf(false)); + JSONObject jSONObject2 = new JSONObject(); + jSONObject2.put("icon", "custom"); + jSONObject1.put("scopedSlots", jSONObject2); + jSONArray.add(jSONObject1); + } + } + + return Result.OK(jSONArray); + } + + + + + + + @GetMapping({"/tableInfo"}) + public Result j(@RequestParam(name = "code", required = true) String paramString) { + OnlCgformHead onlCgformHead = (OnlCgformHead)this.onlCgformHeadService.getById(paramString); + if (onlCgformHead == null) { + return Result.error("未找到对应实体"); + } + HashMap hashMap = new HashMap<>(); + hashMap.put("main", onlCgformHead); + if (onlCgformHead.getTableType().intValue() == 2) { + + String str = onlCgformHead.getSubTableStr(); + if (oConvertUtils.isNotEmpty(str)) { + ArrayList arrayList = new ArrayList(); + String[] arrayOfString = str.split(","); + for (String str1 : arrayOfString) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformHead::getTableName, str1); + OnlCgformHead onlCgformHead1 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)lambdaQueryWrapper); + arrayList.add(onlCgformHead1); + } + + Collections.sort(arrayList, new Comparator(this) + { + public int a(OnlCgformHead param1OnlCgformHead1, OnlCgformHead param1OnlCgformHead2) { + Integer integer1 = param1OnlCgformHead1.getTabOrderNum(); + if (integer1 == null) { + integer1 = Integer.valueOf(0); + } + Integer integer2 = param1OnlCgformHead2.getTabOrderNum(); + if (integer2 == null) { + integer2 = Integer.valueOf(0); + } + return integer1.compareTo(integer2); + } + }); + hashMap.put("sub", arrayList); + } + } + + + Integer integer = onlCgformHead.getTableType(); + if ("Y".equals(onlCgformHead.getIsTree())) { + integer = Integer.valueOf(3); + } + List list = CgformEnum.getJspModelList(integer.intValue()); + + hashMap.put("jspModeList", list); + hashMap.put("projectPath", a.m()); + return Result.OK(hashMap); + } + + + + + @PostMapping({"/copyOnline"}) + public Result k(@RequestParam(name = "code", required = true) String paramString) { + try { + OnlCgformHead onlCgformHead = (OnlCgformHead)this.onlCgformHeadService.getById(paramString); + if (onlCgformHead == null) { + return Result.error("未找到对应实体"); + } + this.onlCgformHeadService.copyOnlineTableConfig(onlCgformHead); + } catch (Exception exception) { + exception.printStackTrace(); + } + return Result.OK(); + } + + + + + + + + + + private boolean l(String paramString) { + for (String str : b) { + if (paramString.startsWith(str) || paramString.startsWith(str.toUpperCase())) { + return true; + } + } + return false; + } + + + + + + private void b() { + if (b == null) { + Resource resource = this.resourceLoader.getResource("classpath:jeecg" + File.separator + "jeecg_config.properties"); + InputStream inputStream = null; + try { + inputStream = resource.getInputStream(); + Properties properties = new Properties(); + properties.load(inputStream); + String str = properties.getProperty("exclude_table"); + if (str != null) { + b = Arrays.asList(str.split(",")); + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } finally { + if (inputStream != null) + try { + inputStream.close(); + } catch (IOException iOException) { + iOException.printStackTrace(); + } + } + } + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\b\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/e.java new file mode 100644 index 00000000..1e51057f --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/b/e.java @@ -0,0 +1,188 @@ +package com.jero.generater.modules.online.cgform.b; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.Arrays; +import java.util.List; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.api.vo.Result; +import com.jero.common.constant.CommonConstant; +import com.jero.common.system.query.QueryGenerator; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; +import com.jero.generater.modules.online.cgform.service.IOnlCgformIndexService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + + + + + + +@RestController("onlCgformIndexController") +@RequestMapping({"/online/cgform/index"}) +public class e +{ + private static final Logger a = LoggerFactory.getLogger(e.class); + + + + + @Autowired + private IOnlCgformIndexService onlCgformIndexService; + + + + + @GetMapping({"/listByHeadId"}) + public Result a(@RequestParam("headId") String paramString) { + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("cgform_head_id", paramString); + queryWrapper.eq("del_flag", CommonConstant.DEL_FLAG_0); + queryWrapper.orderByDesc("create_time"); + List list = this.onlCgformIndexService.list((Wrapper)queryWrapper); + return Result.OK(list); + } + + + + + + + + + + + + + + @GetMapping({"/list"}) + public Result> a(OnlCgformIndex paramOnlCgformIndex, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + Result> result = new Result(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgformIndex, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgformIndexService.page((IPage)page, (Wrapper)queryWrapper); + + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgformIndex paramOnlCgformIndex) { + Result result = new Result(); + try { + this.onlCgformIndexService.save(paramOnlCgformIndex); + result.success("添加成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + result.error500("操作失败"); + } + return result; + } + + + + + + + + @PutMapping({"/edit"}) + public Result b(@RequestBody OnlCgformIndex paramOnlCgformIndex) { + Result result = new Result(); + OnlCgformIndex onlCgformIndex = (OnlCgformIndex)this.onlCgformIndexService.getById(paramOnlCgformIndex.getId()); + if (onlCgformIndex == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformIndexService.updateById(paramOnlCgformIndex); + + if (bool) { + result.success("修改成功!"); + } + } + + return result; + } + + + + + + + + @DeleteMapping({"/delete"}) + public Result b(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformIndex onlCgformIndex = (OnlCgformIndex)this.onlCgformIndexService.getById(paramString); + if (onlCgformIndex == null) { + result.error500("未找到对应实体"); + } else { + boolean bool = this.onlCgformIndexService.removeById(paramString); + if (bool) { + result.success("删除成功!"); + } + } + + return result; + } + + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result c(@RequestParam(name = "ids", required = true) String paramString) { + Result result = new Result(); + if (paramString == null || "".equals(paramString.trim())) { + result.error500("参数不识别!"); + } else { + this.onlCgformIndexService.removeByIds(Arrays.asList(paramString.split(","))); + result.success("删除成功!"); + } + return result; + } + + + + + + + + @GetMapping({"/queryById"}) + public Result d(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgformIndex onlCgformIndex = (OnlCgformIndex)this.onlCgformIndexService.getById(paramString); + if (onlCgformIndex == null) { + result.error500("未找到对应实体"); + } else { + result.setResult(onlCgformIndex); + result.setSuccess(true); + } + return result; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\b\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/c/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/c/a.java new file mode 100644 index 00000000..ff4cf160 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/c/a.java @@ -0,0 +1,41 @@ +package com.jero.generater.modules.online.cgform.c; + +import com.alibaba.fastjson.JSONObject; +import java.text.SimpleDateFormat; +import java.util.Date; +import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang.math.RandomUtils; +import com.jero.common.handler.IFillRuleHandler; + + + + + + +public class a + implements IFillRuleHandler +{ + public Object execute(JSONObject params, JSONObject formData) { + String str1 = "CN"; + + if (params != null) { + Object object = params.get("prefix"); + if (object != null) str1 = object.toString(); + } + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); + int i = RandomUtils.nextInt(90) + 10; + String str2 = str1 + simpleDateFormat.format(new Date()) + i; + + String str3 = formData.getString("name"); + if (!StringUtils.isEmpty(str3)) { + str2 = str2 + str3; + } + return str2; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\c\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/FieldCommentConverter.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/FieldCommentConverter.java new file mode 100644 index 00000000..fffb0893 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/FieldCommentConverter.java @@ -0,0 +1,17 @@ +package com.jero.generater.modules.online.cgform.converter; + +import java.util.Map; + +public interface FieldCommentConverter { + String converterToVal(String paramString); + + String converterToTxt(String paramString); + + Map getConfig(); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\FieldCommentConverter.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a.java new file mode 100644 index 00000000..25855c6d --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a.java @@ -0,0 +1,129 @@ +package com.jero.generater.modules.online.cgform.converter; +import java.util.HashMap; +import com.jero.generater.modules.online.cgform.converter.b.c; +import com.jero.generater.modules.online.cgform.converter.b.d; +import com.jero.generater.modules.online.cgform.converter.b.e; +import com.jero.generater.modules.online.cgform.converter.b.f; +import com.jero.generater.modules.online.cgform.converter.b.g; +import com.jero.generater.modules.online.cgform.converter.b.h; +import com.jero.generater.modules.online.cgform.converter.b.i; +import com.jero.generater.modules.online.cgform.converter.b.j; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + +public class a { + private static final Logger a = LoggerFactory.getLogger(a.class); + + private static final String b = "list"; + + private static final String c = "radio"; + + private static final String d = "checkbox"; + + private static final String e = "list_multi"; + + private static final String f = "sel_search"; + private static final String g = "sel_tree"; + private static final String h = "cat_tree"; + private static final String i = "link_down"; + private static final String j = "sel_depart"; + private static final String k = "sel_user"; + private static final String l = "pca"; + private static final String m = "switch"; + + public static FieldCommentConverter a(OnlCgformField paramOnlCgformField) { + f f; + d d; + i i; + a a1; + e e; + b b; + j j; + g g; + String str = paramOnlCgformField.getFieldShowType(); + c c = null; + switch (str) { case "list": + case "radio": + c = new c(paramOnlCgformField); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return (FieldCommentConverter)c;case "list_multi": case "checkbox": return (FieldCommentConverter)new f(paramOnlCgformField);case "sel_search": return (FieldCommentConverter)new d(paramOnlCgformField);case "sel_tree": return (FieldCommentConverter)new i(paramOnlCgformField);case "cat_tree": return (FieldCommentConverter)new a(paramOnlCgformField);case "link_down": return (FieldCommentConverter)new e(paramOnlCgformField);case "sel_depart": return (FieldCommentConverter)new b(paramOnlCgformField);case "sel_user": return (FieldCommentConverter)new j(paramOnlCgformField);case "pca": return (FieldCommentConverter)new g(paramOnlCgformField);case "switch": h = new h(paramOnlCgformField); return (FieldCommentConverter)h; } h h = null; return (FieldCommentConverter)h; + } + + public static Map a(List paramList) { + HashMap hashMap = new HashMap<>(); + for (OnlCgformField onlCgformField : paramList) { + FieldCommentConverter fieldCommentConverter = null; + if (oConvertUtils.isNotEmpty(onlCgformField.getConverter())) { + fieldCommentConverter = a(onlCgformField.getConverter().trim()); + } else { + fieldCommentConverter = a(onlCgformField); + } + if (fieldCommentConverter == null) { + continue; + } + hashMap.put(onlCgformField.getDbFieldName().toLowerCase(), fieldCommentConverter); + } + return (Map)hashMap; + } + + + + + + + + private static FieldCommentConverter a(String paramString) { + Object object = null; + if (paramString.indexOf(".") > 0) { + try { + object = MyClassLoader.getClassByScn(paramString).newInstance(); + } catch (InstantiationException instantiationException) { + a.error(instantiationException.getMessage(), instantiationException); + } catch (IllegalAccessException illegalAccessException) { + a.error(illegalAccessException.getMessage(), illegalAccessException); + } + } else { + object = SpringContextUtils.getBean(paramString); + } + if (object != null && object instanceof FieldCommentConverter) { + return (FieldCommentConverter)object; + } + + return null; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a/a.java new file mode 100644 index 00000000..f301df35 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a/a.java @@ -0,0 +1,122 @@ +package com.jero.generater.modules.online.cgform.converter.a; + +import java.util.List; +import java.util.Map; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.DictModel; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.converter.FieldCommentConverter; + + + + + + + + + + + + + + + + +public class a + implements FieldCommentConverter +{ + protected ISysBaseAPI a = (ISysBaseAPI)SpringContextUtils.getBean(ISysBaseAPI.class); protected String b; + protected String c; + + public a(String paramString1, String paramString2, String paramString3) { + this(); + this.c = paramString1; + this.d = paramString2; + this.e = paramString3; + } protected String d; protected String e; + public a() {} + public String getField() { + return this.b; + } + + public void setField(String field) { + this.b = field; + } + + public String getTable() { + return this.c; + } + + public void setTable(String table) { + this.c = table; + } + + public String getCode() { + return this.d; + } + + public void setCode(String code) { + this.d = code; + } + + public String getText() { + return this.e; + } + + public void setText(String text) { + this.e = text; + } + + + + public String converterToVal(String txt) { + if (oConvertUtils.isNotEmpty(txt)) { + String str1 = this.e + "= '" + txt + "'"; + String str2 = null; + int i = this.c.indexOf("where"); + if (i > 0) { + str2 = this.c.substring(0, i).trim(); + str1 = str1 + " and " + this.c.substring(i + 5); + } else { + str2 = this.c; + } + List list = this.a.queryFilterTableDictInfo(str2, this.e, this.d, str1); + if (list != null && list.size() > 0) { + return ((DictModel)list.get(0)).getValue(); + } + } + return null; + } + + + public String converterToTxt(String val) { + if (oConvertUtils.isNotEmpty(val)) { + String str1 = this.d + "= '" + val + "'"; + String str2 = null; + int i = this.c.indexOf("where"); + if (i > 0) { + str2 = this.c.substring(0, i).trim(); + str1 = str1 + " and " + this.c.substring(i + 5); + } else { + str2 = this.c; + } + List list = this.a.queryFilterTableDictInfo(str2, this.e, this.d, str1); + if (list != null && list.size() > 0) { + return ((DictModel)list.get(0)).getText(); + } + } + return null; + } + + + public Map getConfig() { + return null; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\a\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a/b.java new file mode 100644 index 00000000..f0fc2ce5 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/a/b.java @@ -0,0 +1,71 @@ +package com.jero.generater.modules.online.cgform.converter.a; + +import java.util.List; +import java.util.Map; +import com.jero.common.system.vo.DictModel; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.converter.FieldCommentConverter; + + + + + + +public class b + implements FieldCommentConverter +{ + protected String a; + protected List b; + + public String getFiled() { + return this.a; + } + + public void setFiled(String filed) { + this.a = filed; + } + + public List getDictList() { + return this.b; + } + + public void setDictList(List dictList) { + this.b = dictList; + } + + + + public String converterToVal(String txt) { + if (oConvertUtils.isNotEmpty(txt)) { + for (DictModel dictModel : this.b) { + if (dictModel.getText().equals(txt)) { + return dictModel.getValue(); + } + } + } + return null; + } + + + public String converterToTxt(String val) { + if (oConvertUtils.isNotEmpty(val)) { + for (DictModel dictModel : this.b) { + if (dictModel.getValue().equals(val)) { + return dictModel.getText(); + } + } + } + return null; + } + + + public Map getConfig() { + return null; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\a\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b.java new file mode 100644 index 00000000..b0141be6 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b.java @@ -0,0 +1,99 @@ +package com.jero.generater.modules.online.cgform.converter; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + + + + + +public class b +{ + public static final int a = 2; + public static final int b = 1; + + public static void a(int paramInt, List> paramList, List paramList1) { + Map map = a.a(paramList1); + for (Map map1 : paramList) { + Iterator iterator = map1.entrySet().iterator(); + + HashMap hashMap = new HashMap<>(); + while (iterator.hasNext()) { + Map.Entry entry = iterator.next(); + Object object = entry.getValue(); + if (object == null) { + continue; + } + String str = (String)entry.getKey(); + FieldCommentConverter fieldCommentConverter = map.get(str.toLowerCase()); + if (fieldCommentConverter != null) { + String str1 = object.toString(); + String str2 = (paramInt == 1) ? fieldCommentConverter.converterToTxt(str1) : fieldCommentConverter.converterToVal(str1); + + + a(fieldCommentConverter, map1, paramInt); + a(fieldCommentConverter, (Map)hashMap, str1); + map1.put(str, str2); + } + } + for (String str : hashMap.keySet()) { + map1.put(str, hashMap.get(str)); + } + } + } + + + + + + + + private static void a(FieldCommentConverter paramFieldCommentConverter, Map paramMap, int paramInt) { + Map map = paramFieldCommentConverter.getConfig(); + if (map != null) { + String str = map.get("linkField"); + if (oConvertUtils.isNotEmpty(str)) { + for (String str1 : str.split(",")) { + Object object = paramMap.get(str1); + if (object != null) { + + + String str2 = object.toString(); + String str3 = (paramInt == 1) ? paramFieldCommentConverter.converterToTxt(str2) : paramFieldCommentConverter.converterToVal(str2); + paramMap.put(str1, str3); + } + } + } + } + } + + + + + + + private static void a(FieldCommentConverter paramFieldCommentConverter, Map paramMap, String paramString) { + Map map = paramFieldCommentConverter.getConfig(); + if (map != null) { + + String str = map.get("treeText"); + if (oConvertUtils.isNotEmpty(str)) + paramMap.put(str, paramString); + } + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/a.java new file mode 100644 index 00000000..c131c186 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/a.java @@ -0,0 +1,48 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import java.util.HashMap; +import java.util.Map; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.converter.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + +public class a + extends a +{ + private String f; + + public String getTreeText() { + return this.f; + } + + public void setTreeText(String treeText) { + this.f = treeText; + } + + public a(OnlCgformField paramOnlCgformField) { + super("SYS_CATEGORY", "ID", "NAME"); + this.f = paramOnlCgformField.getDictText(); + this.b = paramOnlCgformField.getDbFieldName(); + } + + + public Map getConfig() { + if (oConvertUtils.isEmpty(this.f)) { + return null; + } + HashMap hashMap = new HashMap<>(); + hashMap.put("treeText", this.f); + hashMap.put("field", this.b); + return (Map)hashMap; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/b.java new file mode 100644 index 00000000..e024cf68 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/b.java @@ -0,0 +1,66 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import java.util.ArrayList; +import java.util.List; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + +public class b + extends com.jero.generater.modules.online.cgform.converter.b.b +{ + public b(OnlCgformField paramOnlCgformField) { + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI)SpringContextUtils.getBean(ISysBaseAPI.class); + String str1 = "SYS_DEPART"; + String str2 = "DEPART_NAME"; + String str3 = "ID"; + List list = iSysBaseAPI.queryTableDictItemsByCode(str1, str2, str3); + this.b = list; + this.a = paramOnlCgformField.getDbFieldName(); + } + + + + public String converterToVal(String txt) { + if (oConvertUtils.isEmpty(txt)) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (String str1 : txt.split(",")) { + String str2 = super.converterToVal(str1); + if (str2 != null) + { + + arrayList.add(str2); } + } + return String.join(",", (Iterable)arrayList); + } + + + public String converterToTxt(String val) { + if (oConvertUtils.isEmpty(val)) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (String str1 : val.split(",")) { + String str2 = super.converterToTxt(str1); + if (str2 != null) + { + + arrayList.add(str2); } + } + return String.join(",", (Iterable)arrayList); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/c.java new file mode 100644 index 00000000..a6f921b5 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/c.java @@ -0,0 +1,38 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import java.util.ArrayList; +import java.util.List; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + +public class c + extends com.jero.generater.modules.online.cgform.converter.a.b +{ + public c(OnlCgformField paramOnlCgformField) { + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI)SpringContextUtils.getBean(ISysBaseAPI.class); + String str1 = paramOnlCgformField.getDictTable(); + String str2 = paramOnlCgformField.getDictText(); + String str3 = paramOnlCgformField.getDictField(); + List list = new ArrayList(); + if (oConvertUtils.isNotEmpty(str1)) { + List list1 = iSysBaseAPI.queryTableDictItemsByCode(str1, str2, str3); + } else if (oConvertUtils.isNotEmpty(str3)) { + list = iSysBaseAPI.queryDictItemsByCode(str3); + } + this.b = list; + this.a = paramOnlCgformField.getDbFieldName(); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/d.java new file mode 100644 index 00000000..2f54fb9e --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/d.java @@ -0,0 +1,22 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import com.jero.generater.modules.online.cgform.converter.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + +public class d + extends a +{ + public d(OnlCgformField paramOnlCgformField) { + super(paramOnlCgformField.getDictTable(), paramOnlCgformField.getDictField(), paramOnlCgformField.getDictText()); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/e.java new file mode 100644 index 00000000..2b2425f7 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/e.java @@ -0,0 +1,48 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import com.alibaba.fastjson.JSONObject; +import java.util.HashMap; +import java.util.Map; +import com.jero.generater.modules.online.cgform.a.a; +import com.jero.generater.modules.online.cgform.converter.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + +public class e + extends a +{ + private String f; + + public String getLinkField() { + return this.f; + } + + public void setLinkField(String linkField) { + this.f = linkField; + } + + + public e(OnlCgformField paramOnlCgformField) { + String str = paramOnlCgformField.getDictTable(); + a a1 = (a)JSONObject.parseObject(str, a.class); + setTable(a1.getTable()); + setCode(a1.getKey()); + setText(a1.getTxt()); + this.f = a1.getLinkField(); + } + + + public Map getConfig() { + HashMap hashMap = new HashMap<>(); + hashMap.put("linkField", this.f); + return (Map)hashMap; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/f.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/f.java new file mode 100644 index 00000000..90e5ec54 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/f.java @@ -0,0 +1,70 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import java.util.ArrayList; +import java.util.List; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + +public class f + extends com.jero.generater.modules.online.cgform.converter.a.b +{ + public f(OnlCgformField paramOnlCgformField) { + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI)SpringContextUtils.getBean(ISysBaseAPI.class); + String str1 = paramOnlCgformField.getDictTable(); + String str2 = paramOnlCgformField.getDictText(); + String str3 = paramOnlCgformField.getDictField(); + List list = new ArrayList(); + if (oConvertUtils.isNotEmpty(str1)) { + List list1 = iSysBaseAPI.queryTableDictItemsByCode(str1, str2, str3); + } else if (oConvertUtils.isNotEmpty(str3)) { + list = iSysBaseAPI.queryDictItemsByCode(str3); + } + this.b = list; + this.a = paramOnlCgformField.getDbFieldName(); + } + + + public String converterToVal(String txt) { + if (oConvertUtils.isEmpty(txt)) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (String str1 : txt.split(",")) { + String str2 = super.converterToVal(str1); + if (str2 != null) + { + + arrayList.add(str2); } + } + return String.join(",", (Iterable)arrayList); + } + + + public String converterToTxt(String val) { + if (oConvertUtils.isEmpty(val)) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (String str1 : val.split(",")) { + String str2 = super.converterToTxt(str1); + if (str2 != null) + { + + arrayList.add(str2); } + } + return String.join(",", (Iterable)arrayList); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\f.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/g.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/g.java new file mode 100644 index 00000000..512ff173 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/g.java @@ -0,0 +1,41 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import com.jero.common.constant.ProvinceCityArea; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + +public class g + extends com.jero.generater.modules.online.cgform.converter.a.b +{ + ProvinceCityArea c; + + public g(OnlCgformField paramOnlCgformField) { + this.a = paramOnlCgformField.getDbFieldName(); + this.c = (ProvinceCityArea)SpringContextUtils.getBean(ProvinceCityArea.class); + } + + + public String converterToVal(String txt) { + if (oConvertUtils.isEmpty(txt)) { + return null; + } + return this.c.getCode(txt); + } + + + public String converterToTxt(String val) { + if (oConvertUtils.isEmpty(val)) { + return null; + } + return this.c.getText(val); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\g.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/h.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/h.java new file mode 100644 index 00000000..b2db127d --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/h.java @@ -0,0 +1,39 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import com.alibaba.fastjson.JSONArray; +import java.util.ArrayList; +import com.jero.common.system.vo.DictModel; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + +public class h + extends com.jero.generater.modules.online.cgform.converter.a.b +{ + public h(OnlCgformField paramOnlCgformField) { + String str1 = paramOnlCgformField.getFieldExtendJson(); + String str2 = "Y", str3 = "N"; + if (str1 != null && !"".equals(str1)) { + JSONArray jSONArray = JSONArray.parseArray(str1); + if (jSONArray != null && jSONArray.size() == 2) { + str2 = jSONArray.get(0).toString(); + str3 = jSONArray.get(1).toString(); + } + } + ArrayList arrayList = new ArrayList(); + DictModel dictModel1 = new DictModel(str2, "是"); + DictModel dictModel2 = new DictModel(str3, "否"); + arrayList.add(dictModel1); + arrayList.add(dictModel2); + this.b = arrayList; + this.a = paramOnlCgformField.getDbFieldName(); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\h.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/i.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/i.java new file mode 100644 index 00000000..16f27812 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/i.java @@ -0,0 +1,26 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import com.jero.generater.modules.online.cgform.converter.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + +public class i + extends a +{ + public i(OnlCgformField paramOnlCgformField) { + String str = paramOnlCgformField.getDictText(); + + String[] arrayOfString = str.split(","); + setTable(paramOnlCgformField.getDictTable()); + setCode(arrayOfString[0]); + setText(arrayOfString[2]); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\i.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/j.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/j.java new file mode 100644 index 00000000..9de2b344 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/b/j.java @@ -0,0 +1,65 @@ +package com.jero.generater.modules.online.cgform.converter.b; + +import java.util.ArrayList; +import java.util.List; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + +public class j + extends com.jero.generater.modules.online.cgform.converter.a.b +{ + public j(OnlCgformField paramOnlCgformField) { + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI)SpringContextUtils.getBean(ISysBaseAPI.class); + String str1 = "SYS_USER"; + String str2 = "REALNAME"; + String str3 = "USERNAME"; + List list = iSysBaseAPI.queryTableDictItemsByCode(str1, str2, str3); + this.b = list; + this.a = paramOnlCgformField.getDbFieldName(); + } + + + public String converterToVal(String txt) { + if (oConvertUtils.isEmpty(txt)) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (String str1 : txt.split(",")) { + String str2 = super.converterToVal(str1); + if (str2 != null) + { + + arrayList.add(str2); } + } + return String.join(",", (Iterable)arrayList); + } + + + public String converterToTxt(String val) { + if (oConvertUtils.isEmpty(val)) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (String str1 : val.split(",")) { + String str2 = super.converterToTxt(str1); + if (str2 != null) + { + + arrayList.add(str2); } + } + return String.join(",", (Iterable)arrayList); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\b\j.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/c.java new file mode 100644 index 00000000..29898828 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/c.java @@ -0,0 +1,40 @@ +package com.jero.generater.modules.online.cgform.converter; + +import java.util.Map; +import org.springframework.stereotype.Component; + +@Component("customDemoConverter") +public class c + implements FieldCommentConverter +{ + public String converterToVal(String txt) { + if (txt != null && txt.equals("管理员1")) { + return "admin"; + } + return txt; + } + + + + public String converterToTxt(String val) { + if (val != null) { + if (val.equals("admin")) { + return "管理员1"; + } + if (val.equals("scott")) + return "管理员2"; + } + return val; + } + + + public Map getConfig() { + return null; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/c/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/c/a.java new file mode 100644 index 00000000..aedd2bbe --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/converter/c/a.java @@ -0,0 +1,20 @@ +package com.jero.generater.modules.online.cgform.converter.c; + +import java.util.HashMap; +import java.util.Map; + + + + + + +public class a +{ + private static Map a = new HashMap<>(); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\converter\c\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/CgformEnhanceJavaInter.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/CgformEnhanceJavaInter.java new file mode 100644 index 00000000..7d841e13 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/CgformEnhanceJavaInter.java @@ -0,0 +1,18 @@ +package com.jero.generater.modules.online.cgform.enhance; + +import com.alibaba.fastjson.JSONObject; +import java.util.Map; +import com.jero.generater.modules.online.config.exception.BusinessException; + +public interface CgformEnhanceJavaInter { + @Deprecated + int execute(String paramString, Map paramMap) throws BusinessException; + + int execute(String paramString, JSONObject paramJSONObject) throws BusinessException; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\CgformEnhanceJavaInter.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/CgformEnhanceJavaListInter.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/CgformEnhanceJavaListInter.java new file mode 100644 index 00000000..d67b87f4 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/CgformEnhanceJavaListInter.java @@ -0,0 +1,15 @@ +package com.jero.generater.modules.online.cgform.enhance; + +import java.util.List; +import java.util.Map; +import com.jero.generater.modules.online.config.exception.BusinessException; + +public interface CgformEnhanceJavaListInter { + void execute(String paramString, List> paramList) throws BusinessException; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\CgformEnhanceJavaListInter.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/a.java new file mode 100644 index 00000000..31680455 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/a.java @@ -0,0 +1,66 @@ +package com.jero.generater.modules.online.cgform.enhance.a; + +import com.alibaba.fastjson.JSONObject; +import java.util.Map; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaInter; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; + + + + + +@Component("cgformEnhanceBeanDemo") +public class a + implements CgformEnhanceJavaInter +{ + private static final Logger a = LoggerFactory.getLogger(a.class); + + + + + public int execute(String tableName, JSONObject json) throws BusinessException { + a.info("--------我是自定义java增强测试bean-----------"); + + + + + + a.info("--------当前表单 tableName=> " + tableName); + a.info("--------当前表单 JSON数据=> " + json.toJSONString()); + + + + + + + if (json.containsKey("phone")) { + json.put("phone", "18611100000"); + } + + + + + + + + + + + + return 1; + } + + + public int execute(String tableName, Map map) throws BusinessException { + return 1; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\a\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/b.java new file mode 100644 index 00000000..0a278896 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/b.java @@ -0,0 +1,64 @@ +package com.jero.generater.modules.online.cgform.enhance.a; + +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.SysCategoryModel; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaListInter; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + + + + + + +@Component("cgformEnhanceExportDemo") +public class b + implements CgformEnhanceJavaListInter +{ + @Autowired + ISysBaseAPI sysBaseAPI; + @Autowired + IOnlCgformFieldService onlCgformFieldService; + + public void execute(String tableName, List> data) throws BusinessException { + List list = this.sysBaseAPI.queryAllDSysCategory(); + for (Map map : data) { + + String str1 = oConvertUtils.getString(map.get("fen_tree")); + if (oConvertUtils.isEmpty(str1)) { + continue; + } + List list1 = (List)list.stream().filter(paramSysCategoryModel -> paramSysCategoryModel.getId().equals(paramString)).collect(Collectors.toList()); + if (list1 != null && list1.size() != 0) { + map.put("fen_tree", ((SysCategoryModel)list1.get(0)).getName()); + } + + + String str2 = oConvertUtils.getString(map.get("sel_search")); + if (oConvertUtils.isEmpty(str2)) { + continue; + } + + OnlCgformField onlCgformField = this.onlCgformFieldService.queryFormFieldByTableNameAndField(tableName, "sel_search"); + if (onlCgformField == null || oConvertUtils.isEmpty(onlCgformField.getDictTable())) { + continue; + } + List list2 = this.sysBaseAPI.queryTableDictByKeys(onlCgformField.getDictTable(), onlCgformField.getDictText(), onlCgformField.getDictField(), new String[] { str2 }); + if (list2 != null && list2.size() > 0) + map.put("sel_search", list2.get(0)); + } + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\a\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/c.java new file mode 100644 index 00000000..5855dc42 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/c.java @@ -0,0 +1,64 @@ +package com.jero.generater.modules.online.cgform.enhance.a; + +import com.alibaba.fastjson.JSONObject; +import java.util.Map; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaInter; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; + +@Component("cgformEnhanceImportDemo") +public class c + implements CgformEnhanceJavaInter { + private static final Logger a = LoggerFactory.getLogger(c.class); + + + + + + public int execute(String tableName, JSONObject json) throws BusinessException { + a.info("--------当前tableName=>" + tableName); + a.info("==============================================================================================================="); + a.info("--------导入JSON数据=>" + json.toJSONString()); + + if (oConvertUtils.isEmpty(json.get("name"))) { + a.info("-----变更导入数据,直接返回1----"); + json.put("name", "默认值"); + return 1; + } + + if (json.getString("name").equals("error")) { + json.put("name", "默认值"); + throw new BusinessException("测试抛出异常error"); + } + + if (json.getString("name").equals("hello")) { + a.info("-----导入数据变更新,直接返回2----"); + json.put("id", "testid123"); + json.put("name", "JAVA导入增强 测试修改"); + return 2; + } + + if (json.getString("name").equals("ok")) { + a.info("-----丢弃导入数据,直接返回0----"); + + return 0; + } + + return 1; + } + + + + public int execute(String tableName, Map map) throws BusinessException { + return 1; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\a\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/d.java new file mode 100644 index 00000000..8e07db64 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/d.java @@ -0,0 +1,37 @@ +package com.jero.generater.modules.online.cgform.enhance.a; + +import com.alibaba.fastjson.JSONObject; +import java.util.Map; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaInter; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; + +@Component("cgformEnhanceJavaDemo") +public class d implements CgformEnhanceJavaInter { + private static final Logger a = LoggerFactory.getLogger(d.class); + + + + + public int execute(String tableName, JSONObject json) throws BusinessException { + a.info("----------我是自定义java增强测试demo类-----------"); + a.info("--------当前tableName=>" + tableName); + a.info("--------当前JSON数据=>" + json.toJSONString()); + + return 1; + } + + + + public int execute(String tableName, Map map) throws BusinessException { + return 1; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\a\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/e.java new file mode 100644 index 00000000..a2ae6288 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enhance/a/e.java @@ -0,0 +1,69 @@ +package com.jero.generater.modules.online.cgform.enhance.a; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaListInter; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.springframework.stereotype.Component; + + + + +@Component("cgformEnhanceQueryDemo") +public class e + implements CgformEnhanceJavaListInter +{ + public void execute(String tableName, List> data) throws BusinessException { + List list = a(); + for (Map map : data) { + Object object = map.get("province"); + if (object == null) { + continue; + } + + + + + String str = list.stream().filter(parama -> paramObject.toString().equals(parama.a())).map(a::b).findAny().orElse(""); + map.put("province", str); + } + } + + + + + + private List a() { + ArrayList arrayList = new ArrayList(); + arrayList.add(new a(this, "bj", "北京")); + arrayList.add(new a(this, "sd", "山东")); + arrayList.add(new a(this, "ah", "安徽")); + return arrayList; + } + + class a { + String a; + String b; + + public a(e this$0, String param1String1, String param1String2) { + this.a = param1String1; + this.b = param1String2; + } + + public String a() { + return this.a; + } + + + public String b() { + return this.b; + } + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enhance\a\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformButton.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformButton.java new file mode 100644 index 00000000..3d6a1255 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformButton.java @@ -0,0 +1,47 @@ +package com.jero.generater.modules.online.cgform.entity; +@TableName("onl_cgform_button") +public class OnlCgformButton implements Serializable { private static final long serialVersionUID = 1L; @TableId(type = IdType.UUID) + private String id; private String cgformHeadId; + private String buttonCode; + private String buttonName; + private String buttonStyle; + + public void setId(String id) { this.id = id; } private String optType; private String exp; private String buttonStatus; private Integer orderNum; private String buttonIcon; private String optPosition; public void setCgformHeadId(String cgformHeadId) { this.cgformHeadId = cgformHeadId; } public void setButtonCode(String buttonCode) { this.buttonCode = buttonCode; } public void setButtonName(String buttonName) { this.buttonName = buttonName; } public void setButtonStyle(String buttonStyle) { this.buttonStyle = buttonStyle; } public void setOptType(String optType) { this.optType = optType; } public void setExp(String exp) { this.exp = exp; } public void setButtonStatus(String buttonStatus) { this.buttonStatus = buttonStatus; } public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; } public void setButtonIcon(String buttonIcon) { this.buttonIcon = buttonIcon; } public void setOptPosition(String optPosition) { this.optPosition = optPosition; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformButton)) return false; OnlCgformButton onlCgformButton = (OnlCgformButton)o; if (!onlCgformButton.canEqual(this)) return false; Integer integer1 = getOrderNum(), integer2 = onlCgformButton.getOrderNum(); if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; String str1 = getId(), str2 = onlCgformButton.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgformHeadId(), str4 = onlCgformButton.getCgformHeadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getButtonCode(), str6 = onlCgformButton.getButtonCode(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getButtonName(), str8 = onlCgformButton.getButtonName(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getButtonStyle(), str10 = onlCgformButton.getButtonStyle(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getOptType(), str12 = onlCgformButton.getOptType(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getExp(), str14 = onlCgformButton.getExp(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; String str15 = getButtonStatus(), str16 = onlCgformButton.getButtonStatus(); if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; String str17 = getButtonIcon(), str18 = onlCgformButton.getButtonIcon(); if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false; String str19 = getOptPosition(), str20 = onlCgformButton.getOptPosition(); return !((str19 == null) ? (str20 != null) : !str19.equals(str20)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformButton; } public int hashCode() { byte b = 59; null = 1; Integer integer = getOrderNum(); null = null * 59 + ((integer == null) ? 43 : integer.hashCode()); String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgformHeadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getButtonCode(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getButtonName(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getButtonStyle(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getOptType(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getExp(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); String str8 = getButtonStatus(); null = null * 59 + ((str8 == null) ? 43 : str8.hashCode()); String str9 = getButtonIcon(); null = null * 59 + ((str9 == null) ? 43 : str9.hashCode()); String str10 = getOptPosition(); return null * 59 + ((str10 == null) ? 43 : str10.hashCode()); } public String toString() { return "OnlCgformButton(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", buttonCode=" + getButtonCode() + ", buttonName=" + getButtonName() + ", buttonStyle=" + getButtonStyle() + ", optType=" + getOptType() + ", exp=" + getExp() + ", buttonStatus=" + getButtonStatus() + ", orderNum=" + getOrderNum() + ", buttonIcon=" + getButtonIcon() + ", optPosition=" + getOptPosition() + ")"; } + + + + + + public String getId() { + return this.id; + } + public String getCgformHeadId() { + return this.cgformHeadId; + } + public String getButtonCode() { + return this.buttonCode; + } public String getButtonName() { + return this.buttonName; + } public String getButtonStyle() { + return this.buttonStyle; + } public String getOptType() { + return this.optType; + } public String getExp() { + return this.exp; + } public String getButtonStatus() { + return this.buttonStatus; + } public Integer getOrderNum() { + return this.orderNum; + } public String getButtonIcon() { + return this.buttonIcon; + } + + public String getOptPosition() { + return this.optPosition; + } } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformButton.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceJava.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceJava.java new file mode 100644 index 00000000..4c84c87c --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceJava.java @@ -0,0 +1,44 @@ +package com.jero.generater.modules.online.cgform.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; + +@TableName("onl_cgform_enhance_java") +public class OnlCgformEnhanceJava implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.UUID) + private String id; + private String cgformHeadId; + private String buttonCode; + + public void setId(String id) { + this.id = id; } private String cgJavaType; private String cgJavaValue; private String activeStatus; private String event; public void setCgformHeadId(String cgformHeadId) { this.cgformHeadId = cgformHeadId; } public void setButtonCode(String buttonCode) { this.buttonCode = buttonCode; } public void setCgJavaType(String cgJavaType) { this.cgJavaType = cgJavaType; } public void setCgJavaValue(String cgJavaValue) { this.cgJavaValue = cgJavaValue; } public void setActiveStatus(String activeStatus) { this.activeStatus = activeStatus; } public void setEvent(String event) { this.event = event; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformEnhanceJava)) return false; OnlCgformEnhanceJava onlCgformEnhanceJava = (OnlCgformEnhanceJava)o; if (!onlCgformEnhanceJava.canEqual(this)) return false; String str1 = getId(), str2 = onlCgformEnhanceJava.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgformHeadId(), str4 = onlCgformEnhanceJava.getCgformHeadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getButtonCode(), str6 = onlCgformEnhanceJava.getButtonCode(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getCgJavaType(), str8 = onlCgformEnhanceJava.getCgJavaType(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getCgJavaValue(), str10 = onlCgformEnhanceJava.getCgJavaValue(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getActiveStatus(), str12 = onlCgformEnhanceJava.getActiveStatus(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getEvent(), str14 = onlCgformEnhanceJava.getEvent(); return !((str13 == null) ? (str14 != null) : !str13.equals(str14)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformEnhanceJava; } public int hashCode() { byte b = 59; null = 1; String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgformHeadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getButtonCode(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getCgJavaType(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getCgJavaValue(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getActiveStatus(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getEvent(); return null * 59 + ((str7 == null) ? 43 : str7.hashCode()); } public String toString() { return "OnlCgformEnhanceJava(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", buttonCode=" + getButtonCode() + ", cgJavaType=" + getCgJavaType() + ", cgJavaValue=" + getCgJavaValue() + ", activeStatus=" + getActiveStatus() + ", event=" + getEvent() + ")"; } + + + + + + public String getId() { + return this.id; + } public String getCgformHeadId() { + return this.cgformHeadId; + } public String getButtonCode() { + return this.buttonCode; + } public String getCgJavaType() { + return this.cgJavaType; + } public String getCgJavaValue() { + return this.cgJavaValue; + } public String getActiveStatus() { + return this.activeStatus; + } public String getEvent() { + return this.event; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformEnhanceJava.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceJs.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceJs.java new file mode 100644 index 00000000..e7ffb956 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceJs.java @@ -0,0 +1,44 @@ +package com.jero.generater.modules.online.cgform.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; + +@TableName("onl_cgform_enhance_js") +public class OnlCgformEnhanceJs implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.UUID) + private String id; + private String cgformHeadId; + private String cgJsType; + private String cgJs; + private String content; + + public void setId(String id) { this.id = id; } public void setCgformHeadId(String cgformHeadId) { this.cgformHeadId = cgformHeadId; } public void setCgJsType(String cgJsType) { this.cgJsType = cgJsType; } public void setCgJs(String cgJs) { this.cgJs = cgJs; } public void setContent(String content) { this.content = content; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformEnhanceJs)) return false; OnlCgformEnhanceJs onlCgformEnhanceJs = (OnlCgformEnhanceJs)o; if (!onlCgformEnhanceJs.canEqual(this)) return false; String str1 = getId(), str2 = onlCgformEnhanceJs.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgformHeadId(), str4 = onlCgformEnhanceJs.getCgformHeadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getCgJsType(), str6 = onlCgformEnhanceJs.getCgJsType(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getCgJs(), str8 = onlCgformEnhanceJs.getCgJs(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getContent(), str10 = onlCgformEnhanceJs.getContent(); return !((str9 == null) ? (str10 != null) : !str9.equals(str10)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformEnhanceJs; } public int hashCode() { byte b = 59; null = 1; String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgformHeadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getCgJsType(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getCgJs(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getContent(); return null * 59 + ((str5 == null) ? 43 : str5.hashCode()); } public String toString() { return "OnlCgformEnhanceJs(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", cgJsType=" + getCgJsType() + ", cgJs=" + getCgJs() + ", content=" + getContent() + ")"; } + + + + + + public String getId() { + return this.id; + } + public String getCgformHeadId() { + return this.cgformHeadId; + } + public String getCgJsType() { + return this.cgJsType; + } + public String getCgJs() { + return this.cgJs; + } + public String getContent() { + return this.content; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformEnhanceJs.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceSql.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceSql.java new file mode 100644 index 00000000..dcf584b7 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformEnhanceSql.java @@ -0,0 +1,39 @@ +package com.jero.generater.modules.online.cgform.entity; + +@TableName("onl_cgform_enhance_sql") +public class OnlCgformEnhanceSql implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.UUID) + private String id; + private String cgformHeadId; + + public void setId(String id) { this.id = id; } private String buttonCode; private String cgbSql; private String cgbSqlName; private String content; public void setCgformHeadId(String cgformHeadId) { this.cgformHeadId = cgformHeadId; } public void setButtonCode(String buttonCode) { this.buttonCode = buttonCode; } public void setCgbSql(String cgbSql) { this.cgbSql = cgbSql; } public void setCgbSqlName(String cgbSqlName) { this.cgbSqlName = cgbSqlName; } public void setContent(String content) { this.content = content; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformEnhanceSql)) return false; OnlCgformEnhanceSql onlCgformEnhanceSql = (OnlCgformEnhanceSql)o; if (!onlCgformEnhanceSql.canEqual(this)) return false; String str1 = getId(), str2 = onlCgformEnhanceSql.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgformHeadId(), str4 = onlCgformEnhanceSql.getCgformHeadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getButtonCode(), str6 = onlCgformEnhanceSql.getButtonCode(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getCgbSql(), str8 = onlCgformEnhanceSql.getCgbSql(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getCgbSqlName(), str10 = onlCgformEnhanceSql.getCgbSqlName(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getContent(), str12 = onlCgformEnhanceSql.getContent(); return !((str11 == null) ? (str12 != null) : !str11.equals(str12)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformEnhanceSql; } public int hashCode() { byte b = 59; null = 1; String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgformHeadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getButtonCode(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getCgbSql(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getCgbSqlName(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getContent(); return null * 59 + ((str6 == null) ? 43 : str6.hashCode()); } public String toString() { return "OnlCgformEnhanceSql(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", buttonCode=" + getButtonCode() + ", cgbSql=" + getCgbSql() + ", cgbSqlName=" + getCgbSqlName() + ", content=" + getContent() + ")"; } + + + + + + public String getId() { + return this.id; + } + public String getCgformHeadId() { + return this.cgformHeadId; + } + public String getButtonCode() { + return this.buttonCode; + } + public String getCgbSql() { + return this.cgbSql; + } public String getCgbSqlName() { + return this.cgbSqlName; + } + public String getContent() { + return this.content; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformEnhanceSql.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformField.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformField.java new file mode 100644 index 00000000..3e6319cc --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformField.java @@ -0,0 +1,140 @@ +package com.jero.generater.modules.online.cgform.entity; +@TableName("onl_cgform_field") +public class OnlCgformField implements Serializable { private static final long serialVersionUID = 1L; @TableId(type = IdType.UUID) + private String id; private String cgformHeadId; private String dbFieldName; private String dbFieldTxt; private String dbFieldNameOld; private Integer dbIsKey; private Integer dbIsNull; + private String dbType; + private Integer dbLength; + private Integer dbPointLength; + private String dbDefaultVal; + private String dictField; + private String dictTable; + private String dictText; + private String fieldShowType; + private String fieldHref; + private Integer fieldLength; + private String fieldValidType; + private String fieldMustInput; + private String fieldExtendJson; + private String fieldDefaultValue; + + public void setId(String id) { this.id = id; } private Integer isQuery; private Integer isShowForm; private Integer isShowList; private Integer isReadOnly; private String queryMode; private String mainTable; private String mainField; private Integer orderNum; private String updateBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; private String createBy; private String converter; private String queryConfigFlag; private String queryDefVal; private String queryDictText; private String queryDictField; private String queryDictTable; private String queryShowType; private String queryValidType; private String queryMustInput; private String sortFlag; public void setCgformHeadId(String cgformHeadId) { this.cgformHeadId = cgformHeadId; } public void setDbFieldName(String dbFieldName) { this.dbFieldName = dbFieldName; } public void setDbFieldTxt(String dbFieldTxt) { this.dbFieldTxt = dbFieldTxt; } public void setDbFieldNameOld(String dbFieldNameOld) { this.dbFieldNameOld = dbFieldNameOld; } public void setDbIsKey(Integer dbIsKey) { this.dbIsKey = dbIsKey; } public void setDbIsNull(Integer dbIsNull) { this.dbIsNull = dbIsNull; } public void setDbType(String dbType) { this.dbType = dbType; } public void setDbLength(Integer dbLength) { this.dbLength = dbLength; } public void setDbPointLength(Integer dbPointLength) { this.dbPointLength = dbPointLength; } public void setDbDefaultVal(String dbDefaultVal) { this.dbDefaultVal = dbDefaultVal; } public void setDictField(String dictField) { this.dictField = dictField; } public void setDictTable(String dictTable) { this.dictTable = dictTable; } public void setDictText(String dictText) { this.dictText = dictText; } public void setFieldShowType(String fieldShowType) { this.fieldShowType = fieldShowType; } public void setFieldHref(String fieldHref) { this.fieldHref = fieldHref; } public void setFieldLength(Integer fieldLength) { this.fieldLength = fieldLength; } public void setFieldValidType(String fieldValidType) { this.fieldValidType = fieldValidType; } public void setFieldMustInput(String fieldMustInput) { this.fieldMustInput = fieldMustInput; } public void setFieldExtendJson(String fieldExtendJson) { this.fieldExtendJson = fieldExtendJson; } public void setFieldDefaultValue(String fieldDefaultValue) { this.fieldDefaultValue = fieldDefaultValue; } public void setIsQuery(Integer isQuery) { this.isQuery = isQuery; } public void setIsShowForm(Integer isShowForm) { this.isShowForm = isShowForm; } public void setIsShowList(Integer isShowList) { this.isShowList = isShowList; } public void setIsReadOnly(Integer isReadOnly) { this.isReadOnly = isReadOnly; } public void setQueryMode(String queryMode) { this.queryMode = queryMode; } public void setMainTable(String mainTable) { this.mainTable = mainTable; } public void setMainField(String mainField) { this.mainField = mainField; } public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setCreateBy(String createBy) { this.createBy = createBy; } public void setConverter(String converter) { this.converter = converter; } public void setQueryConfigFlag(String queryConfigFlag) { this.queryConfigFlag = queryConfigFlag; } public void setQueryDefVal(String queryDefVal) { this.queryDefVal = queryDefVal; } public void setQueryDictText(String queryDictText) { this.queryDictText = queryDictText; } public void setQueryDictField(String queryDictField) { this.queryDictField = queryDictField; } public void setQueryDictTable(String queryDictTable) { this.queryDictTable = queryDictTable; } public void setQueryShowType(String queryShowType) { this.queryShowType = queryShowType; } public void setQueryValidType(String queryValidType) { this.queryValidType = queryValidType; } public void setQueryMustInput(String queryMustInput) { this.queryMustInput = queryMustInput; } public void setSortFlag(String sortFlag) { this.sortFlag = sortFlag; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformField)) return false; OnlCgformField onlCgformField = (OnlCgformField)o; if (!onlCgformField.canEqual(this)) return false; Integer integer1 = getDbIsKey(), integer2 = onlCgformField.getDbIsKey(); if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; Integer integer3 = getDbIsNull(), integer4 = onlCgformField.getDbIsNull(); if ((integer3 == null) ? (integer4 != null) : !integer3.equals(integer4)) return false; Integer integer5 = getDbLength(), integer6 = onlCgformField.getDbLength(); if ((integer5 == null) ? (integer6 != null) : !integer5.equals(integer6)) return false; Integer integer7 = getDbPointLength(), integer8 = onlCgformField.getDbPointLength(); if ((integer7 == null) ? (integer8 != null) : !integer7.equals(integer8)) return false; Integer integer9 = getFieldLength(), integer10 = onlCgformField.getFieldLength(); if ((integer9 == null) ? (integer10 != null) : !integer9.equals(integer10)) return false; Integer integer11 = getIsQuery(), integer12 = onlCgformField.getIsQuery(); if ((integer11 == null) ? (integer12 != null) : !integer11.equals(integer12)) return false; Integer integer13 = getIsShowForm(), integer14 = onlCgformField.getIsShowForm(); if ((integer13 == null) ? (integer14 != null) : !integer13.equals(integer14)) return false; Integer integer15 = getIsShowList(), integer16 = onlCgformField.getIsShowList(); if ((integer15 == null) ? (integer16 != null) : !integer15.equals(integer16)) return false; Integer integer17 = getIsReadOnly(), integer18 = onlCgformField.getIsReadOnly(); if ((integer17 == null) ? (integer18 != null) : !integer17.equals(integer18)) return false; Integer integer19 = getOrderNum(), integer20 = onlCgformField.getOrderNum(); if ((integer19 == null) ? (integer20 != null) : !integer19.equals(integer20)) return false; String str1 = getId(), str2 = onlCgformField.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgformHeadId(), str4 = onlCgformField.getCgformHeadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getDbFieldName(), str6 = onlCgformField.getDbFieldName(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getDbFieldTxt(), str8 = onlCgformField.getDbFieldTxt(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getDbFieldNameOld(), str10 = onlCgformField.getDbFieldNameOld(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getDbType(), str12 = onlCgformField.getDbType(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getDbDefaultVal(), str14 = onlCgformField.getDbDefaultVal(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; String str15 = getDictField(), str16 = onlCgformField.getDictField(); if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; String str17 = getDictTable(), str18 = onlCgformField.getDictTable(); if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false; String str19 = getDictText(), str20 = onlCgformField.getDictText(); if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false; String str21 = getFieldShowType(), str22 = onlCgformField.getFieldShowType(); if ((str21 == null) ? (str22 != null) : !str21.equals(str22)) return false; String str23 = getFieldHref(), str24 = onlCgformField.getFieldHref(); if ((str23 == null) ? (str24 != null) : !str23.equals(str24)) return false; String str25 = getFieldValidType(), str26 = onlCgformField.getFieldValidType(); if ((str25 == null) ? (str26 != null) : !str25.equals(str26)) return false; String str27 = getFieldMustInput(), str28 = onlCgformField.getFieldMustInput(); if ((str27 == null) ? (str28 != null) : !str27.equals(str28)) return false; String str29 = getFieldExtendJson(), str30 = onlCgformField.getFieldExtendJson(); if ((str29 == null) ? (str30 != null) : !str29.equals(str30)) return false; String str31 = getFieldDefaultValue(), str32 = onlCgformField.getFieldDefaultValue(); if ((str31 == null) ? (str32 != null) : !str31.equals(str32)) return false; String str33 = getQueryMode(), str34 = onlCgformField.getQueryMode(); if ((str33 == null) ? (str34 != null) : !str33.equals(str34)) return false; String str35 = getMainTable(), str36 = onlCgformField.getMainTable(); if ((str35 == null) ? (str36 != null) : !str35.equals(str36)) return false; String str37 = getMainField(), str38 = onlCgformField.getMainField(); if ((str37 == null) ? (str38 != null) : !str37.equals(str38)) return false; String str39 = getUpdateBy(), str40 = onlCgformField.getUpdateBy(); if ((str39 == null) ? (str40 != null) : !str39.equals(str40)) return false; Date date1 = getUpdateTime(), date2 = onlCgformField.getUpdateTime(); if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false; Date date3 = getCreateTime(), date4 = onlCgformField.getCreateTime(); if ((date3 == null) ? (date4 != null) : !date3.equals(date4)) return false; String str41 = getCreateBy(), str42 = onlCgformField.getCreateBy(); if ((str41 == null) ? (str42 != null) : !str41.equals(str42)) return false; String str43 = getConverter(), str44 = onlCgformField.getConverter(); if ((str43 == null) ? (str44 != null) : !str43.equals(str44)) return false; String str45 = getQueryConfigFlag(), str46 = onlCgformField.getQueryConfigFlag(); if ((str45 == null) ? (str46 != null) : !str45.equals(str46)) return false; String str47 = getQueryDefVal(), str48 = onlCgformField.getQueryDefVal(); if ((str47 == null) ? (str48 != null) : !str47.equals(str48)) return false; String str49 = getQueryDictText(), str50 = onlCgformField.getQueryDictText(); if ((str49 == null) ? (str50 != null) : !str49.equals(str50)) return false; String str51 = getQueryDictField(), str52 = onlCgformField.getQueryDictField(); if ((str51 == null) ? (str52 != null) : !str51.equals(str52)) return false; String str53 = getQueryDictTable(), str54 = onlCgformField.getQueryDictTable(); if ((str53 == null) ? (str54 != null) : !str53.equals(str54)) return false; String str55 = getQueryShowType(), str56 = onlCgformField.getQueryShowType(); if ((str55 == null) ? (str56 != null) : !str55.equals(str56)) return false; String str57 = getQueryValidType(), str58 = onlCgformField.getQueryValidType(); if ((str57 == null) ? (str58 != null) : !str57.equals(str58)) return false; String str59 = getQueryMustInput(), str60 = onlCgformField.getQueryMustInput(); if ((str59 == null) ? (str60 != null) : !str59.equals(str60)) return false; String str61 = getSortFlag(), str62 = onlCgformField.getSortFlag(); return !((str61 == null) ? (str62 != null) : !str61.equals(str62)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformField; } public int hashCode() { byte b = 59; null = 1; Integer integer1 = getDbIsKey(); null = null * 59 + ((integer1 == null) ? 43 : integer1.hashCode()); Integer integer2 = getDbIsNull(); null = null * 59 + ((integer2 == null) ? 43 : integer2.hashCode()); Integer integer3 = getDbLength(); null = null * 59 + ((integer3 == null) ? 43 : integer3.hashCode()); Integer integer4 = getDbPointLength(); null = null * 59 + ((integer4 == null) ? 43 : integer4.hashCode()); Integer integer5 = getFieldLength(); null = null * 59 + ((integer5 == null) ? 43 : integer5.hashCode()); Integer integer6 = getIsQuery(); null = null * 59 + ((integer6 == null) ? 43 : integer6.hashCode()); Integer integer7 = getIsShowForm(); null = null * 59 + ((integer7 == null) ? 43 : integer7.hashCode()); Integer integer8 = getIsShowList(); null = null * 59 + ((integer8 == null) ? 43 : integer8.hashCode()); Integer integer9 = getIsReadOnly(); null = null * 59 + ((integer9 == null) ? 43 : integer9.hashCode()); Integer integer10 = getOrderNum(); null = null * 59 + ((integer10 == null) ? 43 : integer10.hashCode()); String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgformHeadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getDbFieldName(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getDbFieldTxt(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getDbFieldNameOld(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getDbType(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getDbDefaultVal(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); String str8 = getDictField(); null = null * 59 + ((str8 == null) ? 43 : str8.hashCode()); String str9 = getDictTable(); null = null * 59 + ((str9 == null) ? 43 : str9.hashCode()); String str10 = getDictText(); null = null * 59 + ((str10 == null) ? 43 : str10.hashCode()); String str11 = getFieldShowType(); null = null * 59 + ((str11 == null) ? 43 : str11.hashCode()); String str12 = getFieldHref(); null = null * 59 + ((str12 == null) ? 43 : str12.hashCode()); String str13 = getFieldValidType(); null = null * 59 + ((str13 == null) ? 43 : str13.hashCode()); String str14 = getFieldMustInput(); null = null * 59 + ((str14 == null) ? 43 : str14.hashCode()); String str15 = getFieldExtendJson(); null = null * 59 + ((str15 == null) ? 43 : str15.hashCode()); String str16 = getFieldDefaultValue(); null = null * 59 + ((str16 == null) ? 43 : str16.hashCode()); String str17 = getQueryMode(); null = null * 59 + ((str17 == null) ? 43 : str17.hashCode()); String str18 = getMainTable(); null = null * 59 + ((str18 == null) ? 43 : str18.hashCode()); String str19 = getMainField(); null = null * 59 + ((str19 == null) ? 43 : str19.hashCode()); String str20 = getUpdateBy(); null = null * 59 + ((str20 == null) ? 43 : str20.hashCode()); Date date1 = getUpdateTime(); null = null * 59 + ((date1 == null) ? 43 : date1.hashCode()); Date date2 = getCreateTime(); null = null * 59 + ((date2 == null) ? 43 : date2.hashCode()); String str21 = getCreateBy(); null = null * 59 + ((str21 == null) ? 43 : str21.hashCode()); String str22 = getConverter(); null = null * 59 + ((str22 == null) ? 43 : str22.hashCode()); String str23 = getQueryConfigFlag(); null = null * 59 + ((str23 == null) ? 43 : str23.hashCode()); String str24 = getQueryDefVal(); null = null * 59 + ((str24 == null) ? 43 : str24.hashCode()); String str25 = getQueryDictText(); null = null * 59 + ((str25 == null) ? 43 : str25.hashCode()); String str26 = getQueryDictField(); null = null * 59 + ((str26 == null) ? 43 : str26.hashCode()); String str27 = getQueryDictTable(); null = null * 59 + ((str27 == null) ? 43 : str27.hashCode()); String str28 = getQueryShowType(); null = null * 59 + ((str28 == null) ? 43 : str28.hashCode()); String str29 = getQueryValidType(); null = null * 59 + ((str29 == null) ? 43 : str29.hashCode()); String str30 = getQueryMustInput(); null = null * 59 + ((str30 == null) ? 43 : str30.hashCode()); String str31 = getSortFlag(); return null * 59 + ((str31 == null) ? 43 : str31.hashCode()); } public String toString() { return "OnlCgformField(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", dbFieldName=" + getDbFieldName() + ", dbFieldTxt=" + getDbFieldTxt() + ", dbFieldNameOld=" + getDbFieldNameOld() + ", dbIsKey=" + getDbIsKey() + ", dbIsNull=" + getDbIsNull() + ", dbType=" + getDbType() + ", dbLength=" + getDbLength() + ", dbPointLength=" + getDbPointLength() + ", dbDefaultVal=" + getDbDefaultVal() + ", dictField=" + getDictField() + ", dictTable=" + getDictTable() + ", dictText=" + getDictText() + ", fieldShowType=" + getFieldShowType() + ", fieldHref=" + getFieldHref() + ", fieldLength=" + getFieldLength() + ", fieldValidType=" + getFieldValidType() + ", fieldMustInput=" + getFieldMustInput() + ", fieldExtendJson=" + getFieldExtendJson() + ", fieldDefaultValue=" + getFieldDefaultValue() + ", isQuery=" + getIsQuery() + ", isShowForm=" + getIsShowForm() + ", isShowList=" + getIsShowList() + ", isReadOnly=" + getIsReadOnly() + ", queryMode=" + getQueryMode() + ", mainTable=" + getMainTable() + ", mainField=" + getMainField() + ", orderNum=" + getOrderNum() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ", createTime=" + getCreateTime() + ", createBy=" + getCreateBy() + ", converter=" + getConverter() + ", queryConfigFlag=" + getQueryConfigFlag() + ", queryDefVal=" + getQueryDefVal() + ", queryDictText=" + getQueryDictText() + ", queryDictField=" + getQueryDictField() + ", queryDictTable=" + getQueryDictTable() + ", queryShowType=" + getQueryShowType() + ", queryValidType=" + getQueryValidType() + ", queryMustInput=" + getQueryMustInput() + ", sortFlag=" + getSortFlag() + ")"; } + + + + + + public String getId() { + return this.id; + } public String getCgformHeadId() { + return this.cgformHeadId; + } public String getDbFieldName() { + return this.dbFieldName; + } public String getDbFieldTxt() { + return this.dbFieldTxt; + } public String getDbFieldNameOld() { + return this.dbFieldNameOld; + } public Integer getDbIsKey() { + return this.dbIsKey; + } public Integer getDbIsNull() { + return this.dbIsNull; + } public String getDbType() { + return this.dbType; + } public Integer getDbLength() { + return this.dbLength; + } public Integer getDbPointLength() { + return this.dbPointLength; + } public String getDbDefaultVal() { + return this.dbDefaultVal; + } public String getDictField() { + return this.dictField; + } public String getDictTable() { + return this.dictTable; + } public String getDictText() { + return this.dictText; + } public String getFieldShowType() { + return this.fieldShowType; + } public String getFieldHref() { + return this.fieldHref; + } public Integer getFieldLength() { + return this.fieldLength; + } public String getFieldValidType() { + return this.fieldValidType; + } public String getFieldMustInput() { + return this.fieldMustInput; + } public String getFieldExtendJson() { + return this.fieldExtendJson; + } + + + + + + + public String getFieldDefaultValue() { + return this.fieldDefaultValue; + } public Integer getIsQuery() { + return this.isQuery; + } public Integer getIsShowForm() { + return this.isShowForm; + } public Integer getIsShowList() { + return this.isShowList; + } public Integer getIsReadOnly() { + return this.isReadOnly; + } public String getQueryMode() { + return this.queryMode; + } public String getMainTable() { + return this.mainTable; + } public String getMainField() { + return this.mainField; + } public Integer getOrderNum() { + return this.orderNum; + } public String getUpdateBy() { + return this.updateBy; + } + + public Date getUpdateTime() { + return this.updateTime; + } + + public Date getCreateTime() { + return this.createTime; + } public String getCreateBy() { + return this.createBy; + } public String getConverter() { + return this.converter; + } + public String getQueryConfigFlag() { + return this.queryConfigFlag; + } + public String getQueryDefVal() { + return this.queryDefVal; + } + public String getQueryDictText() { + return this.queryDictText; + } + public String getQueryDictField() { + return this.queryDictField; + } + public String getQueryDictTable() { + return this.queryDictTable; + } + public String getQueryShowType() { + return this.queryShowType; + } + public String getQueryValidType() { + return this.queryValidType; + } + public String getQueryMustInput() { + return this.queryMustInput; + } + + + public String getSortFlag() { + return this.sortFlag; + } } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformField.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformHead.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformHead.java new file mode 100644 index 00000000..d775e5ca --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformHead.java @@ -0,0 +1,112 @@ +package com.jero.generater.modules.online.cgform.entity; +@TableName("onl_cgform_head") +public class OnlCgformHead implements Serializable { private static final long serialVersionUID = 1L; @TableId(type = IdType.UUID) + private String id; private String tableName; + private Integer tableType; + private Integer tableVersion; + private String tableTxt; + private String isCheckbox; + private String isDbSynch; + private String isPage; + private String isTree; + private String idSequence; + private String idType; + private String queryMode; + private Integer relationType; + private String subTableStr; + private Integer tabOrderNum; + private String treeParentIdField; + + public void setId(String id) { this.id = id; } private String treeIdField; private String treeFieldname; private String formCategory; private String formTemplate; private String themeTemplate; private String formTemplateMobile; private String updateBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; private String createBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; private Integer copyType; private Integer copyVersion; private String physicId; private transient Integer hascopy; private Integer scroll; private transient String taskId; private String isDesForm; private String desFormCode; public void setTableName(String tableName) { this.tableName = tableName; } public void setTableType(Integer tableType) { this.tableType = tableType; } public void setTableVersion(Integer tableVersion) { this.tableVersion = tableVersion; } public void setTableTxt(String tableTxt) { this.tableTxt = tableTxt; } public void setIsCheckbox(String isCheckbox) { this.isCheckbox = isCheckbox; } public void setIsDbSynch(String isDbSynch) { this.isDbSynch = isDbSynch; } public void setIsPage(String isPage) { this.isPage = isPage; } public void setIsTree(String isTree) { this.isTree = isTree; } public void setIdSequence(String idSequence) { this.idSequence = idSequence; } public void setIdType(String idType) { this.idType = idType; } public void setQueryMode(String queryMode) { this.queryMode = queryMode; } public void setRelationType(Integer relationType) { this.relationType = relationType; } public void setSubTableStr(String subTableStr) { this.subTableStr = subTableStr; } public void setTabOrderNum(Integer tabOrderNum) { this.tabOrderNum = tabOrderNum; } public void setTreeParentIdField(String treeParentIdField) { this.treeParentIdField = treeParentIdField; } public void setTreeIdField(String treeIdField) { this.treeIdField = treeIdField; } public void setTreeFieldname(String treeFieldname) { this.treeFieldname = treeFieldname; } public void setFormCategory(String formCategory) { this.formCategory = formCategory; } public void setFormTemplate(String formTemplate) { this.formTemplate = formTemplate; } public void setThemeTemplate(String themeTemplate) { this.themeTemplate = themeTemplate; } public void setFormTemplateMobile(String formTemplateMobile) { this.formTemplateMobile = formTemplateMobile; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public void setCreateBy(String createBy) { this.createBy = createBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setCopyType(Integer copyType) { this.copyType = copyType; } public void setCopyVersion(Integer copyVersion) { this.copyVersion = copyVersion; } public void setPhysicId(String physicId) { this.physicId = physicId; } public void setHascopy(Integer hascopy) { this.hascopy = hascopy; } public void setScroll(Integer scroll) { this.scroll = scroll; } public void setTaskId(String taskId) { this.taskId = taskId; } public void setIsDesForm(String isDesForm) { this.isDesForm = isDesForm; } public void setDesFormCode(String desFormCode) { this.desFormCode = desFormCode; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformHead)) return false; OnlCgformHead onlCgformHead = (OnlCgformHead)o; if (!onlCgformHead.canEqual(this)) return false; Integer integer1 = getTableType(), integer2 = onlCgformHead.getTableType(); if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; Integer integer3 = getTableVersion(), integer4 = onlCgformHead.getTableVersion(); if ((integer3 == null) ? (integer4 != null) : !integer3.equals(integer4)) return false; Integer integer5 = getRelationType(), integer6 = onlCgformHead.getRelationType(); if ((integer5 == null) ? (integer6 != null) : !integer5.equals(integer6)) return false; Integer integer7 = getTabOrderNum(), integer8 = onlCgformHead.getTabOrderNum(); if ((integer7 == null) ? (integer8 != null) : !integer7.equals(integer8)) return false; Integer integer9 = getCopyType(), integer10 = onlCgformHead.getCopyType(); if ((integer9 == null) ? (integer10 != null) : !integer9.equals(integer10)) return false; Integer integer11 = getCopyVersion(), integer12 = onlCgformHead.getCopyVersion(); if ((integer11 == null) ? (integer12 != null) : !integer11.equals(integer12)) return false; Integer integer13 = getScroll(), integer14 = onlCgformHead.getScroll(); if ((integer13 == null) ? (integer14 != null) : !integer13.equals(integer14)) return false; String str1 = getId(), str2 = onlCgformHead.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getTableName(), str4 = onlCgformHead.getTableName(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getTableTxt(), str6 = onlCgformHead.getTableTxt(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getIsCheckbox(), str8 = onlCgformHead.getIsCheckbox(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getIsDbSynch(), str10 = onlCgformHead.getIsDbSynch(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getIsPage(), str12 = onlCgformHead.getIsPage(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getIsTree(), str14 = onlCgformHead.getIsTree(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; String str15 = getIdSequence(), str16 = onlCgformHead.getIdSequence(); if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; String str17 = getIdType(), str18 = onlCgformHead.getIdType(); if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false; String str19 = getQueryMode(), str20 = onlCgformHead.getQueryMode(); if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false; String str21 = getSubTableStr(), str22 = onlCgformHead.getSubTableStr(); if ((str21 == null) ? (str22 != null) : !str21.equals(str22)) return false; String str23 = getTreeParentIdField(), str24 = onlCgformHead.getTreeParentIdField(); if ((str23 == null) ? (str24 != null) : !str23.equals(str24)) return false; String str25 = getTreeIdField(), str26 = onlCgformHead.getTreeIdField(); if ((str25 == null) ? (str26 != null) : !str25.equals(str26)) return false; String str27 = getTreeFieldname(), str28 = onlCgformHead.getTreeFieldname(); if ((str27 == null) ? (str28 != null) : !str27.equals(str28)) return false; String str29 = getFormCategory(), str30 = onlCgformHead.getFormCategory(); if ((str29 == null) ? (str30 != null) : !str29.equals(str30)) return false; String str31 = getFormTemplate(), str32 = onlCgformHead.getFormTemplate(); if ((str31 == null) ? (str32 != null) : !str31.equals(str32)) return false; String str33 = getThemeTemplate(), str34 = onlCgformHead.getThemeTemplate(); if ((str33 == null) ? (str34 != null) : !str33.equals(str34)) return false; String str35 = getFormTemplateMobile(), str36 = onlCgformHead.getFormTemplateMobile(); if ((str35 == null) ? (str36 != null) : !str35.equals(str36)) return false; String str37 = getUpdateBy(), str38 = onlCgformHead.getUpdateBy(); if ((str37 == null) ? (str38 != null) : !str37.equals(str38)) return false; Date date1 = getUpdateTime(), date2 = onlCgformHead.getUpdateTime(); if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false; String str39 = getCreateBy(), str40 = onlCgformHead.getCreateBy(); if ((str39 == null) ? (str40 != null) : !str39.equals(str40)) return false; Date date3 = getCreateTime(), date4 = onlCgformHead.getCreateTime(); if ((date3 == null) ? (date4 != null) : !date3.equals(date4)) return false; String str41 = getPhysicId(), str42 = onlCgformHead.getPhysicId(); if ((str41 == null) ? (str42 != null) : !str41.equals(str42)) return false; String str43 = getIsDesForm(), str44 = onlCgformHead.getIsDesForm(); if ((str43 == null) ? (str44 != null) : !str43.equals(str44)) return false; String str45 = getDesFormCode(), str46 = onlCgformHead.getDesFormCode(); return !((str45 == null) ? (str46 != null) : !str45.equals(str46)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformHead; } public int hashCode() { byte b = 59; null = 1; Integer integer1 = getTableType(); null = null * 59 + ((integer1 == null) ? 43 : integer1.hashCode()); Integer integer2 = getTableVersion(); null = null * 59 + ((integer2 == null) ? 43 : integer2.hashCode()); Integer integer3 = getRelationType(); null = null * 59 + ((integer3 == null) ? 43 : integer3.hashCode()); Integer integer4 = getTabOrderNum(); null = null * 59 + ((integer4 == null) ? 43 : integer4.hashCode()); Integer integer5 = getCopyType(); null = null * 59 + ((integer5 == null) ? 43 : integer5.hashCode()); Integer integer6 = getCopyVersion(); null = null * 59 + ((integer6 == null) ? 43 : integer6.hashCode()); Integer integer7 = getScroll(); null = null * 59 + ((integer7 == null) ? 43 : integer7.hashCode()); String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getTableName(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getTableTxt(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getIsCheckbox(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getIsDbSynch(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getIsPage(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getIsTree(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); String str8 = getIdSequence(); null = null * 59 + ((str8 == null) ? 43 : str8.hashCode()); String str9 = getIdType(); null = null * 59 + ((str9 == null) ? 43 : str9.hashCode()); String str10 = getQueryMode(); null = null * 59 + ((str10 == null) ? 43 : str10.hashCode()); String str11 = getSubTableStr(); null = null * 59 + ((str11 == null) ? 43 : str11.hashCode()); String str12 = getTreeParentIdField(); null = null * 59 + ((str12 == null) ? 43 : str12.hashCode()); String str13 = getTreeIdField(); null = null * 59 + ((str13 == null) ? 43 : str13.hashCode()); String str14 = getTreeFieldname(); null = null * 59 + ((str14 == null) ? 43 : str14.hashCode()); String str15 = getFormCategory(); null = null * 59 + ((str15 == null) ? 43 : str15.hashCode()); String str16 = getFormTemplate(); null = null * 59 + ((str16 == null) ? 43 : str16.hashCode()); String str17 = getThemeTemplate(); null = null * 59 + ((str17 == null) ? 43 : str17.hashCode()); String str18 = getFormTemplateMobile(); null = null * 59 + ((str18 == null) ? 43 : str18.hashCode()); String str19 = getUpdateBy(); null = null * 59 + ((str19 == null) ? 43 : str19.hashCode()); Date date1 = getUpdateTime(); null = null * 59 + ((date1 == null) ? 43 : date1.hashCode()); String str20 = getCreateBy(); null = null * 59 + ((str20 == null) ? 43 : str20.hashCode()); Date date2 = getCreateTime(); null = null * 59 + ((date2 == null) ? 43 : date2.hashCode()); String str21 = getPhysicId(); null = null * 59 + ((str21 == null) ? 43 : str21.hashCode()); String str22 = getIsDesForm(); null = null * 59 + ((str22 == null) ? 43 : str22.hashCode()); String str23 = getDesFormCode(); return null * 59 + ((str23 == null) ? 43 : str23.hashCode()); } public String toString() { return "OnlCgformHead(id=" + getId() + ", tableName=" + getTableName() + ", tableType=" + getTableType() + ", tableVersion=" + getTableVersion() + ", tableTxt=" + getTableTxt() + ", isCheckbox=" + getIsCheckbox() + ", isDbSynch=" + getIsDbSynch() + ", isPage=" + getIsPage() + ", isTree=" + getIsTree() + ", idSequence=" + getIdSequence() + ", idType=" + getIdType() + ", queryMode=" + getQueryMode() + ", relationType=" + getRelationType() + ", subTableStr=" + getSubTableStr() + ", tabOrderNum=" + getTabOrderNum() + ", treeParentIdField=" + getTreeParentIdField() + ", treeIdField=" + getTreeIdField() + ", treeFieldname=" + getTreeFieldname() + ", formCategory=" + getFormCategory() + ", formTemplate=" + getFormTemplate() + ", themeTemplate=" + getThemeTemplate() + ", formTemplateMobile=" + getFormTemplateMobile() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", copyType=" + getCopyType() + ", copyVersion=" + getCopyVersion() + ", physicId=" + getPhysicId() + ", hascopy=" + getHascopy() + ", scroll=" + getScroll() + ", taskId=" + getTaskId() + ", isDesForm=" + getIsDesForm() + ", desFormCode=" + getDesFormCode() + ")"; } + + + + + + + public String getId() { + return this.id; + } public String getTableName() { + return this.tableName; + } public Integer getTableType() { + return this.tableType; + } public Integer getTableVersion() { + return this.tableVersion; + } public String getTableTxt() { + return this.tableTxt; + } public String getIsCheckbox() { + return this.isCheckbox; + } public String getIsDbSynch() { + return this.isDbSynch; + } public String getIsPage() { + return this.isPage; + } public String getIsTree() { + return this.isTree; + } public String getIdSequence() { + return this.idSequence; + } public String getIdType() { + return this.idType; + } public String getQueryMode() { + return this.queryMode; + } public Integer getRelationType() { + return this.relationType; + } public String getSubTableStr() { + return this.subTableStr; + } public Integer getTabOrderNum() { + return this.tabOrderNum; + } public String getTreeParentIdField() { + return this.treeParentIdField; + } public String getTreeIdField() { + return this.treeIdField; + } public String getTreeFieldname() { + return this.treeFieldname; + } public String getFormCategory() { + return this.formCategory; + } public String getFormTemplate() { + return this.formTemplate; + } public String getThemeTemplate() { + return this.themeTemplate; + } public String getFormTemplateMobile() { + return this.formTemplateMobile; + } public String getUpdateBy() { + return this.updateBy; + } + + public Date getUpdateTime() { + return this.updateTime; + } public String getCreateBy() { + return this.createBy; + } + + public Date getCreateTime() { + return this.createTime; + } + + public Integer getCopyType() { + return this.copyType; + } public Integer getCopyVersion() { + return this.copyVersion; + } public String getPhysicId() { + return this.physicId; + } public Integer getHascopy() { + return this.hascopy; + } + + + + public Integer getScroll() { + return this.scroll; + } + public String getTaskId() { + return this.taskId; + } public String getIsDesForm() { + return this.isDesForm; + } public String getDesFormCode() { + return this.desFormCode; + } } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformHead.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformIndex.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformIndex.java new file mode 100644 index 00000000..0340fa2a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/entity/OnlCgformIndex.java @@ -0,0 +1,59 @@ +package com.jero.generater.modules.online.cgform.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.io.Serializable; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +@TableName("onl_cgform_index") +public class OnlCgformIndex implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.UUID) + private String id; + private String cgformHeadId; + private String indexName; + private String indexField; + private String isDbSynch; + + public void setId(String id) { this.id = id; } private Integer delFlag; private String indexType; private String createBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; private String updateBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; public void setCgformHeadId(String cgformHeadId) { this.cgformHeadId = cgformHeadId; } public void setIndexName(String indexName) { this.indexName = indexName; } public void setIndexField(String indexField) { this.indexField = indexField; } public void setIsDbSynch(String isDbSynch) { this.isDbSynch = isDbSynch; } public void setDelFlag(Integer delFlag) { this.delFlag = delFlag; } public void setIndexType(String indexType) { this.indexType = indexType; } public void setCreateBy(String createBy) { this.createBy = createBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgformIndex)) return false; OnlCgformIndex onlCgformIndex = (OnlCgformIndex)o; if (!onlCgformIndex.canEqual(this)) return false; Integer integer1 = getDelFlag(), integer2 = onlCgformIndex.getDelFlag(); if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; String str1 = getId(), str2 = onlCgformIndex.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgformHeadId(), str4 = onlCgformIndex.getCgformHeadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getIndexName(), str6 = onlCgformIndex.getIndexName(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getIndexField(), str8 = onlCgformIndex.getIndexField(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getIsDbSynch(), str10 = onlCgformIndex.getIsDbSynch(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getIndexType(), str12 = onlCgformIndex.getIndexType(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getCreateBy(), str14 = onlCgformIndex.getCreateBy(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; Date date1 = getCreateTime(), date2 = onlCgformIndex.getCreateTime(); if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false; String str15 = getUpdateBy(), str16 = onlCgformIndex.getUpdateBy(); if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; Date date3 = getUpdateTime(), date4 = onlCgformIndex.getUpdateTime(); return !((date3 == null) ? (date4 != null) : !date3.equals(date4)); } protected boolean canEqual(Object other) { return other instanceof OnlCgformIndex; } public int hashCode() { byte b = 59; null = 1; Integer integer = getDelFlag(); null = null * 59 + ((integer == null) ? 43 : integer.hashCode()); String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgformHeadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getIndexName(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getIndexField(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getIsDbSynch(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getIndexType(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getCreateBy(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); Date date1 = getCreateTime(); null = null * 59 + ((date1 == null) ? 43 : date1.hashCode()); String str8 = getUpdateBy(); null = null * 59 + ((str8 == null) ? 43 : str8.hashCode()); Date date2 = getUpdateTime(); return null * 59 + ((date2 == null) ? 43 : date2.hashCode()); } public String toString() { return "OnlCgformIndex(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", indexName=" + getIndexName() + ", indexField=" + getIndexField() + ", isDbSynch=" + getIsDbSynch() + ", delFlag=" + getDelFlag() + ", indexType=" + getIndexType() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ")"; } + + + + + + public String getId() { + return this.id; + } public String getCgformHeadId() { + return this.cgformHeadId; + } public String getIndexName() { + return this.indexName; + } public String getIndexField() { + return this.indexField; + } public String getIsDbSynch() { + return this.isDbSynch; + } public Integer getDelFlag() { + return this.delFlag; + } public String getIndexType() { + return this.indexType; + } public String getCreateBy() { + return this.createBy; + } + + public Date getCreateTime() { + return this.createTime; + } public String getUpdateBy() { + return this.updateBy; + } + + public Date getUpdateTime() { + return this.updateTime; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\entity\OnlCgformIndex.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/CgformConstant.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/CgformConstant.java new file mode 100644 index 00000000..25626c1a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/CgformConstant.java @@ -0,0 +1,19 @@ +package com.jero.generater.modules.online.cgform.enums; + + + + + +public interface CgformConstant +{ + public static final Integer ONLINE_TABLE_TYPE_SUB = Integer.valueOf(3); + public static final Integer ONLINE_TABLE_TYPE_ONE = Integer.valueOf(1); + public static final Integer ONLINE_TABLE_TYPE_MAIN = Integer.valueOf(2); + public static final String ONLINE_JS_CHANGE_FUNCTION_NAME = "onlChange"; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enums\CgformConstant.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/CgformValidPatternEnum.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/CgformValidPatternEnum.java new file mode 100644 index 00000000..c44f0397 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/CgformValidPatternEnum.java @@ -0,0 +1,80 @@ +package com.jero.generater.modules.online.cgform.enums; + + + + + +public enum CgformValidPatternEnum +{ + ONLY("only", "only", ""), + + NUM6_16("n6-16", "^\\d{6,16}$", "请输入6-16位的数字"), + + STRING6_16("*6-16", "^.{6,16}$", "请输入6-16位任意字符"), + + LETTER6_18("s6-18", "^[a-z|A-Z]{6,18}$", "请输入6-18位字母"), + + URL("url", "^((ht|f)tps?):\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+([\\w\\-.,@?^=%&:\\/~+#]*[\\w\\-@?^=%&\\/~+#])?$", "请输入正规的网址"), + + MOBILE("m", "^1[3456789]\\d{9}$", "请输入正规的手机号码"), + + POSTAL("p", "^[1-9]\\d{5}$", "请输入正规的邮政编码"), + + LETTER("s", "[A-Z|a-z]+$", "请输入字母"), + + NUMBER("n", "^-?\\d+(\\.?\\d+|\\d?)$", "请输入数字"), + + INTEGER("z", "z", "请输入整数"), + + NOTNULL("*", "^.+$", "该字段不能为空"), + + EMAIL("e", "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", "请输入正确格式的邮箱地址"), + + MONEY("money", "^(([1-9][0-9]*)|([0]\\.\\d{0,2}|[1-9][0-9]*\\.\\d{0,5}))$", "请输入正确的金额"); + + String type; + + String pattern; + + String msg; + + CgformValidPatternEnum(String type, String pattern, String msg) { + this.pattern = pattern; + this.msg = msg; + this.type = type; + } + + public String getType() { + return this.type; + } + public void setType(String type) { + this.type = type; + } + public String getPattern() { + return this.pattern; + } + public void setPattern(String pattern) { + this.pattern = pattern; + } + public String getMsg() { + return this.msg; + } + public void setMsg(String msg) { + this.msg = msg; + } + + public static CgformValidPatternEnum getPatternInfoByType(String type) { + for (CgformValidPatternEnum cgformValidPatternEnum : values()) { + if (cgformValidPatternEnum.type.equals(type)) { + return cgformValidPatternEnum; + } + } + return null; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enums\CgformValidPatternEnum.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/DataBaseEnum.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/DataBaseEnum.java new file mode 100644 index 00000000..676b6046 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/enums/DataBaseEnum.java @@ -0,0 +1,58 @@ +package com.jero.generater.modules.online.cgform.enums; + + + + +public enum DataBaseEnum +{ + MYSQL("MYSQL", "1"), + ORACLE("ORACLE", "2"), + SQLSERVER("SQLSERVER", "3"), + POSTGRESQL("POSTGRESQL", "4"); + + DataBaseEnum(String name, String value) { + this.name = name; + this.value = value; + } + + + + private String name; + + + private String value; + + + + public static String getDataBaseNameByValue(String value) { + for (DataBaseEnum dataBaseEnum : values()) { + if (dataBaseEnum.value.equals(value)) { + return dataBaseEnum.name; + } + } + return MYSQL.name; + } + + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\enums\DataBaseEnum.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformButtonMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformButtonMapper.java new file mode 100644 index 00000000..eb2fcda1 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformButtonMapper.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; + +public interface OnlCgformButtonMapper extends BaseMapper {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformButtonMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceJavaMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceJavaMapper.java new file mode 100644 index 00000000..d274261d --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceJavaMapper.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJava; + +public interface OnlCgformEnhanceJavaMapper extends BaseMapper {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformEnhanceJavaMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceJsMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceJsMapper.java new file mode 100644 index 00000000..c6c325fa --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceJsMapper.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; + +public interface OnlCgformEnhanceJsMapper extends BaseMapper {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformEnhanceJsMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceSqlMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceSqlMapper.java new file mode 100644 index 00000000..63b39bed --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformEnhanceSqlMapper.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceSql; + +public interface OnlCgformEnhanceSqlMapper extends BaseMapper {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformEnhanceSqlMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformFieldMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformFieldMapper.java new file mode 100644 index 00000000..6de342ef --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformFieldMapper.java @@ -0,0 +1,48 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.annotations.Param; +import com.jero.generater.modules.online.cgform.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.model.TreeModel; + +public interface OnlCgformFieldMapper extends BaseMapper { + List> queryListBySql(@Param("sqlStr") String paramString); + + Integer queryCountBySql(@Param("sqlStr") String paramString); + + void deleteAutoList(@Param("sqlStr") String paramString); + + void saveFormData(@Param("sqlStr") String paramString); + + void editFormData(@Param("sqlStr") String paramString); + + Map queryFormData(@Param("sqlStr") String paramString); + + List> queryListData(@Param("sqlStr") String paramString); + + IPage> selectPageBySql(Page> paramPage, @Param("sqlStr") String paramString); + + void executeInsertSQL(Map paramMap); + + void executeUpdatetSQL(Map paramMap); + + List selectOnlineHideColumns(@Param("user_id") String paramString1, @Param("online_tbname") String paramString2); + + List selectOnlineDisabledColumns(@Param("user_id") String paramString1, @Param("online_tbname") String paramString2); + + List selectFlowAuthColumns(@Param("table_name") String paramString1, @Param("task_id") String paramString2, @Param("rule_type") String paramString3); + + @Deprecated + List queryDataListByLinkDown(@Param("query") a parama); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformFieldMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformHeadMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformHeadMapper.java new file mode 100644 index 00000000..31eed45a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformHeadMapper.java @@ -0,0 +1,42 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; + +public interface OnlCgformHeadMapper extends BaseMapper { + void executeDDL(@Param("sqlStr") String paramString); + + List> queryList(@Param("sqlStr") String paramString); + + List queryOnlinetables(); + + Map queryOneByTableNameAndId(@Param("tbname") String paramString1, @Param("dataId") String paramString2); + + void deleteOne(@Param("sqlStr") String paramString); + + Integer queryMaxCopyVersion(); + + @Select({"select max(copy_version) from onl_cgform_head where physic_id = #{physicId}"}) + Integer getMaxCopyVersion(@Param("physicId") String paramString); + + @Select({"select table_name from onl_cgform_head where physic_id = #{physicId}"}) + List queryAllCopyTableName(@Param("physicId") String paramString); + + @Select({"select physic_id from onl_cgform_head GROUP BY physic_id"}) + List queryCopyPhysicId(); + + String queryCategoryIdByCode(@Param("code") String paramString); + + @Select({"select count(*) from ${tableName} where ${pidField} = #{pidValue}"}) + Integer queryChildNode(@Param("tableName") String paramString1, @Param("pidField") String paramString2, @Param("pidValue") String paramString3); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformHeadMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformIndexMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformIndexMapper.java new file mode 100644 index 00000000..7d238f34 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/OnlCgformIndexMapper.java @@ -0,0 +1,15 @@ +package com.jero.generater.modules.online.cgform.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; + +public interface OnlCgformIndexMapper extends BaseMapper { + int queryIndexCount(@Param("sqlStr") String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\mapper\OnlCgformIndexMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformFieldMapper.xml b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformFieldMapper.xml new file mode 100644 index 00000000..4d8b6253 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformFieldMapper.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + ${sqlStr} + + + + + ${sqlStr} + + + + + + + + + + + ${sqlStr} + + + + + + + + ${execute_sql_string} + + + + + ${execute_sql_string} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformHeadMapper.xml b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformHeadMapper.xml new file mode 100644 index 00000000..f92c7caf --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformHeadMapper.xml @@ -0,0 +1,37 @@ + + + + + + + ${sqlStr} + + + + + + + + + + + + + + + + ${sqlStr} + + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformIndexMapper.xml b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformIndexMapper.xml new file mode 100644 index 00000000..d2a2066f --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/mapper/xml/OnlCgformIndexMapper.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/HrefSlots.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/HrefSlots.java new file mode 100644 index 00000000..b7126732 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/HrefSlots.java @@ -0,0 +1,23 @@ +package com.jero.generater.modules.online.cgform.model; +public class HrefSlots { private String slotName; + private String href; + + public void setSlotName(String slotName) { this.slotName = slotName; } public void setHref(String href) { this.href = href; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof HrefSlots)) return false; HrefSlots hrefSlots = (HrefSlots)o; if (!hrefSlots.canEqual(this)) return false; String str1 = getSlotName(), str2 = hrefSlots.getSlotName(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getHref(), str4 = hrefSlots.getHref(); return !((str3 == null) ? (str4 != null) : !str3.equals(str4)); } protected boolean canEqual(Object other) { return other instanceof HrefSlots; } public int hashCode() { byte b = 59; null = 1; String str1 = getSlotName(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getHref(); return null * 59 + ((str2 == null) ? 43 : str2.hashCode()); } public String toString() { return "HrefSlots(slotName=" + getSlotName() + ", href=" + getHref() + ")"; } + + public String getSlotName() { + return this.slotName; + } public String getHref() { + return this.href; + } + public HrefSlots() {} + + public HrefSlots(String slotName, String href) { + this.slotName = slotName; + this.href = href; + } } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\HrefSlots.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlColumn.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlColumn.java new file mode 100644 index 00000000..0438df42 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlColumn.java @@ -0,0 +1,51 @@ +package com.jero.generater.modules.online.cgform.model; +public class OnlColumn { private String title; + private String dataIndex; + private String align; + + public void setTitle(String title) { this.title = title; } private String customRender; private d scopedSlots; private String hrefSlotName; private int showLength; public void setDataIndex(String dataIndex) { this.dataIndex = dataIndex; } public void setAlign(String align) { this.align = align; } public void setCustomRender(String customRender) { this.customRender = customRender; } public void setScopedSlots(d scopedSlots) { this.scopedSlots = scopedSlots; } public void setHrefSlotName(String hrefSlotName) { this.hrefSlotName = hrefSlotName; } public void setShowLength(int showLength) { this.showLength = showLength; } public void setSorter(boolean sorter) { this.sorter = sorter; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlColumn)) return false; OnlColumn onlColumn = (OnlColumn)o; if (!onlColumn.canEqual(this)) return false; if (getShowLength() != onlColumn.getShowLength()) return false; if (isSorter() != onlColumn.isSorter()) return false; String str1 = getTitle(), str2 = onlColumn.getTitle(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getDataIndex(), str4 = onlColumn.getDataIndex(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getAlign(), str6 = onlColumn.getAlign(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getCustomRender(), str8 = onlColumn.getCustomRender(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; d d1 = getScopedSlots(), d2 = onlColumn.getScopedSlots(); if ((d1 == null) ? (d2 != null) : !d1.equals(d2)) return false; String str9 = getHrefSlotName(), str10 = onlColumn.getHrefSlotName(); return !((str9 == null) ? (str10 != null) : !str9.equals(str10)); } protected boolean canEqual(Object other) { return other instanceof OnlColumn; } public int hashCode() { byte b = 59; null = 1; null = null * 59 + getShowLength(); null = null * 59 + (isSorter() ? 79 : 97); String str1 = getTitle(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getDataIndex(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getAlign(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getCustomRender(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); d d1 = getScopedSlots(); null = null * 59 + ((d1 == null) ? 43 : d1.hashCode()); String str5 = getHrefSlotName(); return null * 59 + ((str5 == null) ? 43 : str5.hashCode()); } public String toString() { return "OnlColumn(title=" + getTitle() + ", dataIndex=" + getDataIndex() + ", align=" + getAlign() + ", customRender=" + getCustomRender() + ", scopedSlots=" + getScopedSlots() + ", hrefSlotName=" + getHrefSlotName() + ", showLength=" + getShowLength() + ", sorter=" + isSorter() + ")"; } + + public String getTitle() { + return this.title; + } public String getDataIndex() { + return this.dataIndex; + } public String getAlign() { + return this.align; + } + + + public String getCustomRender() { + return this.customRender; + } public d getScopedSlots() { + return this.scopedSlots; + } + public String getHrefSlotName() { + return this.hrefSlotName; + } + + + public int getShowLength() { + return this.showLength; + } private boolean sorter = false; public boolean isSorter() { + return this.sorter; + } + + + + + + + + public OnlColumn(String title, String dataIndex) { + this.align = "center"; + this.title = title; + this.dataIndex = dataIndex; + } + + public OnlColumn() {} } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\OnlColumn.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlComplexModel.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlComplexModel.java new file mode 100644 index 00000000..36c06084 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlComplexModel.java @@ -0,0 +1,278 @@ +package com.jero.generater.modules.online.cgform.model; + +import com.jero.common.system.vo.DictModel; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class OnlComplexModel { + private String b; + private String c; + private String d; + private String e; + private Integer f; + private String g; + private String h; + private Integer i; + private List j; + private List k; + + public void setCode(String code) { + this.b = code; + } + + public void setFormTemplate(String formTemplate) { + this.c = formTemplate; + } + + public void setDescription(String description) { + this.d = description; + } + + public void setCurrentTableName(String currentTableName) { + this.e = currentTableName; + } + + public void setTableType(Integer tableType) { + this.f = tableType; + } + + public void setPaginationFlag(String paginationFlag) { + this.g = paginationFlag; + } + + public void setCheckboxFlag(String checkboxFlag) { + this.h = checkboxFlag; + } + + public void setScrollFlag(Integer scrollFlag) { + this.i = scrollFlag; + } + + public void setColumns(List columns) { + this.j = columns; + } + + public void setHideColumns(List hideColumns) { + this.k = hideColumns; + } + + public void setDictOptions(Map> dictOptions) { + this.l = dictOptions; + } + + public void setCgButtonList(List cgButtonList) { + this.m = cgButtonList; + } + + public void setFieldHrefSlots(List fieldHrefSlots) { + this.a = fieldHrefSlots; + } + + public void setEnhanceJs(String enhanceJs) { + this.n = enhanceJs; + } + + public void setForeignKeys(List foreignKeys) { + this.o = foreignKeys; + } + + public void setPidField(String pidField) { + this.p = pidField; + } + + public void setHasChildrenField(String hasChildrenField) { + this.q = hasChildrenField; + } + + public void setTextField(String textField) { + this.r = textField; + } + + public void setIsDesForm(String isDesForm) { + this.s = isDesForm; + } + + public void setDesFormCode(String desFormCode) { + this.t = desFormCode; + } + + public void setRelationType(Integer relationType) { + this.u = relationType; + } + + public boolean equals(Object o) { + if (o == this) return true; + if (!(o instanceof OnlComplexModel)) return false; + OnlComplexModel onlComplexModel1 = (OnlComplexModel) o; + if (!onlComplexModel1.a(this)) return false; + Integer integer1 = getTableType(), integer2 = onlComplexModel1.getTableType(); + if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; + Integer integer3 = getScrollFlag(), integer4 = onlComplexModel1.getScrollFlag(); + if ((integer3 == null) ? (integer4 != null) : !integer3.equals(integer4)) return false; + Integer integer5 = getRelationType(), integer6 = onlComplexModel1.getRelationType(); + if ((integer5 == null) ? (integer6 != null) : !integer5.equals(integer6)) return false; + String str1 = getCode(), str2 = onlComplexModel1.getCode(); + if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; + String str3 = getFormTemplate(), str4 = onlComplexModel1.getFormTemplate(); + if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; + String str5 = getDescription(), str6 = onlComplexModel1.getDescription(); + if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; + String str7 = getCurrentTableName(), str8 = onlComplexModel1.getCurrentTableName(); + if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; + String str9 = getPaginationFlag(), str10 = onlComplexModel1.getPaginationFlag(); + if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; + String str11 = getCheckboxFlag(), str12 = onlComplexModel1.getCheckboxFlag(); + if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; + List list1 = getColumns(), list2 = onlComplexModel1.getColumns(); + if ((list1 == null) ? (list2 != null) : !list1.equals(list2)) return false; + List list3 = getHideColumns(), list4 = onlComplexModel1.getHideColumns(); + if ((list3 == null) ? (list4 != null) : !list3.equals(list4)) return false; + Map> map1 = getDictOptions(), map2 = onlComplexModel1.getDictOptions(); + if ((map1 == null) ? (map2 != null) : !map1.equals(map2)) return false; + List list5 = getCgButtonList(), list6 = onlComplexModel1.getCgButtonList(); + if ((list5 == null) ? (list6 != null) : !list5.equals(list6)) return false; + List list7 = getFieldHrefSlots(), list8 = onlComplexModel1.getFieldHrefSlots(); + if ((list7 == null) ? (list8 != null) : !list7.equals(list8)) return false; + String str13 = getEnhanceJs(), str14 = onlComplexModel1.getEnhanceJs(); + if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; + List list9 = getForeignKeys(), list10 = onlComplexModel1.getForeignKeys(); + if ((list9 == null) ? (list10 != null) : !list9.equals(list10)) return false; + String str15 = getPidField(), str16 = onlComplexModel1.getPidField(); + if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; + String str17 = getHasChildrenField(), str18 = onlComplexModel1.getHasChildrenField(); + if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false; + String str19 = getTextField(), str20 = onlComplexModel1.getTextField(); + if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false; + String str21 = getIsDesForm(), str22 = onlComplexModel1.getIsDesForm(); + if ((str21 == null) ? (str22 != null) : !str21.equals(str22)) return false; + String str23 = getDesFormCode(), str24 = onlComplexModel1.getDesFormCode(); + return !((str23 == null) ? (str24 != null) : !str23.equals(str24)); + } + + protected boolean a(Object paramObject) { + return paramObject instanceof OnlComplexModel; + } + + public String toString() { + return "OnlComplexModel(code=" + getCode() + ", formTemplate=" + getFormTemplate() + ", description=" + getDescription() + ", currentTableName=" + getCurrentTableName() + ", tableType=" + getTableType() + ", paginationFlag=" + getPaginationFlag() + ", checkboxFlag=" + getCheckboxFlag() + ", scrollFlag=" + getScrollFlag() + ", columns=" + getColumns() + ", hideColumns=" + getHideColumns() + ", dictOptions=" + getDictOptions() + ", cgButtonList=" + getCgButtonList() + ", fieldHrefSlots=" + getFieldHrefSlots() + ", enhanceJs=" + getEnhanceJs() + ", foreignKeys=" + getForeignKeys() + ", pidField=" + getPidField() + ", hasChildrenField=" + getHasChildrenField() + ", textField=" + getTextField() + ", isDesForm=" + getIsDesForm() + ", desFormCode=" + getDesFormCode() + ", relationType=" + getRelationType() + ")"; + } + + + public String getCode() { + return this.b; + } + + public String getFormTemplate() { + return this.c; + } + + public String getDescription() { + return this.d; + } + + public String getCurrentTableName() { + return this.e; + } + + public Integer getTableType() { + return this.f; + } + + + public String getPaginationFlag() { + return this.g; + } + + + public String getCheckboxFlag() { + return this.h; + } + + + public Integer getScrollFlag() { + return this.i; + } + + + public List getColumns() { + return this.j; + } + + + public List getHideColumns() { + return this.k; + } + + + private Map> l = new HashMap<>(); + private List m; + List a; + private String n; + private List o; + private String p; + + public Map> getDictOptions() { + return this.l; + } + + private String q; + private String r; + private String s; + private String t; + private Integer u; + + public List getCgButtonList() { + return this.m; + } + + + public List getFieldHrefSlots() { + return this.a; + } + + + public String getEnhanceJs() { + return this.n; + } + + + public List getForeignKeys() { + return this.o; + } + + + public String getPidField() { + return this.p; + } + + + public String getHasChildrenField() { + return this.q; + } + + + public String getTextField() { + return this.r; + } + + public String getIsDesForm() { + return this.s; + } + + public String getDesFormCode() { + return this.t; + } + + public Integer getRelationType() { + return this.u; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlGenerateModel.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlGenerateModel.java new file mode 100644 index 00000000..a59af213 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/OnlGenerateModel.java @@ -0,0 +1,115 @@ +package com.jero.generater.modules.online.cgform.model; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + + + + + + + + + +public class OnlGenerateModel + implements Serializable +{ + private static final long b = 684098897071177558L; + private String c; + private String d; + private String e; + private String f; + private String g; + private String h; + private String i; + private String j; + private String k; + List a = new ArrayList<>(); + + public String getProjectPath() { + return this.d; + } + + public void setProjectPath(String projectPath) { + this.d = projectPath; + } + + public String getPackageStyle() { + return this.e; + } + + public void setPackageStyle(String packageStyle) { + this.e = packageStyle; + } + + public String getFtlDescription() { + return this.f; + } + + public void setFtlDescription(String ftlDescription) { + this.f = ftlDescription; + } + + public String getJformType() { + return this.g; + } + + public void setJformType(String jformType) { + this.g = jformType; + } + + public String getTableName() { + return this.h; + } + + public void setTableName(String tableName) { + this.h = tableName; + } + + public String getEntityPackage() { + return this.i; + } + + public void setEntityPackage(String entityPackage) { + this.i = entityPackage; + } + + public String getEntityName() { + return this.j; + } + + public void setEntityName(String entityName) { + this.j = entityName; + } + + public String getJspMode() { + return this.k; + } + + public void setJspMode(String jspMode) { + this.k = jspMode; + } + + public String getCode() { + return this.c; + } + + public void setCode(String code) { + this.c = code; + } + + public List getSubList() { + return this.a; + } + + public void setSubList(List subList) { + this.a = subList; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\OnlGenerateModel.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/TreeModel.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/TreeModel.java new file mode 100644 index 00000000..762afe39 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/TreeModel.java @@ -0,0 +1,24 @@ +package com.jero.generater.modules.online.cgform.model; +public class TreeModel { private String label; + private String store; + + public void setLabel(String label) { this.label = label; } private String id; private String pid; public void setStore(String store) { this.store = store; } public void setId(String id) { this.id = id; } public void setPid(String pid) { this.pid = pid; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof TreeModel)) return false; TreeModel treeModel = (TreeModel)o; if (!treeModel.canEqual(this)) return false; String str1 = getLabel(), str2 = treeModel.getLabel(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getStore(), str4 = treeModel.getStore(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getId(), str6 = treeModel.getId(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getPid(), str8 = treeModel.getPid(); return !((str7 == null) ? (str8 != null) : !str7.equals(str8)); } protected boolean canEqual(Object other) { return other instanceof TreeModel; } public int hashCode() { byte b = 59; null = 1; String str1 = getLabel(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getStore(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getId(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getPid(); return null * 59 + ((str4 == null) ? 43 : str4.hashCode()); } public String toString() { return "TreeModel(label=" + getLabel() + ", store=" + getStore() + ", id=" + getId() + ", pid=" + getPid() + ")"; } + + public String getLabel() { + return this.label; + } + + + public String getStore() { + return this.store; + } public String getId() { + return this.id; + } public String getPid() { + return this.pid; + } } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\TreeModel.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/a.java new file mode 100644 index 00000000..552c7db0 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/a.java @@ -0,0 +1,75 @@ +package com.jero.generater.modules.online.cgform.model; + +import java.util.List; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; + + + + + + + + + + +public class a +{ + private OnlCgformHead a; + private List b; + private List c; + private List d; + private List e; + + public OnlCgformHead getHead() { + return this.a; + } + + public void setHead(OnlCgformHead head) { + this.a = head; + } + + public List getFields() { + return this.b; + } + + public void setFields(List fields) { + this.b = fields; + } + + public List getIndexs() { + return this.d; + } + + public void setIndexs(List indexs) { + this.d = indexs; + } + + public List getDeleteFieldIds() { + return this.c; + } + + public void setDeleteFieldIds(List deleteFieldIds) { + this.c = deleteFieldIds; + } + + public List getDeleteIndexIds() { + return this.e; + } + + public void setDeleteIndexIds(List deleteIndexIds) { + this.e = deleteIndexIds; + } + + + public String toString() { + return "OnlCgformModel [head=" + this.a + ", fields=" + this.b + ", deleteFieldIds=" + this.c + ", indexs=" + this.d + ", deleteIndexIds=" + this.e + "]"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/c.java new file mode 100644 index 00000000..eb9411f2 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/c.java @@ -0,0 +1,37 @@ +package com.jero.generater.modules.online.cgform.model; +public class c { + private String a; + + public void setField(String field) { this.a = field; } private String b; private String c; public void setTable(String table) { this.b = table; } public void setKey(String key) { this.c = key; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof c)) return false; c c1 = (c)o; if (!c1.a(this)) return false; String str1 = getField(), str2 = c1.getField(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getTable(), str4 = c1.getTable(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getKey(), str6 = c1.getKey(); return !((str5 == null) ? (str6 != null) : !str5.equals(str6)); } protected boolean a(Object paramObject) { return paramObject instanceof c; } public int hashCode() { byte b = 59; null = 1; String str1 = getField(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getTable(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getKey(); return null * 59 + ((str3 == null) ? 43 : str3.hashCode()); } public String toString() { return "OnlForeignKey(field=" + getField() + ", table=" + getTable() + ", key=" + getKey() + ")"; } + + + + + public String getField() { + return this.a; + } + + + + public String getTable() { + return this.b; + } + + + public String getKey() { + return this.c; + } + + public c() {} + + public c(String paramString1, String paramString2) { + this.c = paramString2; + this.a = paramString1; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/d.java new file mode 100644 index 00000000..c7feba22 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/d.java @@ -0,0 +1,21 @@ +package com.jero.generater.modules.online.cgform.model; +public class d { + private String a; + + public void setCustomRender(String customRender) { this.a = customRender; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof d)) return false; d d1 = (d)o; if (!d1.a(this)) return false; String str1 = getCustomRender(), str2 = d1.getCustomRender(); return !((str1 == null) ? (str2 != null) : !str1.equals(str2)); } protected boolean a(Object paramObject) { return paramObject instanceof d; } public int hashCode() { byte b = 59; null = 1; String str = getCustomRender(); return null * 59 + ((str == null) ? 43 : str.hashCode()); } public String toString() { return "ScopedSlots(customRender=" + getCustomRender() + ")"; } + + public String getCustomRender() { + return this.a; + } + public d() {} + + public d(String paramString) { + this.a = paramString; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/e.java new file mode 100644 index 00000000..583a7fc0 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/model/e.java @@ -0,0 +1,80 @@ +package com.jero.generater.modules.online.cgform.model; + + + + + + + +public class e +{ + private String a; + private String b; + private String c; + private String d; + private String e; + private String f; + private String g; + + public String getFieldName() { + return this.a; + } + + public void setFieldName(String fieldName) { + this.a = fieldName; + } + + public String getTableName() { + return this.b; + } + + public void setTableName(String tableName) { + this.b = tableName; + } + + public String getCodeField() { + return this.c; + } + + public void setCodeField(String codeField) { + this.c = codeField; + } + + public String getTextField() { + return this.d; + } + + public void setTextField(String textField) { + this.d = textField; + } + + public String getPidField() { + return this.e; + } + + public void setPidField(String pidField) { + this.e = pidField; + } + + public String getPidValue() { + return this.f; + } + + public void setPidValue(String pidValue) { + this.f = pidValue; + } + + public String getHsaChildField() { + return this.g; + } + + public void setHsaChildField(String hsaChildField) { + this.g = hsaChildField; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\model\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformButtonService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformButtonService.java new file mode 100644 index 00000000..38a556eb --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformButtonService.java @@ -0,0 +1,14 @@ +package com.jero.generater.modules.online.cgform.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; + +public interface IOnlCgformButtonService extends IService { + void saveButton(OnlCgformButton paramOnlCgformButton); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlCgformButtonService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformEnhanceService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformEnhanceService.java new file mode 100644 index 00000000..6ef7bc46 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformEnhanceService.java @@ -0,0 +1,37 @@ +package com.jero.generater.modules.online.cgform.service; + +import java.util.List; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJava; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceSql; + +public interface IOnlCgformEnhanceService { + List queryEnhanceJavaList(String paramString); + + void saveEnhanceJava(OnlCgformEnhanceJava paramOnlCgformEnhanceJava); + + void updateEnhanceJava(OnlCgformEnhanceJava paramOnlCgformEnhanceJava); + + void deleteEnhanceJava(String paramString); + + void deleteBatchEnhanceJava(List paramList); + + boolean checkOnlyEnhance(OnlCgformEnhanceJava paramOnlCgformEnhanceJava); + + boolean checkOnlyEnhance(OnlCgformEnhanceSql paramOnlCgformEnhanceSql); + + List queryEnhanceSqlList(String paramString); + + void saveEnhanceSql(OnlCgformEnhanceSql paramOnlCgformEnhanceSql); + + void updateEnhanceSql(OnlCgformEnhanceSql paramOnlCgformEnhanceSql); + + void deleteEnhanceSql(String paramString); + + void deleteBatchEnhanceSql(List paramList); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlCgformEnhanceService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformFieldService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformFieldService.java new file mode 100644 index 00000000..af39fbfe --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformFieldService.java @@ -0,0 +1,81 @@ +package com.jero.generater.modules.online.cgform.service; + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.annotations.Param; +import com.jero.generater.modules.online.cgform.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.model.TreeModel; + +public interface IOnlCgformFieldService extends IService { + Map queryAutolistPage(String paramString1, String paramString2, Map paramMap, List paramList); + + Map queryAutoTreeNoPage(String paramString1, String paramString2, Map paramMap, List paramList, String paramString3); + + void deleteAutoListMainAndSub(OnlCgformHead paramOnlCgformHead, String paramString); + + void deleteAutoListById(String paramString1, String paramString2); + + void deleteAutoList(String paramString1, String paramString2, String paramString3); + + void saveFormData(String paramString1, String paramString2, JSONObject paramJSONObject, boolean paramBoolean); + + void saveTreeFormData(String paramString1, String paramString2, JSONObject paramJSONObject, String paramString3, String paramString4); + + void saveFormData(List paramList, String paramString, JSONObject paramJSONObject); + + List queryFormFields(String paramString, boolean paramBoolean); + + List queryFormFieldsByTableName(String paramString); + + OnlCgformField queryFormFieldByTableNameAndField(String paramString1, String paramString2); + + void editTreeFormData(String paramString1, String paramString2, JSONObject paramJSONObject, String paramString3, String paramString4); + + void editFormData(String paramString1, String paramString2, JSONObject paramJSONObject, boolean paramBoolean); + + Map queryFormData(String paramString1, String paramString2, String paramString3); + + Map queryFormData(List paramList, String paramString1, String paramString2); + + List> querySubFormData(List paramList, String paramString1, String paramString2, String paramString3); + + List> getAutoListQueryInfo(String paramString); + + IPage> selectPageBySql(Page> paramPage, @Param("sqlStr") String paramString); + + List selectOnlineHideColumns(String paramString); + + List queryAvailableFields(String paramString1, String paramString2, String paramString3, boolean paramBoolean); + + List queryDisabledFields(String paramString); + + List queryDisabledFields(String paramString1, String paramString2); + + List queryAvailableFields(String paramString, boolean paramBoolean, List paramList, List paramList1); + + List queryAvailableFields(String paramString1, String paramString2, boolean paramBoolean, List paramList, List paramList1); + + void executeInsertSQL(Map paramMap); + + void executeUpdatetSQL(Map paramMap); + + List queryDataListByLinkDown(a parama); + + void updateTreeNodeNoChild(String paramString1, String paramString2, String paramString3); + + String queryTreeChildIds(OnlCgformHead paramOnlCgformHead, String paramString); + + String queryTreePids(OnlCgformHead paramOnlCgformHead, String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlCgformFieldService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformHeadService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformHeadService.java new file mode 100644 index 00000000..63d01444 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformHeadService.java @@ -0,0 +1,105 @@ +package com.jero.generater.modules.online.cgform.service; + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.extension.service.IService; +import freemarker.template.TemplateException; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.sql.SQLException; +import java.util.List; +import java.util.Map; +import org.hibernate.HibernateException; +import com.jero.common.api.vo.Result; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJava; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceSql; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.model.OnlGenerateModel; +import com.jero.generater.modules.online.cgform.model.a; +import com.jero.generater.modules.online.config.exception.BusinessException; +import com.jero.generater.modules.online.config.exception.DBException; + +public interface IOnlCgformHeadService extends IService { + Result addAll(a parama); + + Result editAll(a parama); + + void doDbSynch(String paramString1, String paramString2) throws HibernateException, IOException, TemplateException, SQLException, DBException; + + void deleteRecordAndTable(String paramString) throws DBException, SQLException; + + void deleteRecord(String paramString) throws DBException, SQLException; + + List> queryListData(String paramString); + + OnlCgformEnhanceJs queryEnhance(String paramString1, String paramString2); + + void saveEnhance(OnlCgformEnhanceJs paramOnlCgformEnhanceJs); + + void editEnhance(OnlCgformEnhanceJs paramOnlCgformEnhanceJs); + + OnlCgformEnhanceSql queryEnhanceSql(String paramString1, String paramString2); + + OnlCgformEnhanceJava queryEnhanceJava(OnlCgformEnhanceJava paramOnlCgformEnhanceJava); + + List queryButtonList(String paramString, boolean paramBoolean); + + List queryButtonList(String paramString); + + List queryOnlinetables(); + + void saveDbTable2Online(String paramString); + + JSONObject queryFormItem(OnlCgformHead paramOnlCgformHead); + + String saveManyFormData(String paramString1, JSONObject paramJSONObject, String paramString2) throws DBException, BusinessException; + + Map queryManyFormData(String paramString1, String paramString2) throws DBException; + + List> queryManySubFormData(String paramString1, String paramString2) throws DBException; + + Map querySubFormData(String paramString1, String paramString2) throws DBException; + + String editManyFormData(String paramString, JSONObject paramJSONObject) throws DBException, BusinessException; + + int executeEnhanceJava(String paramString1, String paramString2, OnlCgformHead paramOnlCgformHead, JSONObject paramJSONObject) throws BusinessException; + + void executeEnhanceExport(OnlCgformHead paramOnlCgformHead, List> paramList) throws BusinessException; + + void executeEnhanceList(OnlCgformHead paramOnlCgformHead, String paramString, List> paramList) throws BusinessException; + + void executeEnhanceSql(String paramString1, String paramString2, JSONObject paramJSONObject); + + void executeCustomerButton(String paramString1, String paramString2, String paramString3) throws BusinessException; + + List queryValidButtonList(String paramString); + + OnlCgformEnhanceJs queryEnhanceJs(String paramString1, String paramString2); + + void deleteOneTableInfo(String paramString1, String paramString2) throws BusinessException; + + List generateCode(OnlGenerateModel paramOnlGenerateModel) throws Exception; + + List generateOneToMany(OnlGenerateModel paramOnlGenerateModel) throws Exception; + + void addCrazyFormData(String paramString, JSONObject paramJSONObject) throws DBException, UnsupportedEncodingException; + + void editCrazyFormData(String paramString, JSONObject paramJSONObject) throws DBException, UnsupportedEncodingException; + + Integer getMaxCopyVersion(String paramString); + + void copyOnlineTableConfig(OnlCgformHead paramOnlCgformHead) throws Exception; + + void initCopyState(List paramList); + + void deleteBatch(String paramString1, String paramString2); + + void updateParentNode(OnlCgformHead paramOnlCgformHead, String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlCgformHeadService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformIndexService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformIndexService.java new file mode 100644 index 00000000..99616e7b --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformIndexService.java @@ -0,0 +1,19 @@ +package com.jero.generater.modules.online.cgform.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import java.util.List; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; + +public interface IOnlCgformIndexService extends IService { + void createIndex(String paramString1, String paramString2, String paramString3); + + boolean isExistIndex(String paramString); + + List getCgformIndexsByCgformId(String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlCgformIndexService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformSqlService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformSqlService.java new file mode 100644 index 00000000..12e9257f --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlCgformSqlService.java @@ -0,0 +1,19 @@ +package com.jero.generater.modules.online.cgform.service; + +import java.util.List; +import java.util.Map; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.config.exception.BusinessException; + +public interface IOnlCgformSqlService { + void saveBatchOnlineTable(OnlCgformHead paramOnlCgformHead, List paramList, List> paramList1) throws BusinessException; + + void saveOrUpdateSubData(String paramString, OnlCgformHead paramOnlCgformHead, List paramList) throws BusinessException; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlCgformSqlService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlineBaseAPI.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlineBaseAPI.java new file mode 100644 index 00000000..1a5e1cfb --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlineBaseAPI.java @@ -0,0 +1,11 @@ +package com.jero.generater.modules.online.cgform.service; + +public interface IOnlineBaseAPI { + String getOnlineErpCode(String paramString1, String paramString2); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlineBaseAPI.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlineService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlineService.java new file mode 100644 index 00000000..8396aed9 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/IOnlineService.java @@ -0,0 +1,24 @@ +package com.jero.generater.modules.online.cgform.service; + +import com.alibaba.fastjson.JSONObject; +import java.util.List; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.model.OnlComplexModel; + +public interface IOnlineService { + OnlComplexModel queryOnlineConfig(OnlCgformHead paramOnlCgformHead); + + JSONObject queryOnlineFormObj(OnlCgformHead paramOnlCgformHead, OnlCgformEnhanceJs paramOnlCgformEnhanceJs); + + JSONObject queryOnlineFormObj(OnlCgformHead paramOnlCgformHead); + + List queryFormValidButton(String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\IOnlineService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/b.java new file mode 100644 index 00000000..9c931a9a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/b.java @@ -0,0 +1,35 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import java.lang.invoke.SerializedLambda; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformButtonMapper; +import com.jero.generater.modules.online.cgform.service.IOnlCgformButtonService; +import org.springframework.stereotype.Service; + + + + + + + +@Service("onlCgformButtonServiceImpl") +public class b + extends ServiceImpl + implements IOnlCgformButtonService +{ + public void saveButton(OnlCgformButton onlCgformButton) { + LambdaQueryWrapper lambdaQueryWrapper = (LambdaQueryWrapper)((LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformButton::getButtonCode, onlCgformButton.getButtonCode())).eq(OnlCgformButton::getCgformHeadId, onlCgformButton.getCgformHeadId()); + Integer integer = ((OnlCgformButtonMapper)this.baseMapper).selectCount((Wrapper)lambdaQueryWrapper); + if (integer == null || integer.intValue() == 0) + save(onlCgformButton); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/c.java new file mode 100644 index 00000000..ff801ef7 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/c.java @@ -0,0 +1,119 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import java.lang.invoke.SerializedLambda; +import java.util.List; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJava; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceSql; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformEnhanceJavaMapper; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformEnhanceSqlMapper; +import com.jero.generater.modules.online.cgform.service.IOnlCgformEnhanceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service("onlCgformEnhanceService") +public class c + implements IOnlCgformEnhanceService +{ + @Autowired + private OnlCgformEnhanceJavaMapper onlCgformEnhanceJavaMapper; + @Autowired + private OnlCgformEnhanceSqlMapper onlCgformEnhanceSqlMapper; + + public List queryEnhanceJavaList(String cgformId) { + LambdaQueryWrapper lambdaQueryWrapper = (LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformEnhanceJava::getCgformHeadId, cgformId); + return this.onlCgformEnhanceJavaMapper.selectList((Wrapper)lambdaQueryWrapper); + } + + + + public void saveEnhanceJava(OnlCgformEnhanceJava onlCgformEnhanceJava) { + this.onlCgformEnhanceJavaMapper.insert(onlCgformEnhanceJava); + } + + + public void updateEnhanceJava(OnlCgformEnhanceJava onlCgformEnhanceJava) { + this.onlCgformEnhanceJavaMapper.updateById(onlCgformEnhanceJava); + } + + + public void deleteEnhanceJava(String id) { + this.onlCgformEnhanceJavaMapper.deleteById(id); + } + + + public void deleteBatchEnhanceJava(List idList) { + this.onlCgformEnhanceJavaMapper.deleteBatchIds(idList); + } + + + public boolean checkOnlyEnhance(OnlCgformEnhanceJava onlCgformEnhanceJava) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getButtonCode, onlCgformEnhanceJava.getButtonCode()); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getCgformHeadId, onlCgformEnhanceJava.getCgformHeadId()); + + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getEvent, onlCgformEnhanceJava.getEvent()); + Integer integer = this.onlCgformEnhanceJavaMapper.selectCount((Wrapper)lambdaQueryWrapper); + if (integer != null) { + if (integer.intValue() == 1 && oConvertUtils.isEmpty(onlCgformEnhanceJava.getId())) + return false; + if (integer.intValue() == 2) { + return false; + } + } + return true; + } + + + public boolean checkOnlyEnhance(OnlCgformEnhanceSql onlCgformEnhanceSql) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceSql::getButtonCode, onlCgformEnhanceSql.getButtonCode()); + lambdaQueryWrapper.eq(OnlCgformEnhanceSql::getCgformHeadId, onlCgformEnhanceSql.getCgformHeadId()); + Integer integer = this.onlCgformEnhanceSqlMapper.selectCount((Wrapper)lambdaQueryWrapper); + if (integer != null) { + if (integer.intValue() == 1 && oConvertUtils.isEmpty(onlCgformEnhanceSql.getId())) + return false; + if (integer.intValue() > 1) { + return false; + } + } + return true; + } + + + + + public List queryEnhanceSqlList(String cgformId) { + LambdaQueryWrapper lambdaQueryWrapper = (LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformEnhanceSql::getCgformHeadId, cgformId); + return this.onlCgformEnhanceSqlMapper.selectList((Wrapper)lambdaQueryWrapper); + } + + + + public void saveEnhanceSql(OnlCgformEnhanceSql onlCgformEnhanceSql) { + this.onlCgformEnhanceSqlMapper.insert(onlCgformEnhanceSql); + } + + + public void updateEnhanceSql(OnlCgformEnhanceSql onlCgformEnhanceSql) { + this.onlCgformEnhanceSqlMapper.updateById(onlCgformEnhanceSql); + } + + + public void deleteEnhanceSql(String id) { + this.onlCgformEnhanceSqlMapper.deleteById(id); + } + + + public void deleteBatchEnhanceSql(List idList) { + this.onlCgformEnhanceSqlMapper.deleteBatchIds(idList); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/d.java new file mode 100644 index 00000000..d537e4de --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/d.java @@ -0,0 +1,930 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.apache.shiro.SecurityUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.util.JeecgDataAutorUtils; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.auth.mapper.OnlAuthDataMapper; +import com.jero.generater.modules.online.auth.service.IOnlAuthPageService; +import com.jero.generater.modules.online.cgform.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformFieldMapper; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformHeadMapper; +import com.jero.generater.modules.online.cgform.model.TreeModel; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +@Service("onlCgformFieldServiceImpl") +public class d extends ServiceImpl implements IOnlCgformFieldService { + private static final Logger a = LoggerFactory.getLogger(d.class); + + + @Autowired + private OnlCgformFieldMapper onlCgformFieldMapper; + + + @Autowired + private OnlCgformHeadMapper cgformHeadMapper; + + @Autowired + private OnlAuthDataMapper onlAuthDataMapper; + + @Autowired + private IOnlAuthPageService onlAuthPageService; + + @Autowired + private ISysBaseAPI sysBaseAPI; + + private static final String b = "0"; + + + public Map queryAutolistPage(String tbname, String headId, Map params, List needList) { + HashMap hashMap = new HashMap<>(); + + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, headId); + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + List list1 = list((Wrapper)lambdaQueryWrapper); + + + List list2 = queryAvailableFields(headId, tbname, true, list1, needList); + + + StringBuffer stringBuffer = new StringBuffer(); + + b.a(tbname, list2, stringBuffer); + + + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str1 = loginUser.getId(); + List list = this.onlAuthDataMapper.queryOwnerAuth(str1, headId); + + if (list != null && list.size() > 0) { + JeecgDataAutorUtils.installUserInfo(this.sysBaseAPI.getCacheUser(loginUser.getUsername())); + } + + String str2 = b.a(list1, params, needList, list); + + + + + String str3 = b.a(params); + + stringBuffer.append(" where 1=1 " + str2 + str3); + + + + Object object = params.get("column"); + if (object != null) { + String str4 = object.toString(); + String str5 = params.get("order").toString(); + if (a(str4, list1)) { + stringBuffer.append(" ORDER BY " + oConvertUtils.camelToUnderline(str4)); + if ("asc".equals(str5)) { + stringBuffer.append(" asc"); + } else { + stringBuffer.append(" desc"); + } + } + } + + Integer integer = Integer.valueOf((params.get("pageSize") == null) ? 10 : Integer.parseInt(params.get("pageSize").toString())); + if (integer.intValue() == -521) { + + List list3 = this.onlCgformFieldMapper.queryListBySql(stringBuffer.toString()); + a.debug("---Online查询sql 不分页 :>>" + stringBuffer.toString()); + if (list3 == null || list3.size() == 0) { + hashMap.put("total", Integer.valueOf(0)); + hashMap.put("fieldList", list2); + } else { + hashMap.put("total", Integer.valueOf(list3.size())); + hashMap.put("fieldList", list2); + hashMap.put("records", b.d(list3)); + } + } else { + Integer integer1 = Integer.valueOf((params.get("pageNo") == null) ? 1 : Integer.parseInt(params.get("pageNo").toString())); + Page page = new Page(integer1.intValue(), integer.intValue()); + a.debug("---Online查询sql:>>" + stringBuffer.toString()); + IPage iPage = this.onlCgformFieldMapper.selectPageBySql(page, stringBuffer.toString()); + + + hashMap.put("total", Long.valueOf(iPage.getTotal())); + hashMap.put("records", b.d(iPage.getRecords())); + } + return (Map)hashMap; + } + + + public Map queryAutoTreeNoPage(String tbname, String headId, Map params, List needList, String pidField) { + HashMap hashMap = new HashMap<>(); + + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, headId); + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + List list1 = list((Wrapper)lambdaQueryWrapper); + + + List list2 = queryAvailableFields(headId, tbname, true, list1, needList); + + + StringBuffer stringBuffer = new StringBuffer(); + + b.a(tbname, list2, stringBuffer); + + + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str1 = loginUser.getId(); + List list = this.onlAuthDataMapper.queryOwnerAuth(str1, headId); + + if (list != null && list.size() > 0) { + JeecgDataAutorUtils.installUserInfo(this.sysBaseAPI.getCacheUser(loginUser.getUsername())); + } + + String str2 = b.a(list1, params, needList, list); + + + + + String str3 = b.a(params); + + stringBuffer.append(" where 1=1 " + str2 + str3); + + + + Object object = params.get("column"); + if (object != null) { + String str4 = object.toString(); + String str5 = params.get("order").toString(); + if (a(str4, list1)) { + stringBuffer.append(" ORDER BY " + oConvertUtils.camelToUnderline(str4)); + if ("asc".equals(str5)) { + stringBuffer.append(" asc"); + } else { + stringBuffer.append(" desc"); + } + } + } + + Integer integer = Integer.valueOf((params.get("pageSize") == null) ? 10 : Integer.parseInt(params.get("pageSize").toString())); + if (integer.intValue() == -521) { + + List> list3 = this.onlCgformFieldMapper.queryListBySql(stringBuffer.toString()); + + + if ("true".equals(params.get("hasQuery"))) { + ArrayList> arrayList = new ArrayList(); + for (Map map : (Iterable>)list3) { + String str = map.get(pidField).toString(); + + if (str != null && !"0".equals(str)) { + Map map1 = a(str, tbname, headId, needList, pidField); + if (map1 != null && map1.size() > 0 && !arrayList.contains(map1)) + arrayList.add(map1); + continue; + } + if (!arrayList.contains(map)) { + arrayList.add(map); + } + } + + list3 = arrayList; + } + + a.debug("---Online查询sql 不分页 :>>" + stringBuffer.toString()); + if (list3 == null || list3.size() == 0) { + hashMap.put("total", Integer.valueOf(0)); + hashMap.put("fieldList", list2); + } else { + hashMap.put("total", Integer.valueOf(list3.size())); + hashMap.put("fieldList", list2); + hashMap.put("records", b.d(list3)); + } + } else { + Integer integer1 = Integer.valueOf((params.get("pageNo") == null) ? 1 : Integer.parseInt(params.get("pageNo").toString())); + Page page = new Page(integer1.intValue(), integer.intValue()); + a.debug("---Online查询sql:>>" + stringBuffer.toString()); + + IPage iPage = this.onlCgformFieldMapper.selectPageBySql(page, stringBuffer.toString()); + + hashMap.put("total", Long.valueOf(iPage.getTotal())); + hashMap.put("records", b.d(iPage.getRecords())); + } + return (Map)hashMap; + } + + + + + + + private Map a(String paramString1, String paramString2, String paramString3, List paramList, String paramString4) { + HashMap hashMap = new HashMap<>(); + hashMap.put("id", paramString1); + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, paramString3); + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + List list1 = list((Wrapper)lambdaQueryWrapper); + + + List list2 = queryAvailableFields(paramString3, paramString2, true, list1, paramList); + + StringBuffer stringBuffer = new StringBuffer(); + + b.a(paramString2, list2, stringBuffer); + + + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str1 = loginUser.getId(); + List list = this.onlAuthDataMapper.queryOwnerAuth(str1, paramString3); + + if (list != null && list.size() > 0) { + JeecgDataAutorUtils.installUserInfo(this.sysBaseAPI.getCacheUser(loginUser.getUsername())); + } + + String str2 = b.a(list1, hashMap, paramList, list); + + + stringBuffer.append(" where 1=1 " + str2 + "and id='" + paramString1 + "'"); + List list3 = this.onlCgformFieldMapper.queryListBySql(stringBuffer.toString()); + if (list3 != null && list3.size() > 0) { + Map map = list3.get(0); + if (map != null && map.get(paramString4) != null && !"0".equals(map.get(paramString4))) { + return a(map.get(paramString4).toString(), paramString2, paramString3, paramList, paramString4); + } + return map; + } + + return null; + } + + + public void saveFormData(String code, String tbname, JSONObject json, boolean isCrazy) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + List list = list((Wrapper)lambdaQueryWrapper); + if (isCrazy) { + ((OnlCgformFieldMapper)this.baseMapper).executeInsertSQL(b.c(tbname, list, json)); + } else { + ((OnlCgformFieldMapper)this.baseMapper).executeInsertSQL(b.a(tbname, list, json)); + } + } + + public void saveTreeFormData(String code, String tbname, JSONObject json, String hasChildField, String pidField) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + List list = list((Wrapper)lambdaQueryWrapper); + for (OnlCgformField onlCgformField : list) { + + if (hasChildField.equals(onlCgformField.getDbFieldName()) && onlCgformField.getIsShowForm().intValue() != 1) { + onlCgformField.setIsShowForm(Integer.valueOf(1)); + json.put(hasChildField, "0"); + + continue; + } + if (pidField.equals(onlCgformField.getDbFieldName()) && oConvertUtils.isEmpty(json.get(pidField))) { + onlCgformField.setIsShowForm(Integer.valueOf(1)); + json.put(pidField, "0"); + } + } + Map map = b.a(tbname, list, json); + ((OnlCgformFieldMapper)this.baseMapper).executeInsertSQL(map); + + if (!"0".equals(json.getString(pidField))) { + ((OnlCgformFieldMapper)this.baseMapper).editFormData("update " + tbname + " set " + hasChildField + " = '1' where id = '" + json.getString(pidField) + "'"); + } + } + + + + public void saveFormData(List fieldList, String tbname, JSONObject json) { + Map map = b.a(tbname, fieldList, json); + ((OnlCgformFieldMapper)this.baseMapper).executeInsertSQL(map); + } + + + public void editFormData(String code, String tbname, JSONObject json, boolean isCrazy) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + List list = list((Wrapper)lambdaQueryWrapper); + if (isCrazy) { + ((OnlCgformFieldMapper)this.baseMapper).executeUpdatetSQL(b.d(tbname, list, json)); + } else { + ((OnlCgformFieldMapper)this.baseMapper).executeUpdatetSQL(b.b(tbname, list, json)); + } + } + + + + public void editTreeFormData(String code, String tbname, JSONObject json, String hasChildField, String pidField) { + String str1 = b.f(tbname); + String str2 = "select * from " + str1 + " where id = '" + json.getString("id") + "'"; + Map map1 = ((OnlCgformFieldMapper)this.baseMapper).queryFormData(str2); + + Map map2 = b.b(map1); + String str3 = map2.get(pidField).toString(); + + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + List list = list((Wrapper)lambdaQueryWrapper); + for (OnlCgformField onlCgformField : list) { + + if (pidField.equals(onlCgformField.getDbFieldName()) && oConvertUtils.isEmpty(json.get(pidField))) { + onlCgformField.setIsShowForm(Integer.valueOf(1)); + json.put(pidField, "0"); + } + } + Map map3 = b.b(tbname, list, json); + + ((OnlCgformFieldMapper)this.baseMapper).executeUpdatetSQL(map3); + + if (!str3.equals(json.getString(pidField))) { + + if (!"0".equals(str3)) { + String str = "select count(*) from " + str1 + " where " + pidField + " = '" + str3 + "'"; + Integer integer = ((OnlCgformFieldMapper)this.baseMapper).queryCountBySql(str); + if (integer == null || integer.intValue() == 0) { + ((OnlCgformFieldMapper)this.baseMapper).editFormData("update " + str1 + " set " + hasChildField + " = '0' where id = '" + str3 + "'"); + } + } + + if (!"0".equals(json.getString(pidField))) { + ((OnlCgformFieldMapper)this.baseMapper).editFormData("update " + str1 + " set " + hasChildField + " = '1' where id = '" + json.getString(pidField) + "'"); + } + } + } + + + + + public Map queryFormData(String code, String tbname, String id) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + lambdaQueryWrapper.eq(OnlCgformField::getIsShowForm, Integer.valueOf(1)); + List list = list((Wrapper)lambdaQueryWrapper); + String str = b.a(tbname, list, id); + return this.onlCgformFieldMapper.queryFormData(str); + } + + + + @Transactional(rollbackFor = {Exception.class}) + public void deleteAutoListMainAndSub(OnlCgformHead head, String ids) { + if (head.getTableType().intValue() == 2) { + String str1 = head.getId(); + String str2 = head.getTableName(); + + String str3 = "tableName"; + String str4 = "linkField"; + String str5 = "linkValueStr"; + String str6 = "mainField"; + + ArrayList> arrayList = new ArrayList(); + + if (oConvertUtils.isNotEmpty(head.getSubTableStr())) { + for (String str : head.getSubTableStr().split(",")) { + + OnlCgformHead onlCgformHead = (OnlCgformHead)this.cgformHeadMapper.selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str)); + if (onlCgformHead != null) { + + + + LambdaQueryWrapper lambdaQueryWrapper1 = (LambdaQueryWrapper)((LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, onlCgformHead.getId())).eq(OnlCgformField::getMainTable, head.getTableName()); + List list1 = list((Wrapper)lambdaQueryWrapper1); + if (list1 != null && list1.size() != 0) { + + + + OnlCgformField onlCgformField = list1.get(0); + HashMap hashMap = new HashMap<>(); + + hashMap.put(str4, onlCgformField.getDbFieldName()); + + hashMap.put(str6, onlCgformField.getMainField()); + + hashMap.put(str3, str); + hashMap.put(str5, ""); + arrayList.add(hashMap); + } + } + } LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, str1); + + List list = list((Wrapper)lambdaQueryWrapper); + + String[] arrayOfString = ids.split(","); + + for (String str7 : arrayOfString) { + String str8 = b.a(str2, list, str7); + + Map map = this.onlCgformFieldMapper.queryFormData(str8); + ArrayList arrayList1 = new ArrayList(); + for (Map map1 : arrayList) { + Object object = map.get(((String)map1.get(str6)).toLowerCase()); + if (object == null) { + object = map.get(((String)map1.get(str6)).toUpperCase()); + } + if (object == null) { + continue; + } + String str = (String)map1.get(str5) + String.valueOf(object) + ","; + map1.put(str5, str); + } + } + + for (Map map : arrayList) { + deleteAutoList((String)map.get(str3), (String)map.get(str4), (String)map.get(str5)); + } + } + + deleteAutoListById(head.getTableName(), ids); + } + } + + + public void deleteAutoListById(String tbname, String ids) { + deleteAutoList(tbname, "id", ids); + } + + + public void deleteAutoList(String tbname, String linkField, String linkValue) { + if (linkValue != null && !"".equals(linkValue)) { + String[] arrayOfString = linkValue.split(","); + StringBuffer stringBuffer = new StringBuffer(); + for (String str : arrayOfString) { + if (str != null && !"".equals(str)) + { + + stringBuffer.append("'" + str + "',"); } + } + String str1 = stringBuffer.toString(); + String str2 = "DELETE FROM " + b.f(tbname) + " where " + linkField + " in(" + str1.substring(0, str1.length() - 1) + ")"; + a.debug("--删除sql-->" + str2); + this.onlCgformFieldMapper.deleteAutoList(str2); + } + } + + + public List> getAutoListQueryInfo(String code) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + lambdaQueryWrapper.eq(OnlCgformField::getIsQuery, Integer.valueOf(1)); + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + List list = list((Wrapper)lambdaQueryWrapper); + ArrayList> arrayList = new ArrayList(); + byte b = 0; + for (OnlCgformField onlCgformField : list) { + HashMap hashMap = new HashMap<>(); + hashMap.put("label", onlCgformField.getDbFieldTxt()); + hashMap.put("field", onlCgformField.getDbFieldName()); + hashMap.put("mode", onlCgformField.getQueryMode()); + if ("1".equals(onlCgformField.getQueryConfigFlag())) { + + hashMap.put("config", "1"); + hashMap.put("view", onlCgformField.getQueryShowType()); + hashMap.put("defValue", onlCgformField.getQueryDefVal()); + if ("cat_tree".equals(onlCgformField.getFieldShowType())) { + hashMap.put("pcode", onlCgformField.getQueryDictField()); + } else if ("sel_tree".equals(onlCgformField.getFieldShowType())) { + + String[] arrayOfString = onlCgformField.getQueryDictText().split(","); + String str = onlCgformField.getQueryDictTable() + "," + arrayOfString[2] + "," + arrayOfString[0]; + hashMap.put("dict", str); + hashMap.put("pidField", arrayOfString[1]); + hashMap.put("hasChildField", arrayOfString[3]); + hashMap.put("pidValue", onlCgformField.getQueryDictField()); + } else { + hashMap.put("dictTable", onlCgformField.getQueryDictTable()); + hashMap.put("dictCode", onlCgformField.getQueryDictField()); + hashMap.put("dictText", onlCgformField.getQueryDictText()); + } + } else { + hashMap.put("view", onlCgformField.getFieldShowType()); + + if ("cat_tree".equals(onlCgformField.getFieldShowType())) { + hashMap.put("pcode", onlCgformField.getDictField()); + + } + else if ("sel_tree".equals(onlCgformField.getFieldShowType())) { + + String[] arrayOfString = onlCgformField.getDictText().split(","); + String str = onlCgformField.getDictTable() + "," + arrayOfString[2] + "," + arrayOfString[0]; + hashMap.put("dict", str); + hashMap.put("pidField", arrayOfString[1]); + hashMap.put("hasChildField", arrayOfString[3]); + hashMap.put("pidValue", onlCgformField.getDictField()); + } else if ("popup".equals(onlCgformField.getFieldShowType())) { + hashMap.put("dictTable", onlCgformField.getDictTable()); + hashMap.put("dictCode", onlCgformField.getDictField()); + hashMap.put("dictText", onlCgformField.getDictText()); + } + hashMap.put("mode", onlCgformField.getQueryMode()); + } + if (++b > 2) { + hashMap.put("hidden", "1"); + } + arrayList.add(hashMap); + } + return (List)arrayList; + } + + + public List queryFormFields(String code, boolean isform) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + if (isform) { + lambdaQueryWrapper.eq(OnlCgformField::getIsShowForm, Integer.valueOf(1)); + } + return list((Wrapper)lambdaQueryWrapper); + } + + + public List queryFormFieldsByTableName(String tableName) { + OnlCgformHead onlCgformHead = (OnlCgformHead)this.cgformHeadMapper.selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, tableName)); + if (onlCgformHead != null) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, onlCgformHead.getId()); + return list((Wrapper)lambdaQueryWrapper); + } + return null; + } + + + public OnlCgformField queryFormFieldByTableNameAndField(String tableName, String fieldName) { + OnlCgformHead onlCgformHead = (OnlCgformHead)this.cgformHeadMapper.selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, tableName)); + if (onlCgformHead != null) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, onlCgformHead.getId()); + lambdaQueryWrapper.eq(OnlCgformField::getDbFieldName, fieldName); + if (list((Wrapper)lambdaQueryWrapper) != null && list((Wrapper)lambdaQueryWrapper).size() > 0) { + return list((Wrapper)lambdaQueryWrapper).get(0); + } + } + return null; + } + + + public Map queryFormData(List fieldList, String tbname, String id) { + String str = b.a(tbname, fieldList, id); + return this.onlCgformFieldMapper.queryFormData(str); + } + + + + public List> querySubFormData(List fieldList, String tbname, String linkField, String value) { + String str = b.a(tbname, fieldList, linkField, value); + return this.onlCgformFieldMapper.queryListData(str); + } + + + public IPage> selectPageBySql(Page> page, String sql) { + return ((OnlCgformFieldMapper)this.baseMapper).selectPageBySql(page, sql); + } + + + + public List selectOnlineHideColumns(String tbname) { + String str1 = "online:" + tbname + ":%"; + + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str2 = loginUser.getId(); + List list = ((OnlCgformFieldMapper)this.baseMapper).selectOnlineHideColumns(str2, str1); + return a(list); + } + + + + + + public List queryAvailableFields(String cgFormId, String tbname, String taskId, boolean isList) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, cgFormId); + if (isList) { + lambdaQueryWrapper.eq(OnlCgformField::getIsShowList, Integer.valueOf(1)); + } else { + lambdaQueryWrapper.eq(OnlCgformField::getIsShowForm, Integer.valueOf(1)); + } + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + List list = list((Wrapper)lambdaQueryWrapper); + + + String str1 = "online:" + tbname + "%"; + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str2 = loginUser.getId(); + ArrayList arrayList = new ArrayList(); + if (oConvertUtils.isEmpty(taskId)) { + + + + List list1 = this.onlAuthPageService.queryHideCode(str2, cgFormId, isList); + + if (list1 != null && list1.size() != 0 && list1.get(0) != null) { + arrayList.addAll(list1); + + } + + } + else if (oConvertUtils.isNotEmpty(taskId)) { + List list1 = ((OnlCgformFieldMapper)this.baseMapper).selectFlowAuthColumns(tbname, taskId, "1"); + if (list1 != null && list1.size() > 0 && list1.get(0) != null) { + arrayList.addAll(list1); + } + } + + + + if (arrayList.size() == 0) { + return list; + } + + + + + + + ArrayList arrayList1 = new ArrayList(); + + for (byte b = 0; b < list.size(); b++) { + OnlCgformField onlCgformField = list.get(b); + if (b(onlCgformField.getDbFieldName(), arrayList)) { + arrayList1.add(onlCgformField); + } + } + return arrayList1; + } + + + public List queryDisabledFields(String tbname) { + String str1 = "online:" + tbname + "%"; + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str2 = loginUser.getId(); + List list = ((OnlCgformFieldMapper)this.baseMapper).selectOnlineDisabledColumns(str2, str1); + return a(list); + } + + + public List queryDisabledFields(String tbname, String taskId) { + if (oConvertUtils.isEmpty(taskId)) { + return null; + } + List list = ((OnlCgformFieldMapper)this.baseMapper).selectFlowAuthColumns(tbname, taskId, "2"); + return a(list); + } + + + + + + + private List a(List paramList) { + ArrayList arrayList = new ArrayList(); + if (paramList == null || paramList.size() == 0 || paramList.get(0) == null) { + return arrayList; + } + for (String str1 : paramList) { + if (oConvertUtils.isEmpty(str1)) { + continue; + } + String str2 = str1.substring(str1.lastIndexOf(":") + 1); + if (oConvertUtils.isEmpty(str2)) { + continue; + } + arrayList.add(str2); + } + return arrayList; + } + + + + + + + + + + public List queryAvailableFields(String tbname, boolean isList, List list, List needList) { + String str1 = "online:" + tbname + "%"; + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str2 = loginUser.getId(); + List list1 = ((OnlCgformFieldMapper)this.baseMapper).selectOnlineHideColumns(str2, str1); + return a(list1, isList, list, needList); + } + + + public List queryAvailableFields(String cgformId, String tbname, boolean isList, List list, List needList) { + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str = loginUser.getId(); + List list1 = this.onlAuthPageService.queryListHideColumn(str, cgformId); + return a(list1, isList, list, needList); + } + + private List a(List paramList1, boolean paramBoolean, List paramList, List paramList2) { + ArrayList arrayList = new ArrayList(); + + boolean bool = true; + if (paramList1 == null || paramList1.size() == 0 || paramList1.get(0) == null) { + bool = false; + } + + for (OnlCgformField onlCgformField : paramList) { + String str = onlCgformField.getDbFieldName(); + if (paramList2 != null && paramList2.contains(str)) { + onlCgformField.setIsQuery(Integer.valueOf(1)); + arrayList.add(onlCgformField); + + continue; + } + + if (paramBoolean) { + + if (onlCgformField.getIsShowList().intValue() != 1) { + if (oConvertUtils.isNotEmpty(onlCgformField.getMainTable()) && oConvertUtils.isNotEmpty(onlCgformField.getMainField())) + { + arrayList.add(onlCgformField); + } + + + + + + continue; + } + } else if (onlCgformField.getIsShowForm().intValue() != 1) { + continue; + } + + + + + if (bool) { + if (b(str, paramList1)) + arrayList.add(onlCgformField); + continue; + } + arrayList.add(onlCgformField); + } + + + return arrayList; + } + + + + + + + + private boolean b(String paramString, List paramList) { + boolean bool = true; + for (byte b = 0; b < paramList.size(); b++) { + String str = paramList.get(b); + if (!oConvertUtils.isEmpty(str)) { + + + String str1 = str.substring(str.lastIndexOf(":") + 1); + if (!oConvertUtils.isEmpty(str1)) + { + + if (str1.equals(paramString)) + bool = false; } + } + } + return bool; + } + + + + + public boolean a(String paramString, List paramList) { + boolean bool = false; + for (OnlCgformField onlCgformField : paramList) { + if (oConvertUtils.camelToUnderline(paramString).equals(onlCgformField.getDbFieldName())) { + bool = true; + break; + } + } + return bool; + } + + + public void executeInsertSQL(Map params) { + ((OnlCgformFieldMapper)this.baseMapper).executeInsertSQL(params); + } + + + public void executeUpdatetSQL(Map params) { + ((OnlCgformFieldMapper)this.baseMapper).executeUpdatetSQL(params); + } + + + public List queryDataListByLinkDown(a linkDown) { + return ((OnlCgformFieldMapper)this.baseMapper).queryDataListByLinkDown(linkDown); + } + + + public void updateTreeNodeNoChild(String tableName, String filed, String id) { + Map map = b.a(tableName, filed, id); + ((OnlCgformFieldMapper)this.baseMapper).executeUpdatetSQL(map); + } + + + public String queryTreeChildIds(OnlCgformHead head, String ids) { + String str1 = head.getTreeParentIdField(); + String str2 = head.getTableName(); + + String[] arrayOfString = ids.split(","); + StringBuffer stringBuffer = new StringBuffer(); + for (String str : arrayOfString) { + if (str != null && + !stringBuffer.toString().contains(str)) { + if (stringBuffer.toString().length() > 0) { + stringBuffer.append(","); + } + stringBuffer.append(str); + a(str, str1, str2, stringBuffer); + } + } + + return stringBuffer.toString(); + } + + + public String queryTreePids(OnlCgformHead head, String ids) { + String str1 = head.getTreeParentIdField(); + String str2 = head.getTableName(); + StringBuffer stringBuffer = new StringBuffer(); + + String[] arrayOfString = ids.split(","); + for (String str : arrayOfString) { + if (str != null) { + String str3 = b.f(str2); + String str4 = "select * from " + str3 + " where id = '" + str + "'"; + Map map1 = ((OnlCgformFieldMapper)this.baseMapper).queryFormData(str4); + Map map2 = b.b(map1); + String str5 = map2.get(str1).toString(); + + String str6 = "select * from " + b.f(str2) + " where " + str1 + "= '" + str5 + "' and id not in(" + ids + ")"; + List list = this.onlCgformFieldMapper.queryListBySql(str6); + if ((list == null || list.size() == 0) && !Arrays.asList(arrayOfString).contains(str5) && + !stringBuffer.toString().contains(str5)) + { + stringBuffer.append(str5).append(","); + } + } + } + return stringBuffer.toString(); + } + + + + + + + + + + private StringBuffer a(String paramString1, String paramString2, String paramString3, StringBuffer paramStringBuffer) { + String str = "select * from " + b.f(paramString3) + " where " + paramString2 + "= '" + paramString1 + "'"; + List list = this.onlCgformFieldMapper.queryListBySql(str); + if (list != null && list.size() > 0) { + for (Map map1 : list) { + + + Map map2 = b.b(map1); + + if (!paramStringBuffer.toString().contains(map2.get("id").toString())) { + paramStringBuffer.append(",").append(map2.get("id")); + } + a(map2.get("id").toString(), paramString2, paramString3, paramStringBuffer); + } + } + return paramStringBuffer; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/e.java new file mode 100644 index 00000000..67e7c94f --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/e.java @@ -0,0 +1,1904 @@ +package com.jero.generater.modules.online.cgform.service.impl; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.stream.Collectors; +import com.jero.common.api.vo.Result; +import com.jero.common.constant.CommonConstant; +import com.jero.common.constant.enums.CgformEnum; +import com.jero.common.util.MyClassLoader; +import com.jero.common.util.RestUtil; +import com.jero.common.util.UUIDGenerator; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.auth.service.IOnlAuthPageService; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaInter; +import com.jero.generater.modules.online.cgform.enhance.CgformEnhanceJavaListInter; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJava; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceSql; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformButtonMapper; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformEnhanceSqlMapper; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformHeadMapper; +import com.jero.generater.modules.online.cgform.model.OnlGenerateModel; +import com.jero.generater.modules.online.cgform.model.a; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import com.jero.generater.modules.online.cgform.util.b; +import com.jero.generater.modules.online.config.b.c; +import com.jero.generater.modules.online.config.b.d; +import com.jero.generater.modules.online.config.exception.BusinessException; +import com.jero.generater.modules.online.config.exception.DBException; +import com.jero.generater.modules.online.config.service.DbTableHandleI; +import org.jeecgframework.codegenerate.database.DbReadTableUtil; +import org.jeecgframework.codegenerate.generate.impl.CodeGenerateOne; +import org.jeecgframework.codegenerate.generate.pojo.ColumnVo; +import org.jeecgframework.codegenerate.generate.pojo.TableVo; +import org.jeecgframework.codegenerate.generate.pojo.onetomany.MainTableVo; +import org.jeecgframework.codegenerate.generate.pojo.onetomany.SubTableVo; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.MediaType; +import org.springframework.transaction.annotation.Transactional; + +@Service("onlCgformHeadServiceImpl") +public class e extends ServiceImpl implements IOnlCgformHeadService { + private static final Logger a = LoggerFactory.getLogger(e.class); + + + @Autowired + private IOnlCgformFieldService fieldService; + + + @Autowired + private IOnlCgformIndexService indexService; + + + @Autowired + private OnlCgformEnhanceJsMapper onlCgformEnhanceJsMapper; + + @Autowired + private OnlCgformButtonMapper onlCgformButtonMapper; + + @Autowired + private OnlCgformEnhanceJavaMapper onlCgformEnhanceJavaMapper; + + @Autowired + private OnlCgformEnhanceSqlMapper onlCgformEnhanceSqlMapper; + + @Autowired + private b dataBaseConfig; + + @Autowired + private IOnlAuthPageService onlAuthPageService; + + + @Transactional(rollbackFor = {Exception.class}) + public Result addAll(a model) { + String str = UUID.randomUUID().toString().replace("-", ""); + + OnlCgformHead onlCgformHead = model.getHead(); + List list = model.getFields(); + List list1 = model.getIndexs(); + + onlCgformHead.setId(str); + + for (byte b1 = 0; b1 < list.size(); b1++) { + OnlCgformField onlCgformField = list.get(b1); + onlCgformField.setId(null); + onlCgformField.setCgformHeadId(str); + if (onlCgformField.getOrderNum() == null) { + onlCgformField.setOrderNum(Integer.valueOf(b1)); + } + a(onlCgformField); + } + + for (OnlCgformIndex onlCgformIndex : list1) { + onlCgformIndex.setId(null); + onlCgformIndex.setCgformHeadId(str); + } + + + onlCgformHead.setIsDbSynch("N"); + onlCgformHead.setQueryMode("single"); + onlCgformHead.setTableVersion(Integer.valueOf(1)); + + + onlCgformHead.setCopyType(Integer.valueOf(0)); + + if (onlCgformHead.getTableType().intValue() == 3 && onlCgformHead.getTabOrderNum() == null) { + onlCgformHead.setTabOrderNum(Integer.valueOf(1)); + } + + save(onlCgformHead); + this.fieldService.saveBatch(list); + this.indexService.saveBatch(list1); + + + a(onlCgformHead, list); + + return Result.OK("添加成功"); + } + + + + + @Transactional(rollbackFor = {Exception.class}) + public Result editAll(a model) { + OnlCgformHead onlCgformHead1 = model.getHead(); + + OnlCgformHead onlCgformHead2 = (OnlCgformHead)getById(onlCgformHead1.getId()); + if (onlCgformHead2 == null) { + return Result.error("未找到对应实体"); + } + String str = onlCgformHead2.getIsDbSynch(); + if (b.a(onlCgformHead2, onlCgformHead1)) { + str = "N"; + } + + Integer integer = onlCgformHead2.getTableVersion(); + if (integer == null) { + integer = Integer.valueOf(1); + } + onlCgformHead1.setTableVersion(integer = Integer.valueOf(integer.intValue() + 1)); + + List list = model.getFields(); + List list1 = model.getIndexs(); + + + ArrayList arrayList1 = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + for (OnlCgformField onlCgformField : list) { + String str1 = String.valueOf(onlCgformField.getId()); + a(onlCgformField); + if (str1.length() == 32) { + + arrayList2.add(onlCgformField); + continue; + } + String str2 = "_pk"; + if (!str2.equals(str1)) { + + onlCgformField.setId(null); + onlCgformField.setCgformHeadId(onlCgformHead1.getId()); + arrayList1.add(onlCgformField); + } + } + + if (arrayList1.size() > 0) { + str = "N"; + } + int i = 0; + + for (OnlCgformField onlCgformField1 : arrayList2) { + OnlCgformField onlCgformField2 = (OnlCgformField)this.fieldService.getById(onlCgformField1.getId()); + boolean bool = b.a(onlCgformField2, onlCgformField1); + if (bool) { + str = "N"; + } + if (((onlCgformField2.getOrderNum() == null) ? 0 : onlCgformField2.getOrderNum().intValue()) > i) { + i = onlCgformField2.getOrderNum().intValue(); + } + this.fieldService.updateById(onlCgformField1); + } + + for (OnlCgformField onlCgformField : arrayList1) { + if (onlCgformField.getOrderNum() == null) { + onlCgformField.setOrderNum(Integer.valueOf(++i)); + } + this.fieldService.save(onlCgformField); + } + + + List list2 = this.indexService.getCgformIndexsByCgformId(onlCgformHead1.getId()); + ArrayList arrayList3 = new ArrayList(); + ArrayList arrayList4 = new ArrayList(); + for (OnlCgformIndex onlCgformIndex : list1) { + String str1 = String.valueOf(onlCgformIndex.getId()); + if (str1.length() == 32) { + + arrayList4.add(onlCgformIndex); + continue; + } + onlCgformIndex.setId(null); + onlCgformIndex.setIsDbSynch("N"); + onlCgformIndex.setDelFlag(CommonConstant.DEL_FLAG_0); + onlCgformIndex.setCgformHeadId(onlCgformHead1.getId()); + arrayList3.add(onlCgformIndex); + } + + + + for (OnlCgformIndex onlCgformIndex : list2) { + boolean bool = list1.stream().anyMatch(paramOnlCgformIndex2 -> paramOnlCgformIndex1.getId().equals(paramOnlCgformIndex2.getId())); + if (!bool) { + onlCgformIndex.setDelFlag(CommonConstant.DEL_FLAG_1); + arrayList4.add(onlCgformIndex); + str = "N"; + } + } + + if (arrayList3.size() > 0) { + str = "N"; + this.indexService.saveBatch(arrayList3); + } + + for (OnlCgformIndex onlCgformIndex1 : arrayList4) { + OnlCgformIndex onlCgformIndex2 = (OnlCgformIndex)this.indexService.getById(onlCgformIndex1.getId()); + boolean bool = b.a(onlCgformIndex2, onlCgformIndex1); + if (bool) { + str = "N"; + onlCgformIndex1.setIsDbSynch("N"); + } + this.indexService.updateById(onlCgformIndex1); + } + + + if (model.getDeleteFieldIds().size() > 0) { + str = "N"; + this.fieldService.removeByIds(model.getDeleteFieldIds()); + } + + + + + + + onlCgformHead1.setIsDbSynch(str); + updateById(onlCgformHead1); + + a(onlCgformHead1, list); + + b(onlCgformHead1, list); + + return Result.OK("全部修改成功"); + } + + + + + public void doDbSynch(String code, String synMethod) throws HibernateException, IOException, TemplateException, SQLException, DBException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(code); + if (onlCgformHead == null) { + throw new DBException("实体配置不存在"); + } + String str = onlCgformHead.getTableName(); + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, code); + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + + List list = this.fieldService.list((Wrapper)lambdaQueryWrapper); + + a a = new a(); + a.setTableName(str); + a.setJformPkType(onlCgformHead.getIdType()); + a.setJformPkSequence(onlCgformHead.getIdSequence()); + a.setContent(onlCgformHead.getTableTxt()); + a.setColumns(list); + a.setDbConfig(this.dataBaseConfig); + + if ("normal".equals(synMethod)) { + long l = System.currentTimeMillis(); + boolean bool = d.a(str).booleanValue(); + a.info("==判断表是否存在消耗时间" + (System.currentTimeMillis() - l) + "毫秒"); + + if (bool) { + + c c = new c(); + List list1 = c.b(a); + for (String str1 : list1) { + if (oConvertUtils.isEmpty(str1) || oConvertUtils.isEmpty(str1.trim())) { + continue; + } + ((OnlCgformHeadMapper)this.baseMapper).executeDDL(str1); + } + + + + + List list2 = this.indexService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformIndex::getCgformHeadId, code)); + + for (OnlCgformIndex onlCgformIndex : list2) { + if ("N".equals(onlCgformIndex.getIsDbSynch()) || CommonConstant.DEL_FLAG_1.equals(onlCgformIndex.getDelFlag())) { + String str1 = c.b(onlCgformIndex.getIndexName(), str); + if (this.indexService.isExistIndex(str1)) { + String str2 = c.a(onlCgformIndex.getIndexName(), str); + try { + a.info("删除索引 executeDDL:" + str2); + ((OnlCgformHeadMapper)this.baseMapper).executeDDL(str2); + + if (CommonConstant.DEL_FLAG_1.equals(onlCgformIndex.getDelFlag())) { + this.indexService.removeById(onlCgformIndex.getId()); + } + } catch (Exception exception) { + a.error("删除表【" + str + "】索引(" + onlCgformIndex.getIndexName() + ")失败!", exception); + } + continue; + } + if (CommonConstant.DEL_FLAG_1.equals(onlCgformIndex.getDelFlag())) { + this.indexService.removeById(onlCgformIndex.getId()); + } + } + + } + + } else { + + c.a(a); + } + + } else if ("force".equals(synMethod)) { + + DbTableHandleI dbTableHandleI = d.getTableHandle(); + String str1 = dbTableHandleI.dropTableSQL(str); + ((OnlCgformHeadMapper)this.baseMapper).executeDDL(str1); + c.a(a); + } + + + this.indexService.createIndex(code, d.getDatabaseType(), str); + + + onlCgformHead.setIsDbSynch("Y"); + + if (onlCgformHead.getTableVersion().intValue() == 1) { + onlCgformHead.setTableVersion(Integer.valueOf(2)); + } + + updateById(onlCgformHead); + } + + + public void deleteRecordAndTable(String id) throws DBException, SQLException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(id); + if (onlCgformHead == null) { + throw new DBException("实体配置不存在"); + } + long l = System.currentTimeMillis(); + boolean bool = d.a(onlCgformHead.getTableName()).booleanValue(); + a.info("==判断表是否存在消耗时间 " + (System.currentTimeMillis() - l) + "毫秒"); + if (bool) { + String str = d.getTableHandle().dropTableSQL(onlCgformHead.getTableName()); + a.info(" 删除表 executeDDL: " + str); + ((OnlCgformHeadMapper)this.baseMapper).executeDDL(str); + } + ((OnlCgformHeadMapper)this.baseMapper).deleteById(id); + a(onlCgformHead); + } + + + public void deleteRecord(String id) throws DBException, SQLException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(id); + if (onlCgformHead == null) { + throw new DBException("实体配置不存在"); + } + ((OnlCgformHeadMapper)this.baseMapper).deleteById(id); + a(onlCgformHead); + } + + + + + + private void a(OnlCgformHead paramOnlCgformHead) { + if (paramOnlCgformHead.getTableType().intValue() == 3) { + + LambdaQueryWrapper lambdaQueryWrapper = (LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, paramOnlCgformHead.getId()); + List list = this.fieldService.list((Wrapper)lambdaQueryWrapper); + String str = null; + + for (OnlCgformField onlCgformField : list) { + str = onlCgformField.getMainTable(); + + if (oConvertUtils.isNotEmpty(str)) { + break; + } + } + + if (oConvertUtils.isNotEmpty(str)) { + OnlCgformHead onlCgformHead = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str)); + if (onlCgformHead != null) { + + String str1 = onlCgformHead.getSubTableStr(); + if (oConvertUtils.isNotEmpty(str1)) { + List list1 = (List)Arrays.asList(str1.split(",")).stream().collect(Collectors.toList()); + list1.remove(paramOnlCgformHead.getTableName()); + onlCgformHead.setSubTableStr(String.join(",", list1)); + ((OnlCgformHeadMapper)this.baseMapper).updateById(onlCgformHead); + } + } + } + } + } + + + + public List> queryListData(String sql) { + return ((OnlCgformHeadMapper)this.baseMapper).queryList(sql); + } + + + + public void saveEnhance(OnlCgformEnhanceJs onlCgformEnhanceJs) { + this.onlCgformEnhanceJsMapper.insert(onlCgformEnhanceJs); + } + + + public OnlCgformEnhanceJs queryEnhance(String code, String type) { + return (OnlCgformEnhanceJs)this.onlCgformEnhanceJsMapper.selectOne((Wrapper)((LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformEnhanceJs::getCgJsType, type)).eq(OnlCgformEnhanceJs::getCgformHeadId, code)); + } + + + public void editEnhance(OnlCgformEnhanceJs onlCgformEnhanceJs) { + this.onlCgformEnhanceJsMapper.updateById(onlCgformEnhanceJs); + } + + + + public OnlCgformEnhanceSql queryEnhanceSql(String formId, String buttonCode) { + return (OnlCgformEnhanceSql)this.onlCgformEnhanceSqlMapper.selectOne((Wrapper)((LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformEnhanceSql::getCgformHeadId, formId)).eq(OnlCgformEnhanceSql::getButtonCode, buttonCode)); + } + + + public OnlCgformEnhanceJava queryEnhanceJava(OnlCgformEnhanceJava onlCgformEnhanceJava) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getButtonCode, onlCgformEnhanceJava.getButtonCode()); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getCgformHeadId, onlCgformEnhanceJava.getCgformHeadId()); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getCgJavaType, onlCgformEnhanceJava.getCgJavaType()); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getEvent, onlCgformEnhanceJava.getEvent()); + return (OnlCgformEnhanceJava)this.onlCgformEnhanceJavaMapper.selectOne((Wrapper)lambdaQueryWrapper); + } + + + + public List queryButtonList(String code, boolean isListButton) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformButton::getButtonStatus, "1"); + lambdaQueryWrapper.eq(OnlCgformButton::getCgformHeadId, code); + if (isListButton) { + lambdaQueryWrapper.in(OnlCgformButton::getButtonStyle, new Object[] { "link", "button" }); + } else { + lambdaQueryWrapper.eq(OnlCgformButton::getButtonStyle, "form"); + } + lambdaQueryWrapper.orderByAsc(OnlCgformButton::getOrderNum); + return this.onlCgformButtonMapper.selectList((Wrapper)lambdaQueryWrapper); + } + + + + public List queryButtonList(String code) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformButton::getButtonStatus, "1"); + lambdaQueryWrapper.eq(OnlCgformButton::getCgformHeadId, code); + lambdaQueryWrapper.orderByAsc(OnlCgformButton::getOrderNum); + return this.onlCgformButtonMapper.selectList((Wrapper)lambdaQueryWrapper); + } + + + + public List queryOnlinetables() { + return ((OnlCgformHeadMapper)this.baseMapper).queryOnlinetables(); + } + + + @Transactional(rollbackFor = {Exception.class}) + public void saveDbTable2Online(String tbname) { + OnlCgformHead onlCgformHead = new OnlCgformHead(); + onlCgformHead.setTableType(Integer.valueOf(1)); + onlCgformHead.setIsCheckbox("Y"); + onlCgformHead.setIsDbSynch("Y"); + onlCgformHead.setIsTree("N"); + onlCgformHead.setIsPage("Y"); + onlCgformHead.setQueryMode("group"); + onlCgformHead.setTableName(tbname.toLowerCase()); + onlCgformHead.setTableTxt(tbname); + onlCgformHead.setTableVersion(Integer.valueOf(1)); + onlCgformHead.setFormTemplate("1"); + onlCgformHead.setCopyType(Integer.valueOf(0)); + onlCgformHead.setIsDesForm("N"); + onlCgformHead.setScroll(Integer.valueOf(1)); + onlCgformHead.setThemeTemplate("normal"); + String str = UUIDGenerator.generate(); + onlCgformHead.setId(str); + ArrayList arrayList = new ArrayList(); + try { + List list = DbReadTableUtil.b(tbname); + for (byte b1 = 0; b1 < list.size(); b1++) { + ColumnVo columnVo = list.get(b1); + a.info(" columnt : " + columnVo.toString()); + String str1 = columnVo.getFieldDbName(); + OnlCgformField onlCgformField = new OnlCgformField(); + onlCgformField.setCgformHeadId(str); + onlCgformField.setDbFieldNameOld(columnVo.getFieldDbName().toLowerCase()); + onlCgformField.setDbFieldName(columnVo.getFieldDbName().toLowerCase()); + + if (oConvertUtils.isNotEmpty(columnVo.getFiledComment())) { + onlCgformField.setDbFieldTxt(columnVo.getFiledComment()); + } else { + onlCgformField.setDbFieldTxt(columnVo.getFieldName()); + } + + onlCgformField.setDbIsKey(Integer.valueOf(0)); + onlCgformField.setIsShowForm(Integer.valueOf(1)); + onlCgformField.setIsQuery(Integer.valueOf(0)); + onlCgformField.setFieldMustInput("0"); + onlCgformField.setIsShowList(Integer.valueOf(1)); + onlCgformField.setOrderNum(Integer.valueOf(b1 + 1)); + onlCgformField.setQueryMode("single"); + onlCgformField.setDbLength(Integer.valueOf(oConvertUtils.getInt(columnVo.getPrecision()))); + onlCgformField.setFieldLength(Integer.valueOf(120)); + onlCgformField.setDbPointLength(Integer.valueOf(oConvertUtils.getInt(columnVo.getScale()))); + onlCgformField.setFieldShowType("text"); + onlCgformField.setDbIsNull(Integer.valueOf("Y".equals(columnVo.getNullable()) ? 1 : 0)); + onlCgformField.setIsReadOnly(Integer.valueOf(0)); + + if ("id".equalsIgnoreCase(str1)) { + String[] arrayOfString = { "java.lang.Integer", "java.lang.Long" }; + String str2 = columnVo.getFieldType(); + if (Arrays.asList(arrayOfString).contains(str2)) { + + onlCgformHead.setIdType("NATIVE"); + } else { + + onlCgformHead.setIdType("UUID"); + } + onlCgformField.setDbIsKey(Integer.valueOf(1)); + onlCgformField.setIsShowForm(Integer.valueOf(0)); + onlCgformField.setIsShowList(Integer.valueOf(0)); + onlCgformField.setIsReadOnly(Integer.valueOf(1)); + } + + + if ("create_by".equalsIgnoreCase(str1) || "create_time".equalsIgnoreCase(str1) || "update_by".equalsIgnoreCase(str1) || "update_time" + .equalsIgnoreCase(str1) || "sys_org_code".equalsIgnoreCase(str1)) { + onlCgformField.setIsShowForm(Integer.valueOf(0)); + onlCgformField.setIsShowList(Integer.valueOf(0)); + } + + if ("java.lang.Integer".equalsIgnoreCase(columnVo.getFieldType())) { + onlCgformField.setDbType("int"); + } else if ("java.lang.Long".equalsIgnoreCase(columnVo.getFieldType())) { + onlCgformField.setDbType("int"); + } else if ("java.util.Date".equalsIgnoreCase(columnVo.getFieldType())) { + onlCgformField.setDbType("Date"); + onlCgformField.setFieldShowType("date"); + } else if ("java.lang.Double".equalsIgnoreCase(columnVo.getFieldType()) || "java.lang.Float" + .equalsIgnoreCase(columnVo.getFieldType())) { + onlCgformField.setDbType("double"); + } else if ("java.math.BigDecimal".equalsIgnoreCase(columnVo.getFieldType()) || "BigDecimal".equalsIgnoreCase(columnVo.getFieldType())) { + onlCgformField.setDbType("BigDecimal"); + } else if ("byte[]".equalsIgnoreCase(columnVo.getFieldType()) || columnVo.getFieldType().contains("blob")) { + onlCgformField.setDbType("Blob"); + columnVo.setCharmaxLength(null); + } + else if ("java.lang.Object".equals(columnVo.getFieldType()) && ("text".equalsIgnoreCase(columnVo.getFieldDbType()) || "ntext".equalsIgnoreCase(columnVo.getFieldDbType()))) { + onlCgformField.setDbType("Text"); + onlCgformField.setFieldShowType("textarea"); + } + else if ("java.lang.Object".equals(columnVo.getFieldType()) && "image".equalsIgnoreCase(columnVo.getFieldDbType())) { + onlCgformField.setDbType("Blob"); + } else { + + onlCgformField.setDbType("string"); + } + if (oConvertUtils.isEmpty(columnVo.getPrecision()) && oConvertUtils.isNotEmpty(columnVo.getCharmaxLength())) { + if (Long.valueOf(columnVo.getCharmaxLength()).longValue() >= 3000L) { + onlCgformField.setDbType("Text"); + onlCgformField.setFieldShowType("textarea"); + try { + onlCgformField.setDbLength(Integer.valueOf(columnVo.getCharmaxLength())); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + } + } else { + onlCgformField.setDbLength(Integer.valueOf(columnVo.getCharmaxLength())); + } + } else { + if (oConvertUtils.isNotEmpty(columnVo.getPrecision())) { + onlCgformField.setDbLength(Integer.valueOf(columnVo.getPrecision())); + + } + else if (onlCgformField.getDbType().equals("int")) { + onlCgformField.setDbLength(Integer.valueOf(10)); + } + + if (oConvertUtils.isNotEmpty(columnVo.getScale())) { + onlCgformField.setDbPointLength(Integer.valueOf(columnVo.getScale())); + } + } + + + + if (oConvertUtils.getInt(columnVo.getPrecision()) == -1 && oConvertUtils.getInt(columnVo.getScale()) == 0) { + onlCgformField.setDbType("Text"); + } + + + if ("Blob".equals(onlCgformField.getDbType()) || "Text".equals(onlCgformField.getDbType()) || "Date".equals(onlCgformField.getDbType())) { + onlCgformField.setDbLength(Integer.valueOf(0)); + onlCgformField.setDbPointLength(Integer.valueOf(0)); + } + + + arrayList.add(onlCgformField); + } + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + } + if (oConvertUtils.isEmpty(onlCgformHead.getFormCategory())) { + onlCgformHead.setFormCategory("bdfl_include"); + } + + + + save(onlCgformHead); + this.fieldService.saveBatch(arrayList); + } + + + + + + + + + private void a(OnlCgformHead paramOnlCgformHead, List paramList) { + if (paramOnlCgformHead.getTableType().intValue() == 3) { + paramOnlCgformHead = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectById(paramOnlCgformHead.getId()); + for (byte b1 = 0; b1 < paramList.size(); b1++) { + + OnlCgformField onlCgformField = paramList.get(b1); + String str = onlCgformField.getMainTable(); + if (!oConvertUtils.isEmpty(str)) { + + + + OnlCgformHead onlCgformHead = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str)); + if (onlCgformHead != null) { + + + + + String str1 = onlCgformHead.getSubTableStr(); + if (oConvertUtils.isEmpty(str1)) { + str1 = paramOnlCgformHead.getTableName(); + + } + else if (str1.indexOf(paramOnlCgformHead.getTableName()) < 0) { + + + + + + ArrayList arrayList = new ArrayList(Arrays.asList((Object[])str1.split(","))); + for (byte b2 = 0; b2 < arrayList.size(); b2++) { + String str2 = arrayList.get(b2); + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str2)); + if (onlCgformHead1 != null) + { + + if (paramOnlCgformHead.getTabOrderNum().intValue() < oConvertUtils.getInt(onlCgformHead1.getTabOrderNum(), 0)) { + arrayList.add(b2, paramOnlCgformHead.getTableName()); + break; + } } + } + if (arrayList.indexOf(paramOnlCgformHead.getTableName()) < 0) { + arrayList.add(paramOnlCgformHead.getTableName()); + } + str1 = String.join(",", (Iterable)arrayList); + } + + onlCgformHead.setSubTableStr(str1); + ((OnlCgformHeadMapper)this.baseMapper).updateById(onlCgformHead); + break; + } + } + } + } else { + List list = ((OnlCgformHeadMapper)this.baseMapper).selectList((Wrapper)(new LambdaQueryWrapper()).like(OnlCgformHead::getSubTableStr, paramOnlCgformHead.getTableName())); + if (list != null && list.size() > 0) { + for (OnlCgformHead onlCgformHead : list) { + String str = onlCgformHead.getSubTableStr(); + if (onlCgformHead.getSubTableStr().equals(paramOnlCgformHead.getTableName())) { + str = ""; + } else if (onlCgformHead.getSubTableStr().startsWith(paramOnlCgformHead.getTableName() + ",")) { + str = str.replace(paramOnlCgformHead.getTableName() + ",", ""); + } else if (onlCgformHead.getSubTableStr().endsWith("," + paramOnlCgformHead.getTableName())) { + str = str.replace("," + paramOnlCgformHead.getTableName(), ""); + } else if (onlCgformHead.getSubTableStr().indexOf("," + paramOnlCgformHead.getTableName() + ",") != -1) { + str = str.replace("," + paramOnlCgformHead.getTableName() + ",", ","); + } + onlCgformHead.setSubTableStr(str); + ((OnlCgformHeadMapper)this.baseMapper).updateById(onlCgformHead); + } + } + } + } + + + + @Transactional(rollbackFor = {Exception.class}) + public String saveManyFormData(String code, JSONObject json, String xAccessToken) throws DBException, BusinessException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(code); + if (onlCgformHead == null) { + throw new DBException("数据库主表ID[" + code + "]不存在"); + } + + String str1 = "add"; + executeEnhanceJava(str1, "start", onlCgformHead, json); + + + String str2 = b.f(onlCgformHead.getTableName()); + if (onlCgformHead.getTableType().intValue() == 2) { + + String str = onlCgformHead.getSubTableStr(); + + if (oConvertUtils.isNotEmpty(str)) { + String[] arrayOfString = str.split(","); + for (String str3 : arrayOfString) { + + JSONArray jSONArray = json.getJSONArray(str3); + if (jSONArray != null && jSONArray.size() != 0) { + + + + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str3)); + if (onlCgformHead1 != null) { + + + + List list = this.fieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, onlCgformHead1.getId())); + + String str4 = "", str5 = null; + for (OnlCgformField onlCgformField : list) { + if (oConvertUtils.isEmpty(onlCgformField.getMainField())) { + continue; + } + str4 = onlCgformField.getDbFieldName(); + String str6 = onlCgformField.getMainField(); + + + if (json.get(str6.toLowerCase()) != null) { + str5 = json.getString(str6.toLowerCase()); + } + if (json.get(str6.toUpperCase()) != null) { + str5 = json.getString(str6.toUpperCase()); + } + } + + + for (byte b1 = 0; b1 < jSONArray.size(); b1++) { + JSONObject jSONObject = jSONArray.getJSONObject(b1); + if (str5 != null) { + jSONObject.put(str4, str5); + } + this.fieldService.saveFormData(list, str3, jSONObject); + } + } + } + } + } + } + + if ("Y".equals(onlCgformHead.getIsTree())) { + this.fieldService.saveTreeFormData(code, str2, json, onlCgformHead.getTreeIdField(), onlCgformHead.getTreeParentIdField()); + } else { + this.fieldService.saveFormData(code, str2, json, false); + } + + executeEnhanceSql(str1, code, json); + + executeEnhanceJava(str1, "end", onlCgformHead, json); + + + + + if (oConvertUtils.isNotEmpty(json.get("bpm_status")) || oConvertUtils.isNotEmpty(json.get("bpm_status".toUpperCase()))) { + + try { + HttpHeaders httpHeaders = new HttpHeaders(); + httpHeaders.setContentType(MediaType.parseMediaType("application/json;charset=UTF-8")); + httpHeaders.set("Accept", "application/json;charset=UTF-8"); + httpHeaders.set("X-Access-Token", xAccessToken); + + JSONObject jSONObject1 = new JSONObject(); + jSONObject1.put("flowCode", "onl_" + onlCgformHead.getTableName()); + jSONObject1.put("id", json.get("id")); + jSONObject1.put("formUrl", "modules/bpm/task/form/OnlineFormDetail"); + jSONObject1.put("formUrlMobile", "online/OnlineDetailForm"); + String str = RestUtil.getBaseUrl() + "/act/process/extActProcess/saveMutilProcessDraft"; + JSONObject jSONObject2 = (JSONObject)RestUtil.request(str, HttpMethod.POST, httpHeaders, null, jSONObject1, JSONObject.class).getBody(); + if (jSONObject2 != null) { + String str3 = jSONObject2.getString("result"); + a.info("保存流程草稿 dataId : " + str3); + } + } catch (Exception exception) { + a.error("保存流程草稿异常, " + exception.getMessage(), exception); + } + } + + return onlCgformHead.getTableName(); + } + + + public Map querySubFormData(String table, String mainId) throws DBException { + HashMap hashMap = new HashMap<>(); + OnlCgformHead onlCgformHead = (OnlCgformHead)getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, table)); + if (onlCgformHead == null) { + throw new DBException("数据库子表[" + table + "]不存在"); + } + List list = this.fieldService.queryFormFields(onlCgformHead.getId(), false); + String str = null; + for (OnlCgformField onlCgformField : list) { + if (oConvertUtils.isNotEmpty(onlCgformField.getMainField())) { + str = onlCgformField.getDbFieldName(); + break; + } + } + List list1 = this.fieldService.querySubFormData(list, table, str, mainId); + if (list1 != null && list1.size() == 0) + throw new DBException("数据库子表[" + table + "]未找到相关信息,主表ID为" + mainId); + if (list1.size() > 1) { + throw new DBException("数据库子表[" + table + "]存在多条记录,主表ID为" + mainId); + } + return list1.get(0); + } + + + + + + public List> queryManySubFormData(String table, String mainId) throws DBException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, table)); + if (onlCgformHead == null) { + throw new DBException("数据库子表[" + table + "]不存在"); + } + List list1 = this.fieldService.queryFormFields(onlCgformHead.getId(), false); + + String str1 = null, str2 = null, str3 = null; + for (OnlCgformField onlCgformField1 : list1) { + if (oConvertUtils.isNotEmpty(onlCgformField1.getMainField())) { + str1 = onlCgformField1.getDbFieldName(); + str2 = onlCgformField1.getMainTable(); + str3 = onlCgformField1.getMainField(); + + break; + } + } + ArrayList arrayList = new ArrayList(); + OnlCgformField onlCgformField = new OnlCgformField(); + onlCgformField.setDbFieldName(str3); + arrayList.add(onlCgformField); + Map map = this.fieldService.queryFormData(arrayList, str2, mainId); + String str4 = oConvertUtils.getString(oConvertUtils.getString(map.get(str3)), oConvertUtils.getString(map.get(str3.toUpperCase()))); + List list2 = this.fieldService.querySubFormData(list1, table, str1, str4); + + if (list2 != null && list2.size() == 0) { + throw new DBException("数据库子表[" + table + "]未找到相关信息,主表ID为" + mainId); + } + ArrayList arrayList1 = new ArrayList(list2.size()); + for (Map map1 : list2) { + arrayList1.add(b.b(map1)); + } + return (List)arrayList1; + } + + + + + public Map queryManyFormData(String code, String id) throws DBException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(code); + if (onlCgformHead == null) { + throw new DBException("数据库主表ID[" + code + "]不存在"); + } + List list = this.fieldService.queryFormFields(code, true); + Map map = this.fieldService.queryFormData(list, onlCgformHead.getTableName(), id); + if (onlCgformHead.getTableType().intValue() == 2) { + + String str = onlCgformHead.getSubTableStr(); + if (oConvertUtils.isNotEmpty(str)) { + String[] arrayOfString = str.split(","); + for (String str1 : arrayOfString) { + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str1)); + if (onlCgformHead1 != null) { + + + List list1 = this.fieldService.queryFormFields(onlCgformHead1.getId(), false); + String str2 = "", str3 = null; + for (OnlCgformField onlCgformField : list1) { + if (oConvertUtils.isEmpty(onlCgformField.getMainField())) { + continue; + } + str2 = onlCgformField.getDbFieldName(); + String str4 = onlCgformField.getMainField(); + + if (null == map.get(str4)) { + str3 = map.get(str4.toUpperCase()).toString(); continue; + } + str3 = map.get(str4).toString(); + } + + + List list2 = this.fieldService.querySubFormData(list1, str1, str2, str3); + if (list2 == null || list2.size() == 0) { + map.put(str1, new String[0]); + } else { + map.put(str1, b.d(list2)); + } + } + } + } + } + return (Map)map; + } + + + @Transactional(rollbackFor = {Exception.class}) + public String editManyFormData(String code, JSONObject json) throws DBException, BusinessException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(code); + if (onlCgformHead == null) { + throw new DBException("数据库主表ID[" + code + "]不存在"); + } + + String str1 = "edit"; + executeEnhanceJava(str1, "start", onlCgformHead, json); + + String str2 = onlCgformHead.getTableName(); + + if ("Y".equals(onlCgformHead.getIsTree())) { + this.fieldService.editTreeFormData(code, str2, json, onlCgformHead.getTreeIdField(), onlCgformHead.getTreeParentIdField()); + } else { + this.fieldService.editFormData(code, str2, json, false); + } + + if (onlCgformHead.getTableType().intValue() == 2) { + String str = onlCgformHead.getSubTableStr(); + if (oConvertUtils.isNotEmpty(str)) { + String[] arrayOfString = str.split(","); + for (String str3 : arrayOfString) { + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str3)); + if (onlCgformHead1 != null) { + + + List list = this.fieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, onlCgformHead1.getId())); + String str4 = "", str5 = null; + for (OnlCgformField onlCgformField : list) { + if (oConvertUtils.isEmpty(onlCgformField.getMainField())) { + continue; + } + str4 = onlCgformField.getDbFieldName(); + String str6 = onlCgformField.getMainField(); + + + if (json.get(str6.toLowerCase()) != null) { + str5 = json.getString(str6.toLowerCase()); + } + if (json.get(str6.toUpperCase()) != null) { + str5 = json.getString(str6.toUpperCase()); + } + } + + + if (!oConvertUtils.isEmpty(str5)) { + + + this.fieldService.deleteAutoList(str3, str4, str5); + + JSONArray jSONArray = json.getJSONArray(str3); + if (jSONArray != null && jSONArray.size() != 0) + { + + for (byte b1 = 0; b1 < jSONArray.size(); b1++) { + JSONObject jSONObject = jSONArray.getJSONObject(b1); + if (str5 != null) { + jSONObject.put(str4, str5); + } + this.fieldService.saveFormData(list, str3, jSONObject); + } + } + } + } + } + } + } + executeEnhanceJava(str1, "end", onlCgformHead, json); + + executeEnhanceSql(str1, code, json); + return str2; + } + + + + + public int executeEnhanceJava(String buttonCode, String eventType, OnlCgformHead head, JSONObject json) throws BusinessException { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getActiveStatus, "1"); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getButtonCode, buttonCode); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getCgformHeadId, head.getId()); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getEvent, eventType); + OnlCgformEnhanceJava onlCgformEnhanceJava = (OnlCgformEnhanceJava)this.onlCgformEnhanceJavaMapper.selectOne((Wrapper)lambdaQueryWrapper); + Object object = a(onlCgformEnhanceJava); + if (object != null && object instanceof CgformEnhanceJavaInter) { + CgformEnhanceJavaInter cgformEnhanceJavaInter = (CgformEnhanceJavaInter)object; + return cgformEnhanceJavaInter.execute(head.getTableName(), json); + } + return 1; + } + + + public void executeEnhanceExport(OnlCgformHead head, List> dataList) throws BusinessException { + executeEnhanceList(head, "export", dataList); + } + + + public void executeEnhanceList(OnlCgformHead head, String buttonCode, List> dataList) throws BusinessException { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getActiveStatus, "1"); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getButtonCode, buttonCode); + lambdaQueryWrapper.eq(OnlCgformEnhanceJava::getCgformHeadId, head.getId()); + List list = this.onlCgformEnhanceJavaMapper.selectList((Wrapper)lambdaQueryWrapper); + if (list != null && list.size() > 0) { + Object object = a(list.get(0)); + if (object != null && object instanceof CgformEnhanceJavaListInter) { + CgformEnhanceJavaListInter cgformEnhanceJavaListInter = (CgformEnhanceJavaListInter)object; + cgformEnhanceJavaListInter.execute(head.getTableName(), dataList); + } + } + } + + + + + + + + private Object a(OnlCgformEnhanceJava paramOnlCgformEnhanceJava) { + if (paramOnlCgformEnhanceJava != null) { + String str1 = paramOnlCgformEnhanceJava.getCgJavaType(); + String str2 = paramOnlCgformEnhanceJava.getCgJavaValue(); + if (oConvertUtils.isNotEmpty(str2)) { + Object object = null; + if ("class".equals(str1)) { + try { + object = MyClassLoader.getClassByScn(str2).newInstance(); + } catch (InstantiationException instantiationException) { + a.error(instantiationException.getMessage(), instantiationException); + } catch (IllegalAccessException illegalAccessException) { + a.error(illegalAccessException.getMessage(), illegalAccessException); + } + } else if ("spring".equals(str1)) { + object = SpringContextUtils.getBean(str2); + } + return object; + } + } + return null; + } + + + + public void executeEnhanceSql(String buttonCode, String formId, JSONObject json) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceSql::getButtonCode, buttonCode); + lambdaQueryWrapper.eq(OnlCgformEnhanceSql::getCgformHeadId, formId); + OnlCgformEnhanceSql onlCgformEnhanceSql = (OnlCgformEnhanceSql)this.onlCgformEnhanceSqlMapper.selectOne((Wrapper)lambdaQueryWrapper); + if (onlCgformEnhanceSql != null && oConvertUtils.isNotEmpty(onlCgformEnhanceSql.getCgbSql())) { + String str = b.a(onlCgformEnhanceSql.getCgbSql(), json); + String[] arrayOfString = str.split(";"); + for (String str1 : arrayOfString) { + if (str1 != null && !str1.toLowerCase().trim().equals("")) { + + + a.info(" online sql 增强: " + str1); + ((OnlCgformHeadMapper)this.baseMapper).executeDDL(str1); + } + } + } + } + + + + public void executeCustomerButton(String buttonCode, String formId, String dataId) throws BusinessException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(formId); + if (onlCgformHead == null) { + throw new BusinessException("未找到表配置信息"); + } + Map map = ((OnlCgformHeadMapper)this.baseMapper).queryOneByTableNameAndId(b.f(onlCgformHead.getTableName()), dataId); + + JSONObject jSONObject = JSONObject.parseObject(JSON.toJSONString(map)); + + executeEnhanceJava(buttonCode, "start", onlCgformHead, jSONObject); + + executeEnhanceSql(buttonCode, formId, jSONObject); + + executeEnhanceJava(buttonCode, "end", onlCgformHead, jSONObject); + } + + + + public List queryValidButtonList(String headId) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformButton::getCgformHeadId, headId); + lambdaQueryWrapper.eq(OnlCgformButton::getButtonStatus, "1"); + lambdaQueryWrapper.orderByAsc(OnlCgformButton::getOrderNum); + return this.onlCgformButtonMapper.selectList((Wrapper)lambdaQueryWrapper); + } + + + + + public OnlCgformEnhanceJs queryEnhanceJs(String formId, String cgJsType) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformEnhanceJs::getCgformHeadId, formId); + lambdaQueryWrapper.eq(OnlCgformEnhanceJs::getCgJsType, cgJsType); + return (OnlCgformEnhanceJs)this.onlCgformEnhanceJsMapper.selectOne((Wrapper)lambdaQueryWrapper); + } + + + + @Transactional(rollbackFor = {Exception.class}) + public void deleteOneTableInfo(String formId, String dataId) throws BusinessException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getById(formId); + if (onlCgformHead == null) { + throw new BusinessException("未找到表配置信息"); + } + + String str1 = b.f(onlCgformHead.getTableName()); + Map map1 = ((OnlCgformHeadMapper)this.baseMapper).queryOneByTableNameAndId(str1, dataId); + if (map1 == null) { + throw new BusinessException("未找到数据信息"); + } + + Map map2 = b.b(map1); + String str2 = "delete"; + + JSONObject jSONObject = JSONObject.parseObject(JSON.toJSONString(map2)); + executeEnhanceJava(str2, "start", onlCgformHead, jSONObject); + + + updateParentNode(onlCgformHead, dataId); + + if (onlCgformHead.getTableType().intValue() == 2) { + this.fieldService.deleteAutoListMainAndSub(onlCgformHead, dataId); + } else { + String str = "delete from " + str1 + " where id = '" + dataId + "'"; + ((OnlCgformHeadMapper)this.baseMapper).deleteOne(str); + } + + executeEnhanceSql(str2, formId, jSONObject); + + executeEnhanceJava(str2, "end", onlCgformHead, jSONObject); + } + + + + + + + + + public JSONObject queryFormItem(OnlCgformHead head) { + List list = this.fieldService.queryAvailableFields(head.getId(), head.getTableName(), head.getTaskId(), false); + + ArrayList arrayList = new ArrayList(); + if (oConvertUtils.isEmpty(head.getTaskId())) { + + + List list1 = this.onlAuthPageService.queryFormDisabledCode(head.getId()); + if (list1 != null && list1.size() > 0 && list1.get(0) != null) { + arrayList.addAll(list1); + } + } else { + + List list1 = this.fieldService.queryDisabledFields(head.getTableName(), head.getTaskId()); + if (list1 != null && list1.size() > 0 && list1.get(0) != null) { + arrayList.addAll(list1); + } + } + + + JSONObject jSONObject = b.a(list, arrayList, null); + if (head.getTableType().intValue() == 2) { + + String str = head.getSubTableStr(); + if (oConvertUtils.isNotEmpty(str)) { + for (String str1 : str.split(",")) { + OnlCgformHead onlCgformHead = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str1)); + if (onlCgformHead != null) { + + + + + + List list1 = this.fieldService.queryAvailableFields(onlCgformHead.getId(), onlCgformHead.getTableName(), head.getTaskId(), false); + + + List list2 = new ArrayList(); + if (oConvertUtils.isNotEmpty(head.getTaskId())) { + + List list3 = this.fieldService.queryDisabledFields(onlCgformHead.getTableName(), head.getTaskId()); + + } + else { + + list2 = this.onlAuthPageService.queryFormDisabledCode(onlCgformHead.getId()); + } + + + + JSONObject jSONObject1 = new JSONObject(); + if (1 == onlCgformHead.getRelationType().intValue()) { + + jSONObject1 = b.a(list1, list2, null); + } else { + + jSONObject1.put("columns", b.a(list1, list2)); + } + jSONObject1.put("relationType", onlCgformHead.getRelationType()); + jSONObject1.put("view", "tab"); + jSONObject1.put("order", onlCgformHead.getTabOrderNum()); + jSONObject1.put("formTemplate", onlCgformHead.getFormTemplate()); + jSONObject1.put("describe", onlCgformHead.getTableTxt()); + jSONObject1.put("key", onlCgformHead.getTableName()); + jSONObject.getJSONObject("properties").put(onlCgformHead.getTableName(), jSONObject1); + } + } + } + } + return jSONObject; + } + + + public List generateCode(OnlGenerateModel model) throws Exception { + TableVo tableVo = new TableVo(); + tableVo.setEntityName(model.getEntityName()); + tableVo.setEntityPackage(model.getEntityPackage()); + tableVo.setFtlDescription(model.getFtlDescription()); + tableVo.setTableName(model.getTableName()); + tableVo.setSearchFieldNum(Integer.valueOf(-1)); + ArrayList arrayList1 = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + a(model.getCode(), arrayList1, arrayList2); + + OnlCgformHead onlCgformHead = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getId, model.getCode())); + HashMap hashMap = new HashMap<>(); + hashMap.put("scroll", (onlCgformHead.getScroll() == null) ? "0" : onlCgformHead.getScroll().toString()); + String str = onlCgformHead.getFormTemplate(); + if (oConvertUtils.isEmpty(str)) { + tableVo.setFieldRowNum(Integer.valueOf(1)); + } else { + tableVo.setFieldRowNum(Integer.valueOf(Integer.parseInt(str))); + } + if ("Y".equals(onlCgformHead.getIsTree())) { + hashMap.put("pidField", onlCgformHead.getTreeParentIdField()); + hashMap.put("hasChildren", onlCgformHead.getTreeIdField()); + hashMap.put("textField", onlCgformHead.getTreeFieldname()); + } + tableVo.setExtendParams(hashMap); + + CgformEnum cgformEnum = CgformEnum.getCgformEnumByConfig(model.getJspMode()); + return (new CodeGenerateOne(tableVo, arrayList1, arrayList2)).generateCodeFile(model.getProjectPath(), cgformEnum.getTemplatePath(), cgformEnum.getStylePath()); + } + + + + + public List generateOneToMany(OnlGenerateModel model) throws Exception { + MainTableVo mainTableVo = new MainTableVo(); + mainTableVo.setEntityName(model.getEntityName()); + mainTableVo.setEntityPackage(model.getEntityPackage()); + mainTableVo.setFtlDescription(model.getFtlDescription()); + mainTableVo.setTableName(model.getTableName()); + OnlCgformHead onlCgformHead = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getId, model.getCode())); + String str = onlCgformHead.getFormTemplate(); + if (oConvertUtils.isEmpty(str)) { + mainTableVo.setFieldRowNum(Integer.valueOf(1)); + } else { + mainTableVo.setFieldRowNum(Integer.valueOf(Integer.parseInt(str))); + } + ArrayList arrayList1 = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + a(model.getCode(), arrayList1, arrayList2); + + List list = model.getSubList(); + ArrayList arrayList = new ArrayList(); + for (OnlGenerateModel onlGenerateModel : list) { + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, onlGenerateModel.getTableName())); + if (onlCgformHead1 == null) { + continue; + } + SubTableVo subTableVo = new SubTableVo(); + subTableVo.setEntityName(onlGenerateModel.getEntityName()); + subTableVo.setEntityPackage(model.getEntityPackage()); + subTableVo.setTableName(onlGenerateModel.getTableName()); + subTableVo.setFtlDescription(onlGenerateModel.getFtlDescription()); + Integer integer = onlCgformHead1.getRelationType(); + subTableVo.setForeignRelationType((integer.intValue() == 1) ? "1" : "0"); + + ArrayList arrayList3 = new ArrayList(); + ArrayList arrayList4 = new ArrayList(); + OnlCgformField onlCgformField = a(onlCgformHead1.getId(), arrayList3, arrayList4); + if (onlCgformField == null) { + continue; + } + subTableVo.setOriginalForeignKeys(new String[] { onlCgformField.getDbFieldName() }); + subTableVo.setForeignKeys(new String[] { onlCgformField.getDbFieldName() }); + subTableVo.setColums(arrayList3); + subTableVo.setOriginalColumns(arrayList4); + arrayList.add(subTableVo); + } + CgformEnum cgformEnum = CgformEnum.getCgformEnumByConfig(model.getJspMode()); + return (new CodeGenerateOneToMany(mainTableVo, arrayList1, arrayList2, arrayList)).generateCodeFile(model.getProjectPath(), cgformEnum.getTemplatePath(), cgformEnum.getStylePath()); + } + + + + + + + + + + + private OnlCgformField a(String paramString, List paramList1, List paramList2) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, paramString); + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + List list = this.fieldService.list((Wrapper)lambdaQueryWrapper); + OnlCgformField onlCgformField = null; + for (OnlCgformField onlCgformField1 : list) { + if (oConvertUtils.isNotEmpty(onlCgformField1.getMainTable())) { + onlCgformField = onlCgformField1; + } + ColumnVo columnVo = new ColumnVo(); + columnVo.setFieldLength(onlCgformField1.getFieldLength()); + columnVo.setFieldHref(onlCgformField1.getFieldHref()); + columnVo.setFieldValidType(onlCgformField1.getFieldValidType()); + columnVo.setFieldDefault(onlCgformField1.getDbDefaultVal()); + columnVo.setFieldShowType(onlCgformField1.getFieldShowType()); + columnVo.setFieldOrderNum(onlCgformField1.getOrderNum()); + columnVo.setIsKey((onlCgformField1.getDbIsKey().intValue() == 1) ? "Y" : "N"); + columnVo.setIsShow((onlCgformField1.getIsShowForm().intValue() == 1) ? "Y" : "N"); + columnVo.setIsShowList((onlCgformField1.getIsShowList().intValue() == 1) ? "Y" : "N"); + columnVo.setIsQuery((onlCgformField1.getIsQuery().intValue() == 1) ? "Y" : "N"); + columnVo.setQueryMode(onlCgformField1.getQueryMode()); + columnVo.setDictField(onlCgformField1.getDictField()); + + if (oConvertUtils.isNotEmpty(onlCgformField1.getDictTable()) && onlCgformField1.getDictTable().indexOf("where") > 0) { + columnVo.setDictTable(onlCgformField1.getDictTable().split("where")[0].trim()); + } else { + columnVo.setDictTable(onlCgformField1.getDictTable()); + } + columnVo.setDictText(onlCgformField1.getDictText()); + columnVo.setFieldDbName(onlCgformField1.getDbFieldName()); + columnVo.setFieldName(oConvertUtils.camelName(onlCgformField1.getDbFieldName())); + columnVo.setFiledComment(onlCgformField1.getDbFieldTxt()); + columnVo.setFieldDbType(onlCgformField1.getDbType()); + columnVo.setFieldType(a(onlCgformField1.getDbType())); + columnVo.setClassType(onlCgformField1.getFieldShowType()); + columnVo.setClassType_row(onlCgformField1.getFieldShowType()); + + + if (onlCgformField1.getDbIsNull().intValue() == 0 || "*".equals(onlCgformField1.getFieldValidType()) || "1".equals(onlCgformField1.getFieldMustInput())) { + columnVo.setNullable("N"); + } else { + columnVo.setNullable("Y"); + } + + + if ("switch".equals(onlCgformField1.getFieldShowType())) { + columnVo.setDictField(onlCgformField1.getFieldExtendJson()); + } + + columnVo.setSort("1".equals(onlCgformField1.getSortFlag()) ? "Y" : "N"); + + columnVo.setReadonly(Integer.valueOf(1).equals(onlCgformField1.getIsReadOnly()) ? "Y" : "N"); + + if (oConvertUtils.isNotEmpty(onlCgformField1.getFieldDefaultValue()) && !onlCgformField1.getFieldDefaultValue().trim().startsWith("${") && !onlCgformField1.getFieldDefaultValue().trim().startsWith("#{") && !onlCgformField1.getFieldDefaultValue().trim().startsWith("{{")) { + columnVo.setDefaultVal(onlCgformField1.getFieldDefaultValue()); + } + + if (("file".equals(onlCgformField1.getFieldShowType()) || "image".equals(onlCgformField1.getFieldShowType())) && + oConvertUtils.isNotEmpty(onlCgformField1.getFieldExtendJson())) { + JSONObject jSONObject = JSONObject.parseObject(onlCgformField1.getFieldExtendJson()); + if (oConvertUtils.isNotEmpty(jSONObject.getString("uploadnum"))) { + columnVo.setUploadnum(jSONObject.getString("uploadnum")); + } + } + + + paramList2.add(columnVo); + if (onlCgformField1.getIsShowForm().intValue() == 1 || onlCgformField1.getIsShowList().intValue() == 1) { + paramList1.add(columnVo); + } + } + return onlCgformField; + } + + + + + + + + private String a(String paramString) { + paramString = paramString.toLowerCase(); + if (paramString.indexOf("int") >= 0) + return "java.lang.Integer"; + if (paramString.indexOf("double") >= 0) + return "java.lang.Double"; + if (paramString.indexOf("decimal") >= 0) + return "java.math.BigDecimal"; + if (paramString.indexOf("date") >= 0) { + return "java.util.Date"; + } + return "java.lang.String"; + } + + + + + + public void addCrazyFormData(String tbname, JSONObject json) throws DBException, UnsupportedEncodingException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, tbname)); + if (onlCgformHead == null) { + throw new DBException("数据库主表[" + tbname + "]不存在"); + } + if (onlCgformHead.getTableType().intValue() == 2) { + + String str = onlCgformHead.getSubTableStr(); + if (str != null) { + String[] arrayOfString = str.split(","); + for (String str1 : arrayOfString) { + String str2 = json.getString("sub-table-design_" + str1); + if (!oConvertUtils.isEmpty(str2)) { + + + JSONArray jSONArray = JSONArray.parseArray(URLDecoder.decode(str2, "UTF-8")); + if (jSONArray != null && jSONArray.size() != 0) { + + + + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str1)); + if (onlCgformHead1 != null) + + { + + List list = this.fieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, onlCgformHead1.getId())); + + String str3 = "", str4 = null; + for (OnlCgformField onlCgformField : list) { + if (oConvertUtils.isEmpty(onlCgformField.getMainField())) { + continue; + } + str3 = onlCgformField.getDbFieldName(); + String str5 = onlCgformField.getMainField(); + str4 = json.getString(str5); + } + + for (byte b1 = 0; b1 < jSONArray.size(); b1++) + { JSONObject jSONObject = jSONArray.getJSONObject(b1); + if (str4 != null) { + jSONObject.put(str3, str4); + } + this.fieldService.executeInsertSQL(b.c(str1, list, jSONObject)); } } + } + } + } + } + } this.fieldService.saveFormData(onlCgformHead.getId(), tbname, json, true); + } + + + + + public void editCrazyFormData(String tbname, JSONObject json) throws DBException, UnsupportedEncodingException { + OnlCgformHead onlCgformHead = (OnlCgformHead)getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, tbname)); + if (onlCgformHead == null) { + throw new DBException("数据库主表[" + tbname + "]不存在"); + } + if (onlCgformHead.getTableType().intValue() == 2) { + String str = onlCgformHead.getSubTableStr(); + String[] arrayOfString = str.split(","); + for (String str1 : arrayOfString) { + OnlCgformHead onlCgformHead1 = (OnlCgformHead)((OnlCgformHeadMapper)this.baseMapper).selectOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str1)); + if (onlCgformHead1 != null) { + + + List list = this.fieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, onlCgformHead1.getId())); + String str2 = "", str3 = null; + for (OnlCgformField onlCgformField : list) { + if (oConvertUtils.isEmpty(onlCgformField.getMainField())) { + continue; + } + str2 = onlCgformField.getDbFieldName(); + String str4 = onlCgformField.getMainField(); + str3 = json.getString(str4); + } + + if (!oConvertUtils.isEmpty(str3)) { + + + this.fieldService.deleteAutoList(str1, str2, str3); + + String str4 = json.getString("sub-table-design_" + str1); + if (!oConvertUtils.isEmpty(str4)) + + { + JSONArray jSONArray = JSONArray.parseArray(URLDecoder.decode(str4, "UTF-8")); + if (jSONArray != null && jSONArray.size() != 0) + { + + for (byte b1 = 0; b1 < jSONArray.size(); b1++) + { JSONObject jSONObject = jSONArray.getJSONObject(b1); + if (str3 != null) { + jSONObject.put(str2, str3); + } + this.fieldService.executeInsertSQL(b.c(str1, list, jSONObject)); } } } + } + } + } + } this.fieldService.editFormData(onlCgformHead.getId(), tbname, json, true); + } + + + + + + public Integer getMaxCopyVersion(String physicId) { + Integer integer = ((OnlCgformHeadMapper)this.baseMapper).getMaxCopyVersion(physicId); + return Integer.valueOf((integer == null) ? 0 : integer.intValue()); + } + + + + public void copyOnlineTableConfig(OnlCgformHead physicTable) throws Exception { + String str1 = physicTable.getId(); + OnlCgformHead onlCgformHead = new OnlCgformHead(); + String str2 = UUIDGenerator.generate(); + onlCgformHead.setId(str2); + + onlCgformHead.setPhysicId(str1); + onlCgformHead.setCopyType(Integer.valueOf(1)); + onlCgformHead.setCopyVersion(physicTable.getTableVersion()); + + + onlCgformHead.setTableVersion(Integer.valueOf(1)); + onlCgformHead.setTableName(a(str1, physicTable.getTableName())); + onlCgformHead.setTableTxt(physicTable.getTableTxt()); + onlCgformHead.setFormCategory(physicTable.getFormCategory()); + onlCgformHead.setFormTemplate(physicTable.getFormTemplate()); + onlCgformHead.setFormTemplateMobile(physicTable.getFormTemplateMobile()); + onlCgformHead.setIdSequence(physicTable.getIdSequence()); + onlCgformHead.setIdType(physicTable.getIdType()); + onlCgformHead.setIsCheckbox(physicTable.getIsCheckbox()); + onlCgformHead.setIsPage(physicTable.getIsPage()); + onlCgformHead.setIsTree(physicTable.getIsTree()); + onlCgformHead.setQueryMode(physicTable.getQueryMode()); + + + onlCgformHead.setTableType(Integer.valueOf(1)); + onlCgformHead.setIsDbSynch("N"); + + + onlCgformHead.setIsDesForm(physicTable.getIsDesForm()); + onlCgformHead.setDesFormCode(physicTable.getDesFormCode()); + + + onlCgformHead.setTreeParentIdField(physicTable.getTreeParentIdField()); + onlCgformHead.setTreeFieldname(physicTable.getTreeFieldname()); + onlCgformHead.setTreeIdField(physicTable.getTreeIdField()); + + + onlCgformHead.setRelationType(null); + onlCgformHead.setTabOrderNum(null); + onlCgformHead.setSubTableStr(null); + + + onlCgformHead.setThemeTemplate(physicTable.getThemeTemplate()); + onlCgformHead.setScroll(physicTable.getScroll()); + + + List list = this.fieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, str1)); + for (OnlCgformField onlCgformField1 : list) { + OnlCgformField onlCgformField2 = new OnlCgformField(); + onlCgformField2.setCgformHeadId(str2); + a(onlCgformField1, onlCgformField2); + + this.fieldService.save(onlCgformField2); + } + ((OnlCgformHeadMapper)this.baseMapper).insert(onlCgformHead); + } + + + + + + public void initCopyState(List headList) { + List list = ((OnlCgformHeadMapper)this.baseMapper).queryCopyPhysicId(); + for (OnlCgformHead onlCgformHead : headList) { + if (list.contains(onlCgformHead.getId())) { + onlCgformHead.setHascopy(Integer.valueOf(1)); continue; + } + onlCgformHead.setHascopy(Integer.valueOf(0)); + } + } + + + + public void deleteBatch(String ids, String flag) { + String[] arrayOfString = ids.split(","); + if ("1".equals(flag)) { + for (String str : arrayOfString) { + try { + deleteRecordAndTable(str); + } catch (DBException dBException) { + dBException.printStackTrace(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } + } + } else { + removeByIds(Arrays.asList(arrayOfString)); + } + } + + + public void updateParentNode(OnlCgformHead head, String dataId) { + if ("Y".equals(head.getIsTree())) { + String str1 = b.f(head.getTableName()); + String str2 = head.getTreeParentIdField(); + Map map = ((OnlCgformHeadMapper)this.baseMapper).queryOneByTableNameAndId(str1, dataId); + String str3 = null; + if (map.get(str2) != null && !"0".equals(map.get(str2))) { + str3 = map.get(str2).toString(); + } else if (map.get(str2.toUpperCase()) != null && !"0".equals(map.get(str2.toUpperCase()))) { + str3 = map.get(str2.toUpperCase()).toString(); + } + if (str3 != null) { + Integer integer = ((OnlCgformHeadMapper)this.baseMapper).queryChildNode(str1, str2, str3); + if (integer.intValue() == 1) { + String str = head.getTreeIdField(); + this.fieldService.updateTreeNodeNoChild(str1, str, str3); + } + } + } + } + + + + + + + private void b(OnlCgformHead paramOnlCgformHead, List paramList) { + List list = list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getPhysicId, paramOnlCgformHead.getId())); + + if (list != null && list.size() > 0) { + for (OnlCgformHead onlCgformHead : list) { + + List list1 = this.fieldService.list((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, onlCgformHead.getId())); + if (list1 == null || list1.size() == 0) { + + for (OnlCgformField onlCgformField1 : paramList) { + OnlCgformField onlCgformField2 = new OnlCgformField(); + onlCgformField2.setCgformHeadId(onlCgformHead.getId()); + a(onlCgformField1, onlCgformField2); + this.fieldService.save(onlCgformField2); + } + continue; + } + HashMap hashMap1 = new HashMap<>(); + for (OnlCgformField onlCgformField : list1) { + hashMap1.put(onlCgformField.getDbFieldName(), Integer.valueOf(1)); + } + + HashMap hashMap2 = new HashMap<>(); + for (OnlCgformField onlCgformField : paramList) { + hashMap2.put(onlCgformField.getDbFieldName(), Integer.valueOf(1)); + } + + ArrayList arrayList1 = new ArrayList(); + + ArrayList arrayList2 = new ArrayList(); + for (String str : hashMap2.keySet()) { + if (hashMap1.get(str) == null) { + + arrayList2.add(str); + continue; + } + arrayList1.add(str); + } + + + ArrayList arrayList3 = new ArrayList(); + for (String str : hashMap1.keySet()) { + if (hashMap2.get(str) == null) + { + arrayList3.add(str); + } + } + + + + if (arrayList3.size() > 0) { + for (OnlCgformField onlCgformField : list1) { + if (arrayList3.contains(onlCgformField.getDbFieldName())) { + this.fieldService.removeById(onlCgformField.getId()); + } + } + } + + + if (arrayList2.size() > 0) { + for (OnlCgformField onlCgformField : paramList) { + if (arrayList2.contains(onlCgformField.getDbFieldName())) { + OnlCgformField onlCgformField1 = new OnlCgformField(); + onlCgformField1.setCgformHeadId(onlCgformHead.getId()); + a(onlCgformField, onlCgformField1); + this.fieldService.save(onlCgformField1); + } + } + } + + + if (arrayList1.size() > 0) { + for (String str : arrayList1) { + b(str, paramList, list1); + } + } + } + } + } + + + + + + + + + + + + + private void b(String paramString, List paramList1, List paramList2) { + OnlCgformField onlCgformField1 = null; + for (OnlCgformField onlCgformField : paramList1) { + if (paramString.equals(onlCgformField.getDbFieldName())) { + onlCgformField1 = onlCgformField; + } + } + + OnlCgformField onlCgformField2 = null; + for (OnlCgformField onlCgformField : paramList2) { + if (paramString.equals(onlCgformField.getDbFieldName())) { + onlCgformField2 = onlCgformField; + } + } + + if (onlCgformField1 != null && onlCgformField2 != null) { + boolean bool = false; + if (!onlCgformField1.getDbType().equals(onlCgformField2.getDbType())) { + onlCgformField2.setDbType(onlCgformField1.getDbType()); + bool = true; + } + if (!onlCgformField1.getDbDefaultVal().equals(onlCgformField2.getDbDefaultVal())) { + onlCgformField2.setDbDefaultVal(onlCgformField1.getDbDefaultVal()); + bool = true; + } + if (onlCgformField1.getDbLength() != onlCgformField2.getDbLength()) { + onlCgformField2.setDbLength(onlCgformField1.getDbLength()); + bool = true; + } + if (onlCgformField1.getDbIsNull() != onlCgformField2.getDbIsNull()) { + onlCgformField2.setDbIsNull(onlCgformField1.getDbIsNull()); + bool = true; + } + if (bool) { + this.fieldService.updateById(onlCgformField2); + } + } + } + + + + + + + + private void a(OnlCgformField paramOnlCgformField1, OnlCgformField paramOnlCgformField2) { + paramOnlCgformField2.setDbDefaultVal(paramOnlCgformField1.getDbDefaultVal()); + paramOnlCgformField2.setDbFieldName(paramOnlCgformField1.getDbFieldName()); + paramOnlCgformField2.setDbFieldNameOld(paramOnlCgformField1.getDbFieldNameOld()); + paramOnlCgformField2.setDbFieldTxt(paramOnlCgformField1.getDbFieldTxt()); + paramOnlCgformField2.setDbIsKey(paramOnlCgformField1.getDbIsKey()); + paramOnlCgformField2.setDbIsNull(paramOnlCgformField1.getDbIsNull()); + paramOnlCgformField2.setDbLength(paramOnlCgformField1.getDbLength()); + paramOnlCgformField2.setDbPointLength(paramOnlCgformField1.getDbPointLength()); + paramOnlCgformField2.setDbType(paramOnlCgformField1.getDbType()); + paramOnlCgformField2.setDictField(paramOnlCgformField1.getDictField()); + paramOnlCgformField2.setDictTable(paramOnlCgformField1.getDictTable()); + paramOnlCgformField2.setDictText(paramOnlCgformField1.getDictText()); + paramOnlCgformField2.setFieldExtendJson(paramOnlCgformField1.getFieldExtendJson()); + paramOnlCgformField2.setFieldHref(paramOnlCgformField1.getFieldHref()); + paramOnlCgformField2.setFieldLength(paramOnlCgformField1.getFieldLength()); + + paramOnlCgformField2.setFieldMustInput(paramOnlCgformField1.getFieldMustInput()); + paramOnlCgformField2.setFieldShowType(paramOnlCgformField1.getFieldShowType()); + paramOnlCgformField2.setFieldValidType(paramOnlCgformField1.getFieldValidType()); + paramOnlCgformField2.setFieldDefaultValue(paramOnlCgformField1.getFieldDefaultValue()); + paramOnlCgformField2.setIsQuery(paramOnlCgformField1.getIsQuery()); + paramOnlCgformField2.setIsShowForm(paramOnlCgformField1.getIsShowForm()); + paramOnlCgformField2.setIsShowList(paramOnlCgformField1.getIsShowList()); + paramOnlCgformField2.setMainField(null); + paramOnlCgformField2.setMainTable(null); + paramOnlCgformField2.setOrderNum(paramOnlCgformField1.getOrderNum()); + paramOnlCgformField2.setQueryMode(paramOnlCgformField1.getQueryMode()); + + + paramOnlCgformField2.setIsReadOnly(paramOnlCgformField1.getIsReadOnly()); + paramOnlCgformField2.setSortFlag(paramOnlCgformField1.getSortFlag()); + paramOnlCgformField2.setQueryDefVal(paramOnlCgformField1.getQueryDefVal()); + paramOnlCgformField2.setQueryConfigFlag(paramOnlCgformField1.getQueryConfigFlag()); + paramOnlCgformField2.setQueryDictField(paramOnlCgformField1.getQueryDictField()); + paramOnlCgformField2.setQueryDictTable(paramOnlCgformField1.getQueryDictTable()); + paramOnlCgformField2.setQueryDictText(paramOnlCgformField1.getQueryDictText()); + paramOnlCgformField2.setQueryMustInput(paramOnlCgformField1.getQueryMustInput()); + paramOnlCgformField2.setQueryShowType(paramOnlCgformField1.getQueryShowType()); + paramOnlCgformField2.setQueryValidType(paramOnlCgformField1.getQueryValidType()); + paramOnlCgformField2.setConverter(paramOnlCgformField1.getConverter()); + } + + + + + + + private void a(OnlCgformField paramOnlCgformField) { + if ("Text".equals(paramOnlCgformField.getDbType()) || "Blob".equals(paramOnlCgformField.getDbType())) { + paramOnlCgformField.setDbLength(Integer.valueOf(0)); + paramOnlCgformField.setDbPointLength(Integer.valueOf(0)); + } + } + + + + + + private String a(String paramString1, String paramString2) { + List list = ((OnlCgformHeadMapper)this.baseMapper).queryAllCopyTableName(paramString1); + int i = 0; + if (list != null || list.size() > 0) { + for (byte b1 = 0; b1 < list.size(); b1++) { + String str = list.get(b1); + int j = Integer.parseInt(str.split("\\$")[1]); + if (j > i) { + i = j; + } + } + } + return paramString2 + "$" + ++i; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/f.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/f.java new file mode 100644 index 00000000..52ea0f18 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/f.java @@ -0,0 +1,99 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import java.lang.invoke.SerializedLambda; +import java.util.List; +import com.jero.common.constant.CommonConstant; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformHeadMapper; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformIndexMapper; +import com.jero.generater.modules.online.cgform.service.IOnlCgformIndexService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + + + + +@Service("onlCgformIndexServiceImpl") +public class f + extends ServiceImpl + implements IOnlCgformIndexService +{ + private static final Logger a = LoggerFactory.getLogger(f.class); + + + + @Autowired + private OnlCgformHeadMapper onlCgformHeadMapper; + + + + + public void createIndex(String code, String databaseType, String tbname) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformIndex::getCgformHeadId, code); + List list = list((Wrapper)lambdaQueryWrapper); + if (list != null && list.size() > 0) { + for (OnlCgformIndex onlCgformIndex : list) { + if (!CommonConstant.DEL_FLAG_1.equals(onlCgformIndex.getDelFlag()) && "N".equals(onlCgformIndex.getIsDbSynch())) { + String str1 = ""; + String str2 = onlCgformIndex.getIndexName(); + String str3 = onlCgformIndex.getIndexField(); + String str4 = "normal".equals(onlCgformIndex.getIndexType()) ? " index " : (onlCgformIndex.getIndexType() + " index "); + + switch (databaseType) { + case "MYSQL": + str1 = "create " + str4 + str2 + " on " + tbname + "(" + str3 + ")"; + break; + case "ORACLE": + str1 = "create " + str4 + str2 + " on " + tbname + "(" + str3 + ")"; + break; + case "SQLSERVER": + str1 = "create " + str4 + str2 + " on " + tbname + "(" + str3 + ")"; + break; + case "POSTGRESQL": + str1 = "create " + str4 + str2 + " on " + tbname + "(" + str3 + ")"; + break; + default: + str1 = "create " + str4 + str2 + " on " + tbname + "(" + str3 + ")"; + break; + } + a.info(" 创建索引 executeDDL :" + str1); + this.onlCgformHeadMapper.executeDDL(str1); + + onlCgformIndex.setIsDbSynch("Y"); + updateById(onlCgformIndex); + } + } + } + } + + + + public boolean isExistIndex(String countSql) { + if (countSql == null) { + return true; + } + Integer integer = Integer.valueOf(((OnlCgformIndexMapper)this.baseMapper).queryIndexCount(countSql)); + if (integer != null && integer.intValue() > 0) { + return true; + } + return false; + } + + + public List getCgformIndexsByCgformId(String cgformId) { + return ((OnlCgformIndexMapper)this.baseMapper).selectList((Wrapper)(new LambdaQueryWrapper()).in(OnlCgformIndex::getCgformHeadId, new Object[] { cgformId })); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\f.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/g.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/g.java new file mode 100644 index 00000000..2f718dba --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/g.java @@ -0,0 +1,113 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import com.jero.common.util.SpringContextUtils; +import com.jero.generater.modules.online.cgform.converter.b; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformFieldMapper; +import com.jero.generater.modules.online.cgform.service.IOnlCgformHeadService; +import com.jero.generater.modules.online.cgform.service.IOnlCgformSqlService; +import com.jero.generater.modules.online.config.exception.BusinessException; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + + + + + + + + + + +@Service("onlCgformSqlServiceImpl") +public class g + implements IOnlCgformSqlService +{ + @Autowired + private SqlSessionTemplate sqlSessionTemplate; + @Autowired + private IOnlCgformHeadService onlCgformHeadService; + + public void saveBatchOnlineTable(OnlCgformHead head, List fieldList, List> dataList) throws BusinessException { + SqlSession sqlSession = null; + try { + b.a(2, dataList, fieldList); + + sqlSession = this.sqlSessionTemplate.getSqlSessionFactory().openSession(ExecutorType.BATCH, false); + + OnlCgformFieldMapper onlCgformFieldMapper = (OnlCgformFieldMapper)sqlSession.getMapper(OnlCgformFieldMapper.class); + + char c = 'Ϩ'; + + if (c >= dataList.size()) { + for (byte b = 0; b < dataList.size(); b++) { + String str = JSON.toJSONString(dataList.get(b)); + a(str, head, fieldList, onlCgformFieldMapper); + } + } else { + for (byte b = 0; b < dataList.size(); b++) { + String str = JSON.toJSONString(dataList.get(b)); + a(str, head, fieldList, onlCgformFieldMapper); + if (b % c == 0) { + sqlSession.commit(); + + sqlSession.clearCache(); + } + } + } + + sqlSession.commit(); + } catch (Exception exception) { + throw new BusinessException(exception.getMessage()); + } finally { + + sqlSession.close(); + } + } + + + + public void saveOrUpdateSubData(String subDataJsonStr, OnlCgformHead head, List subFiledList) throws BusinessException { + OnlCgformFieldMapper onlCgformFieldMapper = (OnlCgformFieldMapper)SpringContextUtils.getBean(OnlCgformFieldMapper.class); + a(subDataJsonStr, head, subFiledList, onlCgformFieldMapper); + } + + + + + + + + + private void a(String paramString, OnlCgformHead paramOnlCgformHead, List paramList, OnlCgformFieldMapper paramOnlCgformFieldMapper) throws BusinessException { + JSONObject jSONObject = JSONObject.parseObject(paramString); + int i = this.onlCgformHeadService.executeEnhanceJava("import", "start", paramOnlCgformHead, jSONObject); + String str = paramOnlCgformHead.getTableName(); + if (1 == i) { + + Map map = b.a(str, paramList, jSONObject); + paramOnlCgformFieldMapper.executeInsertSQL(map); + } else if (2 == i) { + + Map map = b.b(str, paramList, jSONObject); + paramOnlCgformFieldMapper.executeUpdatetSQL(map); + } else if (0 == i) { + + } + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\g.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/h.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/h.java new file mode 100644 index 00000000..80de0421 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/h.java @@ -0,0 +1,58 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import java.lang.invoke.SerializedLambda; +import java.util.List; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformFieldMapper; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformHeadMapper; +import com.jero.generater.modules.online.cgform.service.IOnlineBaseAPI; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service("onlineBaseAPI") +public class h + implements IOnlineBaseAPI +{ + @Autowired + private OnlCgformHeadMapper onlCgformHeadMapper; + @Autowired + private OnlCgformFieldMapper onlCgformFieldMapper; + + public String getOnlineErpCode(String code, String tableType) { + if ("3".equals(tableType)) { + String str = code.substring(1); + OnlCgformHead onlCgformHead = (OnlCgformHead)this.onlCgformHeadMapper.selectById(str); + if (onlCgformHead != null && onlCgformHead.getTableType().intValue() == 3) { + + LambdaQueryWrapper lambdaQueryWrapper = (LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformField::getCgformHeadId, str); + List list = this.onlCgformFieldMapper.selectList((Wrapper)lambdaQueryWrapper); + if (list != null && list.size() > 0) { + String str1 = null; + for (OnlCgformField onlCgformField : list) { + if (oConvertUtils.isNotEmpty(onlCgformField.getMainTable())) { + str1 = onlCgformField.getMainTable(); + + break; + } + } + LambdaQueryWrapper lambdaQueryWrapper1 = (LambdaQueryWrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, str1); + OnlCgformHead onlCgformHead1 = (OnlCgformHead)this.onlCgformHeadMapper.selectOne((Wrapper)lambdaQueryWrapper1); + if (onlCgformHead1 != null && "erp".equals(onlCgformHead1.getThemeTemplate())) { + code = "/" + onlCgformHead1.getId(); + } + } + } + } + return code; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\h.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/i.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/i.java new file mode 100644 index 00000000..6e5f1d0a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/service/impl/i.java @@ -0,0 +1,374 @@ +package com.jero.generater.modules.online.cgform.service.impl; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.stream.Collectors; +import org.apache.commons.lang.StringUtils; +import org.apache.shiro.SecurityUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.auth.service.IOnlAuthPageService; +import com.jero.generater.modules.online.cgform.a.a; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.model.HrefSlots; +import com.jero.generater.modules.online.cgform.model.OnlColumn; +import com.jero.generater.modules.online.cgform.model.OnlComplexModel; +import com.jero.generater.modules.online.cgform.model.c; +import com.jero.generater.modules.online.cgform.model.d; +import com.jero.generater.modules.online.cgform.model.e; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import com.jero.generater.modules.online.cgform.service.IOnlCgformHeadService; +import com.jero.generater.modules.online.cgform.service.IOnlineService; +import com.jero.generater.modules.online.cgform.util.EnhanceJsUtil; +import com.jero.generater.modules.online.cgform.util.b; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + + + + +@Service("onlineService") +public class i + implements IOnlineService +{ + @Autowired + private IOnlCgformFieldService onlCgformFieldService; + @Autowired + private IOnlCgformHeadService onlCgformHeadService; + @Autowired + private ISysBaseAPI sysBaseAPI; + @Autowired + private IOnlAuthPageService onlAuthPageService; + + public OnlComplexModel queryOnlineConfig(OnlCgformHead head) { + String str = head.getId(); + + List list = a(str); + + + + List list1 = this.onlAuthPageService.queryHideCode(str, true); + + + ArrayList arrayList = new ArrayList(); + + HashMap hashMap = new HashMap<>(); + + ArrayList arrayList1 = new ArrayList(); + + ArrayList arrayList2 = new ArrayList(); + ArrayList arrayList3 = new ArrayList(); + + for (OnlCgformField onlCgformField : list) { + String str1 = onlCgformField.getDbFieldName(); + + + String str2 = onlCgformField.getMainTable(); + String str3 = onlCgformField.getMainField(); + if (oConvertUtils.isNotEmpty(str3) && oConvertUtils.isNotEmpty(str2)) { + c c = new c(str1, str3); + arrayList2.add(c); + } + + + if (1 != onlCgformField.getIsShowList().intValue()) { + continue; + } + + + if ("id".equals(str1)) { + continue; + } + + if (list1.contains(str1)) { + continue; + } + + if (arrayList3.contains(str1)) { + continue; + } + + OnlColumn onlColumn = new OnlColumn(onlCgformField.getDbFieldTxt(), str1); + String str4 = onlCgformField.getDictField(); + String str5 = onlCgformField.getFieldShowType(); + + if (oConvertUtils.isNotEmpty(str4) && !"popup".equals(str5)) { + List list3 = new ArrayList(); + + if (oConvertUtils.isNotEmpty(onlCgformField.getDictTable())) { + List list4 = this.sysBaseAPI.queryTableDictItemsByCode(onlCgformField.getDictTable(), onlCgformField.getDictText(), str4); + } else if (oConvertUtils.isNotEmpty(onlCgformField.getDictField())) { + list3 = this.sysBaseAPI.queryDictItemsByCode(str4); + } + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + } + + if ("switch".equals(str5)) { + List list3 = b.a(onlCgformField); + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + } + + if ("link_down".equals(str5)) { + String str7 = onlCgformField.getDictTable(); + a a = (a)JSONObject.parseObject(str7, a.class); + List list3 = this.sysBaseAPI.queryTableDictItemsByCode(a.getTable(), a.getTxt(), a.getKey()); + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + arrayList.add(onlColumn); + + String str8 = a.getLinkField(); + a(list, arrayList3, arrayList, str1, str8); + } + + if ("sel_tree".equals(str5)) { + + String[] arrayOfString = onlCgformField.getDictText().split(","); + List list3 = this.sysBaseAPI.queryTableDictItemsByCode(onlCgformField.getDictTable(), arrayOfString[2], arrayOfString[0]); + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + } + + if ("cat_tree".equals(str5)) { + + String str7 = onlCgformField.getDictText(); + if (oConvertUtils.isEmpty(str7)) { + + String str8 = b.e(onlCgformField.getDictField()); + List list3 = this.sysBaseAPI.queryFilterTableDictInfo("SYS_CATEGORY", "NAME", "ID", str8); + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + } else { + + onlColumn.setCustomRender("_replace_text_" + str7); + } + } + + + if ("sel_depart".equals(str5)) { + List list3 = this.sysBaseAPI.queryAllDepartBackDictModel(); + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + } + + + if ("sel_user".equals(onlCgformField.getFieldShowType())) { + List list3 = this.sysBaseAPI.queryTableDictItemsByCode("SYS_USER", "REALNAME", "USERNAME"); + hashMap.put(str1, list3); + onlColumn.setCustomRender(str1); + } + + + if (str5.indexOf("file") >= 0) { + onlColumn.setScopedSlots(new d("fileSlot")); + } else if (str5.indexOf("image") >= 0) { + onlColumn.setScopedSlots(new d("imgSlot")); + } else if (str5.indexOf("editor") >= 0) { + onlColumn.setScopedSlots(new d("htmlSlot")); + } else if (str5.equals("date")) { + onlColumn.setScopedSlots(new d("dateSlot")); + } else if (str5.equals("pca")) { + onlColumn.setScopedSlots(new d("pcaSlot")); + } + + if (StringUtils.isNotBlank(onlCgformField.getFieldHref())) { + String str7 = "fieldHref_" + str1; + + onlColumn.setHrefSlotName(str7); + arrayList1.add(new HrefSlots(str7, onlCgformField.getFieldHref())); + } + + if ("1".equals(onlCgformField.getSortFlag())) { + onlColumn.setSorter(true); + } + + String str6 = onlCgformField.getFieldExtendJson(); + if (oConvertUtils.isNotEmpty(str6) && str6.indexOf("showLength") > 0) { + JSONObject jSONObject = JSON.parseObject(str6); + if (jSONObject != null && jSONObject.get("showLength") != null) { + onlColumn.setShowLength(oConvertUtils.getInt(jSONObject.get("showLength")).intValue()); + } + } + + + if (!"link_down".equals(str5)) { + arrayList.add(onlColumn); + } + } + + + OnlComplexModel b = new OnlComplexModel(); + b.setCode(str); + b.setTableType(head.getTableType()); + b.setFormTemplate(head.getFormTemplate()); + b.setDescription(head.getTableTxt()); + b.setCurrentTableName(head.getTableName()); + b.setPaginationFlag(head.getIsPage()); + b.setCheckboxFlag(head.getIsCheckbox()); + b.setScrollFlag(head.getScroll()); + b.setRelationType(head.getRelationType()); + + b.setColumns(arrayList); + b.setDictOptions(hashMap); + + + b.setFieldHrefSlots(arrayList1); + + + b.setForeignKeys(arrayList2); + + + b.setHideColumns(list1); + + + List list2 = this.onlCgformHeadService.queryButtonList(str, true); + ArrayList arrayList4 = new ArrayList(); + for (OnlCgformButton onlCgformButton : list2) { + if (list1.contains(onlCgformButton.getButtonCode())) { + continue; + } + arrayList4.add(onlCgformButton); + } + b.setCgButtonList(arrayList4); + + + OnlCgformEnhanceJs onlCgformEnhanceJs = this.onlCgformHeadService.queryEnhanceJs(str, "list"); + if (onlCgformEnhanceJs != null && oConvertUtils.isNotEmpty(onlCgformEnhanceJs.getCgJs())) { + String str1 = EnhanceJsUtil.b(onlCgformEnhanceJs.getCgJs(), list2); + b.setEnhanceJs(str1); + } + + + if ("Y".equals(head.getIsTree())) { + b.setPidField(head.getTreeParentIdField()); + b.setHasChildrenField(head.getTreeIdField()); + b.setTextField(head.getTreeFieldname()); + } + + return b; + } + + private void a(List paramList, List paramList1, List paramList2, String paramString1, String paramString2) { + if (oConvertUtils.isNotEmpty(paramString2)) { + String[] arrayOfString = paramString2.split(","); + for (String str : arrayOfString) { + for (OnlCgformField onlCgformField : paramList) { + String str1 = onlCgformField.getDbFieldName(); + + if (1 != onlCgformField.getIsShowList().intValue()) { + continue; + } + if (str.equals(str1)) { + paramList1.add(str); + OnlColumn onlColumn = new OnlColumn(onlCgformField.getDbFieldTxt(), str1); + onlColumn.setCustomRender(paramString1); + paramList2.add(onlColumn); + break; + } + } + } + } + } + + + + + public JSONObject queryOnlineFormObj(OnlCgformHead head, OnlCgformEnhanceJs onlCgformEnhanceJs) { + JSONObject jSONObject1 = new JSONObject(); + String str = head.getId(); + + List list1 = this.onlCgformFieldService.queryAvailableFields(head.getId(), head.getTableName(), null, false); + + + + List list2 = this.onlAuthPageService.queryFormDisabledCode(str); + + + EnhanceJsUtil.a(onlCgformEnhanceJs, head.getTableName(), list1); + + e e = null; + if ("Y".equals(head.getIsTree())) { + e = new e(); + e.setCodeField("id"); + e.setFieldName(head.getTreeParentIdField()); + e.setPidField(head.getTreeParentIdField()); + e.setPidValue("0"); + e.setHsaChildField(head.getTreeIdField()); + e.setTableName(b.f(head.getTableName())); + e.setTextField(head.getTreeFieldname()); + } + + JSONObject jSONObject2 = b.a(list1, list2, e); + jSONObject2.put("table", head.getTableName()); + jSONObject2.put("describe", head.getTableTxt()); + + jSONObject1.put("schema", jSONObject2); + + jSONObject1.put("head", head); + + + List list = queryFormValidButton(str); + if (list != null && list.size() > 0) { + jSONObject1.put("cgButtonList", list); + } + + if (onlCgformEnhanceJs != null && oConvertUtils.isNotEmpty(onlCgformEnhanceJs.getCgJs())) { + String str1 = EnhanceJsUtil.c(onlCgformEnhanceJs.getCgJs(), list); + onlCgformEnhanceJs.setCgJs(str1); + jSONObject1.put("enhanceJs", EnhanceJsUtil.a(onlCgformEnhanceJs.getCgJs())); + } + return jSONObject1; + } + + + public JSONObject queryOnlineFormObj(OnlCgformHead head) { + OnlCgformEnhanceJs onlCgformEnhanceJs = this.onlCgformHeadService.queryEnhanceJs(head.getId(), "form"); + return queryOnlineFormObj(head, onlCgformEnhanceJs); + } + + + public List queryFormValidButton(String headId) { + List list = this.onlCgformHeadService.queryButtonList(headId, false); + List list1 = null; + if (list != null && list.size() > 0) { + LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String str = loginUser.getId(); + List list2 = this.onlAuthPageService.queryFormHideButton(str, headId); + + + list1 = (List)list.stream().filter(paramOnlCgformButton -> (paramList == null || paramList.indexOf(paramOnlCgformButton.getButtonCode()) < 0)).collect(Collectors.toList()); + } + return list1; + } + + + + + + + private List a(String paramString) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, paramString); + + lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum); + return this.onlCgformFieldService.list((Wrapper)lambdaQueryWrapper); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgform\service\impl\i.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/EnhanceJsUtil.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/EnhanceJsUtil.java new file mode 100644 index 00000000..9a8fd2a2 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/EnhanceJsUtil.java @@ -0,0 +1,249 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.util.ArrayList; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + + +public class EnhanceJsUtil +{ + private static final Logger a = LoggerFactory.getLogger(EnhanceJsUtil.class); + + + private static final String b = "beforeSubmit,beforeAdd,beforeEdit,afterAdd,afterEdit,beforeDelete,afterDelete,mounted,created,show,loaded"; + + + private static final String c = "\\}\\s*\r*\n*\\s*"; + + + private static final String d = ","; + + + + public static void main(String[] args) { + String str1 = "aa(row){console.log(112);}\nbb(row){console.log(row);}"; + + String str2 = "bb"; + System.out.println(a(str1, str2)); + + + ArrayList arrayList = new ArrayList(); + OnlCgformButton onlCgformButton1 = new OnlCgformButton(); + onlCgformButton1.setButtonCode("bb"); + onlCgformButton1.setButtonStyle("link"); + arrayList.add(onlCgformButton1); + + OnlCgformButton onlCgformButton2 = new OnlCgformButton(); + onlCgformButton2.setButtonCode("aa"); + onlCgformButton2.setButtonStyle("link"); + arrayList.add(onlCgformButton2); + + System.out.println(b(str1, arrayList)); + } + + + + + + + + + + + + + public static String a(String paramString1, String paramString2) { + String str1 = "(" + paramString2 + "\\s*\\(row\\)\\s*\\{)"; + String str2 = paramString2 + ":function(that,row){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"; + String str3 = b(paramString1, "\\}\\s*\r*\n*\\s*" + str1, "}," + str2); + if (str3 == null) { + paramString1 = c(paramString1, str1, str2); + } else { + paramString1 = str3; + } + paramString1 = a(paramString1, paramString2, (String)null); + return paramString1; + } + + + + + + + + + public static String a(String paramString1, String paramString2, String paramString3) { + String str1 = "(" + oConvertUtils.getString(paramString3) + paramString2 + "\\s*\\(\\)\\s*\\{)"; + String str2 = paramString2 + ":function(that){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"; + String str3 = b(paramString1, "\\}\\s*\r*\n*\\s*" + str1, "}," + str2); + if (str3 == null) { + paramString1 = c(paramString1, str1, str2); + } else { + paramString1 = str3; + } + return paramString1; + } + + + + + + + + + public static String b(String paramString1, String paramString2, String paramString3) { + Pattern pattern = Pattern.compile(paramString2); + Matcher matcher = pattern.matcher(paramString1); + if (matcher.find()) { + paramString1 = paramString1.replace(matcher.group(0), paramString3); + return paramString1; + } + return null; + } + + + public static String c(String paramString1, String paramString2, String paramString3) { + String str = b(paramString1, paramString2, paramString3); + if (str != null) { + return str; + } + return paramString1; + } + + + + public static String a(String paramString, List paramList) { + a.info("最终的增强JS", paramString); + return "class OnlineEnhanceJs{constructor(getAction,postAction,deleteAction){this._getAction=getAction;this._postAction=postAction;this._deleteAction=deleteAction;}" + paramString + "}"; + } + + + + + + + + + public static String b(String paramString1, String paramString2) { + String str1 = "(\\s+" + paramString2 + "\\s*\\(\\)\\s*\\{)"; + String str2 = paramString2 + ":function(that,event){"; + String str3 = b(paramString1, "\\}\\s*\r*\n*\\s*" + str1, "}," + str2); + if (str3 == null) { + paramString1 = c(paramString1, str1, str2); + } else { + paramString1 = str3; + } + return paramString1; + } + + public static String a(String paramString) { + String str = "function OnlineEnhanceJs(getAction,postAction,deleteAction){return {_getAction:getAction,_postAction:postAction,_deleteAction:deleteAction," + paramString + "}}"; + a.info("最终的增强JS", str); + return str; + } + + + + + + + + public static String b(String paramString, List paramList) { + paramString = c(paramString, paramList); + String str = "function OnlineEnhanceJs(getAction,postAction,deleteAction){return {_getAction:getAction,_postAction:postAction,_deleteAction:deleteAction," + paramString + "}}"; + a.info("最终的增强JS", str); + return str; + } + + public static String c(String paramString, List paramList) { + if (paramList != null) { + for (OnlCgformButton onlCgformButton : paramList) { + String str = onlCgformButton.getButtonCode(); + if ("link".equals(onlCgformButton.getButtonStyle())) { + paramString = a(paramString, str); continue; + } if ("button".equals(onlCgformButton.getButtonStyle()) || "form".equals(onlCgformButton.getButtonStyle())) { + paramString = a(paramString, str, (String)null); + } + } + } + for (String str : "beforeSubmit,beforeAdd,beforeEdit,afterAdd,afterEdit,beforeDelete,afterDelete,mounted,created,show,loaded".split(",")) { + if ("beforeAdd,afterAdd,mounted,created,show,loaded".indexOf(str) >= 0) { + paramString = a(paramString, str, (String)null); + } else { + paramString = a(paramString, str); + } + } + return paramString; + } + + + + + + public static void a(OnlCgformEnhanceJs paramOnlCgformEnhanceJs, String paramString, List paramList) { + if (paramOnlCgformEnhanceJs == null || oConvertUtils.isEmpty(paramOnlCgformEnhanceJs.getCgJs())) { + return; + } + + String str = " " + paramOnlCgformEnhanceJs.getCgJs(); + a.debug("one enhanceJs begin==> " + str); + + Pattern pattern = Pattern.compile("(\\s{1}onlChange\\s*\\(\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(str); + if (matcher.find()) { + a.debug("---JS 增强转换-main--enhanceJsFunctionName----onlChange"); + str = a(str, "onlChange", "\\s{1}"); + for (OnlCgformField onlCgformField : paramList) + { + str = b(str, onlCgformField.getDbFieldName()); + } + } + a.debug("one enhanceJs end==> " + str); + paramOnlCgformEnhanceJs.setCgJs(str); + } + + + + + + public static void b(OnlCgformEnhanceJs paramOnlCgformEnhanceJs, String paramString, List paramList) { + if (paramOnlCgformEnhanceJs == null || oConvertUtils.isEmpty(paramOnlCgformEnhanceJs.getCgJs())) { + return; + } + a.info(" sub enhanceJs begin==> " + paramOnlCgformEnhanceJs); + String str1 = paramOnlCgformEnhanceJs.getCgJs(); + + String str2 = paramString + "_" + "onlChange"; + + + + Pattern pattern = Pattern.compile("(" + str2 + "\\s*\\(\\)\\s*\\{)"); + + Matcher matcher = pattern.matcher(str1); + if (matcher.find()) { + a.info("---JS 增强转换-sub-- enhanceJsFunctionName----" + str2); + str1 = a(str1, str2, (String)null); + for (OnlCgformField onlCgformField : paramList) + { + str1 = b(str1, onlCgformField.getDbFieldName()); + } + } + a.info(" sub enhanceJs end==> " + str1); + paramOnlCgformEnhanceJs.setCgJs(str1); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\EnhanceJsUtil.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/a.java new file mode 100644 index 00000000..fecd7e85 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/a.java @@ -0,0 +1,88 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import org.jeecgframework.poi.handler.impl.ExcelDataHandlerDefaultImpl; +import org.jeecgframework.poi.util.PoiPublicUtil; + + + + + + + + + + + + + + + + + + + + + +public class a + extends ExcelDataHandlerDefaultImpl +{ + Map a; + ISysBaseAPI b; + String c; + String d; + String e; + + public a(List paramList, String paramString1, String paramString2) { + this.a = a(paramList); + this.c = paramString1; + this.d = "online"; + this.e = paramString2; + this.b = (ISysBaseAPI)SpringContextUtils.getBean(ISysBaseAPI.class); + } + + private Map a(List paramList) { + HashMap hashMap = new HashMap<>(); + + for (OnlCgformField onlCgformField : paramList) { + hashMap.put(onlCgformField.getDbFieldTxt(), onlCgformField); + } + return (Map)hashMap; + } + + + + public void setMapValue(Map map, String originKey, Object value) { + String str = a(originKey); + if (value instanceof Double) { + map.put(str, PoiPublicUtil.doubleToString((Double)value)); + } else if (value instanceof byte[]) { + byte[] arrayOfByte = (byte[])value; + String str1 = b.a(arrayOfByte, this.c, this.d, this.e); + if (str1 != null) { + map.put(str, str1); + } + } else { + map.put(str, (value == null) ? "" : value.toString()); + } + } + private String a(String paramString) { + if (this.a.containsKey(paramString)) + { + return "$mainTable$" + ((OnlCgformField)this.a.get(paramString)).getDbFieldName(); + } + + return "$subTable$" + paramString; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/b.java new file mode 100644 index 00000000..6138ee4d --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/b.java @@ -0,0 +1,2112 @@ +package com.jero.generater.modules.online.cgform.util; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +import java.sql.Blob; +import java.sql.Clob; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.apache.commons.lang.StringUtils; +import org.apache.shiro.SecurityUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.query.MatchTypeEnum; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.query.QueryRuleEnum; +import com.jero.common.system.vo.DictModel; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.system.vo.SysPermissionDataRuleModel; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.jsonschema.JsonSchemaDescrip; +import com.jero.common.util.jsonschema.validate.HiddenProperty; +import com.jero.common.util.jsonschema.validate.LinkDownProperty; +import com.jero.common.util.jsonschema.validate.NumberProperty; +import com.jero.common.util.jsonschema.validate.StringProperty; +import com.jero.common.util.jsonschema.validate.TreeSelectProperty; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformButton; +import com.jero.generater.modules.online.cgform.entity.OnlCgformEnhanceJs; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformHead; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; +import com.jero.generater.modules.online.cgform.enums.CgformValidPatternEnum; +import com.jero.generater.modules.online.cgform.mapper.OnlCgformHeadMapper; +import com.jero.generater.modules.online.cgform.model.e; +import com.jero.generater.modules.online.cgform.service.IOnlCgformFieldService; +import com.jero.generater.modules.online.config.exception.DBException; +import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class b { + private static final Logger aw = LoggerFactory.getLogger(com.jero.generater.modules.online.cgform.util.b.class); + + + public static final String a = "SELECT "; + + + public static final String b = " FROM "; + + + public static final String c = " AND "; + + + public static final String d = " like "; + + + public static final String e = " COUNT(*) "; + + + public static final String f = " where 1=1 "; + + + public static final String g = " where "; + + + public static final String h = " ORDER BY "; + + + public static final String i = "asc"; + + + public static final String j = "desc"; + + + public static final String k = "="; + + + public static final String l = "!="; + + + public static final String m = ">="; + + + public static final String n = ">"; + + + public static final String o = "<="; + + + public static final String p = "<"; + + + public static final String q = " or "; + + + public static final String r = "Y"; + + + public static final String s = "$"; + + + public static final String t = "CREATE_TIME"; + + + public static final String u = "CREATE_BY"; + + + public static final String v = "UPDATE_TIME"; + + + public static final String w = "UPDATE_BY"; + + + public static final String x = "SYS_ORG_CODE"; + + + public static final int y = 2; + + + public static final String z = "'"; + + + public static final String A = "N"; + + + public static final String B = ","; + + + public static final String C = "single"; + + + public static final String D = "id"; + + + public static final String E = "bpm_status"; + + + public static final String F = "1"; + + + public static final String G = "force"; + + + public static final String H = "normal"; + + + public static final String I = "switch"; + + + public static final String J = "popup"; + + + public static final String K = "image"; + + + public static final String L = "file"; + + + public static final String M = "sel_tree"; + + + public static final String N = "cat_tree"; + + + public static final String O = "link_down"; + + + public static final String P = "SYS_USER"; + + + public static final String Q = "REALNAME"; + + + public static final String R = "USERNAME"; + + + public static final String S = "SYS_DEPART"; + + + public static final String T = "DEPART_NAME"; + + + public static final String U = "ID"; + + + public static final String V = "SYS_CATEGORY"; + + + public static final String W = "NAME"; + + + public static final String X = "CODE"; + + + public static final String Y = "ID"; + + + public static final String Z = "PID"; + + + public static final String aa = "HAS_CHILD"; + + + public static final String ab = "sel_search"; + + + public static final String ac = "sub-table-design_"; + + + public static final String ad = "import"; + + + public static final String ae = "export"; + + + public static final String af = "query"; + + + public static final String ag = "form"; + + + public static final String ah = "list"; + + + public static final String ai = "1"; + + + public static final String aj = "start"; + + + public static final String ak = "erp"; + + + public static final String al = "exportSingleOnly"; + + + public static final String am = "isSingleTableImport"; + + + public static final String an = "foreignKeys"; + + + public static final int ao = 1; + + + public static final int ap = 2; + + + public static final int aq = 0; + + + public static final int ar = 1; + + + public static final String as = "1"; + + + public static final String at = "id"; + + + public static final String au = "center"; + + + public static final String av = "showLength"; + + + private static final String ax = "beforeAdd,beforeEdit,afterAdd,afterEdit,beforeDelete,afterDelete,mounted,created"; + + + private static String ay; + + + public static void a(String paramString, List paramList, StringBuffer paramStringBuffer) { + if (paramList == null || paramList.size() == 0) { + paramStringBuffer.append("SELECT id"); + } else { + paramStringBuffer.append("SELECT "); + int i = paramList.size(); + boolean bool = false; + for (byte b1 = 0; b1 < i; b1++) { + OnlCgformField onlCgformField = paramList.get(b1); + if ("id".equals(onlCgformField.getDbFieldName())) { + bool = true; + } + + if ("cat_tree".equals(onlCgformField.getFieldShowType()) && oConvertUtils.isNotEmpty(onlCgformField.getDictText())) { + paramStringBuffer.append(onlCgformField.getDictText() + ","); + } + + if (b1 == i - 1) { + paramStringBuffer.append(onlCgformField.getDbFieldName() + " "); + } else { + paramStringBuffer.append(onlCgformField.getDbFieldName() + ","); + } + } + if (!bool) { + paramStringBuffer.append(",id"); + } + } + paramStringBuffer.append(" FROM " + f(paramString)); + } + + + public static String a(String paramString) { + return " to_date('" + paramString + "','yyyy-MM-dd HH24:mi:ss')"; + } + + + public static String b(String paramString) { + return " to_date('" + paramString + "','yyyy-MM-dd')"; + } + + + public static boolean c(String paramString) { + if ("list".equals(paramString)) { + return true; + } + if ("radio".equals(paramString)) { + return true; + } + if ("checkbox".equals(paramString)) { + return true; + } + if ("list_multi".equals(paramString)) { + return true; + } + return false; + } + + + public static String a(List paramList, Map paramMap, List paramList1) { + return a(paramList, paramMap, paramList1, (List) null); + } + + + public static String a(List paramList, Map paramMap, List paramList1, List paramList2) { + StringBuffer stringBuffer = new StringBuffer(); + String str = ""; + try { + str = d.getDatabaseType(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + + Map map = QueryGenerator.getRuleMap(paramList2); + + for (String str1 : map.keySet()) { + if (oConvertUtils.isNotEmpty(str1) && str1.startsWith("SQL_RULES_COLUMN")) { + stringBuffer.append(" AND (" + QueryGenerator.getSqlRuleValue(((SysPermissionDataRuleModel) map.get(str1)).getRuleValue()) + ")"); + } + } + for (OnlCgformField onlCgformField : paramList) { + String str1 = onlCgformField.getDbFieldName(); + String str2 = onlCgformField.getDbType(); + + + if (map.containsKey(str1)) { + a(str, (SysPermissionDataRuleModel) map.get(str1), str1, str2, stringBuffer); + } else if (map.containsKey(oConvertUtils.camelNames(str1))) { + a(str, (SysPermissionDataRuleModel) map.get(str1), str1, str2, stringBuffer); + } + + + if (paramList1 != null && paramList1.contains(str1)) { + onlCgformField.setIsQuery(Integer.valueOf(1)); + onlCgformField.setQueryMode("single"); + } + + + if (oConvertUtils.isNotEmpty(onlCgformField.getMainField()) && oConvertUtils.isNotEmpty(onlCgformField.getMainTable())) { + onlCgformField.setIsQuery(Integer.valueOf(1)); + onlCgformField.setQueryMode("single"); + } + + + if (1 == onlCgformField.getIsQuery().intValue()) { + + if ("single".equals(onlCgformField.getQueryMode())) { + Object object = paramMap.get(str1); + if (object != null) { + + + if ("list_multi".equals(onlCgformField.getFieldShowType())) { + String[] arrayOfString = object.toString().split(","); + String str4 = ""; + for (byte b1 = 0; b1 < arrayOfString.length; b1++) { + if (oConvertUtils.isNotEmpty(str4)) { + str4 = str4 + " or " + str1 + " like " + "'%" + arrayOfString[b1] + ",%'" + " or " + str1 + " like " + "'%," + arrayOfString[b1] + "%'"; + } else { + str4 = str1 + " like " + "'%" + arrayOfString[b1] + ",%'" + " or " + str1 + " like " + "'%," + arrayOfString[b1] + "%'"; + } + } + stringBuffer.append(" AND (" + str4 + ")"); + } + if ("popup".equals(onlCgformField.getFieldShowType())) { + stringBuffer.append(" AND (" + b(str1, object.toString()) + ")"); + continue; + } + if ("ORACLE".equals(str) && str2.toLowerCase().indexOf("date") >= 0) { + stringBuffer.append(" AND " + str1 + "=" + a(object.toString())); + continue; + } + boolean bool = !i.a(str2) ? true : false; + String str3 = QueryGenerator.getSingleQueryConditionSql(str1, "", object, bool); + stringBuffer.append(" AND " + str3); + } + + continue; + } + + Object object1 = paramMap.get(str1 + "_begin"); + if (object1 != null) { + stringBuffer.append(" AND " + str1 + ">="); + if (i.a(str2)) { + + stringBuffer.append(object1.toString()); + } else if ("ORACLE".equals(str) && str2.toLowerCase().indexOf("date") >= 0) { + stringBuffer.append(a(object1.toString())); + } else { + + stringBuffer.append("'" + object1.toString() + "'"); + } + } + Object object2 = paramMap.get(str1 + "_end"); + if (object2 != null) { + stringBuffer.append(" AND " + str1 + "<="); + if (i.a(str2)) { + stringBuffer.append(object2.toString()); + continue; + } + if ("ORACLE".equals(str) && str2.toLowerCase().indexOf("date") >= 0) { + stringBuffer.append(a(object2.toString())); + continue; + } + stringBuffer.append("'" + object2.toString() + "'"); + } + } + } + + + return stringBuffer.toString(); + } + + + public static String a(Map paramMap) { + Object object1 = paramMap.get("superQueryParams"); + if (object1 == null || StringUtils.isBlank(object1.toString())) { + return ""; + } + IOnlCgformFieldService iOnlCgformFieldService = (IOnlCgformFieldService) SpringContextUtils.getBean(IOnlCgformFieldService.class); + String str = null; + try { + str = URLDecoder.decode(object1.toString(), "UTF-8"); + } catch (UnsupportedEncodingException unsupportedEncodingException) { + unsupportedEncodingException.printStackTrace(); + return ""; + } + JSONArray jSONArray = JSONArray.parseArray(str); + + Object object2 = paramMap.get("superQueryMatchType"); + MatchTypeEnum matchTypeEnum = MatchTypeEnum.getByValue(object2); + if (matchTypeEnum == null) { + matchTypeEnum = MatchTypeEnum.AND; + } + + HashMap hashMap = new HashMap<>(); + + StringBuilder stringBuilder = (new StringBuilder(" AND ")).append("("); + for (byte b1 = 0; b1 < jSONArray.size(); b1++) { + JSONObject jSONObject = jSONArray.getJSONObject(b1); + String str1 = jSONObject.getString("field"); + String[] arrayOfString = str1.split(","); + + if (arrayOfString.length == 1) { + a(stringBuilder, str1, jSONObject, matchTypeEnum, null, (b1 == 0)); + } else if (arrayOfString.length == 2) { + + String str2 = arrayOfString[0]; + String str3 = arrayOfString[1]; + JSONObject jSONObject1 = (JSONObject) hashMap.get(str2); + if (jSONObject1 == null) { + List list = iOnlCgformFieldService.queryFormFieldsByTableName(str2); + jSONObject1 = new JSONObject(3); + for (OnlCgformField onlCgformField : list) { + if (StringUtils.isNotBlank(onlCgformField.getMainTable())) { + jSONObject1.put("subTableName", str2); + jSONObject1.put("subField", onlCgformField.getDbFieldName()); + jSONObject1.put("mainTable", onlCgformField.getMainTable()); + jSONObject1.put("mainField", onlCgformField.getMainField()); + } + } + hashMap.put(str2, jSONObject1); + } + a(stringBuilder, str3, jSONObject, matchTypeEnum, jSONObject1, (b1 == 0)); + } + } + return stringBuilder.append(")").toString(); + } + + + private static void a(StringBuilder paramStringBuilder, String paramString, JSONObject paramJSONObject1, MatchTypeEnum paramMatchTypeEnum, JSONObject paramJSONObject2, boolean paramBoolean) { + if (!paramBoolean) { + paramStringBuilder.append(" ").append(paramMatchTypeEnum.getValue()).append(" "); + } + String str1 = paramJSONObject1.getString("type"); + String str2 = paramJSONObject1.getString("val"); + String str3 = a(str1, str2); + QueryRuleEnum queryRuleEnum = QueryRuleEnum.getByValue(paramJSONObject1.getString("rule")); + if (queryRuleEnum == null) { + queryRuleEnum = QueryRuleEnum.EQ; + } + + if (paramJSONObject2 != null) { + String str4 = paramJSONObject2.getString("subTableName"); + String str5 = paramJSONObject2.getString("subField"); + String str6 = paramJSONObject2.getString("mainTable"); + String str7 = paramJSONObject2.getString("mainField"); + paramStringBuilder.append("(").append(str7).append(" IN (SELECT ").append(str5).append(" FROM ").append(str4).append(" WHERE "); + if ("popup".equals(str1)) { + paramStringBuilder.append(b(paramString, str2)); + } else { + paramStringBuilder.append(paramString); + a(paramStringBuilder, queryRuleEnum, str2, str3, str1); + } + paramStringBuilder.append("))"); + + } else if ("popup".equals(str1)) { + paramStringBuilder.append(b(paramString, str2)); + } else { + paramStringBuilder.append(paramString); + a(paramStringBuilder, queryRuleEnum, str2, str3, str1); + } + } + + + private static void a(StringBuilder paramStringBuilder, QueryRuleEnum paramQueryRuleEnum, String paramString1, String paramString2, String paramString3) { + String[] arrayOfString; + byte b1; + if ("date".equals(paramString3) && + "ORACLE".equalsIgnoreCase(getDatabseType())) { + paramString2 = paramString2.replace("'", ""); + if (paramString2.length() == 10) { + paramString2 = b(paramString2); + } else { + paramString2 = a(paramString2); + } + } + + switch (null.a[paramQueryRuleEnum.ordinal()]) { + case 1: + paramStringBuilder.append(">").append(paramString2); + return; + case 2: + paramStringBuilder.append(">=").append(paramString2); + return; + case 3: + paramStringBuilder.append("<").append(paramString2); + return; + case 4: + paramStringBuilder.append("<=").append(paramString2); + return; + case 5: + paramStringBuilder.append("!=").append(paramString2); + return; + case 6: + paramStringBuilder.append(" IN ("); + arrayOfString = paramString1.split(","); + for (b1 = 0; b1 < arrayOfString.length; b1++) { + String str = arrayOfString[b1]; + if (StringUtils.isNotBlank(str)) { + String str1 = a(paramString3, str); + paramStringBuilder.append(str1); + if (b1 < arrayOfString.length - 1) { + paramStringBuilder.append(","); + } + } + } + paramStringBuilder.append(")"); + return; + case 7: + paramStringBuilder.append(" like ").append("N").append("'").append("%").append(paramString1).append("%").append("'"); + return; + case 8: + paramStringBuilder.append(" like ").append("N").append("'").append("%").append(paramString1).append("'"); + return; + case 9: + paramStringBuilder.append(" like ").append("N").append("'").append(paramString1).append("%").append("'"); + return; + } + + paramStringBuilder.append("=").append(paramString2); + } + + + private static String a(String paramString1, String paramString2) { + if ("int".equals(paramString1) || "number".equals(paramString1)) + return paramString2; + if ("date".equals(paramString1)) { + return "'" + paramString2 + "'"; + } + if ("SQLSERVER".equals(getDatabseType())) { + return "N'" + paramString2 + "'"; + } + return "'" + paramString2 + "'"; + } + + + public static Map a(HttpServletRequest paramHttpServletRequest) { + Map map = paramHttpServletRequest.getParameterMap(); + + HashMap hashMap = new HashMap<>(); + Iterator iterator = map.entrySet().iterator(); + + + String str1 = ""; + String str2 = ""; + Object object = null; + while (iterator.hasNext()) { + Map.Entry entry = iterator.next(); + str1 = (String) entry.getKey(); + object = entry.getValue(); + if ("_t".equals(str1) || null == object) { + str2 = ""; + } else if (object instanceof String[]) { + String[] arrayOfString = (String[]) object; + for (byte b1 = 0; b1 < arrayOfString.length; b1++) { + str2 = arrayOfString[b1] + ","; + } + str2 = str2.substring(0, str2.length() - 1); + } else { + str2 = object.toString(); + } + hashMap.put(str1, str2); + } + return (Map) hashMap; + } + + + public static boolean a(String paramString, List paramList) { + for (OnlCgformField onlCgformField : paramList) { + if (paramString.equals(onlCgformField.getDbFieldName())) { + return true; + } + } + return false; + } + + + public static JSONObject a(List paramList, List paramList1, e parame) { + JSONObject jSONObject = new JSONObject(); + ArrayList arrayList1 = new ArrayList(); + ArrayList arrayList = new ArrayList(); + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI) SpringContextUtils.getBean(ISysBaseAPI.class); + OnlCgformHeadMapper onlCgformHeadMapper = (OnlCgformHeadMapper) SpringContextUtils.getBean(OnlCgformHeadMapper.class); + + ArrayList arrayList2 = new ArrayList(); + for (OnlCgformField onlCgformField : paramList) { + StringProperty stringProperty; + String str1 = onlCgformField.getDbFieldName(); + if ("id".equals(str1)) { + continue; + } + if (arrayList2.contains(str1)) { + continue; + } + String str2 = onlCgformField.getDbFieldTxt(); + + if ("1".equals(onlCgformField.getFieldMustInput())) { + arrayList1.add(str1); + } + String str3 = onlCgformField.getFieldShowType(); + + SwitchProperty switchProperty = null; + + if ("switch".equals(str3)) { + switchProperty = new SwitchProperty(str1, str2, onlCgformField.getFieldExtendJson()); + } else if (c(str3)) { + List list = new ArrayList(); + if (oConvertUtils.isNotEmpty(onlCgformField.getDictTable())) { + List list1 = iSysBaseAPI.queryTableDictItemsByCode(onlCgformField.getDictTable(), onlCgformField.getDictText(), onlCgformField.getDictField()); + } else if (oConvertUtils.isNotEmpty(onlCgformField.getDictField())) { + list = iSysBaseAPI.queryDictItemsByCode(onlCgformField.getDictField()); + } + stringProperty = new StringProperty(str1, str2, str3, onlCgformField.getDbLength(), list); + if (i.a(onlCgformField.getDbType())) { + stringProperty.setType("number"); + } + } else if (i.a(onlCgformField.getDbType())) { + NumberProperty numberProperty2 = new NumberProperty(str1, str2, "number"); + if (CgformValidPatternEnum.INTEGER.getType().equals(onlCgformField.getFieldValidType())) { + numberProperty2.setPattern(CgformValidPatternEnum.INTEGER.getPattern()); + } + NumberProperty numberProperty1 = numberProperty2; + + } else if ("popup".equals(str3)) { + PopupProperty popupProperty2 = new PopupProperty(str1, str2, onlCgformField.getDictTable(), onlCgformField.getDictText(), onlCgformField.getDictField()); + String str = onlCgformField.getDictText(); + if (str != null && !str.equals("")) { + String[] arrayOfString = str.split(","); + for (String str4 : arrayOfString) { + if (!a(str4, paramList)) { + + + HiddenProperty hiddenProperty = new HiddenProperty(str4, str4); + hiddenProperty.setOrder(onlCgformField.getOrderNum()); + arrayList.add(hiddenProperty); + } + } + } + PopupProperty popupProperty1 = popupProperty2; + } else if ("sel_search".equals(str3)) { + DictProperty dictProperty = new DictProperty(str1, str2, onlCgformField.getDictTable(), onlCgformField.getDictField(), onlCgformField.getDictText()); + } else if ("link_down".equals(str3)) { + LinkDownProperty linkDownProperty2 = new LinkDownProperty(str1, str2, onlCgformField.getDictTable()); + a(linkDownProperty2, paramList, arrayList2); + LinkDownProperty linkDownProperty1 = linkDownProperty2; + } else if ("sel_tree".equals(str3)) { + + String str4 = onlCgformField.getDictText(); + String[] arrayOfString = str4.split(","); + String str5 = onlCgformField.getDictTable() + "," + arrayOfString[2] + "," + arrayOfString[0]; + TreeSelectProperty treeSelectProperty2 = new TreeSelectProperty(str1, str2, str5, arrayOfString[1], onlCgformField.getDictField()); + if (arrayOfString.length > 3) { + treeSelectProperty2.setHasChildField(arrayOfString[3]); + } + TreeSelectProperty treeSelectProperty1 = treeSelectProperty2; + } else if ("cat_tree".equals(str3)) { + + String str4 = onlCgformField.getDictText(); + String str5 = onlCgformField.getDictField(); + String str6 = "0"; + if (oConvertUtils.isNotEmpty(str5) && !"0".equals(str5)) { + str6 = onlCgformHeadMapper.queryCategoryIdByCode(str5); + } + if (oConvertUtils.isEmpty(str4)) { + + TreeSelectProperty treeSelectProperty = new TreeSelectProperty(str1, str2, str6); + } else { + + TreeSelectProperty treeSelectProperty = new TreeSelectProperty(str1, str2, str6, str4); + HiddenProperty hiddenProperty = new HiddenProperty(str4, str4); + arrayList.add(hiddenProperty); + } + + } else if (parame != null && str1.equals(parame.getFieldName())) { + + String str = parame.getTableName() + "," + parame.getTextField() + "," + parame.getCodeField(); + TreeSelectProperty treeSelectProperty2 = new TreeSelectProperty(str1, str2, str, parame.getPidField(), parame.getPidValue()); + treeSelectProperty2.setHasChildField(parame.getHsaChildField()); + treeSelectProperty2.setPidComponent(Integer.valueOf(1)); + TreeSelectProperty treeSelectProperty1 = treeSelectProperty2; + } else { + StringProperty stringProperty1 = new StringProperty(str1, str2, str3, onlCgformField.getDbLength()); + + if (oConvertUtils.isNotEmpty(onlCgformField.getFieldValidType())) { + CgformValidPatternEnum cgformValidPatternEnum = CgformValidPatternEnum.getPatternInfoByType(onlCgformField.getFieldValidType()); + if (cgformValidPatternEnum != null) { + if (CgformValidPatternEnum.NOTNULL == cgformValidPatternEnum) { + arrayList1.add(str1); + } else { + stringProperty1.setPattern(cgformValidPatternEnum.getPattern()); + stringProperty1.setErrorInfo(cgformValidPatternEnum.getMsg()); + } + } else { + + stringProperty1.setPattern(onlCgformField.getFieldValidType()); + stringProperty1.setErrorInfo("输入的值不合法"); + } + } + + stringProperty = stringProperty1; + } + + + if (onlCgformField.getIsReadOnly().intValue() == 1 || (paramList1 != null && paramList1.indexOf(str1) >= 0)) { + stringProperty.setDisabled(true); + } + + stringProperty.setOrder(onlCgformField.getOrderNum()); + stringProperty.setDefVal(onlCgformField.getFieldDefaultValue()); + + stringProperty.setFieldExtendJson(onlCgformField.getFieldExtendJson()); + + + stringProperty.setDbPointLength(onlCgformField.getDbPointLength()); + + arrayList.add(stringProperty); + } + if (arrayList1.size() > 0) { + JsonSchemaDescrip jsonSchemaDescrip = new JsonSchemaDescrip(arrayList1); + jSONObject = JsonschemaUtil.getJsonSchema(jsonSchemaDescrip, arrayList); + } else { + JsonSchemaDescrip jsonSchemaDescrip = new JsonSchemaDescrip(); + jSONObject = JsonschemaUtil.getJsonSchema(jsonSchemaDescrip, arrayList); + } + return jSONObject; + } + + + public static JSONObject b(String paramString, List paramList) { + JSONObject jSONObject = new JSONObject(); + ArrayList arrayList = new ArrayList(); + ArrayList arrayList1 = new ArrayList(); + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI) SpringContextUtils.getBean(ISysBaseAPI.class); + for (OnlCgformField onlCgformField : paramList) { + StringProperty stringProperty; + String str1 = onlCgformField.getDbFieldName(); + if ("id".equals(str1)) { + continue; + } + String str2 = onlCgformField.getDbFieldTxt(); + + if ("1".equals(onlCgformField.getFieldMustInput())) { + arrayList.add(str1); + } + String str3 = onlCgformField.getFieldShowType(); + + + String str4 = onlCgformField.getDictField(); + NumberProperty numberProperty = null; + if (i.a(onlCgformField.getDbType())) { + numberProperty = new NumberProperty(str1, str2, "number"); + } else if (c(str3)) { + List list = iSysBaseAPI.queryDictItemsByCode(str4); + stringProperty = new StringProperty(str1, str2, str3, onlCgformField.getDbLength(), list); + } else { + stringProperty = new StringProperty(str1, str2, str3, onlCgformField.getDbLength()); + } + + stringProperty.setOrder(onlCgformField.getOrderNum()); + arrayList1.add(stringProperty); + } + jSONObject = JsonschemaUtil.getSubJsonSchema(paramString, arrayList, arrayList1); + return jSONObject; + } + + + public static Set a(List paramList) { + HashSet hashSet = new HashSet(); + for (OnlCgformField onlCgformField : paramList) { + if ("popup".equals(onlCgformField.getFieldShowType())) { + String str = onlCgformField.getDictText(); + if (str != null && !str.equals("")) { + hashSet.addAll((Collection) Arrays.stream(str.split(",")).collect(Collectors.toSet())); + } + } + if ("cat_tree".equals(onlCgformField.getFieldShowType())) { + String str = onlCgformField.getDictText(); + if (oConvertUtils.isNotEmpty(str)) { + hashSet.add(str); + } + } + } + for (OnlCgformField onlCgformField : paramList) { + String str = onlCgformField.getDbFieldName(); + if (onlCgformField.getIsShowForm().intValue() == 1 && hashSet.contains(str)) { + hashSet.remove(str); + } + } + return hashSet; + } + + + public static Map a(String paramString, List paramList, JSONObject paramJSONObject) { + StringBuffer stringBuffer1 = new StringBuffer(); + StringBuffer stringBuffer2 = new StringBuffer(); + String str1 = ""; + try { + str1 = d.getDatabaseType(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + HashMap hashMap = new HashMap<>(); + boolean bool = false; + String str2 = null; + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + if (loginUser == null) { + throw new JeecgBootException("online保存表单数据异常:系统未找到当前登陆用户信息"); + } + + + Set set = a(paramList); + + + for (OnlCgformField onlCgformField : paramList) { + String str4 = onlCgformField.getDbFieldName(); + if (null == str4) { + aw.info("--------online保存表单数据遇见空名称的字段------->>" + onlCgformField.getId()); + + continue; + } + if ("id".equals(str4.toLowerCase())) { + bool = true; + str2 = paramJSONObject.getString(str4); + + continue; + } + + a(onlCgformField, loginUser, paramJSONObject, new String[]{"CREATE_BY", "CREATE_TIME", "SYS_ORG_CODE"}); + + + if ("bpm_status".equals(str4.toLowerCase())) { + stringBuffer1.append("," + str4); + stringBuffer2.append(",'1'"); + + continue; + } + + if (set.contains(str4)) { + + stringBuffer1.append("," + str4); + + String str = i.a(str1, onlCgformField, paramJSONObject, (Map) hashMap); + stringBuffer2.append("," + str); + + continue; + } + + if (onlCgformField.getIsShowForm().intValue() != 1 && oConvertUtils.isEmpty(onlCgformField.getMainField()) && + oConvertUtils.isEmpty(onlCgformField.getDbDefaultVal())) { + continue; + } + + + if (paramJSONObject.get(str4) == null) { + if (oConvertUtils.isEmpty(onlCgformField.getDbDefaultVal())) { + continue; + } + paramJSONObject.put(str4, onlCgformField.getDbDefaultVal()); + } + + + if ("".equals(paramJSONObject.get(str4))) { + String str = onlCgformField.getDbType(); + if (i.a(str) || i.b(str)) { + continue; + } + } + + + stringBuffer1.append("," + str4); + + + String str5 = i.a(str1, onlCgformField, paramJSONObject, (Map) hashMap); + stringBuffer2.append("," + str5); + } + + if (bool) { + if (oConvertUtils.isEmpty(str2)) { + str2 = a(); + } + } else { + str2 = a(); + } + String str3 = "insert into " + f(paramString) + "(" + "id" + stringBuffer1.toString() + ") values(" + "'" + str2 + "'" + stringBuffer2.toString() + ")"; + hashMap.put("execute_sql_string", str3); + aw.info("--动态表单保存sql-->" + str3); + return (Map) hashMap; + } + + + public static Map b(String paramString, List paramList, JSONObject paramJSONObject) { + StringBuffer stringBuffer = new StringBuffer(); + HashMap hashMap = new HashMap<>(); + String str1 = ""; + try { + str1 = d.getDatabaseType(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + if (loginUser == null) { + throw new JeecgBootException("online修改表单数据异常:系统未找到当前登陆用户信息"); + } + + + Set set = a(paramList); + + + for (OnlCgformField onlCgformField : paramList) { + String str4 = onlCgformField.getDbFieldName(); + if (null == str4) { + aw.info("--------online修改表单数据遇见空名称的字段------->>" + onlCgformField.getId()); + + continue; + } + + a(onlCgformField, loginUser, paramJSONObject, new String[]{"UPDATE_BY", "UPDATE_TIME"}); + + + if (set.contains(str4)) { + if (paramJSONObject.get(str4) != null && !"".equals(paramJSONObject.getString(str4))) { + String str = i.a(str1, onlCgformField, paramJSONObject, (Map) hashMap); + stringBuffer.append(str4 + "=" + str + ","); + + continue; + } + } + + if (onlCgformField.getIsShowForm().intValue() != 1) { + continue; + } + + if ("id".equals(str4)) { + continue; + } + + if ("".equals(paramJSONObject.get(str4))) { + String str = onlCgformField.getDbType(); + if (i.a(str) || i.b(str)) { + continue; + } + } + + if (oConvertUtils.isNotEmpty(onlCgformField.getMainTable()) && oConvertUtils.isNotEmpty(onlCgformField.getMainField())) { + continue; + } + + String str5 = i.a(str1, onlCgformField, paramJSONObject, (Map) hashMap); + stringBuffer.append(str4 + "=" + str5 + ","); + } + + + String str2 = stringBuffer.toString(); + if (str2.endsWith(",")) { + str2 = str2.substring(0, str2.length() - 1); + } + String str3 = "update " + f(paramString) + " set " + str2 + " where " + "id" + "=" + "'" + paramJSONObject.getString("id") + "'"; + aw.info("--动态表单编辑sql-->" + str3); + hashMap.put("execute_sql_string", str3); + return (Map) hashMap; + } + + + public static String a(String paramString1, List paramList, String paramString2) { + return a(paramString1, paramList, "id", paramString2); + } + + + public static String a(String paramString1, List paramList, String paramString2, String paramString3) { + StringBuffer stringBuffer = new StringBuffer(); + + stringBuffer.append("SELECT "); + int i = paramList.size(); + boolean bool = false; + for (byte b1 = 0; b1 < i; b1++) { + String str = ((OnlCgformField) paramList.get(b1)).getDbFieldName(); + if ("id".equals(str)) { + bool = true; + } + stringBuffer.append(str); + if (i > b1 + 1) { + stringBuffer.append(","); + } + } + if (!bool) { + stringBuffer.append(",id"); + } + stringBuffer.append(" FROM " + f(paramString1) + " where 1=1 " + " AND " + paramString2 + "=" + "'" + paramString3 + "'"); + return stringBuffer.toString(); + } + + + public static void a(OnlCgformField paramOnlCgformField, LoginUser paramLoginUser, JSONObject paramJSONObject, String... paramVarArgs) { + String str = paramOnlCgformField.getDbFieldName(); + boolean bool = false; + for (String str1 : paramVarArgs) { + if (str.toUpperCase().equals(str1)) { + if (paramOnlCgformField.getIsShowForm().intValue() == 1) { + if (paramJSONObject.get(str) == null) { + bool = true; + } + } else { + paramOnlCgformField.setIsShowForm(Integer.valueOf(1)); + bool = true; + } + if (bool) { + switch (str1) { + case "CREATE_BY": + paramJSONObject.put(str, paramLoginUser.getUsername()); + break; + case "CREATE_TIME": + paramOnlCgformField.setFieldShowType("datetime"); + paramJSONObject.put(str, DateUtils.formatDateTime()); + break; + case "UPDATE_BY": + paramJSONObject.put(str, paramLoginUser.getUsername()); + break; + case "UPDATE_TIME": + paramOnlCgformField.setFieldShowType("datetime"); + paramJSONObject.put(str, DateUtils.formatDateTime()); + break; + case "SYS_ORG_CODE": + paramJSONObject.put(str, paramLoginUser.getOrgCode()); + break; + } + } + break; + } + } + } + + + public static boolean a(Object paramObject1, Object paramObject2) { + if (oConvertUtils.isEmpty(paramObject1) && oConvertUtils.isEmpty(paramObject2)) { + return true; + } + if (oConvertUtils.isNotEmpty(paramObject1) && paramObject1.equals(paramObject2)) { + return true; + } + + return false; + } + + + public static boolean a(OnlCgformField paramOnlCgformField1, OnlCgformField paramOnlCgformField2) { + if (!a(paramOnlCgformField1.getDbFieldName(), paramOnlCgformField2.getDbFieldName()) || + !a(paramOnlCgformField1.getDbFieldTxt(), paramOnlCgformField2.getDbFieldTxt()) || + !a(paramOnlCgformField1.getDbLength(), paramOnlCgformField2.getDbLength()) || + !a(paramOnlCgformField1.getDbPointLength(), paramOnlCgformField2.getDbPointLength()) || + !a(paramOnlCgformField1.getDbType(), paramOnlCgformField2.getDbType()) || + !a(paramOnlCgformField1.getDbIsNull(), paramOnlCgformField2.getDbIsNull()) || + + !a(paramOnlCgformField1.getDbIsKey(), paramOnlCgformField2.getDbIsKey()) || + + + !a(paramOnlCgformField1.getDbDefaultVal(), paramOnlCgformField2.getDbDefaultVal())) { + return true; + } + return false; + } + + + public static boolean a(OnlCgformIndex paramOnlCgformIndex1, OnlCgformIndex paramOnlCgformIndex2) { + if (!a(paramOnlCgformIndex1.getIndexName(), paramOnlCgformIndex2.getIndexName()) || + !a(paramOnlCgformIndex1.getIndexField(), paramOnlCgformIndex2.getIndexField()) || + !a(paramOnlCgformIndex1.getIndexType(), paramOnlCgformIndex2.getIndexType())) { + return true; + } + return false; + } + + + public static boolean a(OnlCgformHead paramOnlCgformHead1, OnlCgformHead paramOnlCgformHead2) { + if (!a(paramOnlCgformHead1.getTableName(), paramOnlCgformHead2.getTableName()) || !a(paramOnlCgformHead1.getTableTxt(), paramOnlCgformHead2.getTableTxt())) { + return true; + } + return false; + } + + + public static String a(String paramString, List paramList, Map paramMap) { + StringBuffer stringBuffer1 = new StringBuffer(); + StringBuffer stringBuffer2 = new StringBuffer(); + for (OnlCgformField onlCgformField : paramList) { + String str1 = onlCgformField.getDbFieldName(); + String str2 = onlCgformField.getDbType(); + if (onlCgformField.getIsShowList().intValue() == 1) { + stringBuffer2.append("," + str1); + } + + + if (oConvertUtils.isNotEmpty(onlCgformField.getMainField())) { + boolean bool = !i.a(str2) ? true : false; + String str = QueryGenerator.getSingleQueryConditionSql(str1, "", paramMap.get(str1), bool); + if (!"".equals(str)) { + stringBuffer1.append(" AND " + str); + } + } + + + if (onlCgformField.getIsQuery().intValue() == 1) { + if ("single".equals(onlCgformField.getQueryMode())) { + + if (paramMap.get(str1) == null) { + continue; + } + boolean bool = !i.a(str2) ? true : false; + String str = QueryGenerator.getSingleQueryConditionSql(str1, "", paramMap.get(str1), bool); + if ("".equals(str)) { + continue; + } + stringBuffer1.append(" AND " + str); + continue; + } + Object object1 = paramMap.get(str1 + "_begin"); + if (object1 != null) { + stringBuffer1.append(" AND " + str1 + ">="); + if (i.a(str2)) { + stringBuffer1.append(object1.toString()); + } else { + stringBuffer1.append("'" + object1.toString() + "'"); + } + } + Object object2 = paramMap.get(str1 + "_end"); + if (object2 != null) { + stringBuffer1.append(" AND " + str1 + "<="); + if (i.a(str2)) { + stringBuffer1.append(object2.toString()); + continue; + } + stringBuffer1.append("'" + object2.toString() + "'"); + } + } + } + + + return "SELECT id" + stringBuffer2.toString() + " FROM " + f(paramString) + " where 1=1 " + stringBuffer1.toString(); + } + + + public static List a(List paramList, String paramString) { + ArrayList arrayList = new ArrayList(); + for (byte b1 = 0; b1 < paramList.size(); b1++) { + if (null == paramString || !paramString.equals(((OnlCgformField) paramList.get(b1)).getDbFieldName())) { + + if (((OnlCgformField) paramList.get(b1)).getIsShowList().intValue() == 1) { + ExcelExportEntity excelExportEntity = new ExcelExportEntity(((OnlCgformField) paramList.get(b1)).getDbFieldTxt(), ((OnlCgformField) paramList.get(b1)).getDbFieldName()); + byte b2 = (((OnlCgformField) paramList.get(b1)).getDbLength().intValue() == 0) ? 12 : ((((OnlCgformField) paramList.get(b1)).getDbLength().intValue() > 30) ? 30 : ((OnlCgformField) paramList.get(b1)).getDbLength().intValue()); + if (((OnlCgformField) paramList.get(b1)).getFieldShowType().equals("date")) { + excelExportEntity.setFormat("yyyy-MM-dd"); + } else if (((OnlCgformField) paramList.get(b1)).getFieldShowType().equals("datetime")) { + excelExportEntity.setFormat("yyyy-MM-dd HH:mm:ss"); + } + if (b2 < 10) { + b2 = 10; + } + excelExportEntity.setWidth(b2); + arrayList.add(excelExportEntity); + } + } + } + return arrayList; + } + + + public static boolean a(OnlCgformEnhanceJava paramOnlCgformEnhanceJava) { + String str1 = paramOnlCgformEnhanceJava.getCgJavaType(); + String str2 = paramOnlCgformEnhanceJava.getCgJavaValue(); + if (oConvertUtils.isNotEmpty(str2)) { + try { + if ("class".equals(str1)) { + Class clazz = Class.forName(str2); + if (clazz == null || clazz.newInstance() == null) { + return false; + } + } + + if ("spring".equals(str1)) { + Object object = SpringContextUtils.getBean(str2); + if (object == null) { + return false; + } + } + } catch (Exception exception) { + aw.error(exception.getMessage(), exception); + return false; + } + } + return true; + } + + + public static void b(List paramList) { + Collections.sort(paramList, new Comparator() { + public int a(String param1String1, String param1String2) { + if (param1String1 == null || param1String2 == null) { + return -1; + } + if (param1String1.compareTo(param1String2) > 0) { + return 1; + } + if (param1String1.compareTo(param1String2) < 0) { + return -1; + } + if (param1String1.compareTo(param1String2) == 0) { + return 0; + } + return 0; + } + }); + } + + + public static void c(List paramList) { + Collections.sort(paramList, new Comparator() { + public int a(String param1String1, String param1String2) { + if (param1String1 == null || param1String2 == null) { + return -1; + } + if (param1String1.length() > param1String2.length()) { + return 1; + } + if (param1String1.length() < param1String2.length()) { + return -1; + } + if (param1String1.compareTo(param1String2) > 0) { + return 1; + } + if (param1String1.compareTo(param1String2) < 0) { + return -1; + } + if (param1String1.compareTo(param1String2) == 0) { + return 0; + } + return 0; + } + }); + } + + + private static String a(String paramString, boolean paramBoolean, QueryRuleEnum paramQueryRuleEnum) { + if (paramQueryRuleEnum == QueryRuleEnum.IN) { + return a(paramString, paramBoolean); + } + if (paramBoolean) { + return "'" + QueryGenerator.converRuleValue(paramString) + "'"; + } + return QueryGenerator.converRuleValue(paramString); + } + + + private static String a(String paramString, boolean paramBoolean) { + if (paramString == null || paramString.length() == 0) { + return "()"; + } + + paramString = QueryGenerator.converRuleValue(paramString); + String[] arrayOfString = paramString.split(","); + ArrayList arrayList = new ArrayList(); + for (String str : arrayOfString) { + if (str != null && str.length() != 0) { + + if (paramBoolean) { + arrayList.add("'" + str + "'"); + } else { + arrayList.add(str); + } + } + } + return "(" + StringUtils.join(arrayList, ",") + ")"; + } + + + private static void a(String paramString1, SysPermissionDataRuleModel paramSysPermissionDataRuleModel, String paramString2, String paramString3, StringBuffer paramStringBuffer) { + QueryRuleEnum queryRuleEnum = QueryRuleEnum.getByValue(paramSysPermissionDataRuleModel.getRuleConditions()); + boolean bool = !i.a(paramString3) ? true : false; + String str = a(paramSysPermissionDataRuleModel.getRuleValue(), bool, queryRuleEnum); + if (str == null || queryRuleEnum == null) { + return; + } + + + if ("ORACLE".equalsIgnoreCase(paramString1) && + "Date".equals(paramString3)) { + str = str.replace("'", ""); + if (str.length() == 10) { + str = b(str); + } else { + str = a(str); + } + } + + + switch (null.a[queryRuleEnum.ordinal()]) { + case 1: + paramStringBuffer.append(" AND " + paramString2 + ">" + str); + return; + case 2: + paramStringBuffer.append(" AND " + paramString2 + ">=" + str); + return; + case 3: + paramStringBuffer.append(" AND " + paramString2 + "<" + str); + return; + case 4: + paramStringBuffer.append(" AND " + paramString2 + "<=" + str); + return; + case 10: + paramStringBuffer.append(" AND " + paramString2 + "=" + str); + return; + case 5: + paramStringBuffer.append(" AND " + paramString2 + " <> " + str); + return; + case 6: + paramStringBuffer.append(" AND " + paramString2 + " IN " + str); + return; + case 7: + paramStringBuffer.append(" AND " + paramString2 + " LIKE '%" + QueryGenerator.trimSingleQuote(str) + "%'"); + return; + case 8: + paramStringBuffer.append(" AND " + paramString2 + " LIKE '%" + QueryGenerator.trimSingleQuote(str) + "'"); + return; + case 9: + paramStringBuffer.append(" AND " + paramString2 + " LIKE '" + QueryGenerator.trimSingleQuote(str) + "%'"); + return; + } + aw.info("--查询规则未匹配到---"); + } + + + public static String a(String paramString, JSONObject paramJSONObject) { + if (paramJSONObject == null) { + return paramString; + } + paramString = paramString.replace("#{UUID}", UUIDGenerator.generate()); + Set set = QueryGenerator.getSqlRuleParams(paramString); + + for (String str1 : set) { + if (paramJSONObject.get(str1.toUpperCase()) == null && paramJSONObject.get(str1.toLowerCase()) == null) { + String str = QueryGenerator.converRuleValue(str1); + paramString = paramString.replace("#{" + str1 + "}", str); + continue; + } + String str2 = null; + if (paramJSONObject.containsKey(str1.toLowerCase())) { + str2 = paramJSONObject.getString(str1.toLowerCase()); + } else if (paramJSONObject.containsKey(str1.toUpperCase())) { + str2 = paramJSONObject.getString(str1.toUpperCase()); + } + paramString = paramString.replace("#{" + str1 + "}", str2); + } + + return paramString; + } + + + public static String c(String paramString, List paramList) { + paramString = d(paramString, paramList); + for (String str : "beforeAdd,beforeEdit,afterAdd,afterEdit,beforeDelete,afterDelete,mounted,created".split(",")) { + if ("beforeAdd,afterAdd,mounted,created".indexOf(str) >= 0) { + Pattern pattern = Pattern.compile("(" + str + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(paramString); + if (matcher.find()) { + paramString = paramString.replace(matcher.group(0), str + "(that){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + } + } else { + Pattern pattern = Pattern.compile("(" + str + "\\s*\\(row\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(paramString); + if (matcher.find()) { + paramString = paramString.replace(matcher.group(0), str + "(that,row){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + } else { + Pattern pattern1 = Pattern.compile("(" + str + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher1 = pattern1.matcher(paramString); + if (matcher1.find()) { + paramString = paramString.replace(matcher1.group(0), str + "(that){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + } + } + } + } + return d(paramString); + } + + + public static void a(OnlCgformEnhanceJs paramOnlCgformEnhanceJs, String paramString, List paramList) { + if (paramOnlCgformEnhanceJs == null || oConvertUtils.isEmpty(paramOnlCgformEnhanceJs.getCgJs())) { + return; + } + String str1 = paramOnlCgformEnhanceJs.getCgJs(); + String str2 = "onlChange"; + Pattern pattern = Pattern.compile("(" + paramString + "_" + str2 + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(str1); + if (matcher.find()) { + str1 = str1.replace(matcher.group(0), paramString + "_" + str2 + "(){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + for (OnlCgformField onlCgformField : paramList) { + Pattern pattern1 = Pattern.compile("(" + onlCgformField.getDbFieldName() + "\\s*\\(\\))"); + Matcher matcher1 = pattern1.matcher(str1); + if (matcher1.find()) { + str1 = str1.replace(matcher1.group(0), onlCgformField.getDbFieldName() + "(that,event)"); + } + } + } + paramOnlCgformEnhanceJs.setCgJs(str1); + } + + + public static void a(OnlCgformEnhanceJs paramOnlCgformEnhanceJs, String paramString, List paramList, boolean paramBoolean) { + if (paramOnlCgformEnhanceJs == null || oConvertUtils.isEmpty(paramOnlCgformEnhanceJs.getCgJs())) { + return; + } + String str1 = paramOnlCgformEnhanceJs.getCgJs(); + String str2 = "onlChange"; + Pattern pattern = Pattern.compile("([^_]" + str2 + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(str1); + if (matcher.find()) { + str1 = str1.replace(matcher.group(0), str2 + "(){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + for (OnlCgformField onlCgformField : paramList) { + Pattern pattern1 = Pattern.compile("(" + onlCgformField.getDbFieldName() + "\\s*\\(\\))"); + Matcher matcher1 = pattern1.matcher(str1); + if (matcher1.find()) { + str1 = str1.replace(matcher1.group(0), onlCgformField.getDbFieldName() + "(that,event)"); + } + } + } + paramOnlCgformEnhanceJs.setCgJs(str1); + a(paramOnlCgformEnhanceJs); + a(paramOnlCgformEnhanceJs, paramString, paramList); + } + + public static void a(OnlCgformEnhanceJs paramOnlCgformEnhanceJs) { + String str1 = paramOnlCgformEnhanceJs.getCgJs(); + String str2 = "show"; + Pattern pattern = Pattern.compile("(" + str2 + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(str1); + if (matcher.find()) { + str1 = str1.replace(matcher.group(0), str2 + "(that){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + } + paramOnlCgformEnhanceJs.setCgJs(str1); + } + + + public static String d(String paramString) { + aw.info("最终的增强JS", paramString); + return "class OnlineEnhanceJs{constructor(getAction,postAction,deleteAction){this._getAction=getAction;this._postAction=postAction;this._deleteAction=deleteAction;}" + paramString + "}"; + } + + + public static String d(String paramString, List paramList) { + if (paramList != null) { + for (OnlCgformButton onlCgformButton : paramList) { + String str = onlCgformButton.getButtonCode(); + if ("link".equals(onlCgformButton.getButtonStyle())) { + Pattern pattern1 = Pattern.compile("(" + str + "\\s*\\(row\\)\\s*\\{)"); + Matcher matcher1 = pattern1.matcher(paramString); + if (matcher1.find()) { + paramString = paramString.replace(matcher1.group(0), str + "(that,row){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + continue; + } + Pattern pattern2 = Pattern.compile("(" + str + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher2 = pattern2.matcher(paramString); + if (matcher2.find()) + paramString = paramString.replace(matcher2.group(0), str + "(that){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + continue; + } + if ("button".equals(onlCgformButton.getButtonStyle()) || "form".equals(onlCgformButton.getButtonStyle())) { + Pattern pattern = Pattern.compile("(" + str + "\\s*\\(\\)\\s*\\{)"); + Matcher matcher = pattern.matcher(paramString); + if (matcher.find()) { + paramString = paramString.replace(matcher.group(0), str + "(that){const getAction=this._getAction,postAction=this._postAction,deleteAction=this._deleteAction;"); + } + } + } + } + return paramString; + } + + + public static JSONArray a(List paramList, List paramList1) { + JSONArray jSONArray = new JSONArray(); + ISysBaseAPI iSysBaseAPI = (ISysBaseAPI) SpringContextUtils.getBean(ISysBaseAPI.class); + for (OnlCgformField onlCgformField : paramList) { + String str1 = onlCgformField.getDbFieldName(); + if ("id".equals(str1)) { + continue; + } + JSONObject jSONObject = new JSONObject(); + if (paramList1.indexOf(str1) >= 0) { + jSONObject.put("disabled", Boolean.valueOf(true)); + } + + if (onlCgformField.getIsReadOnly() != null && 1 == onlCgformField.getIsReadOnly().intValue()) { + jSONObject.put("disabled", Boolean.valueOf(true)); + } + + jSONObject.put("title", onlCgformField.getDbFieldTxt()); + jSONObject.put("key", str1); + + String str2 = c(onlCgformField); + jSONObject.put("type", str2); + + if (onlCgformField.getFieldLength() == null) { + jSONObject.put("width", "186px"); + } else if ("sel_depart".equals(str2) || "sel_user".equals(str2)) { + jSONObject.put("width", ""); + } else { + jSONObject.put("width", onlCgformField.getFieldLength() + "px"); + } + + + if (str2.equals("file") || str2.equals("image")) { + jSONObject.put("responseName", "message"); + jSONObject.put("token", Boolean.valueOf(true)); + } + if (str2.equals("switch")) { + jSONObject.put("type", "checkbox"); + JSONArray jSONArray1 = new JSONArray(); + if (oConvertUtils.isEmpty(onlCgformField.getFieldExtendJson())) { + jSONArray1.add("Y"); + jSONArray1.add("N"); + } else { + jSONArray1 = JSONArray.parseArray(onlCgformField.getFieldExtendJson()); + } + jSONObject.put("customValue", jSONArray1); + } + if (str2.equals("popup")) { + jSONObject.put("popupCode", onlCgformField.getDictTable()); + jSONObject.put("orgFields", onlCgformField.getDictField()); + jSONObject.put("destFields", onlCgformField.getDictText()); + String str = onlCgformField.getDictText(); + if (str != null && !str.equals("")) { + ArrayList arrayList = new ArrayList(); + String[] arrayOfString = str.split(","); + for (String str3 : arrayOfString) { + if (!a(str3, paramList)) { + + + arrayList.add(str3); + JSONObject jSONObject1 = new JSONObject(); + jSONObject1.put("title", str3); + jSONObject1.put("key", str3); + jSONObject1.put("type", "hidden"); + jSONArray.add(jSONObject1); + } + } + } + } + + jSONObject.put("defaultValue", onlCgformField.getDbDefaultVal()); + jSONObject.put("fieldDefaultValue", onlCgformField.getFieldDefaultValue()); + jSONObject.put("placeholder", "请输入" + onlCgformField.getDbFieldTxt()); + jSONObject.put("validateRules", b(onlCgformField)); + + if ("list".equals(onlCgformField.getFieldShowType()) || "radio" + .equals(onlCgformField.getFieldShowType()) || "checkbox_meta" + .equals(onlCgformField.getFieldShowType()) || "list_multi" + .equals(onlCgformField.getFieldShowType()) || "sel_search" + .equals(onlCgformField.getFieldShowType())) { + List list = new ArrayList(); + if (oConvertUtils.isNotEmpty(onlCgformField.getDictTable())) { + List list1 = iSysBaseAPI.queryTableDictItemsByCode(onlCgformField.getDictTable(), onlCgformField.getDictText(), onlCgformField.getDictField()); + } else if (oConvertUtils.isNotEmpty(onlCgformField.getDictField())) { + list = iSysBaseAPI.queryDictItemsByCode(onlCgformField.getDictField()); + } + + + jSONObject.put("options", list); + if ("list_multi".equals(onlCgformField.getFieldShowType())) { + jSONObject.put("width", "230px"); + } + } + + jSONObject.put("fieldExtendJson", onlCgformField.getFieldExtendJson()); + + jSONArray.add(jSONObject); + } + return jSONArray; + } + + + private static JSONArray b(OnlCgformField paramOnlCgformField) { + JSONArray jSONArray = new JSONArray(); + if (paramOnlCgformField.getDbIsNull().intValue() == 0 || "1".equals(paramOnlCgformField.getFieldMustInput())) { + JSONObject jSONObject = new JSONObject(); + jSONObject.put("required", Boolean.valueOf(true)); + jSONObject.put("message", paramOnlCgformField.getDbFieldTxt() + "不能为空!"); + jSONArray.add(jSONObject); + } + if (oConvertUtils.isNotEmpty(paramOnlCgformField.getFieldValidType())) { + JSONObject jSONObject = new JSONObject(); + + if ("only".equals(paramOnlCgformField.getFieldValidType())) { + + jSONObject.put("unique", Boolean.valueOf(true)); + jSONObject.put("message", paramOnlCgformField.getDbFieldTxt() + "不能重复"); + } else { + jSONObject.put("pattern", paramOnlCgformField.getFieldValidType()); + jSONObject.put("message", paramOnlCgformField.getDbFieldTxt() + "格式不正确"); + } + + jSONArray.add(jSONObject); + } + return jSONArray; + } + + + public static Map b(Map paramMap) { + HashMap hashMap = new HashMap<>(); + if (paramMap == null || paramMap.isEmpty()) { + return (Map) hashMap; + } + Set set = paramMap.keySet(); + for (String str1 : set) { + + + Object object = paramMap.get(str1); + if (object instanceof Clob) { + object = a((Clob) object); + } else if (object instanceof byte[]) { + object = new String((byte[]) object); + } else if (object instanceof Blob) { + try { + if (object != null) { + Blob blob = (Blob) object; + object = new String(blob.getBytes(1L, (int) blob.length()), "UTF-8"); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + } + String str2 = str1.toLowerCase(); + + + if (object != null && object instanceof String) { + String str = object.toString(); + if (str.startsWith("[") && str.endsWith("]")) { + object = JSONArray.parseArray(str); + } + } + + hashMap.put(str2, (object == null) ? "" : object); + } + + return (Map) hashMap; + } + + + public static JSONObject a(JSONObject paramJSONObject) { + if (d.a()) { + JSONObject jSONObject = new JSONObject(); + if (paramJSONObject == null || paramJSONObject.isEmpty()) { + return jSONObject; + } + Set set = paramJSONObject.keySet(); + for (String str1 : set) { + String str2 = str1.toLowerCase(); + jSONObject.put(str2, paramJSONObject.get(str1)); + } + return jSONObject; + } + return paramJSONObject; + } + + + public static List> d(List> paramList) { + ArrayList> arrayList = new ArrayList(); + for (Map map : paramList) { + HashMap hashMap = new HashMap<>(); + Set set = map.keySet(); + for (String str1 : set) { + + + Object object = map.get(str1); + if (object instanceof Clob) { + object = a((Clob) object); + } else if (object instanceof byte[]) { + object = new String((byte[]) object); + } else if (object instanceof Blob) { + try { + if (object != null) { + Blob blob = (Blob) object; + object = new String(blob.getBytes(1L, (int) blob.length()), "UTF-8"); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + } + String str2 = str1.toLowerCase(); + + + if (object != null && object instanceof String) { + String str = object.toString(); + if (str.startsWith("[") && str.endsWith("]")) { + object = JSONArray.parseArray(str); + } + } + + hashMap.put(str2, (object == null) ? "" : object); + } + + arrayList.add(hashMap); + } + return (List) arrayList; + } + + + public static String a(Clob paramClob) { + String str = ""; + try { + Reader reader = paramClob.getCharacterStream(); + char[] arrayOfChar = new char[(int) paramClob.length()]; + reader.read(arrayOfChar); + str = new String(arrayOfChar); + reader.close(); + } catch (IOException iOException) { + iOException.printStackTrace(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } + return str; + } + + + public static Map c(String paramString, List paramList, JSONObject paramJSONObject) { + StringBuffer stringBuffer1 = new StringBuffer(); + StringBuffer stringBuffer2 = new StringBuffer(); + String str1 = ""; + try { + str1 = d.getDatabaseType(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + HashMap hashMap = new HashMap<>(); + boolean bool = false; + String str2 = null; + + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + if (loginUser == null) { + throw new JeecgBootException("online保存表单数据异常:系统未找到当前登陆用户信息"); + } + + for (OnlCgformField onlCgformField : paramList) { + String str4 = onlCgformField.getDbFieldName(); + if (null == str4) { + aw.info("--------online保存表单数据遇见空名称的字段------->>" + onlCgformField.getId()); + + continue; + } + if (paramJSONObject.get(str4) == null && !"CREATE_BY".equalsIgnoreCase(str4) && !"CREATE_TIME".equalsIgnoreCase(str4) && !"SYS_ORG_CODE".equalsIgnoreCase(str4)) { + continue; + } + + + a(onlCgformField, loginUser, paramJSONObject, new String[]{"CREATE_BY", "CREATE_TIME", "SYS_ORG_CODE"}); + + + if ("".equals(paramJSONObject.get(str4))) { + String str = onlCgformField.getDbType(); + if (i.a(str) || i.b(str)) { + continue; + } + } + if ("id".equals(str4.toLowerCase())) { + bool = true; + str2 = paramJSONObject.getString(str4); + + continue; + } + stringBuffer1.append("," + str4); + + String str5 = i.a(str1, onlCgformField, paramJSONObject, (Map) hashMap); + stringBuffer2.append("," + str5); + } + if (!bool || oConvertUtils.isEmpty(str2)) { + str2 = a(); + } + String str3 = "insert into " + f(paramString) + "(" + "id" + stringBuffer1.toString() + ") values(" + "'" + str2 + "'" + stringBuffer2.toString() + ")"; + hashMap.put("execute_sql_string", str3); + aw.info("--表单设计器表单保存sql-->" + str3); + return (Map) hashMap; + } + + + public static Map d(String paramString, List paramList, JSONObject paramJSONObject) { + StringBuffer stringBuffer = new StringBuffer(); + HashMap hashMap = new HashMap<>(); + String str1 = ""; + try { + str1 = d.getDatabaseType(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + if (loginUser == null) { + throw new JeecgBootException("online保存表单数据异常:系统未找到当前登陆用户信息"); + } + for (OnlCgformField onlCgformField : paramList) { + String str4 = onlCgformField.getDbFieldName(); + if (null == str4) { + aw.info("--------online修改表单数据遇见空名称的字段------->>" + onlCgformField.getId()); + + continue; + } + if ("id".equals(str4)) { + continue; + } + + if (paramJSONObject.get(str4) == null && !"UPDATE_BY".equalsIgnoreCase(str4) && !"UPDATE_TIME".equalsIgnoreCase(str4) && !"SYS_ORG_CODE".equalsIgnoreCase(str4)) { + continue; + } + + + a(onlCgformField, loginUser, paramJSONObject, new String[]{"UPDATE_BY", "UPDATE_TIME", "SYS_ORG_CODE"}); + + + if ("".equals(paramJSONObject.get(str4))) { + String str = onlCgformField.getDbType(); + if (i.a(str) || i.b(str)) { + continue; + } + } + String str5 = i.a(str1, onlCgformField, paramJSONObject, (Map) hashMap); + stringBuffer.append(str4 + "=" + str5 + ","); + } + + String str2 = stringBuffer.toString(); + if (str2.endsWith(",")) { + str2 = str2.substring(0, str2.length() - 1); + } + String str3 = "update " + f(paramString) + " set " + str2 + " where " + "id" + "=" + "'" + paramJSONObject.getString("id") + "'"; + aw.info("--表单设计器表单编辑sql-->" + str3); + hashMap.put("execute_sql_string", str3); + return (Map) hashMap; + } + + + public static Map a(String paramString1, String paramString2, String paramString3) { + HashMap hashMap = new HashMap<>(); + String str = "update " + f(paramString1) + " set " + paramString2 + "=" + "'" + Character.MIN_VALUE + "'" + " where " + "id" + "=" + "'" + paramString3 + "'"; + aw.info("--修改树节点状态:为无子节点sql-->" + str); + hashMap.put("execute_sql_string", str); + return (Map) hashMap; + } + + + public static String e(String paramString) { + if (paramString == null || "".equals(paramString) || "0".equals(paramString)) { + return ""; + } + return "CODE like '" + paramString + "%" + "'"; + } + + + public static String f(String paramString) { + if (Pattern.matches("^[a-zA-z].*\\$\\d+$", paramString)) { + return paramString.substring(0, paramString.lastIndexOf("$")); + } + return paramString; + } + + + public static void a(LinkDownProperty paramLinkDownProperty, List paramList, List paramList1) { + String str1 = paramLinkDownProperty.getDictTable(); + JSONObject jSONObject = JSONObject.parseObject(str1); + String str2 = jSONObject.getString("linkField"); + ArrayList arrayList = new ArrayList(); + if (oConvertUtils.isNotEmpty(str2)) { + String[] arrayOfString = str2.split(","); + for (OnlCgformField onlCgformField : paramList) { + String str = onlCgformField.getDbFieldName(); + for (String str3 : arrayOfString) { + if (str3.equals(str)) { + paramList1.add(str); + arrayList.add(new BaseColumn(onlCgformField.getDbFieldTxt(), str)); + break; + } + } + } + } + paramLinkDownProperty.setOtherColumns(arrayList); + } + + + public static String a(byte[] paramArrayOfbyte, String paramString1, String paramString2, String paramString3) { + return CommonUtils.uploadOnlineImage(paramArrayOfbyte, paramString1, paramString2, paramString3); + } + + + public static List e(List paramList) { + ArrayList arrayList = new ArrayList(); + for (OnlCgformField onlCgformField : paramList) { + if ("image".equals(onlCgformField.getFieldShowType())) { + arrayList.add(onlCgformField.getDbFieldTxt()); + } + } + return arrayList; + } + + + public static List b(List paramList, String paramString) { + ArrayList arrayList = new ArrayList(); + for (OnlCgformField onlCgformField : paramList) { + if ("image".equals(onlCgformField.getFieldShowType())) { + arrayList.add(paramString + "_" + onlCgformField.getDbFieldTxt()); + } + } + return arrayList; + } + + + public static String a() { + long l = IdWorker.getId(); + return String.valueOf(l); + } + + + public static String a(Exception paramException) { + String str = (paramException.getCause() != null) ? paramException.getCause().getMessage() : paramException.getMessage(); + if (str.indexOf("ORA-01452") != -1) { + str = "ORA-01452: 无法 CREATE UNIQUE INDEX; 找到重复的关键字"; + } else if (str.indexOf("duplicate key") != -1) { + str = "无法 CREATE UNIQUE INDEX; 找到重复的关键字"; + } + return str; + } + + + public static List a(OnlCgformField paramOnlCgformField) { + ArrayList arrayList = new ArrayList(); + String str1 = paramOnlCgformField.getFieldExtendJson(); + String str2 = "是", str3 = "否"; + JSONArray jSONArray = JSONArray.parseArray("[\"Y\",\"N\"]"); + if (oConvertUtils.isNotEmpty(str1)) { + jSONArray = JSONArray.parseArray(str1); + } + DictModel dictModel1 = new DictModel(jSONArray.getString(0), str2); + DictModel dictModel2 = new DictModel(jSONArray.getString(1), str3); + arrayList.add(dictModel1); + arrayList.add(dictModel2); + return arrayList; + } + + + private static String c(OnlCgformField paramOnlCgformField) { + if ("checkbox".equals(paramOnlCgformField.getFieldShowType())) + return "checkbox"; + if ("list".equals(paramOnlCgformField.getFieldShowType())) + return "select"; + if ("switch".equals(paramOnlCgformField.getFieldShowType())) + return "switch"; + if ("sel_user".equals(paramOnlCgformField.getFieldShowType())) + return "sel_user"; + if ("sel_depart".equals(paramOnlCgformField.getFieldShowType())) + return "sel_depart"; + if ("image".equals(paramOnlCgformField.getFieldShowType()) || "file" + .equals(paramOnlCgformField.getFieldShowType()) || "radio" + .equals(paramOnlCgformField.getFieldShowType()) || "popup" + .equals(paramOnlCgformField.getFieldShowType()) || "list_multi" + .equals(paramOnlCgformField.getFieldShowType()) || "sel_search" + .equals(paramOnlCgformField.getFieldShowType())) + return paramOnlCgformField.getFieldShowType(); + if ("datetime".equals(paramOnlCgformField.getFieldShowType())) + return "datetime"; + if ("date".equals(paramOnlCgformField.getFieldShowType())) + return "date"; + if ("int".equals(paramOnlCgformField.getDbType())) + return "inputNumber"; + if ("double".equals(paramOnlCgformField.getDbType()) || "BigDecimal".equals(paramOnlCgformField.getDbType())) { + return "inputNumber"; + } + return "input"; + } + + + private static String getDatabseType() { + if (oConvertUtils.isNotEmpty(ay)) { + return ay; + } + try { + ay = d.getDatabaseType(); + return ay; + } catch (Exception exception) { + exception.printStackTrace(); + + return ay; + } + } + + + public static List f(List paramList) { + ArrayList arrayList = new ArrayList(); + for (String str : paramList) { + arrayList.add(str.toLowerCase()); + } + return arrayList; + } + + + private static String b(String paramString1, String paramString2) { + String str = ""; + if (paramString2 == null || "".equals(paramString2)) { + return str; + } + String[] arrayOfString = paramString2.split(","); + for (byte b1 = 0; b1 < arrayOfString.length; b1++) { + if (b1 > 0) { + str = str + " AND "; + } + str = str + paramString1 + " like "; + if ("SQLSERVER".equals(getDatabseType())) { + str = str + "N"; + } + str = str + "'%" + arrayOfString[b1] + "%" + "'"; + } + + aw.info(" POPUP fieldSql: " + str); + return str; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/c.java new file mode 100644 index 00000000..0e46a4b3 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/c.java @@ -0,0 +1,6682 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.io.BufferedInputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.PropertyResourceBundle; +import java.util.ResourceBundle; +import org.apache.commons.lang.ArrayUtils; +import org.apache.commons.lang.CharSetUtils; +import org.apache.commons.lang.CharUtils; +import org.apache.commons.lang.ObjectUtils; +import org.apache.commons.lang.QstrEncodeUtil; +import org.apache.commons.lang.StringEscapeUtils; +import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang.WordUtils; +import org.apache.commons.lang.text.StrBuilder; +import org.apache.commons.net.SignatureUtil; + + + + + + + + + + + + + + + +public class c +{ + public static final String a = ""; + public static final int b = -1; + public static boolean c = Boolean.FALSE.booleanValue(); + public static boolean d = Boolean.TRUE.booleanValue(); + + + + + + + + + + + + private static final int g = 8192; + + + + + + + + + + + + public static String e; + + + + + + + + + + + + public static boolean a(String paramString) { + return (paramString == null || paramString.length() == 0); + } public static boolean b(String paramString) { return !StringUtils.isEmpty(paramString); } public static boolean a(Object paramObject) { return (paramObject != null); } public static boolean a(String paramString, List paramList) { if (paramString != null && paramList != null) { for (String str : paramList) { if (str != null && paramString.indexOf(str) != -1) return true; } return false; } return false; } public static boolean c(String paramString) { int i; if (paramString == null || (i = paramString.length()) == 0) return true; for (byte b = 0; b < i; b++) { if (!Character.isWhitespace(paramString.charAt(b))) return false; } return true; } public static boolean d(String paramString) { return !StringUtils.isBlank(paramString); } + public static String e(String paramString) { return (paramString == null) ? "" : paramString.trim(); } + public static String f(String paramString) { return (paramString == null) ? null : paramString.trim(); } + public static String g(String paramString) { String str = f(paramString); return a(str) ? null : str; } + static { c(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b(); } + public static String h(String paramString) { return (paramString == null) ? "" : paramString.trim(); } + public static String i(String paramString) { return a(paramString, (String)null); } + public static String j(String paramString) { if (paramString == null) return null; paramString = a(paramString, (String)null); return (paramString.length() == 0) ? null : paramString; } public static String k(String paramString) { return (paramString == null) ? "" : a(paramString, (String)null); } public static int f(String paramString1, String paramString2, int paramInt) { if (paramString1 == null || paramString2 == null) { + return -1; + } + if (paramInt > paramString1.length() - paramString2.length()) { + paramInt = paramString1.length() - paramString2.length(); + } + if (paramInt < 0) { + return -1; + } + if (paramString2.length() == 0) { + return paramInt; + } + + for (int i = paramInt; i >= 0; i--) { + if (paramString1.regionMatches(true, i, paramString2, 0, paramString2.length())) { + return i; + } + } + return -1; } + public static String a(String paramString1, String paramString2) { if (a(paramString1)) return paramString1; paramString1 = b(paramString1, paramString2); return c(paramString1, paramString2); } + public static String b(String paramString1, String paramString2) { int i; if (paramString1 == null || (i = paramString1.length()) == 0) return paramString1; int j = 0; if (paramString2 == null) { while (j != i && Character.isWhitespace(paramString1.charAt(j))) j++; } else { if (paramString2.length() == 0) return paramString1; while (j != i && paramString2.indexOf(paramString1.charAt(j)) != -1) j++; } return paramString1.substring(j); } + public static String c(String paramString1, String paramString2) { int i; if (paramString1 == null || (i = paramString1.length()) == 0) + return paramString1; if (paramString2 == null) { while (i != 0 && Character.isWhitespace(paramString1.charAt(i - 1))) + i--; } else { if (paramString2.length() == 0) + return paramString1; while (i != 0 && paramString2.indexOf(paramString1.charAt(i - 1)) != -1) + i--; } return paramString1.substring(0, i); } + public static String[] a(String[] paramArrayOfString) { return a(paramArrayOfString, (String)null); } + public static String[] a(String[] paramArrayOfString, String paramString) { int i; if (paramArrayOfString == null || (i = paramArrayOfString.length) == 0) + return paramArrayOfString; String[] arrayOfString = new String[i]; for (byte b = 0; b < i; b++) + arrayOfString[b] = a(paramArrayOfString[b], paramString); return arrayOfString; } + public static boolean d(String paramString1, String paramString2) { return (paramString1 == null) ? ((paramString2 == null)) : paramString1.equals(paramString2); } + public static boolean e(String paramString1, String paramString2) { return (paramString1 == null) ? ((paramString2 == null)) : paramString1.equalsIgnoreCase(paramString2); } + public static int a(String paramString, char paramChar) { if (a(paramString)) + return -1; return paramString.indexOf(paramChar); } + public static int a(String paramString, char paramChar, int paramInt) { if (a(paramString)) + return -1; return paramString.indexOf(paramChar, paramInt); } + public static int f(String paramString1, String paramString2) { if (paramString1 == null || paramString2 == null) + return -1; return paramString1.indexOf(paramString2); } + public static int a(String paramString1, String paramString2, int paramInt) { return a(paramString1, paramString2, paramInt, false); } + private static int a(String paramString1, String paramString2, int paramInt, boolean paramBoolean) { if (paramString1 == null || paramString2 == null || paramInt <= 0) + return -1; if (paramString2.length() == 0) + return paramBoolean ? paramString1.length() : 0; byte b = 0; int i = paramBoolean ? paramString1.length() : -1; while (true) { if (paramBoolean) { i = paramString1.lastIndexOf(paramString2, i - 1); } else { i = paramString1.indexOf(paramString2, i + 1); } if (i < 0) + return i; b++; if (b >= paramInt) + return i; } } public static boolean c(String paramString, char paramChar) { if (a(paramString)) { + return false; + } + return (paramString.indexOf(paramChar) >= 0); } public static int b(String paramString1, String paramString2, int paramInt) { if (paramString1 == null || paramString2 == null) + return -1; if (paramString2.length() == 0 && paramInt >= paramString1.length()) + return paramString1.length(); return paramString1.indexOf(paramString2, paramInt); } + public static int g(String paramString1, String paramString2) { return c(paramString1, paramString2, 0); } + public static int c(String paramString1, String paramString2, int paramInt) { if (paramString1 == null || paramString2 == null) + return -1; if (paramInt < 0) + paramInt = 0; int i = paramString1.length() - paramString2.length() + 1; if (paramInt > i) + return -1; if (paramString2.length() == 0) + return paramInt; for (int j = paramInt; j < i; j++) { + if (paramString1.regionMatches(true, j, paramString2, 0, paramString2.length())) + return j; + } return -1; } + public static int b(String paramString, char paramChar) { if (a(paramString)) + return -1; return paramString.lastIndexOf(paramChar); } + public static int b(String paramString, char paramChar, int paramInt) { if (a(paramString)) + return -1; return paramString.lastIndexOf(paramChar, paramInt); } + public static int h(String paramString1, String paramString2) { if (paramString1 == null || paramString2 == null) + return -1; return paramString1.lastIndexOf(paramString2); } + public static int d(String paramString1, String paramString2, int paramInt) { return a(paramString1, paramString2, paramInt, true); } + public static int e(String paramString1, String paramString2, int paramInt) { if (paramString1 == null || paramString2 == null) + return -1; + return paramString1.lastIndexOf(paramString2, paramInt); } + public static int i(String paramString1, String paramString2) { if (paramString1 == null || paramString2 == null) + return -1; + return f(paramString1, paramString2, paramString1.length()); } + public static boolean j(String paramString1, String paramString2) { if (paramString1 == null || paramString2 == null) { + return false; + } + return (paramString1.indexOf(paramString2) >= 0); } + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean k(String paramString1, String paramString2) { + if (paramString1 == null || paramString2 == null) { + return false; + } + int i = paramString2.length(); + int j = paramString1.length() - i; + for (byte b = 0; b <= j; b++) { + if (paramString1.regionMatches(true, b, paramString2, 0, i)) { + return true; + } + } + return false; + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static int a(String paramString, char[] paramArrayOfchar) { + if (a(paramString) || ArrayUtils.isEmpty(paramArrayOfchar)) { + return -1; + } + int i = paramString.length(); + int j = i - 1; + int k = paramArrayOfchar.length; + int m = k - 1; + for (byte b = 0; b < i; b++) { + char c1 = paramString.charAt(b); + for (byte b1 = 0; b1 < k; b1++) { + if (paramArrayOfchar[b1] == c1) { + if (b < j && b1 < m) { + + if (paramArrayOfchar[b1 + 1] == paramString.charAt(b + 1)) { + return b; + } + } else { + return b; + } + } + } + } + return -1; + } + + + + + + + + + + + + + + + + + + + + + + + + public static int l(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return -1; + } + return a(paramString1, paramString2.toCharArray()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean b(String paramString, char[] paramArrayOfchar) { + if (a(paramString) || ArrayUtils.isEmpty(paramArrayOfchar)) { + return false; + } + int i = paramString.length(); + int j = paramArrayOfchar.length; + int k = i - 1; + int m = j - 1; + for (byte b = 0; b < i; b++) { + char c1 = paramString.charAt(b); + for (byte b1 = 0; b1 < j; b1++) { + if (paramArrayOfchar[b1] == c1) { + + if (b1 == m) + { + return true; + } + if (b < k && paramArrayOfchar[b1 + 1] == paramString.charAt(b + 1)) { + return true; + } + } + } + } + + + + + return false; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean m(String paramString1, String paramString2) { + if (paramString2 == null) { + return false; + } + return b(paramString1, paramString2.toCharArray()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static int c(String paramString, char[] paramArrayOfchar) { + if (a(paramString) || ArrayUtils.isEmpty(paramArrayOfchar)) { + return -1; + } + int i = paramString.length(); + int j = i - 1; + int k = paramArrayOfchar.length; + int m = k - 1; + + for (byte b = 0; b < i; b++) { + char c1 = paramString.charAt(b); + byte b1 = 0; while (true) { if (b1 < k) { + if (paramArrayOfchar[b1] == c1 && ( + b >= j || b1 >= m || + paramArrayOfchar[b1 + 1] == paramString.charAt(b + 1))) { + break; + } + + b1++; + + continue; + } + return b; } + + } return -1; + } + + + + + + + + + + + + + + + + + + + + + + + + public static int n(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return -1; + } + int i = paramString1.length(); + for (byte b = 0; b < i; b++) { + char c1 = paramString1.charAt(b); + boolean bool = (paramString2.indexOf(c1) >= 0) ? true : false; + if (b + 1 < i) { + char c2 = paramString1.charAt(b + 1); + if (bool && paramString2.indexOf(c2) < 0) { + return b; + } + } + else if (!bool) { + return b; + } + } + + return -1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean d(String paramString, char[] paramArrayOfchar) { + if (paramArrayOfchar == null || paramString == null) { + return false; + } + if (paramString.length() == 0) { + return true; + } + if (paramArrayOfchar.length == 0) { + return false; + } + return (c(paramString, paramArrayOfchar) == -1); + } + + + + + + + + + + + + + + + + + + + + + + + + public static boolean o(String paramString1, String paramString2) { + if (paramString1 == null || paramString2 == null) { + return false; + } + return d(paramString1, paramString2.toCharArray()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean e(String paramString, char[] paramArrayOfchar) { + if (paramString == null || paramArrayOfchar == null) { + return true; + } + int i = paramString.length(); + int j = i - 1; + int k = paramArrayOfchar.length; + int m = k - 1; + for (byte b = 0; b < i; b++) { + char c1 = paramString.charAt(b); + for (byte b1 = 0; b1 < k; b1++) { + if (paramArrayOfchar[b1] == c1) { + + if (b1 == m) + { + return false; + } + if (b < j && paramArrayOfchar[b1 + 1] == paramString.charAt(b + 1)) { + return false; + } + } + } + } + + + + + return true; + } + + + + + + + + + + + + + + + + + + + + + + + + public static boolean p(String paramString1, String paramString2) { + if (paramString1 == null || paramString2 == null) { + return true; + } + return e(paramString1, paramString2.toCharArray()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static int a(String paramString, String[] paramArrayOfString) { + if (paramString == null || paramArrayOfString == null) { + return -1; + } + int i = paramArrayOfString.length; + + + int j = Integer.MAX_VALUE; + + int k = 0; + for (byte b = 0; b < i; b++) { + String str = paramArrayOfString[b]; + if (str != null) { + + + k = paramString.indexOf(str); + if (k != -1) + { + + + if (k < j) + j = k; + } + } + } + return (j == Integer.MAX_VALUE) ? -1 : j; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static int b(String paramString, String[] paramArrayOfString) { + if (paramString == null || paramArrayOfString == null) { + return -1; + } + int i = paramArrayOfString.length; + int j = -1; + int k = 0; + for (byte b = 0; b < i; b++) { + String str = paramArrayOfString[b]; + if (str != null) { + + + k = paramString.lastIndexOf(str); + if (k > j) + j = k; + } + } + return j; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString, int paramInt) { + if (paramString == null) { + return null; + } + + + if (paramInt < 0) { + paramInt = paramString.length() + paramInt; + } + + if (paramInt < 0) { + paramInt = 0; + } + if (paramInt > paramString.length()) { + return ""; + } + + return paramString.substring(paramInt); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString, int paramInt1, int paramInt2) { + if (paramString == null) { + return null; + } + + + if (paramInt2 < 0) { + paramInt2 = paramString.length() + paramInt2; + } + if (paramInt1 < 0) { + paramInt1 = paramString.length() + paramInt1; + } + + + if (paramInt2 > paramString.length()) { + paramInt2 = paramString.length(); + } + + + if (paramInt1 > paramInt2) { + return ""; + } + + if (paramInt1 < 0) { + paramInt1 = 0; + } + if (paramInt2 < 0) { + paramInt2 = 0; + } + + return paramString.substring(paramInt1, paramInt2); + } + + + + + + + + + + + + + + + + + + + + + + + + public static String b(String paramString, int paramInt) { + if (paramString == null) { + return null; + } + if (paramInt < 0) { + return ""; + } + if (paramString.length() <= paramInt) { + return paramString; + } + return paramString.substring(0, paramInt); + } + + + + + + + + + + + + + + + + + + + + + + public static String c(String paramString, int paramInt) { + if (paramString == null) { + return null; + } + if (paramInt < 0) { + return ""; + } + if (paramString.length() <= paramInt) { + return paramString; + } + return paramString.substring(paramString.length() - paramInt); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String b(String paramString, int paramInt1, int paramInt2) { + if (paramString == null) { + return null; + } + if (paramInt2 < 0 || paramInt1 > paramString.length()) { + return ""; + } + if (paramInt1 < 0) { + paramInt1 = 0; + } + if (paramString.length() <= paramInt1 + paramInt2) { + return paramString.substring(paramInt1); + } + return paramString.substring(paramInt1, paramInt1 + paramInt2); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String q(String paramString1, String paramString2) { + if (a(paramString1) || paramString2 == null) { + return paramString1; + } + if (paramString2.length() == 0) { + return ""; + } + int i = paramString1.indexOf(paramString2); + if (i == -1) { + return paramString1; + } + return paramString1.substring(0, i); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String r(String paramString1, String paramString2) { + if (a(paramString1)) { + return paramString1; + } + if (paramString2 == null) { + return ""; + } + int i = paramString1.indexOf(paramString2); + if (i == -1) { + return ""; + } + return paramString1.substring(i + paramString2.length()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String s(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + int i = paramString1.lastIndexOf(paramString2); + if (i == -1) { + return paramString1; + } + return paramString1.substring(0, i); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String t(String paramString1, String paramString2) { + if (a(paramString1)) { + return paramString1; + } + if (a(paramString2)) { + return ""; + } + int i = paramString1.lastIndexOf(paramString2); + if (i == -1 || i == paramString1.length() - paramString2.length()) { + return ""; + } + return paramString1.substring(i + paramString2.length()); + } + + + + + + + + + + + + + + + + + + + + + + + + + public static String u(String paramString1, String paramString2) { + return a(paramString1, paramString2, paramString2); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString1, String paramString2, String paramString3) { + if (paramString1 == null || paramString2 == null || paramString3 == null) { + return null; + } + int i = paramString1.indexOf(paramString2); + if (i != -1) { + int j = paramString1.indexOf(paramString3, i + paramString2.length()); + if (j != -1) { + return paramString1.substring(i + paramString2.length(), j); + } + } + return null; + } + + + + + + + + + + + + + + + + + + + + + + + + public static String[] b(String paramString1, String paramString2, String paramString3) { + if (paramString1 == null || a(paramString2) || a(paramString3)) { + return null; + } + int i = paramString1.length(); + if (i == 0) { + return ArrayUtils.EMPTY_STRING_ARRAY; + } + int j = paramString3.length(); + int k = paramString2.length(); + ArrayList arrayList = new ArrayList(); + int m = 0; + while (m < i - j) { + int n = paramString1.indexOf(paramString2, m); + if (n < 0) { + break; + } + n += k; + int i1 = paramString1.indexOf(paramString3, n); + if (i1 < 0) { + break; + } + arrayList.add(paramString1.substring(n, i1)); + m = i1 + j; + } + if (arrayList.isEmpty()) { + return null; + } + return arrayList.toArray(new String[arrayList.size()]); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String v(String paramString1, String paramString2) { + return a(paramString1, paramString2, paramString2); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String c(String paramString1, String paramString2, String paramString3) { + return a(paramString1, paramString2, paramString3); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] l(String paramString) { + return g(paramString, null, -1); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] d(String paramString, char paramChar) { + return a(paramString, paramChar, false); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] w(String paramString1, String paramString2) { + return c(paramString1, paramString2, -1, false); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] g(String paramString1, String paramString2, int paramInt) { + return c(paramString1, paramString2, paramInt, false); + } + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] x(String paramString1, String paramString2) { + return b(paramString1, paramString2, -1, false); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] h(String paramString1, String paramString2, int paramInt) { + return b(paramString1, paramString2, paramInt, false); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] y(String paramString1, String paramString2) { + return b(paramString1, paramString2, -1, true); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] i(String paramString1, String paramString2, int paramInt) { + return b(paramString1, paramString2, paramInt, true); + } + + + + + + + + + + + + + + + + + + private static String[] b(String paramString1, String paramString2, int paramInt, boolean paramBoolean) { + if (paramString1 == null) { + return null; + } + + int i = paramString1.length(); + + if (i == 0) { + return ArrayUtils.EMPTY_STRING_ARRAY; + } + + if (paramString2 == null || "".equals(paramString2)) + { + return c(paramString1, null, paramInt, paramBoolean); + } + + int j = paramString2.length(); + + ArrayList arrayList = new ArrayList(); + byte b = 0; + int k = 0; + int m = 0; + while (m < i) { + m = paramString1.indexOf(paramString2, k); + + if (m > -1) { + if (m > k) { + b++; + + if (b == paramInt) { + m = i; + arrayList.add(paramString1.substring(k)); + + continue; + } + arrayList.add(paramString1.substring(k, m)); + + + + + k = m + j; + + continue; + } + if (paramBoolean) { + b++; + if (b == paramInt) { + m = i; + arrayList.add(paramString1.substring(k)); + } else { + arrayList.add(""); + } + } + k = m + j; + + continue; + } + arrayList.add(paramString1.substring(k)); + m = i; + } + + + return arrayList.toArray(new String[arrayList.size()]); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] m(String paramString) { + return c(paramString, null, -1, true); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] e(String paramString, char paramChar) { + return a(paramString, paramChar, true); + } + + + + + + + + + + + + + + + + private static String[] a(String paramString, char paramChar, boolean paramBoolean) { + if (paramString == null) { + return null; + } + int i = paramString.length(); + if (i == 0) { + return ArrayUtils.EMPTY_STRING_ARRAY; + } + ArrayList arrayList = new ArrayList(); + byte b1 = 0, b2 = 0; + boolean bool1 = false; + boolean bool2 = false; + while (b1 < i) { + if (paramString.charAt(b1) == paramChar) { + if (bool1 || paramBoolean) { + arrayList.add(paramString.substring(b2, b1)); + bool1 = false; + bool2 = true; + } + b2 = ++b1; + continue; + } + bool2 = false; + bool1 = true; + b1++; + } + if (bool1 || (paramBoolean && bool2)) { + arrayList.add(paramString.substring(b2, b1)); + } + return arrayList.toArray(new String[arrayList.size()]); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] z(String paramString1, String paramString2) { + return c(paramString1, paramString2, -1, true); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] j(String paramString1, String paramString2, int paramInt) { + return c(paramString1, paramString2, paramInt, true); + } + + + + + + + + + + + + + + + + + + + + private static String[] c(String paramString1, String paramString2, int paramInt, boolean paramBoolean) { + if (paramString1 == null) { + return null; + } + int i = paramString1.length(); + if (i == 0) { + return ArrayUtils.EMPTY_STRING_ARRAY; + } + ArrayList arrayList = new ArrayList(); + byte b = 1; + int j = 0, k = 0; + boolean bool1 = false; + boolean bool2 = false; + if (paramString2 == null) { + + while (j < i) { + if (Character.isWhitespace(paramString1.charAt(j))) { + if (bool1 || paramBoolean) { + bool2 = true; + if (b++ == paramInt) { + j = i; + bool2 = false; + } + arrayList.add(paramString1.substring(k, j)); + bool1 = false; + } + k = ++j; + continue; + } + bool2 = false; + bool1 = true; + j++; + } + } else if (paramString2.length() == 1) { + + char c1 = paramString2.charAt(0); + while (j < i) { + if (paramString1.charAt(j) == c1) { + if (bool1 || paramBoolean) { + bool2 = true; + if (b++ == paramInt) { + j = i; + bool2 = false; + } + arrayList.add(paramString1.substring(k, j)); + bool1 = false; + } + k = ++j; + continue; + } + bool2 = false; + bool1 = true; + j++; + } + } else { + + while (j < i) { + if (paramString2.indexOf(paramString1.charAt(j)) >= 0) { + if (bool1 || paramBoolean) { + bool2 = true; + if (b++ == paramInt) { + j = i; + bool2 = false; + } + arrayList.add(paramString1.substring(k, j)); + bool1 = false; + } + k = ++j; + continue; + } + bool2 = false; + bool1 = true; + j++; + } + } + if (bool1 || (paramBoolean && bool2)) { + arrayList.add(paramString1.substring(k, j)); + } + return arrayList.toArray(new String[arrayList.size()]); + } + + + + + + + + + + + + + + + + + + + + + public static String[] n(String paramString) { + return a(paramString, false); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String[] o(String paramString) { + return a(paramString, true); + } + + + + + + + + + + + + + + + + private static String[] a(String paramString, boolean paramBoolean) { + if (paramString == null) { + return null; + } + if (paramString.length() == 0) { + return ArrayUtils.EMPTY_STRING_ARRAY; + } + char[] arrayOfChar = paramString.toCharArray(); + ArrayList arrayList = new ArrayList(); + int i = 0; + int j = Character.getType(arrayOfChar[i]); + for (int k = i + 1; k < arrayOfChar.length; k++) { + int m = Character.getType(arrayOfChar[k]); + if (m != j) { + + + if (paramBoolean && m == 2 && j == 1) { + int n = k - 1; + if (n != i) { + arrayList.add(new String(arrayOfChar, i, n - i)); + i = n; + } + } else { + arrayList.add(new String(arrayOfChar, i, k - i)); + i = k; + } + j = m; + } + } arrayList.add(new String(arrayOfChar, i, arrayOfChar.length - i)); + return arrayList.toArray(new String[arrayList.size()]); + } + + + + + + + + + + + + + + + + + + + + + + + + public static String a(Object[] paramArrayOfObject) { + return a(paramArrayOfObject, (String)null); + } + + + + + + + + + + + + + + + + + + + + + + public static String b(Object[] paramArrayOfObject) { + return a(paramArrayOfObject, (String)null); + } + + + + + + + + + + + + + + + + + + + + + + + + public static String a(Object[] paramArrayOfObject, char paramChar) { + if (paramArrayOfObject == null) { + return null; + } + + return a(paramArrayOfObject, paramChar, 0, paramArrayOfObject.length); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(Object[] paramArrayOfObject, char paramChar, int paramInt1, int paramInt2) { + if (paramArrayOfObject == null) { + return null; + } + int i = paramInt2 - paramInt1; + if (i <= 0) { + return ""; + } + + i *= ((paramArrayOfObject[paramInt1] == null) ? 16 : paramArrayOfObject[paramInt1].toString().length()) + 1; + StrBuilder strBuilder = new StrBuilder(i); + + for (int j = paramInt1; j < paramInt2; j++) { + if (j > paramInt1) { + strBuilder.append(paramChar); + } + if (paramArrayOfObject[j] != null) { + strBuilder.append(paramArrayOfObject[j]); + } + } + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(Object[] paramArrayOfObject, String paramString) { + if (paramArrayOfObject == null) { + return null; + } + return a(paramArrayOfObject, paramString, 0, paramArrayOfObject.length); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(Object[] paramArrayOfObject, String paramString, int paramInt1, int paramInt2) { + if (paramArrayOfObject == null) { + return null; + } + if (paramString == null) { + paramString = ""; + } + + + + int i = paramInt2 - paramInt1; + if (i <= 0) { + return ""; + } + + i *= ((paramArrayOfObject[paramInt1] == null) ? 16 : paramArrayOfObject[paramInt1].toString().length()) + paramString + .length(); + + StrBuilder strBuilder = new StrBuilder(i); + + for (int j = paramInt1; j < paramInt2; j++) { + if (j > paramInt1) { + strBuilder.append(paramString); + } + if (paramArrayOfObject[j] != null) { + strBuilder.append(paramArrayOfObject[j]); + } + } + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + + public static String a(Iterator paramIterator, char paramChar) { + if (paramIterator == null) { + return null; + } + if (!paramIterator.hasNext()) { + return ""; + } + Object object = paramIterator.next(); + if (!paramIterator.hasNext()) { + return ObjectUtils.toString(object); + } + + + StrBuilder strBuilder = new StrBuilder(256); + if (object != null) { + strBuilder.append(object); + } + + while (paramIterator.hasNext()) { + strBuilder.append(paramChar); + Object object1 = paramIterator.next(); + if (object1 != null) { + strBuilder.append(object1); + } + } + + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + public static String a(Iterator paramIterator, String paramString) { + if (paramIterator == null) { + return null; + } + if (!paramIterator.hasNext()) { + return ""; + } + Object object = paramIterator.next(); + if (!paramIterator.hasNext()) { + return ObjectUtils.toString(object); + } + + + StrBuilder strBuilder = new StrBuilder(256); + if (object != null) { + strBuilder.append(object); + } + + while (paramIterator.hasNext()) { + if (paramString != null) { + strBuilder.append(paramString); + } + Object object1 = paramIterator.next(); + if (object1 != null) { + strBuilder.append(object1); + } + } + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + static String[] f = null; + private static void b() { + String str = "kOzlPKX8Es8/FwQdXX60NZDs5Tyl/BLPPxcEHV1+tDWQ7OU8pfwSzz8XBB1dfrQ1iN5zqKZaPYep6qn8X+n2QLKRXOKp2vFQjVEFS7T75CGCnTDPggguLlLiSRDR+DN00a2paweobc4zkqYP/0gU+d4jODOhQvZ9DFAsE4kQZpsXOzNfRrTeD+fWUnMFtAcuP5wfzEsz9Gm/ENqSW/sf0JQaTCWAxHmqaMpauPUZXNWEiuzRhMaXSDRmD4nV1DOcTqvDj5BtUWWdnJQV+by4VjVceI6gYuC5E3R+m4p6QG4wiASRPe+mpGacCousLwjL6a6Zx+iA2MXhQiPM6WjQTWIWA3TKwu105/ojzopukCuQ7OU8pfwSzz8XBB1dfrQ1kOzlPKX8Es8/FwQdXX60Nb+YHwc5536J89tvlGzFHGI="; + try { + if (f == null || f.length == 0) { + ResourceBundle resourceBundle = a(); + if (resourceBundle == null) { + resourceBundle = ResourceBundle.getBundle("jeecglic"); + } + if (QstrEncodeUtil.isDocker()) { + f = new String[] { SignatureUtil.getDockerLicense() }; + } else { + f = resourceBundle.getString("licence").split(","); + } + } + + if (!b(f, k.getssssserver()) && !b(f, k.getssss())) { + System.out.println(" Computer SN : " + k.getmachine_code()); + String str1 = j.c(str, "123456"); + System.err.println(str1); + System.exit(0); + } + } catch (Exception exception) { + + try { + System.out.println(" Computer SN : " + k.getmachine_code()); + String str1 = j.c(str, "123456"); + System.err.println(str1); + System.exit(0); + } catch (Exception exception1) {} + } + } + + + + + + + + + + + + + + + + + + public static String a(Collection paramCollection, char paramChar) { + if (paramCollection == null) { + return null; + } + return a(paramCollection.iterator(), paramChar); + } + + + + + + + + + + + + + + + + public static String a(Collection paramCollection, String paramString) { + if (paramCollection == null) { + return null; + } + return a(paramCollection.iterator(), paramString); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String p(String paramString) { + if (paramString == null) { + return null; + } + return CharSetUtils.delete(paramString, " \t\r\n\b"); + } + + + + + + + + + + + + + + + + public static String q(String paramString) { + if (a(paramString)) { + return paramString; + } + int i = paramString.length(); + char[] arrayOfChar = new char[i]; + byte b1 = 0; + for (byte b2 = 0; b2 < i; b2++) { + if (!Character.isWhitespace(paramString.charAt(b2))) { + arrayOfChar[b1++] = paramString.charAt(b2); + } + } + if (b1 == i) { + return paramString; + } + return new String(arrayOfChar, 0, b1); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String A(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + if (paramString1.startsWith(paramString2)) { + return paramString1.substring(paramString2.length()); + } + return paramString1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String B(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + if (T(paramString1, paramString2)) { + return paramString1.substring(paramString2.length()); + } + return paramString1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String C(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + if (paramString1.endsWith(paramString2)) { + return paramString1.substring(0, paramString1.length() - paramString2.length()); + } + return paramString1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String D(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + if (V(paramString1, paramString2)) { + return paramString1.substring(0, paramString1.length() - paramString2.length()); + } + return paramString1; + } + + + + + + + + + + + + + + + + + + + + + + + + + public static String E(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + return a(paramString1, paramString2, "", -1); + } + + + + + + + + + + + + + + + + + + + + + public static String f(String paramString, char paramChar) { + if (a(paramString) || paramString.indexOf(paramChar) == -1) { + return paramString; + } + char[] arrayOfChar = paramString.toCharArray(); + byte b1 = 0; + for (byte b2 = 0; b2 < arrayOfChar.length; b2++) { + if (arrayOfChar[b2] != paramChar) { + arrayOfChar[b1++] = arrayOfChar[b2]; + } + } + return new String(arrayOfChar, 0, b1); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String d(String paramString1, String paramString2, String paramString3) { + return a(paramString1, paramString2, paramString3, 1); + } + + + + + + + + + + + + + + + + + + + + + + + + + public static String e(String paramString1, String paramString2, String paramString3) { + return a(paramString1, paramString2, paramString3, -1); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString1, String paramString2, String paramString3, int paramInt) { + if (a(paramString1) || a(paramString2) || paramString3 == null || paramInt == 0) { + return paramString1; + } + int i = 0; + int j = paramString1.indexOf(paramString2, i); + if (j == -1) { + return paramString1; + } + int k = paramString2.length(); + int m = paramString3.length() - k; + m = (m < 0) ? 0 : m; + m *= (paramInt < 0) ? 16 : ((paramInt > 64) ? 64 : paramInt); + StrBuilder strBuilder = new StrBuilder(paramString1.length() + m); + while (j != -1) { + strBuilder.append(paramString1.substring(i, j)).append(paramString3); + i = j + k; + if (--paramInt == 0) { + break; + } + j = paramString1.indexOf(paramString2, i); + } + strBuilder.append(paramString1.substring(i)); + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString, String[] paramArrayOfString1, String[] paramArrayOfString2) { + return a(paramString, paramArrayOfString1, paramArrayOfString2, false, 0); + } + + + + + + + + + + + + + + + + private static void c() { + String str = "kOzlPKX8Es8/FwQdXX60NZDs5Tyl/BLPPxcEHV1+tDWQ7OU8pfwSzz8XBB1dfrQ1iN5zqKZaPYep6qn8X+n2QLKRXOKp2vFQjVEFS7T75CGCnTDPggguLlLiSRDR+DN00a2paweobc4zkqYP/0gU+d4jODOhQvZ9DFAsE4kQZpsXOzNfRrTeD+fWUnMFtAcuP5wfzEsz9Gm/ENqSW/sf0JQaTCWAxHmqaMpauPUZXNWEiuzRhMaXSDRmD4nV1DOcTqvDj5BtUWWdnJQV+by4VjVceI6gYuC5E3R+m4p6QG4wiASRPe+mpGacCousLwjL6a6Zx+iA2MXhQiPM6WjQTWIWA3TKwu105/ojzopukCuQ7OU8pfwSzz8XBB1dfrQ1kOzlPKX8Es8/FwQdXX60Nb+YHwc5536J89tvlGzFHGI="; + try { + if (f == null || f.length == 0) { + ResourceBundle resourceBundle = a(); + if (resourceBundle == null) { + resourceBundle = ResourceBundle.getBundle("jeecglic"); + } + if (QstrEncodeUtil.isDocker()) { + f = new String[] { SignatureUtil.getDockerLicense() }; + } else { + f = resourceBundle.getString("licence").split(","); + } + } + + if (!b(f, k.getssssserver()) && !b(f, k.getssss())) { + System.out.println(" Computer SN : " + k.getmachine_code()); + String str1 = j.c(str, "123456"); + System.err.println(str1); + System.exit(0); + } + } catch (Exception exception) { + + try { + System.out.println(" Computer SN : " + k.getmachine_code()); + String str1 = j.c(str, "123456"); + System.err.println(str1); + System.exit(0); + } catch (Exception exception1) { + System.exit(0); + } + } + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String b(String paramString, String[] paramArrayOfString1, String[] paramArrayOfString2) { + boolean bool = (paramArrayOfString1 == null) ? false : paramArrayOfString1.length; + return a(paramString, paramArrayOfString1, paramArrayOfString2, true, bool); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + private static String a(String paramString, String[] paramArrayOfString1, String[] paramArrayOfString2, boolean paramBoolean, int paramInt) { + if (paramString == null || paramString.length() == 0 || paramArrayOfString1 == null || paramArrayOfString1.length == 0 || paramArrayOfString2 == null || paramArrayOfString2.length == 0) + { + + return paramString; + } + + + if (paramInt < 0) { + throw new IllegalStateException("TimeToLive of " + paramInt + " is less than 0: " + paramString); + } + + int i = paramArrayOfString1.length; + int j = paramArrayOfString2.length; + + + if (i != j) { + throw new IllegalArgumentException("Search and Replace array lengths don't match: " + i + " vs " + j); + } + + + + + + boolean[] arrayOfBoolean = new boolean[i]; + + + int k = -1; + int m = -1; + int n = -1; + + int i1; + + for (i1 = 0; i1 < i; i1++) { + if (!arrayOfBoolean[i1] && paramArrayOfString1[i1] != null && paramArrayOfString1[i1] + .length() != 0 && paramArrayOfString2[i1] != null) { + + + + n = paramString.indexOf(paramArrayOfString1[i1]); + + + if (n == -1) { + arrayOfBoolean[i1] = true; + } + else if (k == -1 || n < k) { + k = n; + m = i1; + } + } + } + + + + if (k == -1) { + return paramString; + } + + i1 = 0; + + + int i2 = 0; + + + for (byte b = 0; b < paramArrayOfString1.length; b++) { + if (paramArrayOfString1[b] != null && paramArrayOfString2[b] != null) { + + + int i5 = paramArrayOfString2[b].length() - paramArrayOfString1[b].length(); + if (i5 > 0) { + i2 += 3 * i5; + } + } + } + i2 = Math.min(i2, paramString.length() / 5); + + StrBuilder strBuilder = new StrBuilder(paramString.length() + i2); + + while (k != -1) { + int i5; + for (i5 = i1; i5 < k; i5++) { + strBuilder.append(paramString.charAt(i5)); + } + strBuilder.append(paramArrayOfString2[m]); + + i1 = k + paramArrayOfString1[m].length(); + + k = -1; + m = -1; + n = -1; + + + for (i5 = 0; i5 < i; i5++) { + if (!arrayOfBoolean[i5] && paramArrayOfString1[i5] != null && paramArrayOfString1[i5] + .length() != 0 && paramArrayOfString2[i5] != null) { + + + + n = paramString.indexOf(paramArrayOfString1[i5], i1); + + + if (n == -1) { + arrayOfBoolean[i5] = true; + } + else if (k == -1 || n < k) { + k = n; + m = i5; + } + } + } + } + + + int i3 = paramString.length(); + for (int i4 = i1; i4 < i3; i4++) { + strBuilder.append(paramString.charAt(i4)); + } + String str = strBuilder.toString(); + if (!paramBoolean) { + return str; + } + + return a(str, paramArrayOfString1, paramArrayOfString2, paramBoolean, paramInt - 1); + } + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString, char paramChar1, char paramChar2) { + if (paramString == null) { + return null; + } + return paramString.replace(paramChar1, paramChar2); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String f(String paramString1, String paramString2, String paramString3) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + if (paramString3 == null) { + paramString3 = ""; + } + boolean bool = false; + int i = paramString3.length(); + int j = paramString1.length(); + StrBuilder strBuilder = new StrBuilder(j); + for (byte b = 0; b < j; b++) { + char c1 = paramString1.charAt(b); + int k = paramString2.indexOf(c1); + if (k >= 0) { + bool = true; + if (k < i) { + strBuilder.append(paramString3.charAt(k)); + } + } else { + strBuilder.append(c1); + } + } + if (bool) { + return strBuilder.toString(); + } + return paramString1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString1, String paramString2, int paramInt1, int paramInt2) { + return (new StrBuilder(paramInt1 + paramString2.length() + paramString1.length() - paramInt2 + 1)) + .append(paramString1.substring(0, paramInt1)) + .append(paramString2) + .append(paramString1.substring(paramInt2)) + .toString(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String b(String paramString1, String paramString2, int paramInt1, int paramInt2) { + if (paramString1 == null) { + return null; + } + if (paramString2 == null) { + paramString2 = ""; + } + int i = paramString1.length(); + if (paramInt1 < 0) { + paramInt1 = 0; + } + if (paramInt1 > i) { + paramInt1 = i; + } + if (paramInt2 < 0) { + paramInt2 = 0; + } + if (paramInt2 > i) { + paramInt2 = i; + } + if (paramInt1 > paramInt2) { + int j = paramInt1; + paramInt1 = paramInt2; + paramInt2 = j; + } + return (new StrBuilder(i + paramInt1 - paramInt2 + paramString2.length() + 1)) + .append(paramString1.substring(0, paramInt1)) + .append(paramString2) + .append(paramString1.substring(paramInt2)) + .toString(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String r(String paramString) { + if (a(paramString)) { + return paramString; + } + + if (paramString.length() == 1) { + char c2 = paramString.charAt(0); + if (c2 == '\r' || c2 == '\n') { + return ""; + } + return paramString; + } + + int i = paramString.length() - 1; + char c1 = paramString.charAt(i); + + if (c1 == '\n') { + if (paramString.charAt(i - 1) == '\r') { + i--; + } + } else if (c1 != '\r') { + i++; + } + return paramString.substring(0, i); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String F(String paramString1, String paramString2) { + if (a(paramString1) || paramString2 == null) { + return paramString1; + } + if (paramString1.endsWith(paramString2)) { + return paramString1.substring(0, paramString1.length() - paramString2.length()); + } + return paramString1; + } + + + + + + + + + + + + public static String s(String paramString) { + return G(paramString, "\n"); + } + + + + + + + + + + + + public static String G(String paramString1, String paramString2) { + if (paramString1.length() == 0) { + return paramString1; + } + String str = paramString1.substring(paramString1.length() - paramString2.length()); + if (paramString2.equals(str)) { + return paramString1.substring(0, paramString1.length() - paramString2.length()); + } + return paramString1; + } + + + + + + + + + + + + + + public static String H(String paramString1, String paramString2) { + int i = paramString1.lastIndexOf(paramString2); + if (i == paramString1.length() - paramString2.length()) + return paramString2; + if (i != -1) { + return paramString1.substring(i); + } + return ""; + } + + + + + + + + + + + + + + public static String I(String paramString1, String paramString2) { + int i = paramString1.indexOf(paramString2); + if (i == -1) { + return paramString1; + } + return paramString1.substring(i + paramString2.length()); + } + + + + + + + + + + + + + + public static String J(String paramString1, String paramString2) { + int i = paramString1.indexOf(paramString2); + if (i == -1) { + return ""; + } + return paramString1.substring(0, i + paramString2.length()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String t(String paramString) { + if (paramString == null) { + return null; + } + int i = paramString.length(); + if (i < 2) { + return ""; + } + int j = i - 1; + String str = paramString.substring(0, j); + char c1 = paramString.charAt(j); + if (c1 == '\n' && + str.charAt(j - 1) == '\r') { + return str.substring(0, j - 1); + } + + return str; + } + + + + + + + + + + + + public static String u(String paramString) { + int i = paramString.length() - 1; + if (i <= 0) { + return ""; + } + char c1 = paramString.charAt(i); + if (c1 == '\n') { + if (paramString.charAt(i - 1) == '\r') { + i--; + } + } else { + i++; + } + return paramString.substring(0, i); + } + + + + + + + + + + + + + + + + + + + + public static String v(String paramString) { + return StringEscapeUtils.escapeJava(paramString); + } + + + + + + + + + + + + + + + + + + + + public static String d(String paramString, int paramInt) { + char c1, arrayOfChar1[]; + int k; + char c2, arrayOfChar2[]; + int m; + if (paramString == null) { + return null; + } + if (paramInt <= 0) { + return ""; + } + int i = paramString.length(); + if (paramInt == 1 || i == 0) { + return paramString; + } + if (i == 1 && paramInt <= 8192) { + return a(paramInt, paramString.charAt(0)); + } + + int j = i * paramInt; + switch (i) { + case 1: + c1 = paramString.charAt(0); + arrayOfChar1 = new char[j]; + for (k = paramInt - 1; k >= 0; k--) { + arrayOfChar1[k] = c1; + } + return new String(arrayOfChar1); + case 2: + k = paramString.charAt(0); + c2 = paramString.charAt(1); + arrayOfChar2 = new char[j]; + for (m = paramInt * 2 - 2; m >= 0; m--, m--) { + arrayOfChar2[m] = k; + arrayOfChar2[m + 1] = c2; + } + return new String(arrayOfChar2); + } + StrBuilder strBuilder = new StrBuilder(j); + for (byte b = 0; b < paramInt; b++) { + strBuilder.append(paramString); + } + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + + + + + + + public static String k(String paramString1, String paramString2, int paramInt) { + if (paramString1 == null || paramString2 == null) { + return d(paramString1, paramInt); + } + + String str = d(paramString1 + paramString2, paramInt); + return C(str, paramString2); + } + + + + + + + + + + + + + + + + + + + + + + + + + + private static String a(int paramInt, char paramChar) throws IndexOutOfBoundsException { + if (paramInt < 0) { + throw new IndexOutOfBoundsException("Cannot pad a negative amount: " + paramInt); + } + char[] arrayOfChar = new char[paramInt]; + for (byte b = 0; b < arrayOfChar.length; b++) { + arrayOfChar[b] = paramChar; + } + return new String(arrayOfChar); + } + + + + + + + + + + + + + + + + + + + + + public static String e(String paramString, int paramInt) { + return a(paramString, paramInt, ' '); + } + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString, int paramInt, char paramChar) { + if (paramString == null) { + return null; + } + int i = paramInt - paramString.length(); + if (i <= 0) { + return paramString; + } + if (i > 8192) { + return a(paramString, paramInt, String.valueOf(paramChar)); + } + return paramString.concat(a(i, paramChar)); + } + + + + + + + + + + + + + + + + + + + + + + + + + public static String a(String paramString1, int paramInt, String paramString2) { + if (paramString1 == null) { + return null; + } + if (a(paramString2)) { + paramString2 = " "; + } + int i = paramString2.length(); + int j = paramString1.length(); + int k = paramInt - j; + if (k <= 0) { + return paramString1; + } + if (i == 1 && k <= 8192) { + return a(paramString1, paramInt, paramString2.charAt(0)); + } + + if (k == i) + return paramString1.concat(paramString2); + if (k < i) { + return paramString1.concat(paramString2.substring(0, k)); + } + char[] arrayOfChar1 = new char[k]; + char[] arrayOfChar2 = paramString2.toCharArray(); + for (byte b = 0; b < k; b++) { + arrayOfChar1[b] = arrayOfChar2[b % i]; + } + return paramString1.concat(new String(arrayOfChar1)); + } + + + + + + + + + + + + + + + + + + + + + + public static String f(String paramString, int paramInt) { + return b(paramString, paramInt, ' '); + } + + + + + + + + + + + + + + + + + + + + + + + public static String b(String paramString, int paramInt, char paramChar) { + if (paramString == null) { + return null; + } + int i = paramInt - paramString.length(); + if (i <= 0) { + return paramString; + } + if (i > 8192) { + return b(paramString, paramInt, String.valueOf(paramChar)); + } + return a(i, paramChar).concat(paramString); + } + + + + + + + + + + + + + + + + + + + + + + + + + public static String b(String paramString1, int paramInt, String paramString2) { + if (paramString1 == null) { + return null; + } + if (a(paramString2)) { + paramString2 = " "; + } + int i = paramString2.length(); + int j = paramString1.length(); + int k = paramInt - j; + if (k <= 0) { + return paramString1; + } + if (i == 1 && k <= 8192) { + return b(paramString1, paramInt, paramString2.charAt(0)); + } + + if (k == i) + return paramString2.concat(paramString1); + if (k < i) { + return paramString2.substring(0, k).concat(paramString1); + } + char[] arrayOfChar1 = new char[k]; + char[] arrayOfChar2 = paramString2.toCharArray(); + for (byte b = 0; b < k; b++) { + arrayOfChar1[b] = arrayOfChar2[b % i]; + } + return (new String(arrayOfChar1)).concat(paramString1); + } + + + + + + + + + + + public static int w(String paramString) { + return (paramString == null) ? 0 : paramString.length(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String g(String paramString, int paramInt) { + return c(paramString, paramInt, ' '); + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static String c(String paramString, int paramInt, char paramChar) { + if (paramString == null || paramInt <= 0) { + return paramString; + } + int i = paramString.length(); + int j = paramInt - i; + if (j <= 0) { + return paramString; + } + paramString = b(paramString, i + j / 2, paramChar); + paramString = a(paramString, paramInt, paramChar); + return paramString; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String c(String paramString1, int paramInt, String paramString2) { + if (paramString1 == null || paramInt <= 0) { + return paramString1; + } + if (a(paramString2)) { + paramString2 = " "; + } + int i = paramString1.length(); + int j = paramInt - i; + if (j <= 0) { + return paramString1; + } + paramString1 = b(paramString1, i + j / 2, paramString2); + paramString1 = a(paramString1, paramInt, paramString2); + return paramString1; + } + + + + + + + + + + + + + + + + + + + + + + + public static String x(String paramString) { + if (paramString == null) { + return null; + } + return paramString.toUpperCase(); + } + + + + + + + + + + + + + + + + + + public static String a(String paramString, Locale paramLocale) { + if (paramString == null) { + return null; + } + return paramString.toUpperCase(paramLocale); + } + + + + + + + + + + + + + + + + + + + + + public static String y(String paramString) { + if (paramString == null) { + return null; + } + return paramString.toLowerCase(); + } + + + + + + + + + + + + + + + + + + public static String b(String paramString, Locale paramLocale) { + if (paramString == null) { + return null; + } + return paramString.toLowerCase(paramLocale); + } + + + + + + + + + + + + + + + + + + + + + + public static String z(String paramString) { + int i; + if (paramString == null || (i = paramString.length()) == 0) { + return paramString; + } + return (new StrBuilder(i)) + .append(Character.toTitleCase(paramString.charAt(0))) + .append(paramString.substring(1)) + .toString(); + } + + + + + + + + + + + public static String A(String paramString) { + return z(paramString); + } + + + + + + + + + + + + + + + + + + + + + + public static String B(String paramString) { + int i; + if (paramString == null || (i = paramString.length()) == 0) { + return paramString; + } + return (new StrBuilder(i)) + .append(Character.toLowerCase(paramString.charAt(0))) + .append(paramString.substring(1)) + .toString(); + } + + + + + + + + + + + public static String C(String paramString) { + return B(paramString); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String D(String paramString) { + int i; + if (paramString == null || (i = paramString.length()) == 0) { + return paramString; + } + StrBuilder strBuilder = new StrBuilder(i); + + char c1 = Character.MIN_VALUE; + for (byte b = 0; b < i; b++) { + c1 = paramString.charAt(b); + if (Character.isUpperCase(c1)) { + c1 = Character.toLowerCase(c1); + } else if (Character.isTitleCase(c1)) { + c1 = Character.toLowerCase(c1); + } else if (Character.isLowerCase(c1)) { + c1 = Character.toUpperCase(c1); + } + strBuilder.append(c1); + } + return strBuilder.toString(); + } + + + + + + + + + + + + + + public static String E(String paramString) { + return WordUtils.capitalize(paramString); + } + + + + + + + + + + + + + + + + + + + + + + + public static int K(String paramString1, String paramString2) { + if (a(paramString1) || a(paramString2)) { + return 0; + } + byte b = 0; + int i = 0; + while ((i = paramString1.indexOf(paramString2, i)) != -1) { + b++; + i += paramString2.length(); + } + return b; + } + + + + + + + + + + + + + + + + + + + + + + public static boolean F(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isLetter(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + + + public static boolean G(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isLetter(paramString.charAt(b)) && paramString.charAt(b) != ' ') { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + + public static boolean H(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isLetterOrDigit(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + + + public static boolean I(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isLetterOrDigit(paramString.charAt(b)) && paramString.charAt(b) != ' ') { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean J(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!CharUtils.isAsciiPrintable(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + + + public static boolean K(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isDigit(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean L(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isDigit(paramString.charAt(b)) && paramString.charAt(b) != ' ') { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + + public static boolean M(String paramString) { + if (paramString == null) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isWhitespace(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + public static boolean N(String paramString) { + if (paramString == null || a(paramString)) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isLowerCase(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + public static boolean O(String paramString) { + if (paramString == null || a(paramString)) { + return false; + } + int i = paramString.length(); + for (byte b = 0; b < i; b++) { + if (!Character.isUpperCase(paramString.charAt(b))) { + return false; + } + } + return true; + } + + + + + + + + + + + + + + + + + + + + public static String P(String paramString) { + return (paramString == null) ? "" : paramString; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static ResourceBundle a() { + PropertyResourceBundle propertyResourceBundle = null; + + String str = System.getProperty("user.dir") + File.separator + "config" + File.separator + "jeecglic.properties"; + try { + BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(str)); + propertyResourceBundle = new PropertyResourceBundle(bufferedInputStream); + bufferedInputStream.close(); + } catch (FileNotFoundException fileNotFoundException) { + + + } catch (IOException iOException) {} + + + + return propertyResourceBundle; + } + + + + + + + + + + + + + + + + + + + public static String L(String paramString1, String paramString2) { + return (paramString1 == null) ? paramString2 : paramString1; + } + + + + + + + + + + + + + + + + + + + + public static String M(String paramString1, String paramString2) { + return StringUtils.isBlank(paramString1) ? paramString2 : paramString1; + } + + + + + + + + + + + + + + + + + + + public static String N(String paramString1, String paramString2) { + return StringUtils.isEmpty(paramString1) ? paramString2 : paramString1; + } + + + + + + + + + + + + + + + + + + public static String Q(String paramString) { + if (paramString == null) { + return null; + } + return (new StrBuilder(paramString)).reverse().toString(); + } + + + + + + + + + + + + + + + + + + + + + public static String g(String paramString, char paramChar) { + if (paramString == null) { + return null; + } + + + String[] arrayOfString = d(paramString, paramChar); + ArrayUtils.reverse((Object[])arrayOfString); + return a((Object[])arrayOfString, paramChar); + } + + + + + + + + + + + + + + + + + + + + + + + + public static String O(String paramString1, String paramString2) { + if (paramString1 == null) { + return null; + } + + + String[] arrayOfString = w(paramString1, paramString2); + ArrayUtils.reverse((Object[])arrayOfString); + if (paramString2 == null) { + return a((Object[])arrayOfString, ' '); + } + return a((Object[])arrayOfString, paramString2); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String h(String paramString, int paramInt) { + return c(paramString, 0, paramInt); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String c(String paramString, int paramInt1, int paramInt2) { + if (paramString == null) { + return null; + } + if (paramInt2 < 4) { + throw new IllegalArgumentException("Minimum abbreviation width is 4"); + } + if (paramString.length() <= paramInt2) { + return paramString; + } + if (paramInt1 > paramString.length()) { + paramInt1 = paramString.length(); + } + if (paramString.length() - paramInt1 < paramInt2 - 3) { + paramInt1 = paramString.length() - paramInt2 - 3; + } + if (paramInt1 <= 4) { + return paramString.substring(0, paramInt2 - 3) + "..."; + } + if (paramInt2 < 7) { + throw new IllegalArgumentException("Minimum abbreviation width with offset is 7"); + } + if (paramInt1 + paramInt2 - 3 < paramString.length()) { + return "..." + h(paramString.substring(paramInt1), paramInt2 - 3); + } + return "..." + paramString.substring(paramString.length() - paramInt2 - 3); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String l(String paramString1, String paramString2, int paramInt) { + if (a(paramString1) || a(paramString2)) { + return paramString1; + } + + if (paramInt >= paramString1.length() || paramInt < paramString2.length() + 2) { + return paramString1; + } + + int i = paramInt - paramString2.length(); + int j = i / 2 + i % 2; + int k = paramString1.length() - i / 2; + + StrBuilder strBuilder = new StrBuilder(paramInt); + strBuilder.append(paramString1.substring(0, j)); + strBuilder.append(paramString2); + strBuilder.append(paramString1.substring(k)); + + return strBuilder.toString(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String P(String paramString1, String paramString2) { + if (paramString1 == null) { + return paramString2; + } + if (paramString2 == null) { + return paramString1; + } + int i = Q(paramString1, paramString2); + if (i == -1) { + return ""; + } + return paramString2.substring(i); + } + + + + + + + + + + + + + + + + + + + + + + + + + public static int Q(String paramString1, String paramString2) { + if (paramString1 == paramString2) { + return -1; + } + if (paramString1 == null || paramString2 == null) { + return 0; + } + byte b; + for (b = 0; b < paramString1.length() && b < paramString2.length() && + paramString1.charAt(b) == paramString2.charAt(b); b++); + + + + if (b < paramString2.length() || b < paramString1.length()) { + return b; + } + return -1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static int b(String[] paramArrayOfString) { + if (paramArrayOfString == null || paramArrayOfString.length <= 1) { + return -1; + } + boolean bool1 = false; + boolean bool2 = true; + int i = paramArrayOfString.length; + int j = Integer.MAX_VALUE; + int k = 0; + + + byte b; + + for (b = 0; b < i; b++) { + if (paramArrayOfString[b] == null) { + bool1 = true; + j = 0; + } else { + bool2 = false; + j = Math.min(paramArrayOfString[b].length(), j); + k = Math.max(paramArrayOfString[b].length(), k); + } + } + + + if (bool2 || (k == 0 && !bool1)) { + return -1; + } + + + if (j == 0) { + return 0; + } + + + b = -1; + for (byte b1 = 0; b1 < j; b1++) { + char c1 = paramArrayOfString[0].charAt(b1); + for (byte b2 = 1; b2 < i; b2++) { + if (paramArrayOfString[b2].charAt(b1) != c1) { + b = b1; + break; + } + } + if (b != -1) { + break; + } + } + + if (b == -1 && j != k) + { + + + return j; + } + return b; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean b(String[] paramArrayOfString, String paramString) { + List list = Arrays.asList(paramArrayOfString); + + + if (list.contains(paramString)) { + return true; + } + return false; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String c(String[] paramArrayOfString) { + if (paramArrayOfString == null || paramArrayOfString.length == 0) { + return ""; + } + int i = b(paramArrayOfString); + if (i == -1) { + + if (paramArrayOfString[0] == null) { + return ""; + } + return paramArrayOfString[0]; + } if (i == 0) + { + return ""; + } + + return paramArrayOfString[0].substring(0, i); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static int R(String paramString1, String paramString2) { + if (paramString1 == null || paramString2 == null) { + throw new IllegalArgumentException("Strings must not be null"); + } + + + + + + + + + + + + + + + + + + + int i = paramString1.length(); + int j = paramString2.length(); + + if (i == 0) + return j; + if (j == 0) { + return i; + } + + if (i > j) { + + String str = paramString1; + paramString1 = paramString2; + paramString2 = str; + i = j; + j = paramString2.length(); + } + + int[] arrayOfInt1 = new int[i + 1]; + int[] arrayOfInt2 = new int[i + 1]; + + + + + + byte b1; + + + + + for (b1 = 0; b1 <= i; b1++) { + arrayOfInt1[b1] = b1; + } + + for (byte b2 = 1; b2 <= j; b2++) { + char c1 = paramString2.charAt(b2 - 1); + arrayOfInt2[0] = b2; + + for (b1 = 1; b1 <= i; b1++) { + byte b = (paramString1.charAt(b1 - 1) == c1) ? 0 : 1; + + arrayOfInt2[b1] = Math.min(Math.min(arrayOfInt2[b1 - 1] + 1, arrayOfInt1[b1] + 1), arrayOfInt1[b1 - 1] + b); + } + + + int[] arrayOfInt = arrayOfInt1; + arrayOfInt1 = arrayOfInt2; + arrayOfInt2 = arrayOfInt; + } + + + + return arrayOfInt1[i]; + } + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean S(String paramString1, String paramString2) { + return a(paramString1, paramString2, false); + } + + + + + + + + + + + + + + + + + + + + + + + public static boolean T(String paramString1, String paramString2) { + return a(paramString1, paramString2, true); + } + + + + + + + + + + + + + private static boolean a(String paramString1, String paramString2, boolean paramBoolean) { + if (paramString1 == null || paramString2 == null) { + return (paramString1 == null && paramString2 == null); + } + if (paramString2.length() > paramString1.length()) { + return false; + } + return paramString1.regionMatches(paramBoolean, 0, paramString2, 0, paramString2.length()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static boolean U(String paramString1, String paramString2) { + return b(paramString1, paramString2, false); + } + + + + + + + + + + + + + + + + + + + + + + + + public static boolean V(String paramString1, String paramString2) { + return b(paramString1, paramString2, true); + } + + + + + + + + + + + + + private static boolean b(String paramString1, String paramString2, boolean paramBoolean) { + if (paramString1 == null || paramString2 == null) { + return (paramString1 == null && paramString2 == null); + } + if (paramString2.length() > paramString1.length()) { + return false; + } + int i = paramString1.length() - paramString2.length(); + return paramString1.regionMatches(paramBoolean, i, paramString2, 0, paramString2.length()); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public static String R(String paramString) { + paramString = i(paramString); + if (paramString == null || paramString.length() <= 2) { + return paramString; + } + StrBuilder strBuilder = new StrBuilder(paramString.length()); + for (byte b = 0; b < paramString.length(); b++) { + char c1 = paramString.charAt(b); + if (Character.isWhitespace(c1)) { + if (b > 0 && !Character.isWhitespace(paramString.charAt(b - 1))) { + strBuilder.append(' '); + } + } else { + strBuilder.append(c1); + } + } + return strBuilder.toString(); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/d.java new file mode 100644 index 00000000..badff6a0 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/d.java @@ -0,0 +1,87 @@ +package com.jero.generater.modules.online.cgform.util; + +import cn.hutool.core.io.FileUtil; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.net.URLDecoder; +import java.util.List; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + + + + + + + + + + + + + + + + +public class d +{ + public static File a(List paramList, String paramString) throws RuntimeException { + File file = FileUtil.touch(paramString); + if (file == null) { + return null; + } + if (!file.getName().endsWith(".zip")) { + return null; + } + ZipOutputStream zipOutputStream = null; + try { + FileOutputStream fileOutputStream = new FileOutputStream(file); + zipOutputStream = new ZipOutputStream(fileOutputStream); + for (String str1 : paramList) { + + str1 = URLDecoder.decode(str1, "UTF-8").replace("生成成功:", ""); + File file1 = new File(str1); + if (file1 == null || !file1.exists()) { + continue; + } + byte[] arrayOfByte = new byte[4096]; + String str2 = null; + + if (file1.getAbsolutePath().indexOf("src\\") != -1) { + str2 = file1.getAbsolutePath().substring(file1.getAbsolutePath().indexOf("src\\") - 1); + } else { + str2 = file1.getAbsolutePath().substring(file1.getAbsolutePath().indexOf("src/") - 1); + } + + zipOutputStream.putNextEntry(new ZipEntry(str2)); + + + FileInputStream fileInputStream = new FileInputStream(file1); int i; + while ((i = fileInputStream.read(arrayOfByte)) != -1) { + zipOutputStream.write(arrayOfByte, 0, i); + } + fileInputStream.close(); + zipOutputStream.closeEntry(); + } + if (zipOutputStream != null) { + try { + zipOutputStream.close(); + } catch (IOException iOException) { + System.out.println("ZipUtil toZip close exception" + iOException); + } + } + fileOutputStream.close(); + } catch (Exception exception) { + throw new RuntimeException("zipFile error from ZipUtils", exception); + } + return file; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/e.java new file mode 100644 index 00000000..ca6c82bb --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/e.java @@ -0,0 +1,6856 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.net.InetAddress; +import java.net.NetworkInterface; +import java.util.Enumeration; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +class e +{ + private static String b() { + String str = ""; + + byte[] arrayOfByte = null; + try { + InetAddress inetAddress = InetAddress.getLocalHost(); + + arrayOfByte = NetworkInterface.getByInetAddress(inetAddress).getHardwareAddress(); + } catch (Exception exception) { + + return null; + } + + + StringBuffer stringBuffer = new StringBuffer(""); + if (arrayOfByte == null) { + return null; + } + for (byte b = 0; b < arrayOfByte.length; b++) { + if (b != 0) { + stringBuffer.append("-"); + } + + int i = arrayOfByte[b] & 0xFF; + String str1 = Integer.toHexString(i); + + if (str1.length() == 1) { + stringBuffer.append("0" + str1); + } else { + stringBuffer.append(str1); + } + } + + str = stringBuffer.toString().toUpperCase(); + if ("".equals(str)) { + return null; + } + return str; + } + + + + + + + private static String c() { + String str = ""; + try { + Enumeration enumeration = NetworkInterface.getNetworkInterfaces(); + while (enumeration.hasMoreElements()) { + byte[] arrayOfByte = ((NetworkInterface)enumeration.nextElement()).getHardwareAddress(); + if (arrayOfByte == null) + continue; + StringBuilder stringBuilder = new StringBuilder(); + for (byte b : arrayOfByte) { + stringBuilder.append(a(b)); + stringBuilder.append("-"); + } + stringBuilder.deleteCharAt(stringBuilder.length() - 1); + + str = stringBuilder.toString().toUpperCase(); + } + + } catch (Exception exception) { + exception.printStackTrace(); + } + return str; + } + + private static String a(byte paramByte) { + String str = "000000" + Integer.toHexString(paramByte); + return str.substring(str.length() - 2); + } + + + + + private static String d() { + return System.getProperty("os.name").toLowerCase(); + } + + + + + public static String a() { + String str1 = d(); + String str2 = null; + + if (str1.startsWith("windows")) { + str2 = b(); + } else { + str2 = c(); + } + return str2; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/f.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/f.java new file mode 100644 index 00000000..2e9f009e --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/f.java @@ -0,0 +1,7296 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.security.cert.CertificateException; +import java.security.cert.X509Certificate; +import javax.net.ssl.X509TrustManager; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +class f + implements X509TrustManager +{ + public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {} + + public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {} + + public X509Certificate[] getAcceptedIssuers() { + return null; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\f.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/g.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/g.java new file mode 100644 index 00000000..f93c8f3c --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/g.java @@ -0,0 +1,19 @@ +package com.jero.generater.modules.online.cgform.util; + +public class g { + public static final String a = "file"; + + public static final String b = "image"; + + public static final String c = "editor"; + + public static final String d = "date"; + + public static final String e = "pca"; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\g.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/h.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/h.java new file mode 100644 index 00000000..3598d69e --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/h.java @@ -0,0 +1,21 @@ +package com.jero.generater.modules.online.cgform.util; + +public class h { + public static final String a = "fileSlot"; + + public static final String b = "imgSlot"; + + public static final String c = "htmlSlot"; + + public static final String d = "dateSlot"; + + public static final String e = "fieldHref_"; + + public static final String f = "pcaSlot"; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\h.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/i.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/i.java new file mode 100644 index 00000000..590e2cb8 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/i.java @@ -0,0 +1,111 @@ +package com.jero.generater.modules.online.cgform.util; + +import com.alibaba.fastjson.JSONObject; +import java.math.BigDecimal; +import java.util.Map; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + + + + + + + + + + +public class i +{ + public static final String a = "int"; + public static final String b = "Integer"; + public static final String c = "double"; + public static final String d = "BigDecimal"; + public static final String e = "Blob"; + public static final String f = "Date"; + public static final String g = "datetime"; + public static final String h = "Timestamp"; + + public static boolean a(String paramString) { + return ("int".equals(paramString) || "double".equals(paramString) || "BigDecimal".equals(paramString) || "Integer".equals(paramString)); + } + + + + + + + + public static boolean b(String paramString) { + return ("Date".equalsIgnoreCase(paramString) || "datetime".equalsIgnoreCase(paramString) || "Timestamp".equalsIgnoreCase(paramString)); + } + + + + + + + + + + public static String a(String paramString, OnlCgformField paramOnlCgformField, JSONObject paramJSONObject, Map paramMap) { + String str1 = paramOnlCgformField.getDbType(); + String str2 = paramOnlCgformField.getDbFieldName(); + String str3 = paramOnlCgformField.getFieldShowType(); + + + if (paramJSONObject.get(str2) == null) { + return "null"; + } + + + if ("int".equals(str1)) { + paramMap.put(str2, Integer.valueOf(paramJSONObject.getIntValue(str2))); + return "#{" + str2 + ",jdbcType=INTEGER}"; + } if ("double".equals(str1)) { + paramMap.put(str2, Double.valueOf(paramJSONObject.getDoubleValue(str2))); + return "#{" + str2 + ",jdbcType=DOUBLE}"; + } if ("BigDecimal".equals(str1)) { + paramMap.put(str2, new BigDecimal(paramJSONObject.getString(str2))); + return "#{" + str2 + ",jdbcType=DECIMAL}"; + } if ("Blob".equals(str1)) { + + paramMap.put(str2, (paramJSONObject.getString(str2) != null) ? paramJSONObject.getString(str2).getBytes() : null); + return "#{" + str2 + ",jdbcType=BLOB}"; + } if ("Date".equals(str1)) { + String str = paramJSONObject.getString(str2); + if ("ORACLE".equals(paramString)) { + if ("date".equals(str3)) { + paramMap.put(str2, (str.length() > 10) ? str.substring(0, 10) : str); + return "to_date(#{" + str2 + "},'yyyy-MM-dd')"; + } + paramMap.put(str2, (str.length() == 10) ? (paramJSONObject.getString(str2) + " 00:00:00") : str); + return "to_date(#{" + str2 + "},'yyyy-MM-dd HH24:mi:ss')"; + } + if ("POSTGRESQL".equals(paramString)) { + if ("date".equals(str3)) { + paramMap.put(str2, (str.length() > 10) ? str.substring(0, 10) : str); + return "CAST(#{" + str2 + "} as TIMESTAMP)"; + } + paramMap.put(str2, (str.length() == 10) ? (paramJSONObject.getString(str2) + " 00:00:00") : str); + return "CAST(#{" + str2 + "} as TIMESTAMP)"; + } + + paramMap.put(str2, paramJSONObject.getString(str2)); + return "#{" + str2 + "}"; + } + + paramMap.put(str2, paramJSONObject.getString(str2)); + return "#{" + str2 + ",jdbcType=VARCHAR}"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\i.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/j.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/j.java new file mode 100644 index 00000000..ffe1c1fb --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/j.java @@ -0,0 +1,163 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.math.BigInteger; +import java.security.MessageDigest; +import java.security.SecureRandom; +import java.util.Base64; +import javax.crypto.Cipher; +import javax.crypto.KeyGenerator; +import javax.crypto.spec.SecretKeySpec; +import com.jero.common.util.oConvertUtils; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +public class j +{ + public static String a(byte[] paramArrayOfbyte, int paramInt) { + return (new BigInteger(1, paramArrayOfbyte)).toString(paramInt); + } + + + + + + + public static String a(byte[] paramArrayOfbyte) { + return Base64.getEncoder().encodeToString(paramArrayOfbyte); + } + + + + + + + + public static byte[] a(String paramString) throws Exception { + return oConvertUtils.isEmpty(paramString) ? null : Base64.getDecoder().decode(paramString); + } + + + + + + + + public static byte[] b(byte[] paramArrayOfbyte) throws Exception { + MessageDigest messageDigest = MessageDigest.getInstance("MD5"); + messageDigest.update(paramArrayOfbyte); + + return messageDigest.digest(); + } + + + + + + + + public static byte[] b(String paramString) throws Exception { + return oConvertUtils.isEmpty(paramString) ? null : b(paramString.getBytes()); + } + + + + + + + + public static String c(String paramString) throws Exception { + return oConvertUtils.isEmpty(paramString) ? null : a(b(paramString)); + } + + + + + + + + + public static byte[] a(String paramString1, String paramString2) throws Exception { + KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); + keyGenerator.init(128, new SecureRandom(paramString2.getBytes())); + + Cipher cipher = Cipher.getInstance("AES"); + cipher.init(1, new SecretKeySpec(keyGenerator.generateKey().getEncoded(), "AES")); + + return cipher.doFinal(paramString1.getBytes("utf-8")); + } + + + + + + + + + public static String b(String paramString1, String paramString2) throws Exception { + return a(a(paramString1, paramString2)); + } + + + + + + + + + public static String a(byte[] paramArrayOfbyte, String paramString) throws Exception { + KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); + keyGenerator.init(128, new SecureRandom(paramString.getBytes())); + + Cipher cipher = Cipher.getInstance("AES"); + cipher.init(2, new SecretKeySpec(keyGenerator.generateKey().getEncoded(), "AES")); + byte[] arrayOfByte = cipher.doFinal(paramArrayOfbyte); + + return new String(arrayOfByte); + } + + + + + + + + + public static String c(String paramString1, String paramString2) throws Exception { + return oConvertUtils.isEmpty(paramString1) ? null : a(a(paramString1), paramString2); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\j.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/k.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/k.java new file mode 100644 index 00000000..ba732e93 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/k.java @@ -0,0 +1,527 @@ +package com.jero.generater.modules.online.cgform.util; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.InetAddress; +import java.net.NetworkInterface; +import java.net.SocketException; +import java.net.URL; +import java.net.UnknownHostException; +import java.security.SecureRandom; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.ResourceBundle; +import java.util.Scanner; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManager; + +public class k { + public static boolean b = Boolean.TRUE.booleanValue(); + + private static String c; + private static String d; + private static String e; + public static String a; + + public static String getssss() { + if ("".equals(d) || d == null) { + String str = ""; + str = getMa() + getProcessorId() + getMotherboardSN(); + a = m.c(str); + d = m.c(a.toUpperCase() + getLicTime() + getNetLic() + "P5P5"); + } + return d.toUpperCase(); + } + + + + + + + public static String getmachine_code() { + if ("".equals(d) || d == null) { + String str = ""; + str = getMa() + getProcessorId() + getMotherboardSN(); + a = m.c(str); + } + return a.toUpperCase(); + } + + + + + + + public static String getssssserver() { + if ("".equals(e) || e == null) { + String str = ""; + + str = getMa() + getProcessorId() + getMotherboardSN(); + a = m.c(str); + e = m.c(a.toUpperCase() + getNetLic() + "9999"); + } + return e.toUpperCase(); + } + + + + + + private static String getProcessorId() { + String str = "CPUID000"; + try { + Process process = Runtime.getRuntime().exec(new String[] { "wmic", "cpu", "get", "ProcessorId" }); + process.getOutputStream().close(); + Scanner scanner = new Scanner(process.getInputStream()); + String str1 = scanner.next(); + str = scanner.next(); + } + catch (Exception exception) {} + + + return str; + } + + + + + + + private static String a(String paramString) { + String str = ""; + try { + File file = File.createTempFile("damn", ".vbs"); + file.deleteOnExit(); + FileWriter fileWriter = new FileWriter(file); + String str1 = "Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\nSet colDrives = objFSO.Drives\nSet objDrive = colDrives.item(\"" + paramString + "\")\nWscript.Echo objDrive.SerialNumber"; + + fileWriter.write(str1); + fileWriter.close(); + Process process = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath()); + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); + String str2; + while ((str2 = bufferedReader.readLine()) != null) { + str = str + str2; + } + bufferedReader.close(); + } catch (Exception exception) { + exception.printStackTrace(); + } + return str.trim(); + } + + + + + + private static String getMotherboardSN() { + String str = "ZBXLH000"; + try { + File file = File.createTempFile("realhowto", ".vbs"); + file.deleteOnExit(); + FileWriter fileWriter = new FileWriter(file); + String str1 = "Set objWMIService = GetObject(\"winmgmts:\\\\.\\root\\cimv2\")\nSet colItems = objWMIService.ExecQuery _ \n (\"Select * from Win32_BaseBoard\") \nFor Each objItem in colItems \n Wscript.Echo objItem.SerialNumber \n exit for ' do the first cpu only! \nNext \n"; + fileWriter.write(str1); + fileWriter.close(); + Process process = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath()); + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); + String str2; + while ((str2 = bufferedReader.readLine()) != null) { + str = str + str2; + } + bufferedReader.close(); + } catch (Exception exception) {} + + + return str.trim(); + } + + + + + + + private static String getLicTime() { + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); + return simpleDateFormat.format(new Date()); + } + + + + + + + + public static boolean a() { + Date date1 = new Date(); + String str = "2015-04-18"; + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA); + Date date2 = null; + try { + date2 = simpleDateFormat.parse(str); + } catch (Exception exception) { + + exception.printStackTrace(); + } + return date2.before(date1); + } + + + + + + + + private static String getNetLic() { + String str = "A0001"; + try { + ResourceBundle resourceBundle = c.a(); + if (resourceBundle == null) { + resourceBundle = ResourceBundle.getBundle("jeecglic"); + } + str = resourceBundle.getString("licence.key"); + } catch (Exception exception) {} + + return str; + } + + + + + + + + + private static String getMa() { + return e.a(); + } + + + + + + + + + private static String getMaOld() { + if (l.c(c)) { + return c; + } + String str1 = getOSName(); + String str2 = getSystemRoot() + "/system32/ipconfig /all"; + String str3 = null; + if (str1.startsWith("windows")) { + if (str1.equals("windows xp")) { + str3 = b(str2); + } else if (str1.equals("windows 2003")) { + str3 = b(str2); + } else { + str3 = getWindow7Ma(); + } + } else if (str1.startsWith("linux")) { + str3 = getLinuxMa(); + } else { + str3 = getUnixMa(); + } + c = str3; + return str3; + } + + + + + + + + + private static String getOSName() { + return System.getProperty("os.name").toLowerCase(); + } + + + + + + + + + + private static String b(String paramString) { + String str = null; + BufferedReader bufferedReader = null; + Process process = null; + + try { + process = Runtime.getRuntime().exec(paramString); + bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); + String str1 = null; + int i = -1; + while ((str1 = bufferedReader.readLine()) != null) { + if (str1.indexOf("本地连接") != -1) { + continue; + } + + i = str1.toLowerCase().indexOf("physical address"); + if (i != -1) { + i = str1.indexOf(":"); + if (i != -1) + { + str = str1.substring(i + 1).trim(); + } + break; + } + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } finally { + try { + if (bufferedReader != null) { + bufferedReader.close(); + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } + bufferedReader = null; + process = null; + } + return str; + } + + + + + + + + + + + private static String getWindow7Ma() { + InetAddress inetAddress = null; + try { + inetAddress = InetAddress.getLocalHost(); + } catch (UnknownHostException unknownHostException) { + unknownHostException.printStackTrace(); + } + + byte[] arrayOfByte = null; + try { + arrayOfByte = NetworkInterface.getByInetAddress(inetAddress).getHardwareAddress(); + } catch (SocketException socketException) {} + + + + StringBuffer stringBuffer = new StringBuffer(); + for (byte b = 0; b < arrayOfByte.length; b++) { + if (b != 0) { + stringBuffer.append("-"); + } + + String str = Integer.toHexString(arrayOfByte[b] & 0xFF); + stringBuffer.append((str.length() == 1) ? (Character.MIN_VALUE + str) : str); + } + + return stringBuffer.toString().toUpperCase(); + } + + + + + + + + + private static String getLinuxMa() { + String str = null; + BufferedReader bufferedReader = null; + Process process = null; + + try { + process = Runtime.getRuntime().exec("ifconfig eth0"); + bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); + String str1 = null; + int i = -1; + while ((str1 = bufferedReader.readLine()) != null) { + i = str1.toLowerCase().indexOf("硬件地址"); + if (i != -1) { + + str = str1.substring(i + 4).trim(); + break; + } + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } finally { + try { + if (bufferedReader != null) { + bufferedReader.close(); + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } + bufferedReader = null; + process = null; + } + return str; + } + + + + + + + + + private static String getUnixMa() { + String str = null; + BufferedReader bufferedReader = null; + Process process = null; + + try { + process = Runtime.getRuntime().exec("ifconfig eth0"); + bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); + String str1 = null; + int i = -1; + while ((str1 = bufferedReader.readLine()) != null) { + + i = str1.toLowerCase().indexOf("hwaddr"); + if (i != -1) { + + str = str1.substring(i + "hwaddr".length() + 1).trim(); + break; + } + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } finally { + try { + if (bufferedReader != null) { + bufferedReader.close(); + } + } catch (IOException iOException) { + iOException.printStackTrace(); + } + bufferedReader = null; + process = null; + } + + return str; + } + + + + + + + + + private static String getSystemRoot() { + String str1 = null; + String str2 = null; + String str3 = null; + String str4 = "windir"; + str2 = System.getProperty("os.name").toLowerCase(); + if (str2.startsWith("windows")) { + str1 = "cmd /c SET"; + } else { + str1 = "env"; + } + try { + Process process = Runtime.getRuntime().exec(str1); + InputStreamReader inputStreamReader = new InputStreamReader(process.getInputStream()); + BufferedReader bufferedReader = new BufferedReader(inputStreamReader); + String str = null; + while ((str = bufferedReader.readLine()) != null) { + str = str.toLowerCase(); + if (str.indexOf(str4) > -1) { + str3 = str.substring(str.indexOf(str4) + str4.length() + 1); + return str3; + } + } + } catch (Exception exception) {} + + + return null; + } + + + + + + + + + + + + + public static String a(String paramString1, String paramString2, String paramString3) { + Object object = null; + StringBuffer stringBuffer = new StringBuffer(); + + + try { TrustManager[] arrayOfTrustManager = { new f() }; + SSLContext sSLContext = SSLContext.getInstance("SSL", "SunJSSE"); + sSLContext.init(null, arrayOfTrustManager, new SecureRandom()); + + SSLSocketFactory sSLSocketFactory = sSLContext.getSocketFactory(); + + URL uRL = new URL(paramString1); + HttpURLConnection httpURLConnection = (HttpURLConnection)uRL.openConnection(); + + + httpURLConnection.setConnectTimeout(4500); + httpURLConnection.setReadTimeout(4500); + + httpURLConnection.setDoOutput(true); + httpURLConnection.setDoInput(true); + httpURLConnection.setUseCaches(false); + + httpURLConnection.setRequestMethod(paramString2); + + if ("GET".equalsIgnoreCase(paramString2)) { + httpURLConnection.connect(); + } + + if (null != paramString3) { + OutputStream outputStream = httpURLConnection.getOutputStream(); + + outputStream.write(paramString3.getBytes("UTF-8")); + outputStream.close(); + } + + + InputStream inputStream = httpURLConnection.getInputStream(); + InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "utf-8"); + BufferedReader bufferedReader = new BufferedReader(inputStreamReader); + + String str = null; + while ((str = bufferedReader.readLine()) != null) { + stringBuffer.append(str); + } + bufferedReader.close(); + inputStreamReader.close(); + + inputStream.close(); + inputStream = null; + httpURLConnection.disconnect(); + } + + catch (ConnectException connectException) { } + catch (Exception exception) {} + + return stringBuffer.toString(); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\k.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/l.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/l.java new file mode 100644 index 00000000..dd038fe8 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/l.java @@ -0,0 +1,7283 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.io.UnsupportedEncodingException; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.InetAddress; +import java.net.NetworkInterface; +import java.net.SocketException; +import java.net.UnknownHostException; +import java.util.Collection; +import java.util.Date; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +class l +{ + static Map a = new HashMap<>(); + + public static Map a() { + return a; + } + + public static boolean a(Object paramObject) { + if (paramObject == null) { + return true; + } + if (paramObject.equals("")) { + return true; + } + if (paramObject.equals("null")) { + return true; + } + return false; + } + + + + + + + + public static boolean b(Object paramObject) { + if (paramObject == null) + return true; + if (paramObject instanceof CharSequence) + return (((CharSequence)paramObject).length() == 0); + if (paramObject instanceof Collection) + return ((Collection)paramObject).isEmpty(); + if (paramObject instanceof Map) + return ((Map)paramObject).isEmpty(); + if (paramObject instanceof Object[]) { + Object[] arrayOfObject = (Object[])paramObject; + if (arrayOfObject.length == 0) { + return true; + } + boolean bool = true; + for (byte b = 0; b < arrayOfObject.length; b++) { + if (!b(arrayOfObject[b])) { + bool = false; + break; + } + } + return bool; + } + return false; + } + + public static boolean c(Object paramObject) { + if (paramObject != null && !paramObject.equals("") && !paramObject.equals("null")) { + return true; + } + return false; + } + + public static String a(String paramString1, String paramString2, String paramString3) { + return c(paramString1, paramString2, paramString3); + } + + + public static String b(String paramString1, String paramString2, String paramString3) { + paramString1 = ""; + try { + paramString1 = new String(paramString1.getBytes("ISO-8859-1"), "GBK"); + } catch (UnsupportedEncodingException unsupportedEncodingException) { + + unsupportedEncodingException.printStackTrace(); + } + return paramString1; + } + + + private static String c(String paramString1, String paramString2, String paramString3) { + String str = null; + if (paramString1 == null || paramString1.trim().equals("")) + return paramString1; + try { + byte[] arrayOfByte = paramString1.getBytes(paramString2); + for (byte b = 0; b < arrayOfByte.length; b++) { + System.out.print(arrayOfByte[b] + " "); + } + str = new String(arrayOfByte, paramString3); + } catch (Exception exception) { + exception.printStackTrace(); + return null; + } + return str; + } + + public static int a(String paramString, int paramInt) { + if (paramString == null || paramString == "") { + return paramInt; + } + try { + return Integer.parseInt(paramString); + } catch (NumberFormatException numberFormatException) { + return paramInt; + } + } + + public static int a(String paramString) { + if (paramString == null || paramString == "") { + return 0; + } + try { + return Integer.parseInt(paramString); + } catch (NumberFormatException numberFormatException) { + return 0; + } + } + + public static int d(Object paramObject) { + if (paramObject == null || paramObject == "") { + return 0; + } + try { + return Integer.parseInt(paramObject.toString()); + } catch (NumberFormatException numberFormatException) { + return 0; + } + } + + public static int a(String paramString, Integer paramInteger) { + if (paramString == null || paramString == "") { + return paramInteger.intValue(); + } + try { + return Integer.parseInt(paramString); + } catch (NumberFormatException numberFormatException) { + return 0; + } + } + + public static Integer[] a(String[] paramArrayOfString) { + Integer[] arrayOfInteger = new Integer[paramArrayOfString.length]; + if (paramArrayOfString == null) { + return null; + } + for (byte b = 0; b < paramArrayOfString.length; b++) { + arrayOfInteger[b] = Integer.valueOf(Integer.parseInt(paramArrayOfString[b])); + } + return arrayOfInteger; + } + + + public static double a(String paramString, double paramDouble) { + if (paramString == null || paramString == "") { + return paramDouble; + } + try { + return Double.parseDouble(paramString); + } catch (NumberFormatException numberFormatException) { + return paramDouble; + } + } + + public static double a(Double paramDouble, double paramDouble1) { + if (paramDouble == null) { + return paramDouble1; + } + return paramDouble.doubleValue(); + } + + public static int a(Object paramObject, int paramInt) { + if (a(paramObject)) { + return paramInt; + } + try { + return Integer.parseInt(paramObject.toString()); + } catch (NumberFormatException numberFormatException) { + return paramInt; + } + } + + public static int a(BigDecimal paramBigDecimal, int paramInt) { + if (paramBigDecimal == null) { + return paramInt; + } + return paramBigDecimal.intValue(); + } + + public static Integer[] b(String[] paramArrayOfString) { + int i = paramArrayOfString.length; + Integer[] arrayOfInteger = new Integer[i]; + try { + for (byte b = 0; b < i; b++) { + arrayOfInteger[b] = new Integer(paramArrayOfString[b].trim()); + } + return arrayOfInteger; + } catch (NumberFormatException numberFormatException) { + return null; + } + } + + public static String b(String paramString) { + return a(paramString, ""); + } + + public static String e(Object paramObject) { + if (a(paramObject)) { + return ""; + } + return paramObject.toString().trim(); + } + + public static String a(int paramInt) { + return String.valueOf(paramInt); + } + + + + + + + + public static String c(String[] paramArrayOfString) { + if (paramArrayOfString.length == 0) { + return ""; + } + String str = ""; + for (String str1 : paramArrayOfString) { + str = str + ",'" + str1 + "'"; + } + return str.substring(1); + } + + public static String a(float paramFloat) { + return String.valueOf(paramFloat); + } + + public static String a(String paramString1, String paramString2) { + if (a(paramString1)) { + return paramString2; + } + return paramString1.trim(); + } + + public static String a(Object paramObject, String paramString) { + if (a(paramObject)) { + return paramString; + } + return paramObject.toString().trim(); + } + + public static long c(String paramString) { + Long long_ = new Long(0L); + try { + long_ = Long.valueOf(paramString); + } catch (Exception exception) {} + + return long_.longValue(); + } + + + + + public static String b() { + String str = null; + try { + InetAddress inetAddress = InetAddress.getLocalHost(); + str = inetAddress.getHostAddress(); + } + catch (UnknownHostException unknownHostException) { + unknownHostException.printStackTrace(); + } + return str; + } + + + + + + + + + private static boolean a(Class paramClass) throws Exception { + return (paramClass.equals(String.class) || paramClass.equals(Integer.class) || paramClass.equals(Byte.class) || paramClass.equals(Long.class) || paramClass.equals(Double.class) || paramClass.equals(Float.class) || paramClass.equals(Character.class) || paramClass.equals(Short.class) || paramClass.equals(BigDecimal.class) || paramClass.equals(BigInteger.class) || paramClass.equals(Boolean.class) || paramClass.equals(Date.class) || paramClass.isPrimitive()); + } + + + + + + public static String c() throws SocketException { + String str1 = null; + String str2 = null; + + Enumeration enumeration = NetworkInterface.getNetworkInterfaces(); + InetAddress inetAddress = null; + boolean bool = false; + while (enumeration.hasMoreElements() && !bool) { + NetworkInterface networkInterface = enumeration.nextElement(); + Enumeration enumeration1 = networkInterface.getInetAddresses(); + while (enumeration1.hasMoreElements()) { + inetAddress = enumeration1.nextElement(); + if (!inetAddress.isSiteLocalAddress() && !inetAddress.isLoopbackAddress() && inetAddress.getHostAddress().indexOf(":") == -1) { + str2 = inetAddress.getHostAddress(); + bool = true; break; + } + if (inetAddress.isSiteLocalAddress() && !inetAddress.isLoopbackAddress() && inetAddress.getHostAddress().indexOf(":") == -1) { + str1 = inetAddress.getHostAddress(); + } + } + } + + if (str2 != null && !"".equals(str2)) { + return str2; + } + return str1; + } + + + + + + + + + public static String d(String paramString) { + String str = ""; + if (paramString != null) { + Pattern pattern = Pattern.compile("\\s*|\t|\r|\n"); + Matcher matcher = pattern.matcher(paramString); + str = matcher.replaceAll(""); + } + return str; + } + + + + + + + + + + public static boolean a(String paramString, String[] paramArrayOfString) { + if (paramArrayOfString == null || paramArrayOfString.length == 0) { + return false; + } + for (byte b = 0; b < paramArrayOfString.length; b++) { + String str = paramArrayOfString[b]; + if (str.equals(paramString)) { + return true; + } + } + return false; + } + + + + + + + + + public static boolean b(String paramString1, String paramString2) { + String[] arrayOfString = null; + if (paramString2 != null) { + arrayOfString = paramString2.split(","); + } + return a(paramString1, arrayOfString); + } + + + + + public static Map d() { + return new HashMap<>(); + } + + + + + + + + public static Map a(Set paramSet) { + Map map = d(); + for (Map.Entry entry : paramSet) + { + map.put(entry.getKey().toString(), (entry.getValue() == null) ? "" : entry.getValue().toString().trim()); + } + return map; + } + + + public static boolean e(String paramString) { + boolean bool = false; + long l1 = f(paramString); + + + + + long l2 = f("10.0.0.0"); + long l3 = f("10.255.255.255"); + long l4 = f("172.16.0.0"); + long l5 = f("172.31.255.255"); + long l6 = f("192.168.0.0"); + long l7 = f("192.168.255.255"); + bool = (a(l1, l2, l3) || a(l1, l4, l5) || a(l1, l6, l7) || paramString.equals("127.0.0.1")) ? true : false; + return bool; + } + + private static long f(String paramString) { + String[] arrayOfString = paramString.split("\\."); + long l1 = Integer.parseInt(arrayOfString[0]); + long l2 = Integer.parseInt(arrayOfString[1]); + long l3 = Integer.parseInt(arrayOfString[2]); + long l4 = Integer.parseInt(arrayOfString[3]); + + return l1 * 256L * 256L * 256L + l2 * 256L * 256L + l3 * 256L + l4; + } + + + private static boolean a(long paramLong1, long paramLong2, long paramLong3) { + return (paramLong1 >= paramLong2 && paramLong1 <= paramLong3); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\l.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/m.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/m.java new file mode 100644 index 00000000..1f6e8882 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgform/util/m.java @@ -0,0 +1,6752 @@ +package com.jero.generater.modules.online.cgform.util; + +import java.io.UnsupportedEncodingException; +import java.nio.charset.Charset; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +class m +{ + private static final String a = "FECO#$N*CX"; + private static final Charset b = Charset.forName("UTF-8"); + private static byte[] c = "FECO#$N*CX".getBytes(b); + + + + + + + + public static String a(String paramString) { + byte[] arrayOfByte = paramString.getBytes(b); byte b; int i; + for (b = 0, i = arrayOfByte.length; b < i; b++) { + for (byte b1 : c) { + arrayOfByte[b] = (byte)(arrayOfByte[b] ^ b1); + } + } + return new String(arrayOfByte); + } + + + + + + + + public static String b(String paramString) { + byte[] arrayOfByte1 = paramString.getBytes(b); + byte[] arrayOfByte2 = arrayOfByte1; byte b; int i; + for (b = 0, i = arrayOfByte1.length; b < i; b++) { + for (byte b1 : c) { + arrayOfByte1[b] = (byte)(arrayOfByte2[b] ^ b1); + } + } + return new String(arrayOfByte1); + } + + + + + public static String c(String paramString) { + MessageDigest messageDigest = null; + try { + messageDigest = MessageDigest.getInstance("MD5"); + messageDigest.reset(); + messageDigest.update(paramString.getBytes("UTF-8")); + } catch (NoSuchAlgorithmException noSuchAlgorithmException) { + + } catch (UnsupportedEncodingException unsupportedEncodingException) {} + + + + byte[] arrayOfByte = messageDigest.digest(); + + StringBuffer stringBuffer = new StringBuffer(); + + + for (byte b = 0; b < arrayOfByte.length; b++) { + if (Integer.toHexString(0xFF & arrayOfByte[b]).length() == 1) { + stringBuffer.append("0").append(Integer.toHexString(0xFF & arrayOfByte[b])); + } else { + stringBuffer.append(Integer.toHexString(0xFF & arrayOfByte[b])); + } + } + return stringBuffer.toString(); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgfor\\util\m.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/a.java new file mode 100644 index 00000000..43f822c3 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/a.java @@ -0,0 +1,626 @@ +package com.jero.generater.modules.online.cgreport.a; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import java.lang.invoke.SerializedLambda; +import java.math.BigDecimal; +import java.net.URLEncoder; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.lang.StringUtils; +import org.apache.poi.ss.usermodel.Workbook; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.PermissionData; +import com.jero.common.exception.JeecgBootException; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.DictModel; +import com.jero.common.system.vo.DynamicDataSourceModel; +import com.jero.common.util.BrowserUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportHead; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; +import com.jero.generater.modules.online.cgreport.mapper.OnlCgreportHeadMapper; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportItemService; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportParamService; +import com.jero.generater.modules.online.cgreport.util.SqlUtil; +import org.jeecgframework.poi.excel.ExcelExportUtil; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; + +@RestController("onlCgreportAPI") +@RequestMapping({"/online/cgreport/api"}) +public class a { + private static final Logger a = LoggerFactory.getLogger(a.class); + + + + @Autowired + private b onlCgreportHeadService; + + + + @Autowired + private IOnlCgreportItemService onlCgreportItemService; + + + @Autowired + private ISysBaseAPI sysBaseAPI; + + + @Autowired + private IOnlCgreportParamService onlCgreportParamService; + + + + @GetMapping({"/getColumnsAndData/{code}"}) + @PermissionData + public Result a(@PathVariable("code") String paramString, HttpServletRequest paramHttpServletRequest) { + OnlCgreportHead onlCgreportHead = (OnlCgreportHead)this.onlCgreportHeadService.getById(paramString); + if (onlCgreportHead == null) { + return Result.error("实体不存在"); + } + + Result result = b(paramString, paramHttpServletRequest); + if (result.getCode().equals(Integer.valueOf(200))) { + + JSONObject jSONObject = JSON.parseObject(JSONObject.toJSONString(result.getResult())); + JSONArray jSONArray1 = jSONObject.getJSONArray("records"); + + + QueryWrapper queryWrapper = new QueryWrapper(); + ((QueryWrapper)((QueryWrapper)queryWrapper.eq("cgrhead_id", paramString)).eq("is_show", Integer.valueOf(1))).orderByAsc("order_num"); + + + List list = this.onlCgreportItemService.list((Wrapper)queryWrapper); + + + HashMap hashMap1 = new HashMap<>(); + + JSONArray jSONArray2 = new JSONArray(); + + JSONArray jSONArray3 = new JSONArray(); + + boolean bool = false; + for (OnlCgreportItem onlCgreportItem : list) { + JSONObject jSONObject1 = new JSONObject(4); + jSONObject1.put("title", onlCgreportItem.getFieldTxt()); + jSONObject1.put("dataIndex", onlCgreportItem.getFieldName()); + jSONObject1.put("align", "center"); + jSONObject1.put("sorter", "true"); + jSONObject1.put("isTotal", onlCgreportItem.getIsTotal()); + + jSONObject1.put("groupTitle", onlCgreportItem.getGroupTitle()); + if (oConvertUtils.isNotEmpty(onlCgreportItem.getGroupTitle())) { + bool = true; + } + + + if (StringUtils.isNotBlank(onlCgreportItem.getFieldHref())) { + String str1 = "fieldHref_" + onlCgreportItem.getFieldName(); + JSONObject jSONObject2 = new JSONObject(); + jSONObject2.put("customRender", str1); + jSONObject1.put("scopedSlots", jSONObject2); + + JSONObject jSONObject3 = new JSONObject(); + jSONObject3.put("slotName", str1); + jSONObject3.put("href", onlCgreportItem.getFieldHref()); + jSONArray2.add(jSONObject3); + } + + jSONArray3.add(jSONObject1); + + + String str = onlCgreportItem.getDictCode(); + List list1 = a(str, jSONArray1, onlCgreportItem.getFieldName()); + if (list1 != null) { + hashMap1.put(onlCgreportItem.getFieldName(), list1); + jSONObject1.put("customRender", onlCgreportItem.getFieldName()); + } + } + + + HashMap hashMap2 = new HashMap<>(3); + hashMap2.put("data", result.getResult()); + hashMap2.put("columns", jSONArray3); + hashMap2.put("dictOptions", hashMap1); + hashMap2.put("fieldHrefSlots", jSONArray2); + hashMap2.put("cgreportHeadName", onlCgreportHead.getName()); + hashMap2.put("isGroupTitle", Boolean.valueOf(bool)); + + return Result.OK(hashMap2); + } + return result; + } + + + + + + + + private List a(String paramString1, JSONArray paramJSONArray, String paramString2) { + List list = null; + if (oConvertUtils.isNotEmpty(paramString1)) + { + if (paramString1.trim().toLowerCase().indexOf("select ") == 0 && (paramString2 == null || paramJSONArray.size() > 0)) { + + + + + paramString1 = paramString1.trim(); + int i = paramString1.lastIndexOf(";"); + if (i == paramString1.length() - 1) { + paramString1 = paramString1.substring(0, i); + } + + String str = "SELECT * FROM (" + paramString1 + ") temp "; + + if (paramJSONArray != null) { + ArrayList arrayList = new ArrayList(); + for (byte b1 = 0; b1 < paramJSONArray.size(); b1++) { + JSONObject jSONObject = paramJSONArray.getJSONObject(b1); + String str2 = jSONObject.getString(paramString2); + if (StringUtils.isNotBlank(str2)) { + arrayList.add(str2); + } + } + String str1 = "'" + StringUtils.join(arrayList, "','") + "'"; + str = str + "WHERE temp.value IN (" + str1 + ")"; + } + List list1 = ((OnlCgreportHeadMapper)this.onlCgreportHeadService.getBaseMapper()).executeSelete(str); + if (list1 != null && list1.size() != 0) { + String str1 = JSON.toJSONString(list1); + list = JSON.parseArray(str1, DictModel.class); + } + } else { + list = this.sysBaseAPI.queryDictItemsByCode(paramString1); + } + } + return list; + } + + + + + + + + + + + @Deprecated + @GetMapping({"/getColumns/{code}"}) + public Result a(@PathVariable("code") String paramString) { + OnlCgreportHead onlCgreportHead = (OnlCgreportHead)this.onlCgreportHeadService.getById(paramString); + if (onlCgreportHead == null) { + return Result.error("实体不存在"); + } + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("cgrhead_id", paramString); + queryWrapper.eq("is_show", Integer.valueOf(1)); + queryWrapper.orderByAsc("order_num"); + + List list = this.onlCgreportItemService.list((Wrapper)queryWrapper); + + ArrayList> arrayList = new ArrayList(); + HashMap hashMap1 = new HashMap<>(); + for (OnlCgreportItem onlCgreportItem : list) { + HashMap hashMap = new HashMap<>(3); + hashMap.put("title", onlCgreportItem.getFieldTxt()); + hashMap.put("dataIndex", onlCgreportItem.getFieldName()); + hashMap.put("align", "center"); + hashMap.put("sorter", "true"); + arrayList.add(hashMap); + + + String str = onlCgreportItem.getDictCode(); + + if (oConvertUtils.isNotEmpty(str)) { + List list1 = null; + + if (str.toLowerCase().indexOf("select ") == 0) { + List list2 = ((OnlCgreportHeadMapper)this.onlCgreportHeadService.getBaseMapper()).executeSelete(str); + if (list2 != null && list2.size() != 0) { + String str1 = JSON.toJSONString(list2); + list1 = JSON.parseArray(str1, DictModel.class); + } + } else { + list1 = this.sysBaseAPI.queryDictItemsByCode(str); + } + + if (list1 != null) { + hashMap1.put(onlCgreportItem.getFieldName(), list1); + hashMap.put("customRender", onlCgreportItem.getFieldName()); + } + } + } + + + HashMap hashMap2 = new HashMap<>(1); + hashMap2.put("columns", arrayList); + hashMap2.put("dictOptions", hashMap1); + hashMap2.put("cgreportHeadName", onlCgreportHead.getName()); + + return Result.OK(hashMap2); + } + + + + + + + + @GetMapping({"/getData/{code}"}) + @PermissionData + public Result b(@PathVariable("code") String paramString, HttpServletRequest paramHttpServletRequest) { + OnlCgreportHead onlCgreportHead = (OnlCgreportHead)this.onlCgreportHeadService.getById(paramString); + if (onlCgreportHead == null) { + return Result.error("实体不存在"); + } + String str1 = onlCgreportHead.getCgrSql().trim(); + + + String str2 = onlCgreportHead.getDbSource(); try { + Map map1; + Map map = SqlUtil.a(paramHttpServletRequest); + map.put("getAll", paramHttpServletRequest.getAttribute("getAll")); + + if (StringUtils.isNotBlank(str2)) { + a.debug("Online报表: 走了多数据源逻辑"); + map1 = this.onlCgreportHeadService.executeSelectSqlDynamic(str2, str1, map, onlCgreportHead.getId()); + } else { + a.debug("Online报表: 走了稳定逻辑"); + map1 = this.onlCgreportHeadService.executeSelectSql(str1, onlCgreportHead.getId(), map); + } + return Result.OK(map1); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("SQL执行失败:" + exception.getMessage()); + } + } + + + + + + @GetMapping({"/getQueryInfo/{code}"}) + public Result b(@PathVariable("code") String paramString) { + try { + List list = this.onlCgreportItemService.getAutoListQueryInfo(paramString); + return Result.OK(list); + } catch (Exception exception) { + a.info(exception.getMessage(), exception); + return Result.error("查询失败"); + } + } + + + + + @GetMapping({"/getParamsInfo/{code}"}) + public Result c(@PathVariable("code") String paramString) { + try { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgreportParam::getCgrheadId, paramString); + List list = this.onlCgreportParamService.list((Wrapper)lambdaQueryWrapper); + return Result.OK(list); + } catch (Exception exception) { + a.info(exception.getMessage(), exception); + return Result.error("查询失败"); + } + } + + + + + + + + + @PermissionData + @RequestMapping({"/exportXls/{reportId}"}) + public void a(@PathVariable("reportId") String paramString, HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse) { + String str1 = "报表"; + String str2 = "导出信息"; + if (oConvertUtils.isNotEmpty(paramString)) { + Map map = null; + try { + map = this.onlCgreportHeadService.queryCgReportConfig(paramString); + } catch (Exception exception) { + throw new JeecgBootException("动态报表配置不存在!"); + } + + List list = (List)map.get("items"); + + paramHttpServletRequest.setAttribute("getAll", Boolean.valueOf(true)); + Result result = b(paramString, paramHttpServletRequest); + List> list1 = null; + if (result.getCode().equals(Integer.valueOf(200))) { + Map map1 = (Map)result.getResult(); + list1 = (List)map1.get("records"); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ArrayList arrayList = new ArrayList(); + HashMap hashMap1 = new HashMap<>(); + + HashMap hashMap2 = new HashMap<>(); + + ArrayList arrayList1 = new ArrayList(); + for (byte b1 = 0; b1 < list.size(); b1++) { + + if ("1".equals(oConvertUtils.getString(((Map)list.get(b1)).get("is_show")))) { + + String str = ((Map)list.get(b1)).get("field_name").toString(); + ExcelExportEntity excelExportEntity = new ExcelExportEntity(((Map)list.get(b1)).get("field_txt").toString(), str, 15); + + + + Object object1 = ((Map)list.get(b1)).get("dict_code"); + JSONArray jSONArray = JSONObject.parseArray(JSONObject.toJSONString(list1)); + List list2 = a(oConvertUtils.getString(object1), jSONArray, str); + if (list2 != null && list2.size() > 0) { + ArrayList arrayList2 = new ArrayList(); + for (DictModel dictModel : list2) { + arrayList2.add(dictModel.getText() + "_" + dictModel.getValue()); + } + + excelExportEntity.setReplace(arrayList2.toArray(new String[arrayList2.size()])); + } + + + + + + + + + + + + Object object2 = ((Map)list.get(b1)).get("replace_val"); + if (oConvertUtils.isNotEmpty(object2)) { + excelExportEntity.setReplace(object2.toString().split(",")); + } + + if (oConvertUtils.isNotEmpty(((Map)list.get(b1)).get("group_title"))) { + String str3 = ((Map)list.get(b1)).get("group_title").toString(); + List list3 = new ArrayList(); + if (hashMap2.containsKey(str3)) { + list3 = (List)hashMap2.get(str3); + list3.add(str); + } else { + + ExcelExportEntity excelExportEntity1 = new ExcelExportEntity(str3, str3, true); + arrayList1.add(excelExportEntity1); + list3.add(str); + } + hashMap2.put(str3, list3); + excelExportEntity.setColspan(true); + } + + arrayList1.add(excelExportEntity); + } + + + if ("1".equals(oConvertUtils.getString(((Map)list.get(b1)).get("is_total")))) { + arrayList.add(((Map)list.get(b1)).get("field_name").toString()); + } + } + + for (Map.Entry entry : hashMap2.entrySet()) { + String str = (String)entry.getKey(); + List list2 = (List)entry.getValue(); + + for (ExcelExportEntity excelExportEntity : arrayList1) { + if (str.equals(excelExportEntity.getName()) && excelExportEntity.isColspan()) { + excelExportEntity.setSubColumnList(list2); + } + } + } + + if (arrayList != null && arrayList.size() > 0) { + BigDecimal bigDecimal = new BigDecimal(0.0D); + for (String str : arrayList) { + for (Map map1 : list1) { + String str3 = map1.get(str).toString(); + + if (str3.matches("\\d+(.\\d+)?")) { + BigDecimal bigDecimal1 = new BigDecimal(str3); + bigDecimal = bigDecimal.add(bigDecimal1); + } + } + hashMap1.put(str, bigDecimal); + } + list1.add(hashMap1); + } + + + + paramHttpServletResponse.setContentType("application/vnd.ms-excel"); + ServletOutputStream servletOutputStream = null; + + + + try { String str = BrowserUtils.checkBrowse(paramHttpServletRequest); + if ("MSIE".equalsIgnoreCase(str.substring(0, 4))) { + paramHttpServletResponse.setHeader("content-disposition", "attachment;filename=" + URLEncoder.encode(str1, "UTF-8") + ".xls"); + } else { + String str3 = new String(str1.getBytes("UTF-8"), "ISO8859-1"); + paramHttpServletResponse.setHeader("content-disposition", "attachment;filename=" + str3 + ".xls"); + } + + + Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(null, str2), arrayList1, list1); + servletOutputStream = paramHttpServletResponse.getOutputStream(); + workbook.write((OutputStream)servletOutputStream); } + catch (Exception exception) + + { + try { + servletOutputStream.flush(); + servletOutputStream.close(); + } catch (Exception exception1) {} } finally { try { servletOutputStream.flush(); servletOutputStream.close(); } catch (Exception exception) {} + } + + + } + else { + + throw new JeecgBootException("参数错误"); + } + } + + + + + @GetMapping({"/getRpColumns/{code}"}) + public Result d(@PathVariable("code") String paramString) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgreportHead::getCode, paramString); + OnlCgreportHead onlCgreportHead = (OnlCgreportHead)this.onlCgreportHeadService.getOne((Wrapper)lambdaQueryWrapper); + if (onlCgreportHead == null) { + return Result.error("实体不存在"); + } + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("cgrhead_id", onlCgreportHead.getId()); + queryWrapper.eq("is_show", Integer.valueOf(1)); + queryWrapper.orderByAsc("order_num"); + + List list = this.onlCgreportItemService.list((Wrapper)queryWrapper); + + ArrayList> arrayList = new ArrayList(); + HashMap hashMap1 = new HashMap<>(); + for (OnlCgreportItem onlCgreportItem : list) { + HashMap hashMap = new HashMap<>(3); + hashMap.put("title", onlCgreportItem.getFieldTxt()); + hashMap.put("dataIndex", onlCgreportItem.getFieldName()); + hashMap.put("align", "center"); + + String str1 = onlCgreportItem.getFieldType(); + if ("Integer".equals(str1) || "Date".equals(str1) || "Long".equals(str1)) { + hashMap.put("sorter", "true"); + } + + + String str2 = onlCgreportItem.getDictCode(); + if (oConvertUtils.isNotEmpty(str2)) { + List list1 = a(onlCgreportItem.getDictCode(), (JSONArray)null, (String)null); + hashMap1.put(onlCgreportItem.getFieldName(), list1); + hashMap.put("customRender", onlCgreportItem.getFieldName()); + } + arrayList.add(hashMap); + } + + HashMap hashMap2 = new HashMap<>(1); + hashMap2.put("columns", arrayList); + hashMap2.put("dictOptions", hashMap1); + hashMap2.put("cgRpConfigId", onlCgreportHead.getId()); + hashMap2.put("cgRpConfigName", onlCgreportHead.getName()); + return Result.OK(hashMap2); + } + + + + + + + @PostMapping({"/testConnection"}) + public Result a(@RequestBody DynamicDataSourceModel paramDynamicDataSourceModel) { + Connection connection = null; + try { + Class.forName(paramDynamicDataSourceModel.getDbDriver()); + + connection = DriverManager.getConnection(paramDynamicDataSourceModel.getDbUrl(), paramDynamicDataSourceModel.getDbUsername(), paramDynamicDataSourceModel.getDbPassword()); + if (connection != null) { + return Result.OK("数据库连接成功"); + } + return Result.OK("数据库连接失败:错误未知"); + } catch (ClassNotFoundException classNotFoundException) { + a.error(classNotFoundException.toString()); + return Result.error("数据库连接失败:驱动类不存在"); + } catch (Exception exception) { + a.error(exception.toString()); + return Result.error("数据库连接失败:" + exception.getMessage()); + } finally { + try { + if (connection != null && !connection.isClosed()) { + connection.close(); + } + } catch (SQLException sQLException) { + a.error(sQLException.toString()); + } + } + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\a\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/b.java new file mode 100644 index 00000000..17d936f2 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/b.java @@ -0,0 +1,267 @@ +package com.jero.generater.modules.online.cgreport.a; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import javax.servlet.http.HttpServletRequest; + +import com.jero.modules.base.service.BaseCommonService; +import org.apache.commons.lang.StringUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.vo.DynamicDataSourceModel; +import com.jero.common.util.SqlInjectionUtil; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportHead; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; +import com.jero.generater.modules.online.cgreport.model.OnlCgreportModel; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportHeadService; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportItemService; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportParamService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@RestController("onlCgreportHeadController") +@RequestMapping({"/online/cgreport/head"}) +public class b +{ + private static final Logger a = LoggerFactory.getLogger(b.class); + + + @Autowired + private ISysBaseAPI sysBaseAPI; + + + @Autowired + private IOnlCgreportHeadService onlCgreportHeadService; + + + @Autowired + private IOnlCgreportParamService onlCgreportParamService; + + + @Autowired + private IOnlCgreportItemService onlCgreportItemService; + + @Autowired + private BaseCommonService baseCommonService; + + + @GetMapping({"/parseSql"}) + public Result a(@RequestParam(name = "sql") String paramString1, @RequestParam(name = "dbKey", required = false) String paramString2) { + if (StringUtils.isNotBlank(paramString2)) { + + DynamicDataSourceModel dynamicDataSourceModel = this.sysBaseAPI.getDynamicDbSourceByCode(paramString2); + if (dynamicDataSourceModel == null) { + return Result.error("数据源不存在"); + } + } + + HashMap hashMap = new HashMap<>(); + + ArrayList arrayList = new ArrayList(); + + ArrayList arrayList1 = new ArrayList(); + List list1 = null; + List list2 = null; + try { + a.info("Online报表,sql解析:" + paramString1); + this.baseCommonService.addLog("Online报表,sql解析:" + paramString1, Integer.valueOf(2), Integer.valueOf(2)); + + SqlInjectionUtil.specialFilterContentForOnlineReport(paramString1); + list1 = this.onlCgreportHeadService.getSqlFields(paramString1, paramString2); + list2 = this.onlCgreportHeadService.getSqlParams(paramString1); + + byte b1 = 1; + for (String str : list1) { + OnlCgreportItem onlCgreportItem = new OnlCgreportItem(); + + onlCgreportItem.setFieldName(str.toLowerCase()); + onlCgreportItem.setFieldTxt(str); + onlCgreportItem.setIsShow(Integer.valueOf(1)); + onlCgreportItem.setOrderNum(Integer.valueOf(b1)); + onlCgreportItem.setId(com.jero.generater.modules.online.cgform.util.b.a()); + onlCgreportItem.setFieldType("String"); + arrayList.add(onlCgreportItem); + b1++; + } + + for (String str : list2) { + OnlCgreportParam onlCgreportParam = new OnlCgreportParam(); + onlCgreportParam.setParamName(str); + onlCgreportParam.setParamTxt(str); + arrayList1.add(onlCgreportParam); + } + hashMap.put("fields", arrayList); + hashMap.put("params", arrayList1); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + String str = "解析失败,"; + int i = exception.getMessage().indexOf("Connection refused: connect"); + if (i != -1) { + str = str + "数据源连接失败."; + } else if (exception.getMessage().indexOf("值可能存在SQL注入风险") != -1) { + str = str + "SQL可能存在SQL注入风险."; + } else if (exception.getMessage().indexOf("该报表sql没有数据") != -1) { + str = str + "报表sql查询数据为空,无法解析字段."; + } else if (exception.getMessage().indexOf("SqlServer不支持SQL内排序") != -1) { + str = str + "SqlServer不支持SQL内排序."; + } else { + str = str + "SQL语法错误."; + } + return Result.error(str); + } + return Result.OK(hashMap); + } + + + + + + + + + + + @GetMapping({"/list"}) + public Result> a(OnlCgreportHead paramOnlCgreportHead, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + Result> result = new Result(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgreportHead, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgreportHeadService.page((IPage)page, (Wrapper)queryWrapper); + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgreportModel paramOnlCgreportModel) { + Result result = new Result(); + try { + String str = com.jero.generater.modules.online.cgform.util.b.a(); + + OnlCgreportHead onlCgreportHead = paramOnlCgreportModel.getHead(); + List list1 = paramOnlCgreportModel.getParams(); + List list2 = paramOnlCgreportModel.getItems(); + + onlCgreportHead.setId(str); + for (OnlCgreportParam onlCgreportParam : list1) { + onlCgreportParam.setId(null); + onlCgreportParam.setCgrheadId(str); + } + for (OnlCgreportItem onlCgreportItem : list2) { + onlCgreportItem.setId(null); + + onlCgreportItem.setFieldName(onlCgreportItem.getFieldName().trim().toLowerCase()); + onlCgreportItem.setCgrheadId(str); + } + + this.onlCgreportHeadService.save(onlCgreportHead); + this.onlCgreportParamService.saveBatch(list1); + this.onlCgreportItemService.saveBatch(list2); + + result.success("添加成功!"); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + result.error500("操作失败"); + } + return result; + } + + + + + @PutMapping({"/editAll"}) + public Result b(@RequestBody OnlCgreportModel paramOnlCgreportModel) { + try { + return this.onlCgreportHeadService.editAll(paramOnlCgreportModel); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return Result.error("操作失败"); + } + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @DeleteMapping({"/delete"}) + public Result a(@RequestParam(name = "id", required = true) String paramString) { + return this.onlCgreportHeadService.delete(paramString); + } + + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result b(@RequestParam(name = "ids", required = true) String paramString) { + return this.onlCgreportHeadService.bathDelete(paramString.split(",")); + } + + + + + + + + @GetMapping({"/queryById"}) + public Result c(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgreportHead onlCgreportHead = (OnlCgreportHead)this.onlCgreportHeadService.getById(paramString); + result.setResult(onlCgreportHead); + return result; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\a\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/c.java new file mode 100644 index 00000000..7f0fcfe5 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/c.java @@ -0,0 +1,148 @@ +package com.jero.generater.modules.online.cgreport.a; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.Arrays; +import java.util.List; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportItemService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + + + + + + + + +@RestController("onlCgreportItemController") +@RequestMapping({"/online/cgreport/item"}) +public class c +{ + private static final Logger a = LoggerFactory.getLogger(c.class); + + + + @Autowired + private IOnlCgreportItemService onlCgreportItemService; + + + + @GetMapping({"/listByHeadId"}) + public Result a(@RequestParam("headId") String paramString) { + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("cgrhead_id", paramString); + queryWrapper.orderByAsc("order_num"); + List list = this.onlCgreportItemService.list((Wrapper)queryWrapper); + + Result result = new Result(); + result.setSuccess(true); + result.setResult(list); + return result; + } + + + + + + + + + + + @GetMapping({"/list"}) + public Result> a(OnlCgreportItem paramOnlCgreportItem, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + Result> result = new Result(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgreportItem, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgreportItemService.page((IPage)page, (Wrapper)queryWrapper); + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgreportItem paramOnlCgreportItem) { + this.onlCgreportItemService.save(paramOnlCgreportItem); + return Result.OK("添加成功!"); + } + + + + + + + + @PutMapping({"/edit"}) + public Result b(@RequestBody OnlCgreportItem paramOnlCgreportItem) { + this.onlCgreportItemService.updateById(paramOnlCgreportItem); + return Result.OK("编辑成功!"); + } + + + + + + + + @DeleteMapping({"/delete"}) + public Result b(@RequestParam(name = "id", required = true) String paramString) { + this.onlCgreportItemService.removeById(paramString); + return Result.OK("删除成功!"); + } + + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result c(@RequestParam(name = "ids", required = true) String paramString) { + this.onlCgreportItemService.removeByIds(Arrays.asList(paramString.split(","))); + return Result.OK("批量删除成功!"); + } + + + + + + + + @GetMapping({"/queryById"}) + public Result d(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgreportItem onlCgreportItem = (OnlCgreportItem)this.onlCgreportItemService.getById(paramString); + result.setResult(onlCgreportItem); + result.setSuccess(true); + return result; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\a\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/d.java new file mode 100644 index 00000000..1c274b7e --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/a/d.java @@ -0,0 +1,148 @@ +package com.jero.generater.modules.online.cgreport.a; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.Arrays; +import java.util.List; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportParamService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + + + + + + + + +@RestController("onlCgreportParamController") +@RequestMapping({"/online/cgreport/param"}) +public class d +{ + private static final Logger a = LoggerFactory.getLogger(d.class); + + + + @Autowired + private IOnlCgreportParamService onlCgreportParamService; + + + + + @GetMapping({"/listByHeadId"}) + public Result a(@RequestParam("headId") String paramString) { + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("cgrhead_id", paramString); + queryWrapper.orderByAsc("order_num"); + List list = this.onlCgreportParamService.list((Wrapper)queryWrapper); + + Result result = new Result(); + result.setSuccess(true); + result.setResult(list); + return result; + } + + + + + + + + + + + @GetMapping({"/list"}) + public Result> a(OnlCgreportParam paramOnlCgreportParam, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) { + Result> result = new Result(); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(paramOnlCgreportParam, paramHttpServletRequest.getParameterMap()); + Page page = new Page(paramInteger1.intValue(), paramInteger2.intValue()); + IPage iPage = this.onlCgreportParamService.page((IPage)page, (Wrapper)queryWrapper); + result.setSuccess(true); + result.setResult(iPage); + return result; + } + + + + + + + + @PostMapping({"/add"}) + public Result a(@RequestBody OnlCgreportParam paramOnlCgreportParam) { + this.onlCgreportParamService.save(paramOnlCgreportParam); + return Result.OK("添加成功!"); + } + + + + + + + + @PutMapping({"/edit"}) + public Result b(@RequestBody OnlCgreportParam paramOnlCgreportParam) { + this.onlCgreportParamService.updateById(paramOnlCgreportParam); + return Result.OK("编辑成功!"); + } + + + + + + + + @DeleteMapping({"/delete"}) + public Result b(@RequestParam(name = "id", required = true) String paramString) { + this.onlCgreportParamService.removeById(paramString); + return Result.OK("删除成功!"); + } + + + + + + + + @DeleteMapping({"/deleteBatch"}) + public Result c(@RequestParam(name = "ids", required = true) String paramString) { + this.onlCgreportParamService.removeByIds(Arrays.asList(paramString.split(","))); + return Result.OK("批量删除成功!"); + } + + + + + + + + @GetMapping({"/queryById"}) + public Result d(@RequestParam(name = "id", required = true) String paramString) { + Result result = new Result(); + OnlCgreportParam onlCgreportParam = (OnlCgreportParam)this.onlCgreportParamService.getById(paramString); + result.setResult(onlCgreportParam); + return result; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\a\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/b/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/b/a.java new file mode 100644 index 00000000..5e343b44 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/b/a.java @@ -0,0 +1,69 @@ +package com.jero.generater.modules.online.cgreport.b; + +public class a { + public static final String a = "main"; + + public static final String b = "items"; + + public static final String c = "params"; + + public static final String d = "config_id"; + + public static final String e = "config_name"; + + public static final String f = "config_fieldList"; + + public static final String g = "config_queryList"; + + public static final String h = "config_params"; + + public static final String i = "field_dictlist"; + + public static final String j = "t_s_type"; + + public static final String k = "t_s_typegroup"; + + public static final String l = "cgreport_sql"; + + public static final String m = "dict_code"; + + public static final String n = "replace_value"; + + public static final String o = "field_name"; + + public static final String p = "search_flag"; + + public static final String q = "field_type"; + + public static final String r = "search_mode"; + + public static final String s = "Y"; + + public static final String t = "N"; + + public static final String u = " = "; + + public static final String v = " >= "; + + public static final String w = " <= "; + + public static final String x = " LIKE "; + + public static final String y = "Date"; + + public static final String z = "String"; + + public static final String A = "Integer"; + + public static final String B = "Double"; + + public static final String C = "config_iframe"; + + public static final String D = "popup_param_pre__"; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\b\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportHead.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportHead.java new file mode 100644 index 00000000..c4739514 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportHead.java @@ -0,0 +1,65 @@ +package com.jero.generater.modules.online.cgreport.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.io.Serializable; +import java.util.Date; +import com.jero.common.aspect.annotation.Dict; +import org.springframework.format.annotation.DateTimeFormat; + +@TableName("onl_cgreport_head") +public class OnlCgreportHead implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.ASSIGN_ID) + private String id; + private String code; + private String name; + private String cgrSql; + private String returnValField; + private String returnTxtField; + + public void setId(String id) { this.id = id; } private String returnType; @Dict(dicCode = "code", dicText = "name", dictTable = "sys_data_source") private String dbSource; private String content; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; private String updateBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; private String createBy; public void setCode(String code) { this.code = code; } public void setName(String name) { this.name = name; } public void setCgrSql(String cgrSql) { this.cgrSql = cgrSql; } public void setReturnValField(String returnValField) { this.returnValField = returnValField; } public void setReturnTxtField(String returnTxtField) { this.returnTxtField = returnTxtField; } public void setReturnType(String returnType) { this.returnType = returnType; } public void setDbSource(String dbSource) { this.dbSource = dbSource; } public void setContent(String content) { this.content = content; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setCreateBy(String createBy) { this.createBy = createBy; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgreportHead)) return false; OnlCgreportHead onlCgreportHead = (OnlCgreportHead)o; if (!onlCgreportHead.canEqual(this)) return false; String str1 = getId(), str2 = onlCgreportHead.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCode(), str4 = onlCgreportHead.getCode(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getName(), str6 = onlCgreportHead.getName(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getCgrSql(), str8 = onlCgreportHead.getCgrSql(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getReturnValField(), str10 = onlCgreportHead.getReturnValField(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getReturnTxtField(), str12 = onlCgreportHead.getReturnTxtField(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getReturnType(), str14 = onlCgreportHead.getReturnType(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; String str15 = getDbSource(), str16 = onlCgreportHead.getDbSource(); if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; String str17 = getContent(), str18 = onlCgreportHead.getContent(); if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false; Date date1 = getUpdateTime(), date2 = onlCgreportHead.getUpdateTime(); if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false; String str19 = getUpdateBy(), str20 = onlCgreportHead.getUpdateBy(); if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false; Date date3 = getCreateTime(), date4 = onlCgreportHead.getCreateTime(); if ((date3 == null) ? (date4 != null) : !date3.equals(date4)) return false; String str21 = getCreateBy(), str22 = onlCgreportHead.getCreateBy(); return !((str21 == null) ? (str22 != null) : !str21.equals(str22)); } protected boolean canEqual(Object other) { return other instanceof OnlCgreportHead; } public int hashCode() { byte b = 59; null = 1; String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCode(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getName(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getCgrSql(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getReturnValField(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getReturnTxtField(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getReturnType(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); String str8 = getDbSource(); null = null * 59 + ((str8 == null) ? 43 : str8.hashCode()); String str9 = getContent(); null = null * 59 + ((str9 == null) ? 43 : str9.hashCode()); Date date1 = getUpdateTime(); null = null * 59 + ((date1 == null) ? 43 : date1.hashCode()); String str10 = getUpdateBy(); null = null * 59 + ((str10 == null) ? 43 : str10.hashCode()); Date date2 = getCreateTime(); null = null * 59 + ((date2 == null) ? 43 : date2.hashCode()); String str11 = getCreateBy(); return null * 59 + ((str11 == null) ? 43 : str11.hashCode()); } public String toString() { return "OnlCgreportHead(id=" + getId() + ", code=" + getCode() + ", name=" + getName() + ", cgrSql=" + getCgrSql() + ", returnValField=" + getReturnValField() + ", returnTxtField=" + getReturnTxtField() + ", returnType=" + getReturnType() + ", dbSource=" + getDbSource() + ", content=" + getContent() + ", updateTime=" + getUpdateTime() + ", updateBy=" + getUpdateBy() + ", createTime=" + getCreateTime() + ", createBy=" + getCreateBy() + ")"; } + + + + + + public String getId() { + return this.id; + } public String getCode() { + return this.code; + } public String getName() { + return this.name; + } public String getCgrSql() { + return this.cgrSql; + } public String getReturnValField() { + return this.returnValField; + } public String getReturnTxtField() { + return this.returnTxtField; + } public String getReturnType() { + return this.returnType; + } + public String getDbSource() { + return this.dbSource; + } public String getContent() { + return this.content; + } + + public Date getUpdateTime() { + return this.updateTime; + } public String getUpdateBy() { + return this.updateBy; + } + + public Date getCreateTime() { + return this.createTime; + } public String getCreateBy() { + return this.createBy; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\entity\OnlCgreportHead.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportItem.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportItem.java new file mode 100644 index 00000000..e88c7f95 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportItem.java @@ -0,0 +1,78 @@ +package com.jero.generater.modules.online.cgreport.entity; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +@TableName("onl_cgreport_item") +public class OnlCgreportItem implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.ASSIGN_ID) + private String id; + private String cgrheadId; + private String fieldName; + private String fieldTxt; + private Integer fieldWidth; + private String fieldType; + private String searchMode; + private Integer isOrder; + private Integer isSearch; + + public void setId(String id) { this.id = id; } private String dictCode; private String fieldHref; private Integer isShow; private Integer orderNum; private String replaceVal; private String isTotal; private String createBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; private String updateBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; private String groupTitle; public void setCgrheadId(String cgrheadId) { this.cgrheadId = cgrheadId; } public void setFieldName(String fieldName) { this.fieldName = fieldName; } public void setFieldTxt(String fieldTxt) { this.fieldTxt = fieldTxt; } public void setFieldWidth(Integer fieldWidth) { this.fieldWidth = fieldWidth; } public void setFieldType(String fieldType) { this.fieldType = fieldType; } public void setSearchMode(String searchMode) { this.searchMode = searchMode; } public void setIsOrder(Integer isOrder) { this.isOrder = isOrder; } public void setIsSearch(Integer isSearch) { this.isSearch = isSearch; } public void setDictCode(String dictCode) { this.dictCode = dictCode; } public void setFieldHref(String fieldHref) { this.fieldHref = fieldHref; } public void setIsShow(Integer isShow) { this.isShow = isShow; } public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; } public void setReplaceVal(String replaceVal) { this.replaceVal = replaceVal; } public void setIsTotal(String isTotal) { this.isTotal = isTotal; } public void setCreateBy(String createBy) { this.createBy = createBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public void setGroupTitle(String groupTitle) { this.groupTitle = groupTitle; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgreportItem)) return false; OnlCgreportItem onlCgreportItem = (OnlCgreportItem)o; if (!onlCgreportItem.canEqual(this)) return false; Integer integer1 = getFieldWidth(), integer2 = onlCgreportItem.getFieldWidth(); if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; Integer integer3 = getIsOrder(), integer4 = onlCgreportItem.getIsOrder(); if ((integer3 == null) ? (integer4 != null) : !integer3.equals(integer4)) return false; Integer integer5 = getIsSearch(), integer6 = onlCgreportItem.getIsSearch(); if ((integer5 == null) ? (integer6 != null) : !integer5.equals(integer6)) return false; Integer integer7 = getIsShow(), integer8 = onlCgreportItem.getIsShow(); if ((integer7 == null) ? (integer8 != null) : !integer7.equals(integer8)) return false; Integer integer9 = getOrderNum(), integer10 = onlCgreportItem.getOrderNum(); if ((integer9 == null) ? (integer10 != null) : !integer9.equals(integer10)) return false; String str1 = getId(), str2 = onlCgreportItem.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgrheadId(), str4 = onlCgreportItem.getCgrheadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getFieldName(), str6 = onlCgreportItem.getFieldName(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getFieldTxt(), str8 = onlCgreportItem.getFieldTxt(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getFieldType(), str10 = onlCgreportItem.getFieldType(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getSearchMode(), str12 = onlCgreportItem.getSearchMode(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; String str13 = getDictCode(), str14 = onlCgreportItem.getDictCode(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; String str15 = getFieldHref(), str16 = onlCgreportItem.getFieldHref(); if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false; String str17 = getReplaceVal(), str18 = onlCgreportItem.getReplaceVal(); if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false; String str19 = getIsTotal(), str20 = onlCgreportItem.getIsTotal(); if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false; String str21 = getCreateBy(), str22 = onlCgreportItem.getCreateBy(); if ((str21 == null) ? (str22 != null) : !str21.equals(str22)) return false; Date date1 = getCreateTime(), date2 = onlCgreportItem.getCreateTime(); if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false; String str23 = getUpdateBy(), str24 = onlCgreportItem.getUpdateBy(); if ((str23 == null) ? (str24 != null) : !str23.equals(str24)) return false; Date date3 = getUpdateTime(), date4 = onlCgreportItem.getUpdateTime(); if ((date3 == null) ? (date4 != null) : !date3.equals(date4)) return false; String str25 = getGroupTitle(), str26 = onlCgreportItem.getGroupTitle(); return !((str25 == null) ? (str26 != null) : !str25.equals(str26)); } protected boolean canEqual(Object other) { return other instanceof OnlCgreportItem; } public int hashCode() { byte b = 59; null = 1; Integer integer1 = getFieldWidth(); null = null * 59 + ((integer1 == null) ? 43 : integer1.hashCode()); Integer integer2 = getIsOrder(); null = null * 59 + ((integer2 == null) ? 43 : integer2.hashCode()); Integer integer3 = getIsSearch(); null = null * 59 + ((integer3 == null) ? 43 : integer3.hashCode()); Integer integer4 = getIsShow(); null = null * 59 + ((integer4 == null) ? 43 : integer4.hashCode()); Integer integer5 = getOrderNum(); null = null * 59 + ((integer5 == null) ? 43 : integer5.hashCode()); String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgrheadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getFieldName(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getFieldTxt(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getFieldType(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getSearchMode(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); String str7 = getDictCode(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); String str8 = getFieldHref(); null = null * 59 + ((str8 == null) ? 43 : str8.hashCode()); String str9 = getReplaceVal(); null = null * 59 + ((str9 == null) ? 43 : str9.hashCode()); String str10 = getIsTotal(); null = null * 59 + ((str10 == null) ? 43 : str10.hashCode()); String str11 = getCreateBy(); null = null * 59 + ((str11 == null) ? 43 : str11.hashCode()); Date date1 = getCreateTime(); null = null * 59 + ((date1 == null) ? 43 : date1.hashCode()); String str12 = getUpdateBy(); null = null * 59 + ((str12 == null) ? 43 : str12.hashCode()); Date date2 = getUpdateTime(); null = null * 59 + ((date2 == null) ? 43 : date2.hashCode()); String str13 = getGroupTitle(); return null * 59 + ((str13 == null) ? 43 : str13.hashCode()); } public String toString() { return "OnlCgreportItem(id=" + getId() + ", cgrheadId=" + getCgrheadId() + ", fieldName=" + getFieldName() + ", fieldTxt=" + getFieldTxt() + ", fieldWidth=" + getFieldWidth() + ", fieldType=" + getFieldType() + ", searchMode=" + getSearchMode() + ", isOrder=" + getIsOrder() + ", isSearch=" + getIsSearch() + ", dictCode=" + getDictCode() + ", fieldHref=" + getFieldHref() + ", isShow=" + getIsShow() + ", orderNum=" + getOrderNum() + ", replaceVal=" + getReplaceVal() + ", isTotal=" + getIsTotal() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ", groupTitle=" + getGroupTitle() + ")"; } + + + + + + public String getId() { + return this.id; + } public String getCgrheadId() { + return this.cgrheadId; + } public String getFieldName() { + return this.fieldName; + } public String getFieldTxt() { + return this.fieldTxt; + } public Integer getFieldWidth() { + return this.fieldWidth; + } public String getFieldType() { + return this.fieldType; + } public String getSearchMode() { + return this.searchMode; + } public Integer getIsOrder() { + return this.isOrder; + } public Integer getIsSearch() { + return this.isSearch; + } public String getDictCode() { + return this.dictCode; + } public String getFieldHref() { + return this.fieldHref; + } public Integer getIsShow() { + return this.isShow; + } public Integer getOrderNum() { + return this.orderNum; + } public String getReplaceVal() { + return this.replaceVal; + } public String getIsTotal() { + return this.isTotal; + } public String getCreateBy() { + return this.createBy; + } + + public Date getCreateTime() { + return this.createTime; + } public String getUpdateBy() { + return this.updateBy; + } + + public Date getUpdateTime() { + return this.updateTime; + } public String getGroupTitle() { + return this.groupTitle; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\entity\OnlCgreportItem.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportParam.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportParam.java new file mode 100644 index 00000000..35daf695 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/entity/OnlCgreportParam.java @@ -0,0 +1,57 @@ +package com.jero.generater.modules.online.cgreport.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.io.Serializable; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +@TableName("onl_cgreport_param") +public class OnlCgreportParam implements Serializable { + private static final long serialVersionUID = 1L; + @TableId(type = IdType.ASSIGN_ID) + private String id; + private String cgrheadId; + private String paramName; + private String paramTxt; + + public void setId(String id) { this.id = id; } private String paramValue; private Integer orderNum; private String createBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; private String updateBy; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; public void setCgrheadId(String cgrheadId) { this.cgrheadId = cgrheadId; } public void setParamName(String paramName) { this.paramName = paramName; } public void setParamTxt(String paramTxt) { this.paramTxt = paramTxt; } public void setParamValue(String paramValue) { this.paramValue = paramValue; } public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; } public void setCreateBy(String createBy) { this.createBy = createBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof OnlCgreportParam)) return false; OnlCgreportParam onlCgreportParam = (OnlCgreportParam)o; if (!onlCgreportParam.canEqual(this)) return false; Integer integer1 = getOrderNum(), integer2 = onlCgreportParam.getOrderNum(); if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false; String str1 = getId(), str2 = onlCgreportParam.getId(); if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false; String str3 = getCgrheadId(), str4 = onlCgreportParam.getCgrheadId(); if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false; String str5 = getParamName(), str6 = onlCgreportParam.getParamName(); if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false; String str7 = getParamTxt(), str8 = onlCgreportParam.getParamTxt(); if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false; String str9 = getParamValue(), str10 = onlCgreportParam.getParamValue(); if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false; String str11 = getCreateBy(), str12 = onlCgreportParam.getCreateBy(); if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false; Date date1 = getCreateTime(), date2 = onlCgreportParam.getCreateTime(); if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false; String str13 = getUpdateBy(), str14 = onlCgreportParam.getUpdateBy(); if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false; Date date3 = getUpdateTime(), date4 = onlCgreportParam.getUpdateTime(); return !((date3 == null) ? (date4 != null) : !date3.equals(date4)); } protected boolean canEqual(Object other) { return other instanceof OnlCgreportParam; } public int hashCode() { byte b = 59; null = 1; Integer integer = getOrderNum(); null = null * 59 + ((integer == null) ? 43 : integer.hashCode()); String str1 = getId(); null = null * 59 + ((str1 == null) ? 43 : str1.hashCode()); String str2 = getCgrheadId(); null = null * 59 + ((str2 == null) ? 43 : str2.hashCode()); String str3 = getParamName(); null = null * 59 + ((str3 == null) ? 43 : str3.hashCode()); String str4 = getParamTxt(); null = null * 59 + ((str4 == null) ? 43 : str4.hashCode()); String str5 = getParamValue(); null = null * 59 + ((str5 == null) ? 43 : str5.hashCode()); String str6 = getCreateBy(); null = null * 59 + ((str6 == null) ? 43 : str6.hashCode()); Date date1 = getCreateTime(); null = null * 59 + ((date1 == null) ? 43 : date1.hashCode()); String str7 = getUpdateBy(); null = null * 59 + ((str7 == null) ? 43 : str7.hashCode()); Date date2 = getUpdateTime(); return null * 59 + ((date2 == null) ? 43 : date2.hashCode()); } public String toString() { return "OnlCgreportParam(id=" + getId() + ", cgrheadId=" + getCgrheadId() + ", paramName=" + getParamName() + ", paramTxt=" + getParamTxt() + ", paramValue=" + getParamValue() + ", orderNum=" + getOrderNum() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ")"; } + + + + + + public String getId() { + return this.id; + } public String getCgrheadId() { + return this.cgrheadId; + } public String getParamName() { + return this.paramName; + } public String getParamTxt() { + return this.paramTxt; + } public String getParamValue() { + return this.paramValue; + } public Integer getOrderNum() { + return this.orderNum; + } public String getCreateBy() { + return this.createBy; + } + + public Date getCreateTime() { + return this.createTime; + } public String getUpdateBy() { + return this.updateBy; + } + + public Date getUpdateTime() { + return this.updateTime; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\entity\OnlCgreportParam.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportHeadMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportHeadMapper.java new file mode 100644 index 00000000..a9402549 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportHeadMapper.java @@ -0,0 +1,32 @@ +package com.jero.generater.modules.online.cgreport.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.annotations.Param; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportHead; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; + +public interface OnlCgreportHeadMapper extends BaseMapper { + List> executeSelect(@Param("sql") String paramString); + + List> executeSelete(@Param("sql") String paramString); + + IPage> selectPageBySql(Page> paramPage, @Param("sqlStr") String paramString); + + Long queryCountBySql(@Param("sql") String paramString); + + Map queryCgReportMainConfig(@Param("reportId") String paramString); + + List> queryCgReportItems(@Param("cgrheadId") String paramString); + + List queryCgReportParams(@Param("cgrheadId") String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\mapper\OnlCgreportHeadMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportItemMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportItemMapper.java new file mode 100644 index 00000000..ba96f5b7 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportItemMapper.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgreport.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; + +public interface OnlCgreportItemMapper extends BaseMapper {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\mapper\OnlCgreportItemMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportParamMapper.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportParamMapper.java new file mode 100644 index 00000000..176cd07a --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/OnlCgreportParamMapper.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgreport.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; + +public interface OnlCgreportParamMapper extends BaseMapper {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\mapper\OnlCgreportParamMapper.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportHeadMapper.xml b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportHeadMapper.xml new file mode 100644 index 00000000..29b0dffa --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportHeadMapper.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportItemMapper.xml b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportItemMapper.xml new file mode 100644 index 00000000..9c0ba562 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportItemMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportParamMapper.xml b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportParamMapper.xml new file mode 100644 index 00000000..00c91232 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/mapper/xml/OnlCgreportParamMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/model/OnlCgreportModel.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/model/OnlCgreportModel.java new file mode 100644 index 00000000..10da9a4d --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/model/OnlCgreportModel.java @@ -0,0 +1,84 @@ +package com.jero.generater.modules.online.cgreport.model; + +import java.util.Arrays; +import java.util.List; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportHead; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; + + + + + + + + + + +public class OnlCgreportModel +{ + private OnlCgreportHead head; + private List params; + private String deleteParamIds; + private List items; + private String deleteItemIds; + + public OnlCgreportHead getHead() { + return this.head; + } + + public void setHead(OnlCgreportHead head) { + this.head = head; + } + + public List getParams() { + return this.params; + } + + public void setParams(List params) { + this.params = params; + } + + public List getItems() { + return this.items; + } + + public void setItems(List items) { + this.items = items; + } + + public String getDeleteParamIds() { + return this.deleteParamIds; + } + + public List getDeleteParamIdList() { + return Arrays.asList(this.deleteParamIds.split(",")); + } + + public void setDeleteParamIds(String deleteParamIds) { + this.deleteParamIds = deleteParamIds; + } + + public String getDeleteItemIds() { + return this.deleteItemIds; + } + + public List getDeleteItemIdList() { + return Arrays.asList(this.deleteItemIds.split(",")); + } + + public void setDeleteItemIds(String deleteItemIds) { + this.deleteItemIds = deleteItemIds; + } + + + public String toString() { + return "OnlCgreportModel [head=" + this.head + ", params=" + this.params + ", deleteParamIds=" + this.deleteParamIds + ", items=" + this.items + ", deleteItemIds=" + this.deleteItemIds + "]"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\model\OnlCgreportModel.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/CgReportExcelServiceI.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/CgReportExcelServiceI.java new file mode 100644 index 00000000..6cf0f711 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/CgReportExcelServiceI.java @@ -0,0 +1,14 @@ +package com.jero.generater.modules.online.cgreport.service; + +import java.util.Collection; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; + +public interface CgReportExcelServiceI { + HSSFWorkbook exportExcel(String paramString, Collection paramCollection1, Collection paramCollection2); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\CgReportExcelServiceI.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportHeadService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportHeadService.java new file mode 100644 index 00000000..930d8de2 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportHeadService.java @@ -0,0 +1,35 @@ +package com.jero.generater.modules.online.cgreport.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import java.sql.SQLException; +import java.util.List; +import java.util.Map; +import com.jero.common.api.vo.Result; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportHead; +import com.jero.generater.modules.online.cgreport.model.OnlCgreportModel; + +public interface IOnlCgreportHeadService extends IService { + Result editAll(OnlCgreportModel paramOnlCgreportModel); + + Result delete(String paramString); + + Result bathDelete(String[] paramArrayOfString); + + Map executeSelectSql(String paramString1, String paramString2, Map paramMap) throws SQLException; + + Map executeSelectSqlDynamic(String paramString1, String paramString2, Map paramMap, String paramString3); + + List getSqlFields(String paramString1, String paramString2) throws SQLException; + + List getSqlParams(String paramString); + + Map queryCgReportConfig(String paramString); + + List> queryByCgReportSql(String paramString, Map paramMap1, Map paramMap2, int paramInt1, int paramInt2); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\IOnlCgreportHeadService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportItemService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportItemService.java new file mode 100644 index 00000000..08042c4b --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportItemService.java @@ -0,0 +1,16 @@ +package com.jero.generater.modules.online.cgreport.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import java.util.List; +import java.util.Map; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; + +public interface IOnlCgreportItemService extends IService { + List> getAutoListQueryInfo(String paramString); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\IOnlCgreportItemService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportParamService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportParamService.java new file mode 100644 index 00000000..4675d612 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/IOnlCgreportParamService.java @@ -0,0 +1,12 @@ +package com.jero.generater.modules.online.cgreport.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; + +public interface IOnlCgreportParamService extends IService {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\IOnlCgreportParamService.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/a.java new file mode 100644 index 00000000..ac408a56 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/a.java @@ -0,0 +1,147 @@ +package com.jero.generater.modules.online.cgreport.service.a; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import org.apache.poi.hssf.usermodel.HSSFCellStyle; +import org.apache.poi.hssf.usermodel.HSSFRichTextString; +import org.apache.poi.hssf.usermodel.HSSFSheet; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.ss.usermodel.BorderStyle; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.CellStyle; +import org.apache.poi.ss.usermodel.FillPatternType; +import org.apache.poi.ss.usermodel.HorizontalAlignment; +import org.apache.poi.ss.usermodel.IndexedColors; +import org.apache.poi.ss.usermodel.RichTextString; +import org.apache.poi.ss.usermodel.Row; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@Service("cgReportExcelService") +public class a implements CgReportExcelServiceI { + private static final Logger a = LoggerFactory.getLogger(a.class); + + + + + public HSSFWorkbook exportExcel(String title, Collection titleSet, Collection dataSet) { + HSSFWorkbook hSSFWorkbook = null; + + try { + if (titleSet == null || titleSet.size() == 0) { + throw new Exception("读取表头失败!"); + } + if (title == null) { + title = ""; + } + + hSSFWorkbook = new HSSFWorkbook(); + + HSSFSheet hSSFSheet = hSSFWorkbook.createSheet(title); + byte b1 = 0; + byte b2 = 0; + + Row row = hSSFSheet.createRow(b1); + row.setHeight((short)450); + HSSFCellStyle hSSFCellStyle1 = a(hSSFWorkbook); + + List list = (List)titleSet; + Iterator iterator = dataSet.iterator(); + + for (Map map : list) { + String str = (String)map.get("field_txt"); + Cell cell = row.createCell(b2); + HSSFRichTextString hSSFRichTextString = new HSSFRichTextString(str); + cell.setCellValue((RichTextString)hSSFRichTextString); + cell.setCellStyle((CellStyle)hSSFCellStyle1); + b2++; + } + HSSFCellStyle hSSFCellStyle2 = c(hSSFWorkbook); + + while (iterator.hasNext()) { + b2 = 0; + b1++; + row = hSSFSheet.createRow(b1); + Map map = (Map)iterator.next(); + for (Map map1 : list) { + String str1 = (String)map1.get("field_name"); + String str2 = (map.get(str1) == null) ? "" : map.get(str1).toString(); + Cell cell = row.createCell(b2); + HSSFRichTextString hSSFRichTextString = new HSSFRichTextString(str2); + cell.setCellStyle((CellStyle)hSSFCellStyle2); + cell.setCellValue((RichTextString)hSSFRichTextString); + b2++; + } + } + for (byte b3 = 0; b3 < list.size(); b3++) { + hSSFSheet.autoSizeColumn(b3); + } + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + } + return hSSFWorkbook; + } + + + + + + + + + private HSSFCellStyle a(HSSFWorkbook paramHSSFWorkbook) { + HSSFCellStyle hSSFCellStyle = paramHSSFWorkbook.createCellStyle(); + hSSFCellStyle.setBorderLeft(BorderStyle.THIN); + hSSFCellStyle.setBorderRight(BorderStyle.THIN); + hSSFCellStyle.setBorderBottom(BorderStyle.THIN); + hSSFCellStyle.setBorderTop(BorderStyle.THIN); + hSSFCellStyle.setAlignment(HorizontalAlignment.CENTER); + hSSFCellStyle.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex()); + hSSFCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); + + return hSSFCellStyle; + } + + + + private void a(int paramInt1, int paramInt2, HSSFWorkbook paramHSSFWorkbook) { + HSSFSheet hSSFSheet = paramHSSFWorkbook.getSheetAt(0); + + HSSFCellStyle hSSFCellStyle = c(paramHSSFWorkbook); + for (byte b = 1; b <= paramInt1; b++) { + Row row = hSSFSheet.createRow(b); + for (byte b1 = 0; b1 < paramInt2; b1++) { + row.createCell(b1).setCellStyle((CellStyle)hSSFCellStyle); + } + } + } + + + private HSSFCellStyle b(HSSFWorkbook paramHSSFWorkbook) { + HSSFCellStyle hSSFCellStyle = paramHSSFWorkbook.createCellStyle(); + hSSFCellStyle.setBorderLeft(BorderStyle.THIN); + hSSFCellStyle.setBorderRight(BorderStyle.THIN); + hSSFCellStyle.setBorderBottom(BorderStyle.THIN); + hSSFCellStyle.setBorderTop(BorderStyle.THIN); + hSSFCellStyle.setFillForegroundColor(IndexedColors.LIGHT_TURQUOISE.index); + hSSFCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); + return hSSFCellStyle; + } + + + private HSSFCellStyle c(HSSFWorkbook paramHSSFWorkbook) { + HSSFCellStyle hSSFCellStyle = paramHSSFWorkbook.createCellStyle(); + hSSFCellStyle.setBorderLeft(BorderStyle.THIN); + hSSFCellStyle.setBorderRight(BorderStyle.THIN); + hSSFCellStyle.setBorderBottom(BorderStyle.THIN); + hSSFCellStyle.setBorderTop(BorderStyle.THIN); + return hSSFCellStyle; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\a\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/b.java new file mode 100644 index 00000000..08f11a71 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/b.java @@ -0,0 +1,482 @@ +package com.jero.generater.modules.online.cgreport.service.a; + +import cn.hutool.core.util.ReUtil; +import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +/* */ +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.apache.commons.lang.StringUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.exception.JeecgBootException; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.vo.DynamicDataSourceModel; +import com.jero.common.util.dynamic.db.DataSourceCachePool; +import com.jero.common.util.dynamic.db.DynamicDBUtil; +import com.jero.common.util.dynamic.db.SqlUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.enums.DataBaseEnum; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportHead; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; +import com.jero.generater.modules.online.cgreport.mapper.OnlCgreportHeadMapper; +import com.jero.generater.modules.online.cgreport.model.OnlCgreportModel; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportHeadService; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportItemService; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportParamService; +import com.jero.generater.modules.online.cgreport.util.SqlUtil; +/* */ +import com.jero.generater.modules.online.config.b.d; +import com.jero.generater.modules.online.config.exception.DBException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +@Service("onlCgreportHeadServiceImpl") +public class b + extends ServiceImpl + implements IOnlCgreportHeadService { + private static final Logger a = LoggerFactory.getLogger(b.class); + + + @Autowired + private IOnlCgreportParamService onlCgreportParamService; + + + @Autowired + private IOnlCgreportItemService onlCgreportItemService; + + @Autowired + private OnlCgreportHeadMapper mapper; + + @Autowired + private ISysBaseAPI sysBaseAPI; + + + public Map executeSelectSql(String sql, String onlCgreportHeadId, Map params) throws SQLException { + IPage iPage; + String str1 = null; + try { + str1 = d.getDatabaseType(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + + LambdaQueryWrapper lambdaQueryWrapper1 = new LambdaQueryWrapper(); + lambdaQueryWrapper1.eq(OnlCgreportParam::getCgrheadId, onlCgreportHeadId); + List list1 = this.onlCgreportParamService.list((Wrapper)lambdaQueryWrapper1); + if (list1 != null && list1.size() > 0) { + for (OnlCgreportParam onlCgreportParam : list1) { + + Object object1 = params.get("self_" + onlCgreportParam.getParamName()); + String str5 = ""; + if (object1 != null) { + str5 = object1.toString(); + } else if (object1 == null && oConvertUtils.isNotEmpty(onlCgreportParam.getParamValue())) { + str5 = onlCgreportParam.getParamValue(); + } + + + String str6 = "${" + onlCgreportParam.getParamName() + "}"; + if (sql.indexOf(str6) > 0) { + if (str5 != null && str5.startsWith("'") && str5.endsWith("'")) { + str5 = str5.substring(1, str5.length() - 1); + } + + sql = sql.replace(str6, str5); continue; + } if (oConvertUtils.isNotEmpty(str5)) + { + params.put("popup_param_pre__" + onlCgreportParam.getParamName(), str5); + } + } + } + + HashMap hashMap = new HashMap<>(); + + Integer integer1 = Integer.valueOf(oConvertUtils.getInt(params.get("pageSize"), 10)); + Integer integer2 = Integer.valueOf(oConvertUtils.getInt(params.get("pageNo"), 1)); + Page page = new Page(integer2.intValue(), integer1.intValue()); + + LambdaQueryWrapper lambdaQueryWrapper2 = new LambdaQueryWrapper(); + lambdaQueryWrapper2.eq(OnlCgreportItem::getCgrheadId, onlCgreportHeadId); + lambdaQueryWrapper2.eq(OnlCgreportItem::getIsSearch, Integer.valueOf(1)); + List list2 = this.onlCgreportItemService.list((Wrapper)lambdaQueryWrapper2); + + String str2 = "jeecg_rp_temp."; + String str3 = a.a(list2, params, str2, null); + + + if (ReUtil.contains(" order\\s+by ", sql.toLowerCase()) && + "SQLSERVER".equalsIgnoreCase(str1)) { + throw new JeecgBootException("SqlServer不支持SQL内排序!"); + } + + + String str4 = "select * from (" + sql + ") jeecg_rp_temp where 1=1 " + str3; + + str4 = SqlUtil.b(str4); + Object object = params.get("column"); + if (object != null) { + str4 = str4 + " order by jeecg_rp_temp." + object.toString() + " " + params.get("order").toString(); + } + + a.info("报表查询sql=>\r\n" + str4); + + + if (Boolean.valueOf(String.valueOf(params.get("getAll"))).booleanValue()) { + List list = this.mapper.executeSelect(str4); + Page page1 = new Page(); + page1.setRecords(list); + page1.setTotal(list.size()); + } else { + iPage = this.mapper.selectPageBySql(page, str4); + } + hashMap.put("total", Long.valueOf(iPage.getTotal())); + + hashMap.put("records", com.jero.generater.modules.online.cgform.util.b.d(iPage.getRecords())); + return (Map)hashMap; + } + + + + + + + + + public Map executeSelectSqlDynamic(String dbKey, String sql, Map params, String onlCgreportHeadId) { + DynamicDataSourceModel dynamicDataSourceModel = DataSourceCachePool.getCacheDynamicDataSourceModel(dbKey); + + String str1 = (String)params.get("order"); + String str2 = (String)params.get("column"); + int i = oConvertUtils.getInt(params.get("pageNo"), 1); + int j = oConvertUtils.getInt(params.get("pageSize"), 10); + a.info("【Online多数据源逻辑】报表查询参数params: " + JSON.toJSONString(params)); + + + + LambdaQueryWrapper lambdaQueryWrapper1 = new LambdaQueryWrapper(); + lambdaQueryWrapper1.eq(OnlCgreportParam::getCgrheadId, onlCgreportHeadId); + List list1 = this.onlCgreportParamService.list((Wrapper)lambdaQueryWrapper1); + if (list1 != null && list1.size() > 0) { + for (OnlCgreportParam onlCgreportParam : list1) { + + Object object1 = params.get("self_" + onlCgreportParam.getParamName()); + String str = ""; + if (object1 != null) { + str = object1.toString(); + } else if (object1 == null && oConvertUtils.isNotEmpty(onlCgreportParam.getParamValue())) { + str = onlCgreportParam.getParamValue(); + } + sql = sql.replace("${" + onlCgreportParam.getParamName() + "}", str); + } + } + + + LambdaQueryWrapper lambdaQueryWrapper2 = new LambdaQueryWrapper(); + lambdaQueryWrapper2.eq(OnlCgreportItem::getCgrheadId, onlCgreportHeadId); + lambdaQueryWrapper2.eq(OnlCgreportItem::getIsSearch, Integer.valueOf(1)); + List list2 = this.onlCgreportItemService.list((Wrapper)lambdaQueryWrapper2); + + + if (ReUtil.contains(" order\\s+by ", sql.toLowerCase()) && + "3".equalsIgnoreCase(dynamicDataSourceModel.getDbType())) { + throw new JeecgBootException("SqlServer不支持SQL内排序!"); + } + + + String str3 = "jeecg_rp_temp."; + String str4 = DataBaseEnum.getDataBaseNameByValue(dynamicDataSourceModel.getDbType()); + String str5 = a.a(list2, params, str3, str4); + String str6 = "select * from (" + sql + ") jeecg_rp_temp where 1=1 " + str5; + + str6 = SqlUtil.b(str6); + + + String str7 = SqlUtils.getCountSql(str6); + + + Object object = params.get("column"); + if (object != null) { + str6 = str6 + " order by jeecg_rp_temp." + object.toString() + " " + params.get("order").toString(); + } + + + String str8 = str6; + + + if (!Boolean.valueOf(String.valueOf(params.get("getAll"))).booleanValue()) { + str8 = SqlUtils.createPageSqlByDBType(dynamicDataSourceModel.getDbType(), str6, i, j); + } + + + a.info("多数据源 报表查询sql=>querySql: " + str6); + a.info("多数据源 报表查询sql=>pageSQL: " + str8); + a.info("多数据源 报表查询sql=>countSql: " + str7); + + HashMap hashMap = new HashMap<>(); + + Map map = (Map)DynamicDBUtil.findOne(dbKey, str7, new Object[0]); + hashMap.put("total", map.get("total")); + + List list3 = DynamicDBUtil.findList(dbKey, str8, new Object[0]); + hashMap.put("records", com.jero.generater.modules.online.cgform.util.b.d(list3)); + return (Map)hashMap; + } + + + + @Transactional(rollbackFor = {Exception.class}) + public Result editAll(OnlCgreportModel values) { + OnlCgreportHead onlCgreportHead1 = values.getHead(); + + OnlCgreportHead onlCgreportHead2 = (OnlCgreportHead)getById(onlCgreportHead1.getId()); + if (onlCgreportHead2 == null) { + return Result.error("未找到对应实体"); + } + + updateById(onlCgreportHead1); + + + + + LambdaQueryWrapper lambdaQueryWrapper1 = new LambdaQueryWrapper(); + lambdaQueryWrapper1.eq(OnlCgreportItem::getCgrheadId, onlCgreportHead1.getId()); + this.onlCgreportItemService.remove((Wrapper)lambdaQueryWrapper1); + + LambdaQueryWrapper lambdaQueryWrapper2 = new LambdaQueryWrapper(); + lambdaQueryWrapper2.eq(OnlCgreportParam::getCgrheadId, onlCgreportHead1.getId()); + this.onlCgreportParamService.remove((Wrapper)lambdaQueryWrapper2); + + + for (OnlCgreportParam onlCgreportParam : values.getParams()) { + onlCgreportParam.setCgrheadId(onlCgreportHead1.getId()); + } + for (OnlCgreportItem onlCgreportItem : values.getItems()) { + + onlCgreportItem.setFieldName(onlCgreportItem.getFieldName().trim().toLowerCase()); + onlCgreportItem.setCgrheadId(onlCgreportHead1.getId()); + } + + this.onlCgreportItemService.saveBatch(values.getItems()); + this.onlCgreportParamService.saveBatch(values.getParams()); + return Result.OK("全部修改成功"); + } + + + + + @Transactional(rollbackFor = {Exception.class}) + public Result delete(String id) { + boolean bool = removeById(id); + if (bool) { + + LambdaQueryWrapper lambdaQueryWrapper1 = new LambdaQueryWrapper(); + lambdaQueryWrapper1.eq(OnlCgreportItem::getCgrheadId, id); + this.onlCgreportItemService.remove((Wrapper)lambdaQueryWrapper1); + + LambdaQueryWrapper lambdaQueryWrapper2 = new LambdaQueryWrapper(); + lambdaQueryWrapper2.eq(OnlCgreportParam::getCgrheadId, id); + this.onlCgreportParamService.remove((Wrapper)lambdaQueryWrapper2); + } + return Result.OK("删除成功"); + } + + + @Transactional(rollbackFor = {Exception.class}) + public Result bathDelete(String[] ids) { + for (String str : ids) { + boolean bool = removeById(str); + if (bool) { + + LambdaQueryWrapper lambdaQueryWrapper1 = new LambdaQueryWrapper(); + lambdaQueryWrapper1.eq(OnlCgreportItem::getCgrheadId, str); + this.onlCgreportItemService.remove((Wrapper)lambdaQueryWrapper1); + + LambdaQueryWrapper lambdaQueryWrapper2 = new LambdaQueryWrapper(); + lambdaQueryWrapper2.eq(OnlCgreportParam::getCgrheadId, str); + this.onlCgreportParamService.remove((Wrapper)lambdaQueryWrapper2); + } + } + return Result.OK("删除成功"); + } + + + + + + public List getSqlFields(String sql, String dbKey) throws SQLException { + List list = null; + if (StringUtils.isNotBlank(dbKey)) { + list = a(sql, dbKey); + } else { + list = a(sql, null); + } + return list; + } + + + + + + + public List getSqlParams(String sql) { + if (oConvertUtils.isEmpty(sql)) { + return null; + } + ArrayList arrayList = new ArrayList(); + String str = "\\$\\{\\w+\\}"; + + Pattern pattern = Pattern.compile(str); + Matcher matcher = pattern.matcher(sql); + while (matcher.find()) { + String str1 = matcher.group(); + arrayList.add(str1.substring(str1.indexOf("{") + 1, str1.indexOf("}"))); + } + return arrayList; + } + + + + + + + private List a(String paramString1, String paramString2) throws SQLException { + Set set; + if (oConvertUtils.isEmpty(paramString1)) { + return null; + } + + + paramString1 = paramString1.trim(); + if (paramString1.endsWith(";")) { + paramString1 = paramString1.substring(0, paramString1.length() - 1); + } + + + paramString1 = QueryGenerator.convertSystemVariables(paramString1); + + + paramString1 = SqlUtil.a(paramString1); + + + + + if (StringUtils.isNotBlank(paramString2)) { + a.info("parse sql : " + paramString1); + DynamicDataSourceModel dynamicDataSourceModel = DataSourceCachePool.getCacheDynamicDataSourceModel(paramString2); + + if (ReUtil.contains(" order\\s+by ", paramString1.toLowerCase()) && + "3".equalsIgnoreCase(dynamicDataSourceModel.getDbType())) { + throw new JeecgBootException("SqlServer不支持SQL内排序!"); + } + + + + + if ("1".equals(dynamicDataSourceModel.getDbType())) { + paramString1 = "SELECT * FROM (" + paramString1 + ") temp LIMIT 1"; + } else if ("2".equals(dynamicDataSourceModel.getDbType())) { + paramString1 = "SELECT * FROM (" + paramString1 + ") temp WHERE ROWNUM <= 1"; + } else if ("3".equals(dynamicDataSourceModel.getDbType())) { + paramString1 = "SELECT TOP 1 * FROM (" + paramString1 + ") temp"; + } + a.info("parse sql with page : " + paramString1); + Map map = (Map)DynamicDBUtil.findOne(paramString2, paramString1, new Object[0]); + if (map == null) { + throw new JeecgBootException("该报表sql没有数据"); + } + set = map.keySet(); + } else { + a.info("parse sql: " + paramString1); + + String str = null; + try { + str = d.getDatabaseType(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + if (ReUtil.contains(" order\\s+by ", paramString1.toLowerCase()) && + "SQLSERVER".equalsIgnoreCase(str)) { + throw new JeecgBootException("SqlServer不支持SQL内排序!"); + } + + + IPage iPage = this.mapper.selectPageBySql(new Page(1L, 1L), paramString1); + List list = iPage.getRecords(); + if (list.size() < 1) { + throw new JeecgBootException("该报表sql没有数据"); + } + set = ((Map)list.get(0)).keySet(); + } + + + if (set != null) { + set.remove("ROW_ID"); + } + return new ArrayList<>(set); + } + + + public Map queryCgReportConfig(String reportId) { + HashMap hashMap = new HashMap<>(0); + Map map = this.mapper.queryCgReportMainConfig(reportId); + List list1 = this.mapper.queryCgReportItems(reportId); + List list2 = this.mapper.queryCgReportParams(reportId); + + if (d.a()) { + hashMap.put("main", com.jero.generater.modules.online.cgform.util.b.b(map)); + hashMap.put("items", com.jero.generater.modules.online.cgform.util.b.d(list1)); + } else { + hashMap.put("main", map); + hashMap.put("items", list1); + } + + hashMap.put("params", list2); + return (Map)hashMap; + } + + + + + + + public List> queryByCgReportSql(String sql, Map params, Map paramData, int pageNo, int pageSize) { + String str = SqlUtil.a(sql, params); + List> list = null; + + if (paramData != null && paramData.size() == 0) { + paramData = null; + } + if (pageNo == -1 && pageSize == -1) { + list = this.mapper.executeSelete(str); + } else { + Page page = new Page(pageNo, pageSize); + IPage iPage = this.mapper.selectPageBySql(page, str); + if (iPage.getRecords() != null && iPage.getRecords().size() > 0) { + list.addAll(iPage.getRecords()); + } + } + return list; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\a\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/c.java new file mode 100644 index 00000000..12ef6961 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/c.java @@ -0,0 +1,61 @@ +package com.jero.generater.modules.online.cgreport.service.a; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import java.lang.invoke.SerializedLambda; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.cgreport.mapper.OnlCgreportItemMapper; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportItemService; +import org.springframework.stereotype.Service; + + + + + + + + + + +@Service("onlCgreportItemServiceImpl") +public class c + extends ServiceImpl + implements IOnlCgreportItemService +{ + public List> getAutoListQueryInfo(String cgrheadId) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); + lambdaQueryWrapper.eq(OnlCgreportItem::getCgrheadId, cgrheadId); + lambdaQueryWrapper.eq(OnlCgreportItem::getIsSearch, Integer.valueOf(1)); + List list = list((Wrapper)lambdaQueryWrapper); + ArrayList> arrayList = new ArrayList(); + byte b = 0; + for (OnlCgreportItem onlCgreportItem : list) { + HashMap hashMap = new HashMap<>(); + hashMap.put("label", onlCgreportItem.getFieldTxt()); + if (oConvertUtils.isNotEmpty(onlCgreportItem.getDictCode())) { + hashMap.put("view", "list"); + } else { + hashMap.put("view", onlCgreportItem.getFieldType().toLowerCase()); + } + hashMap.put("mode", oConvertUtils.isEmpty(onlCgreportItem.getSearchMode()) ? "single" : onlCgreportItem.getSearchMode()); + hashMap.put("field", onlCgreportItem.getFieldName()); + if (++b > 2) { + hashMap.put("hidden", "1"); + } + arrayList.add(hashMap); + } + return (List)arrayList; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\a\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/d.java new file mode 100644 index 00000000..181e7e96 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/service/a/d.java @@ -0,0 +1,16 @@ +package com.jero.generater.modules.online.cgreport.service.a; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportParam; +import com.jero.generater.modules.online.cgreport.mapper.OnlCgreportParamMapper; +import com.jero.generater.modules.online.cgreport.service.IOnlCgreportParamService; +import org.springframework.stereotype.Service; + +@Service("onlCgreportParamServiceImpl") +public class d extends ServiceImpl implements IOnlCgreportParamService {} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgreport\service\a\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/util/SqlUtil.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/util/SqlUtil.java new file mode 100644 index 00000000..0eca6fbb --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/util/SqlUtil.java @@ -0,0 +1,289 @@ +package com.jero.generater.modules.online.cgreport.util; + +import java.text.MessageFormat; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.util.oConvertUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + + + + +public class SqlUtil +{ + private static final Logger m = LoggerFactory.getLogger(SqlUtil.class); + + + public static final String a = "select * from ( {0}) sel_tab00 limit {1},{2}"; + + + public static final String b = "select * from ( {0}) sel_tab00 limit {2} offset {1}"; + + + public static final String c = "select * from (select row_.*,rownum rownum_ from ({0}) row_ where rownum <= {1}) where rownum_>{2}"; + + + public static final String d = "select * from ( select row_number() over(order by tempColumn) tempRowNumber, * from (select top {1} tempColumn = 0, {0}) t ) tt where tempRowNumber > {2}"; + + + public static final String e = "select distinct table_name from information_schema.columns where table_schema = {0}"; + + + public static final String f = "SELECT distinct c.relname AS table_name FROM pg_class c"; + + + public static final String g = "select distinct colstable.table_name as table_name from user_tab_cols colstable"; + + public static final String h = "select distinct c.name as table_name from sys.objects c"; + + public static final String i = "select column_name from information_schema.columns where table_name = {0} and table_schema = {1}"; + + public static final String j = "select table_name from information_schema.columns where table_name = {0}"; + + public static final String k = "select column_name from all_tab_columns where table_name ={0}"; + + public static final String l = "select name from syscolumns where id={0}"; + + + public static String a(String paramString, Map paramMap) { + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append("SELECT t.* FROM ( "); + stringBuilder.append(paramString + " "); + stringBuilder.append(") t "); + if (paramMap != null && paramMap.size() >= 1) { + stringBuilder.append("WHERE 1=1 "); + Iterator iterator = paramMap.keySet().iterator(); + while (iterator.hasNext()) { + String str1 = String.valueOf(iterator.next()); + String str2 = String.valueOf(paramMap.get(str1)); + if (oConvertUtils.isNotEmpty(str2)) { + stringBuilder.append(" AND "); + stringBuilder.append(" " + str1 + str2); + } + } + } + return stringBuilder.toString(); + } + + + + + + + + public static String b(String paramString, Map paramMap) { + String str = a(paramString, paramMap); + + str = "SELECT COUNT(*) COUNT FROM (" + str + ") t2"; + return str; + } + + + + + + + + + + public static String a(String paramString, Map paramMap, int paramInt1, int paramInt2) { + String str = "jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false"; + int i = (paramInt1 - 1) * paramInt2; + String[] arrayOfString = new String[3]; + arrayOfString[0] = paramString; + arrayOfString[1] = i + ""; + arrayOfString[2] = paramInt2 + ""; + if (str.indexOf("MYSQL") != -1) { + paramString = MessageFormat.format("select * from ( {0}) sel_tab00 limit {1},{2}", (Object[])arrayOfString); + } else if (str.indexOf("POSTGRESQL") != -1) { + paramString = MessageFormat.format("select * from ( {0}) sel_tab00 limit {2} offset {1}", (Object[])arrayOfString); + } else { + int j = (paramInt1 - 1) * paramInt2; + int k = j + paramInt2; + arrayOfString[2] = Integer.toString(j); + arrayOfString[1] = Integer.toString(k); + if (str.indexOf("ORACLE") != -1) { + paramString = MessageFormat.format("select * from (select row_.*,rownum rownum_ from ({0}) row_ where rownum <= {1}) where rownum_>{2}", (Object[])arrayOfString); + } else if (str.indexOf("SQLSERVER") != -1) { + arrayOfString[0] = paramString.substring(c(paramString)); + paramString = MessageFormat.format("select * from ( select row_number() over(order by tempColumn) tempRowNumber, * from (select top {1} tempColumn = 0, {0}) t ) tt where tempRowNumber > {2}", (Object[])arrayOfString); + } + } + return paramString; + } + + + + + + + + + + public static String a(String paramString1, String paramString2, String paramString3, Map paramMap, int paramInt1, int paramInt2) { + paramString3 = a(paramString3, paramMap); + int i = (paramInt1 - 1) * paramInt2; + String[] arrayOfString = new String[3]; + arrayOfString[0] = paramString3; + arrayOfString[1] = i + ""; + arrayOfString[2] = paramInt2 + ""; + + String str = ""; + if ("MYSQL".equalsIgnoreCase(str)) { + paramString3 = MessageFormat.format("select * from ( {0}) sel_tab00 limit {1},{2}", (Object[])arrayOfString); + } else if ("POSTGRESQL".equalsIgnoreCase(str)) { + paramString3 = MessageFormat.format("select * from ( {0}) sel_tab00 limit {2} offset {1}", (Object[])arrayOfString); + } else { + int j = (paramInt1 - 1) * paramInt2; + int k = j + paramInt2; + arrayOfString[2] = Integer.toString(j); + arrayOfString[1] = Integer.toString(k); + if ("ORACLE".equalsIgnoreCase(str)) { + paramString3 = MessageFormat.format("select * from (select row_.*,rownum rownum_ from ({0}) row_ where rownum <= {1}) where rownum_>{2}", (Object[])arrayOfString); + } else if ("SQLSERVER".equalsIgnoreCase(str)) { + arrayOfString[0] = paramString3.substring(c(paramString3)); + paramString3 = MessageFormat.format("select * from ( select row_number() over(order by tempColumn) tempRowNumber, * from (select top {1} tempColumn = 0, {0}) t ) tt where tempRowNumber > {2}", (Object[])arrayOfString); + } + } + return paramString3; + } + + private static int c(String paramString) { + int i = paramString.toLowerCase().indexOf("select"); + int j = paramString.toLowerCase().indexOf("select distinct"); + return i + ((j == i) ? 15 : 6); + } + + + public static String a(String paramString, String... paramVarArgs) { + if (oConvertUtils.isNotEmpty(paramString)) { + if ("MYSQL".equals(paramString)) + return MessageFormat.format("select distinct table_name from information_schema.columns where table_schema = {0}", (Object[])paramVarArgs); + if ("ORACLE".equals(paramString)) + return "select distinct colstable.table_name as table_name from user_tab_cols colstable"; + if ("POSTGRESQL".equals(paramString)) + return "SELECT distinct c.relname AS table_name FROM pg_class c"; + if ("SQLSERVER".equals(paramString)) { + return "select distinct c.name as table_name from sys.objects c"; + } + } + return null; + } + + public static String b(String paramString, String... paramVarArgs) { + if (oConvertUtils.isNotEmpty(paramString)) { + if ("MYSQL".equals(paramString)) + return MessageFormat.format("select column_name from information_schema.columns where table_name = {0} and table_schema = {1}", (Object[])paramVarArgs); + if ("ORACLE".equals(paramString)) + return MessageFormat.format("select column_name from all_tab_columns where table_name ={0}", (Object[])paramVarArgs); + if ("POSTGRESQL".equals(paramString)) + return MessageFormat.format("select table_name from information_schema.columns where table_name = {0}", (Object[])paramVarArgs); + if ("SQLSERVER".equals(paramString)) { + return MessageFormat.format("select name from syscolumns where id={0}", (Object[])paramVarArgs); + } + } + return null; + } + + + + + + + + + public static String a(String paramString) { + paramString = paramString.toLowerCase(); + String str = "(\\w|\\.)+ *\\S+ *\\S*\\$\\{\\w+\\}\\S*"; + Pattern pattern = Pattern.compile(str); + Matcher matcher = pattern.matcher(paramString); + while (matcher.find()) { + String str1 = matcher.group(); + m.info("${}匹配带参SQL片段 ==>" + str1); + if (str1.indexOf("where") != -1) { + paramString = paramString.replace(str1, "where 1=1"); + } else if (str1.indexOf("and") != -1) { + paramString = paramString.replace(str1, "and 1=1"); + } else if (str1.indexOf("or") != -1) { + paramString = paramString.replace(str1, "or 1=1"); + } else { + paramString = paramString.replace(str1, "1=1"); + } + + m.info("${}替换后结果 ==>" + paramString); + } + + + paramString = paramString.replaceAll("(?i)AND *1=1", ""); + return paramString; + } + + + + public static void main(String[] args) { + String str = "select * from sys_user where id ='${id}' and del_flag= ${flag}"; + System.out.println(a(str)); + } + + + + + + + public static Map a(HttpServletRequest paramHttpServletRequest) { + Map map = paramHttpServletRequest.getParameterMap(); + + HashMap hashMap = new HashMap<>(); + Iterator iterator = map.entrySet().iterator(); + + + String str1 = ""; + String str2 = ""; + Object object = null; + while (iterator.hasNext()) { + Map.Entry entry = iterator.next(); + str1 = (String)entry.getKey(); + object = entry.getValue(); + if ("_t".equals(str1) || null == object) { + str2 = ""; + } else if (object instanceof String[]) { + String[] arrayOfString = (String[])object; + for (byte b = 0; b < arrayOfString.length; b++) { + str2 = arrayOfString[b] + ","; + } + str2 = str2.substring(0, str2.length() - 1); + } else { + str2 = object.toString(); + } + hashMap.put(str1, str2); + } + return (Map)hashMap; + } + + + + + + public static String b(String paramString) { + String str1 = QueryGenerator.convertSystemVariables(paramString); + String str2 = QueryGenerator.getAllConfigAuth(); + if (paramString.toLowerCase().indexOf("where") > 0) { + return str1 + str2; + } + return str1 + " where 1=1 " + str2; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgrepor\\util\SqlUtil.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/util/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/util/a.java new file mode 100644 index 00000000..770c0ff6 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/cgreport/util/a.java @@ -0,0 +1,297 @@ +package com.jero.generater.modules.online.cgreport.util; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import java.io.UnsupportedEncodingException; +import java.sql.SQLException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import javax.servlet.http.HttpServletRequest; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.util.DateUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.util.b; +import com.jero.generater.modules.online.cgreport.entity.OnlCgreportItem; +import com.jero.generater.modules.online.config.b.d; +import com.jero.generater.modules.online.config.exception.DBException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + + + + + +public class a +{ + private static final Logger a = LoggerFactory.getLogger(a.class); + + + + + + + + + + public static void a(HttpServletRequest paramHttpServletRequest, Map paramMap1, Map paramMap2, Map paramMap3) { + String str1 = (String)paramMap1.get("field_name"); + String str2 = (String)paramMap1.get("search_mode"); + String str3 = (String)paramMap1.get("field_type"); + if ("single".equals(str2)) { + + String str = paramHttpServletRequest.getParameter(str1.toLowerCase()); + try { + if (oConvertUtils.isEmpty(str)) { + return; + } + String str4 = paramHttpServletRequest.getQueryString(); + if (str4.contains(str1 + "=")) { + String str5 = new String(str.getBytes("ISO-8859-1"), "UTF-8"); + str = str5; + } + } catch (UnsupportedEncodingException unsupportedEncodingException) { + a.error(unsupportedEncodingException.getMessage(), unsupportedEncodingException); + return; + } + if (oConvertUtils.isNotEmpty(str)) { + if (str.contains("*")) { + + str = str.replaceAll("\\*", "%"); + paramMap2.put(str1, " LIKE :" + str1); + } else { + paramMap2.put(str1, " = :" + str1); + } + } + paramMap3.put(str1, a(str3, str, true)); + } else if ("group".equals(str2)) { + + String str4 = paramHttpServletRequest.getParameter(str1.toLowerCase() + "_begin"); + String str5 = paramHttpServletRequest.getParameter(str1.toLowerCase() + "_end"); + if (oConvertUtils.isNotEmpty(str4)) { + String str = " >= :" + str1 + "_begin"; + paramMap2.put(str1, str); + paramMap3.put(str1 + "_begin", a(str3, str4, true)); + } + if (oConvertUtils.isNotEmpty(str5)) { + String str = " <= :" + str1 + "_end"; + paramMap2.put(new String(str1), str); + paramMap3.put(str1 + "_end", a(str3, str5, false)); + } + } + } + + private static Object a(String paramString1, String paramString2, boolean paramBoolean) { + String str = null; + if (oConvertUtils.isNotEmpty(paramString2)) { + if ("String".equalsIgnoreCase(paramString1)) { + str = paramString2; + } else if ("Date".equalsIgnoreCase(paramString1)) { + if (paramString2.length() != 19 && + paramString2.length() == 10) { + if (paramBoolean) { + paramString2 = paramString2 + " 00:00:00"; + } else { + paramString2 = paramString2 + " 23:59:59"; + } + } + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date date = DateUtils.str2Date(paramString2, simpleDateFormat); + } else if ("Double".equalsIgnoreCase(paramString1)) { + str = paramString2; + } else if ("Integer".equalsIgnoreCase(paramString1)) { + str = paramString2; + } else { + str = paramString2; + } + } + return str; + } + + + + + + + + public static String a(List> paramList, Long paramLong) { + JSONObject jSONObject = new JSONObject(); + JSONArray jSONArray = new JSONArray(); + jSONObject.put("total", paramLong); + if (paramList != null) { + for (Map map : paramList) { + JSONObject jSONObject1 = new JSONObject(); + Iterator iterator = map.keySet().iterator(); + while (iterator.hasNext()) { + String str1 = iterator.next(); + String str2 = String.valueOf(map.get(str1)); + str1 = str1.toLowerCase(); + if (str1.contains("time") || str1.contains("date")) { + str2 = a(str2); + } + jSONObject1.put(str1, str2); + } + jSONArray.add(jSONObject1); + } + } + jSONObject.put("rows", jSONArray); + return jSONObject.toString(); + } + + + + + + + + public static String a(List> paramList) { + JSONArray jSONArray = new JSONArray(); + for (Map map : paramList) { + JSONObject jSONObject = new JSONObject(); + Iterator iterator = map.keySet().iterator(); + while (iterator.hasNext()) { + String str1 = iterator.next(); + String str2 = String.valueOf(map.get(str1)); + str1 = str1.toLowerCase(); + if (str1.contains("time") || str1.contains("date")) { + str2 = a(str2); + } + jSONObject.put(str1, str2); + } + jSONArray.add(jSONObject); + } + return jSONArray.toString(); + } + + + + + + + public static String a(String paramString) { + SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); + SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date date = null; + try { + date = simpleDateFormat1.parse(paramString); + return simpleDateFormat2.format(date); + } catch (Exception exception) { + return paramString; + } + } + + + + + + + + + public static String a(List paramList, Map paramMap, String paramString1, String paramString2) { + StringBuffer stringBuffer = new StringBuffer(); + String str = paramString2; + if (str == null) { + try { + str = d.getDatabaseType(); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + } + HashSet hashSet = new HashSet(); + for (OnlCgreportItem onlCgreportItem : paramList) { + String str1 = onlCgreportItem.getFieldName(); + String str2 = onlCgreportItem.getFieldType(); + + if (1 == onlCgreportItem.getIsSearch().intValue()) { + + if ("group".equals(onlCgreportItem.getSearchMode())) { + + + Object object1 = paramMap.get(str1 + "_begin"); + if (object1 != null) { + stringBuffer.append(" and " + paramString1 + str1 + " >= "); + if ("Long".equals(str2) || "Integer".equals(str2)) { + + stringBuffer.append(object1.toString()); + } else if ("ORACLE".equals(str)) { + if (str2.toLowerCase().equals("datetime")) { + stringBuffer.append(b.a(object1.toString())); + } else if (str2.toLowerCase().equals("date")) { + stringBuffer.append(b.b(object1.toString())); + } + } else { + + stringBuffer.append("'" + object1.toString() + "'"); + } + } + Object object2 = paramMap.get(str1 + "_end"); + if (object2 != null) { + stringBuffer.append(" and " + paramString1 + str1 + " <= "); + if ("Long".equals(str2) || "Integer".equals(str2)) { + stringBuffer.append(object2.toString()); continue; + } if ("ORACLE".equals(str)) { + if (str2.toLowerCase().equals("datetime")) { + stringBuffer.append(b.a(object2.toString())); continue; + } if (str2.toLowerCase().equals("date")) + stringBuffer.append(b.b(object2.toString())); + continue; + } + stringBuffer.append("'" + object2.toString() + "'"); + } + + continue; + } + Object object = paramMap.get(str1); + if (object != null) { + + boolean bool = (!"Long".equals(str2) && !"Integer".equals(str2)) ? true : false; + + if ("ORACLE".equals(str)) { + if (str2.toLowerCase().equals("datetime")) { + object = b.a(object.toString()); + bool = false; + } else if (str2.toLowerCase().equals("date")) { + object = b.b(object.toString()); + bool = false; + } + } + String str3 = QueryGenerator.getSingleQueryConditionSql(str1, paramString1, object, bool, str); + stringBuffer.append(" and " + str3); + hashSet.add(str1); + } + } + } + + + + + + for (String str1 : paramMap.keySet()) { + if (str1.startsWith("popup_param_pre__")) { + String str2 = paramMap.get(str1).toString(); + String str3 = str1.substring("popup_param_pre__".length()); + if (hashSet.contains(str3)) { + continue; + } + + String str4 = QueryGenerator.getSingleQueryConditionSql(str3, paramString1, str2, false); + stringBuffer.append(" and " + str4); + } + } + + return stringBuffer.toString(); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\cgrepor\\util\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/a.java new file mode 100644 index 00000000..2a893a33 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/a.java @@ -0,0 +1,160 @@ +package com.jero.generater.modules.online.config.a; + +import java.util.List; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.cgform.entity.OnlCgformIndex; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +public class a +{ + private String a; + private String b; + private String c; + private String d; + private Integer e; + private String f; + private String g; + private Integer h; + private String i; + private Integer j; + private List k; + private List l; + private String m; + private String n; + private String o; + private b p; + + public String getTableName() { + return this.a; + } + public void setTableName(String tableName) { + this.a = tableName; + } + public String getIsDbSynch() { + return this.b; + } + public void setIsDbSynch(String isDbSynch) { + this.b = isDbSynch; + } + public String getContent() { + return this.c; + } + public void setContent(String content) { + this.c = content; + } + public String getJformVersion() { + return this.d; + } + public void setJformVersion(String jformVersion) { + this.d = jformVersion; + } + public Integer getJformType() { + return this.e; + } + public void setJformType(Integer jformType) { + this.e = jformType; + } + public String getJformPkType() { + return this.f; + } + public void setJformPkType(String jformPkType) { + this.f = jformPkType; + } + public String getJformPkSequence() { + return this.g; + } + public void setJformPkSequence(String jformPkSequence) { + this.g = jformPkSequence; + } + public Integer getRelationType() { + return this.h; + } + public void setRelationType(Integer relationType) { + this.h = relationType; + } + public String getSubTableStr() { + return this.i; + } + public void setSubTableStr(String subTableStr) { + this.i = subTableStr; + } + public Integer getTabOrder() { + return this.j; + } + public void setTabOrder(Integer tabOrder) { + this.j = tabOrder; + } + public List getColumns() { + return this.k; + } + public void setColumns(List columns) { + this.k = columns; + } + public List getIndexes() { + return this.l; + } + public void setIndexes(List indexes) { + this.l = indexes; + } + public String getTreeParentIdFieldName() { + return this.m; + } + public void setTreeParentIdFieldName(String treeParentIdFieldName) { + this.m = treeParentIdFieldName; + } + public String getTreeIdFieldname() { + return this.n; + } + public void setTreeIdFieldname(String treeIdFieldname) { + this.n = treeIdFieldname; + } + public String getTreeFieldname() { + return this.o; + } + public void setTreeFieldname(String treeFieldname) { + this.o = treeFieldname; + } + + + public b getDbConfig() { + return this.p; + } + public void setDbConfig(b dbConfig) { + this.p = dbConfig; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\a\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/b.java new file mode 100644 index 00000000..ebba5d6f --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/b.java @@ -0,0 +1,58 @@ +package com.jero.generater.modules.online.config.a; + +import com.jero.common.util.oConvertUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +@Component("dataBaseConfig") +@ConfigurationProperties(prefix = "spring.datasource.dynamic.datasource.master") +public class b { + @Autowired + private c dmDataBaseConfig; + private String a; + private String b; + private String c; + private String d; + private d e; + + public d getDruid() { + if (this.e == null) { + return this.dmDataBaseConfig.getDruid(); + } + return this.e; + } + public void setDruid(d druid) { + this.e = druid; + } + public String getUrl() { + return oConvertUtils.getString(this.a, this.dmDataBaseConfig.getUrl()); + } + public void setUrl(String url) { + this.a = url; + } + public String getUsername() { + return oConvertUtils.getString(this.b, this.dmDataBaseConfig.getUsername()); + } + public void setUsername(String username) { + this.b = username; + } + public String getPassword() { + return oConvertUtils.getString(this.c, this.dmDataBaseConfig.getPassword()); + } + public void setPassword(String password) { + this.c = password; + } + public String getDriverClassName() { + return oConvertUtils.getString(this.d, this.dmDataBaseConfig.getDriverClassName()); + } + public void setDriverClassName(String driverClassName) { + this.d = driverClassName; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\a\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/c.java new file mode 100644 index 00000000..5fb02899 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/c.java @@ -0,0 +1,53 @@ +package com.jero.generater.modules.online.config.a; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + + +@Component("dmDataBaseConfig") +@ConfigurationProperties(prefix = "spring.datasource.druid") +public class c +{ + private String a; + private String b; + private String c; + private String d; + private d e; + + public d getDruid() { + return this.e; + } + public void setDruid(d druid) { + this.e = druid; + } + public String getUrl() { + return this.a; + } + public void setUrl(String url) { + this.a = url; + } + public String getUsername() { + return this.b; + } + public void setUsername(String username) { + this.b = username; + } + public String getPassword() { + return this.c; + } + public void setPassword(String password) { + this.c = password; + } + public String getDriverClassName() { + return this.d; + } + public void setDriverClassName(String driverClassName) { + this.d = driverClassName; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\a\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/d.java new file mode 100644 index 00000000..a2e1cda2 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/a/d.java @@ -0,0 +1,19 @@ +package com.jero.generater.modules.online.config.a; + +public class d { + private String a; + + public String getPublicKey() { + return this.a; + } + + public void setPublicKey(String publicKey) { + this.a = publicKey; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\a\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/a.java new file mode 100644 index 00000000..534ccbd3 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/a.java @@ -0,0 +1,209 @@ +package com.jero.generater.modules.online.config.b; + +import org.apache.commons.lang.StringUtils; + + + +public class a +{ + private String a; + private String b; + private String c; + private int d; + private String e; + private String f; + private String g; + private int h; + private String i; + private String j; + private String k; + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a a1 = (a)obj; + + if (this.e.contains("date") || this.e.contains("blob") || this.e.contains("text")) { + return (this.c.equals(a1.getColumnName()) && this.i + .equals(a1.i) && + a(this.f, a1.getComment()) && a(this.g, a1.getFieldDefault())); + } + + + + + + + return (this.e.equals(a1.getColunmType()) && this.i + .equals(a1.i) && this.d == a1.getColumnSize() && + a(this.f, a1.getComment()) && a(this.g, a1.getFieldDefault())); + } + + + + + + + + + + + public boolean a(Object paramObject, String paramString) { + if (paramObject == this) { + return true; + } + if (!(paramObject instanceof a)) { + return false; + } + a a1 = (a)paramObject; + if ("SQLSERVER".equals(paramString)) { + + if (this.e.contains("date") || this.e.contains("blob") || this.e.contains("text")) { + return (this.c.equals(a1.getColumnName()) && this.i.equals(a1.i)); + } + return (this.e.equals(a1.getColunmType()) && this.i.equals(a1.i) && this.d == a1.getColumnSize() && a(this.g, a1.getFieldDefault())); + } + + if ("POSTGRESQL".equals(paramString)) { + + if (this.e.contains("date") || this.e.contains("blob") || this.e.contains("text")) { + return (this.c.equals(a1.getColumnName()) && this.i.equals(a1.i)); + } + return (this.e.equals(a1.getColunmType()) && this.i.equals(a1.i) && this.d == a1.getColumnSize() && a(this.g, a1.getFieldDefault())); + } + + if ("ORACLE".equals(paramString)) { + + if (this.e.contains("date") || this.e.contains("blob") || this.e.contains("text")) { + return (this.c.equals(a1.getColumnName()) && this.i.equals(a1.i)); + } + return (this.e.equals(a1.getColunmType()) && this.i.equals(a1.i) && this.d == a1.getColumnSize() && a(this.g, a1.getFieldDefault())); + } + + + if (this.e.contains("date") || this.e.contains("blob") || this.e.contains("text")) + { + return (this.e.equals(a1.getColunmType()) && this.c.equals(a1.getColumnName()) && this.i + .equals(a1.i) && + a(this.f, a1.getComment()) && a(this.g, a1.getFieldDefault())); + } + + return (this.e.equals(a1.getColunmType()) && this.i + .equals(a1.i) && this.d == a1.getColumnSize() && + a(this.f, a1.getComment()) && a(this.g, a1.getFieldDefault())); + } + + + + + public boolean a(a parama) { + if (parama == this) { + return true; + } + return a(this.f, parama.getComment()); + } + + public boolean b(a parama) { + if (parama == this) { + return true; + } + return a(this.f, parama.getComment()); + } + + private boolean a(String paramString1, String paramString2) { + boolean bool1 = StringUtils.isNotEmpty(paramString1); + boolean bool2 = StringUtils.isNotEmpty(paramString2); + if (bool1 != bool2) return false; + if (bool1) return paramString1.equals(paramString2); + return true; + } + + public String getColumnName() { + return this.c; + } + public int getColumnSize() { + return this.d; + } + public String getColunmType() { + return this.e; + } + public String getComment() { + return this.f; + } + public int getDecimalDigits() { + return this.h; + } + public String getIsNullable() { + return this.i; + } + public String getOldColumnName() { + return this.k; + } + + public int hashCode() { + return this.d + this.e.hashCode() * this.c.hashCode(); + } + public void setColumnName(String columnName) { + this.c = columnName; + } + public void setColumnSize(int columnSize) { + this.d = columnSize; + } + + public void setColunmType(String colunmType) { + this.e = colunmType; + } + public void setComment(String comment) { + this.f = comment; + } + public void setDecimalDigits(int decimalDigits) { + this.h = decimalDigits; + } + public void setIsNullable(String isNullable) { + this.i = isNullable; + } + public void setOldColumnName(String oldColumnName) { + this.k = oldColumnName; + } + + + public String toString() { + return this.c + "," + this.e + "," + this.i + "," + this.d; + } + public String getColumnId() { + return this.b; + } + public void setColumnId(String columnId) { + this.b = columnId; + } + public String getTableName() { + return this.a; + } + public void setTableName(String tableName) { + this.a = tableName; + } + public String getFieldDefault() { + return this.g; + } + public void setFieldDefault(String fieldDefault) { + this.g = fieldDefault; + } + + public String getPkType() { + return this.j; + } + + public void setPkType(String pkType) { + this.j = pkType; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/b.java new file mode 100644 index 00000000..0af56143 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/b.java @@ -0,0 +1,33 @@ +package com.jero.generater.modules.online.config.b; + +public class b { + public static final String a = "BigDecimal"; + + public static final String b = "Blob"; + + public static final String c = "Date"; + + public static final String d = "datetime"; + + public static final String e = "decimal"; + + public static final String f = "double"; + + public static final String g = "int"; + + public static final String h = "number"; + + public static final String i = "string"; + + public static final String j = "Text"; + + public static final String k = "textarea"; + + public static final String l = "varchar"; +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/c.java new file mode 100644 index 00000000..2ce36146 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/c.java @@ -0,0 +1,546 @@ +package com.jero.generater.modules.online.config.b; +import com.alibaba.druid.filter.config.ConfigTools; +import freemarker.template.TemplateException; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.sql.Connection; +import java.sql.DatabaseMetaData; +import java.sql.ResultSet; +import java.sql.ResultSetMetaData; +import java.sql.SQLException; +import java.sql.SQLSyntaxErrorException; +import java.util.ArrayList; +import java.util.EnumSet; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.apache.commons.lang.StringUtils; +import org.hibernate.Session; +import org.hibernate.boot.Metadata; +import org.hibernate.boot.MetadataSources; +import org.hibernate.boot.registry.StandardServiceRegistry; +import org.hibernate.boot.registry.StandardServiceRegistryBuilder; +import org.hibernate.service.ServiceRegistry; +import org.hibernate.tool.hbm2ddl.SchemaExport; +import org.hibernate.tool.schema.TargetType; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; +import com.jero.generater.modules.online.config.a.a; +import com.jero.generater.modules.online.config.exception.DBException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class c { + private static final Logger a = LoggerFactory.getLogger(c.class); + + private static final String b = "com.jero.generater.modules.online/config/engine/tableTemplate.ftl"; + + private static DbTableHandleI c; + + public c() throws SQLException, DBException { + c = d.getTableHandle(); + } + + + + + + + + + + + + public static void a(a parama) throws IOException, TemplateException, HibernateException, SQLException, DBException { + String str1 = d.getDatabaseType(); + + + if ("ORACLE".equals(str1)) { + + ArrayList arrayList = Lists.newArrayList(); + for (OnlCgformField onlCgformField : parama.getColumns()) { + if ("int".equals(onlCgformField.getDbType())) { + onlCgformField.setDbType("double"); + onlCgformField.setDbPointLength(Integer.valueOf(0)); + } + arrayList.add(onlCgformField); + } + parama.setColumns(arrayList); + } + + + String str2 = g.a("com.jero.generater.modules.online/config/engine/tableTemplate.ftl", a(parama, str1)); + a.info(str2); + + HashMap hashMap = new HashMap<>(); + com.jero.generater.modules.online.config.a.b b = parama.getDbConfig(); + hashMap.put("hibernate.connection.driver_class", b.getDriverClassName()); + hashMap.put("hibernate.connection.url", b.getUrl()); + hashMap.put("hibernate.connection.username", b.getUsername()); + + if (b.getDruid() != null && oConvertUtils.isNotEmpty(b.getDruid().getPublicKey())) { + a.info(" dbconfig.getDruid().getPublicKey() = " + b.getDruid().getPublicKey()); + try { + String str = ConfigTools.decrypt(b.getDruid().getPublicKey(), b.getPassword()); + a.info(" 解密密码 decryptPassword = " + str); + hashMap.put("hibernate.connection.password", str); + } catch (Exception exception) { + exception.printStackTrace(); + } + } else { + hashMap.put("hibernate.connection.password", b.getPassword()); + } + hashMap.put("hibernate.show_sql", Boolean.valueOf(true)); + hashMap.put("hibernate.format_sql", Boolean.valueOf(true)); + + hashMap.put("hibernate.temp.use_jdbc_metadata_defaults", Boolean.valueOf(false)); + + hashMap.put("hibernate.dialect", d.b(str1)); + + + + + + + hashMap.put("hibernate.hbm2ddl.auto", "create"); + + hashMap.put("hibernate.connection.autocommit", Boolean.valueOf(false)); + hashMap.put("hibernate.current_session_context_class", "thread"); + + StandardServiceRegistry standardServiceRegistry = (new StandardServiceRegistryBuilder()).applySettings(hashMap).build(); + MetadataSources metadataSources = new MetadataSources((ServiceRegistry)standardServiceRegistry); + + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(str2.getBytes()); + metadataSources.addInputStream(byteArrayInputStream); + Metadata metadata = metadataSources.buildMetadata(); + + SchemaExport schemaExport = new SchemaExport(); + schemaExport.create(EnumSet.of(TargetType.DATABASE), metadata); + + byteArrayInputStream.close(); + + + + + + + + + + + + + + + + + + + + + + List list = schemaExport.getExceptions(); + for (Exception exception : list) { + + + if ("java.sql.SQLSyntaxErrorException".equals(exception.getCause().getClass().getName())) { + SQLSyntaxErrorException sQLSyntaxErrorException = (SQLSyntaxErrorException)exception.getCause(); + if ("42000".equals(sQLSyntaxErrorException.getSQLState())) { + + + if (1064 == sQLSyntaxErrorException.getErrorCode() || 903 == sQLSyntaxErrorException.getErrorCode()) { + throw new DBException("请确认表名是否为关键字。"); + } + + + continue; + } + } else if ("com.microsoft.sqlserver.jdbc.SQLServerException".equals(exception.getCause().getClass().getName())) { + if (exception.getCause().toString().indexOf("Incorrect syntax near the keyword") != -1) { + exception.printStackTrace(); + throw new DBException(exception.getCause().getMessage()); + } + a.error(exception.getMessage()); + + continue; + } + throw new DBException(exception.getMessage()); + } + } + + + + + + + + + public List b(a parama) throws DBException, SQLException { + String str1 = d.getDatabaseType(); + String str2 = d.a(parama.getTableName(), str1); + String str3 = "alter table " + str2 + " "; + ArrayList arrayList = new ArrayList(); + + try { + Map map1 = c(null, str2); + Map map2 = c(parama); + Map map = a(parama.getColumns()); + for (String str : map2.keySet()) { + + if (!map1.containsKey(str)) { + + + a a3 = map2.get(str); + String str4 = map.get(str); + if (map.containsKey(str) && map1.containsKey(str4)) { + a a4 = map1.get(str4); + String str5 = c.getReNameFieldName(a3); + if ("SQLSERVER".equals(str1)) { + + arrayList.add(str5); + } else { + arrayList.add(str3 + str5); + } + + String str6 = d(str, a3.getColumnId()); + arrayList.add(str6); + + + + if (!a4.equals(a3)) { + arrayList.add(str3 + a(a3, a4)); + if ("POSTGRESQL".equals(str1)) { + arrayList.add(str3 + b(a3, a4)); + } + } + + if (!"SQLSERVER".equals(str1) && !a4.b(a3)) + arrayList.add(c(a3)); + continue; + } + arrayList.add(str3 + b(a3)); + if (!"SQLSERVER".equals(str1) && StringUtils.isNotEmpty(a3.getComment())) { + arrayList.add(c(a3)); + } + + continue; + } + a a1 = map1.get(str); + a a2 = map2.get(str); + + if (!a1.a(a2, str1)) { + arrayList.add(str3 + a(a2, a1)); + } + + if (!"SQLSERVER".equals(str1) && !"ORACLE".equals(str1) && !a1.b(a2)) { + arrayList.add(c(a2)); + } + } + + + + + for (String str : map1.keySet()) { + if (!map2.containsKey(str.toLowerCase()) && !map.containsValue(str.toLowerCase())) { + arrayList.add(str3 + b(str)); + } + } + } catch (SQLException sQLException) { + throw new RuntimeException(); + } + a.info(" db update sql : " + arrayList.toString()); + return arrayList; + } + + + + + + + + + private static Map a(a parama, String paramString) { + HashMap hashMap = new HashMap<>(); + for (OnlCgformField onlCgformField : parama.getColumns()) { + onlCgformField.setDbDefaultVal(c(onlCgformField.getDbDefaultVal())); + } + hashMap.put("entity", parama); + hashMap.put("dataType", paramString); + return (Map)hashMap; + } + + + + + + + + + private Map c(String paramString1, String paramString2) throws SQLException { + HashMap hashMap = new HashMap<>(); + Connection connection = null; + try { + connection = d.getConnection(); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + } + DatabaseMetaData databaseMetaData = connection.getMetaData(); + + com.jero.generater.modules.online.config.a.b b = (com.jero.generater.modules.online.config.a.b)SpringContextUtils.getBean(com.jero.generater.modules.online.config.a.b.class); + + String str1 = null; + try { + str1 = d.getDatabaseType(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + String str2 = b.getUsername(); + if ("ORACLE".equals(str1)) + { + str2 = str2.toUpperCase(); + } + + ResultSet resultSet = null; + if ("SQLSERVER".equals(str1)) { + resultSet = databaseMetaData.getColumns(connection.getCatalog(), null, paramString2, "%"); + } else { + resultSet = databaseMetaData.getColumns(connection.getCatalog(), str2, paramString2, "%"); + } + + + + + while (resultSet.next()) { + a a = new a(); + a.setTableName(paramString2); + + String str3 = resultSet.getString("COLUMN_NAME").toLowerCase(); + a.setColumnName(str3); + + String str4 = resultSet.getString("TYPE_NAME"); + int i = resultSet.getInt("DECIMAL_DIGITS"); + + String str5 = c.getMatchClassTypeByDataType(str4, i); + a.setColunmType(str5); + + int j = resultSet.getInt("COLUMN_SIZE"); + a.setColumnSize(j); + + a.setDecimalDigits(i); + String str6 = (resultSet.getInt("NULLABLE") == 1) ? "Y" : "N"; + a.setIsNullable(str6); + + String str7 = resultSet.getString("REMARKS"); + a.setComment(str7); + + String str8 = resultSet.getString("COLUMN_DEF"); + String str9 = (c(str8) == null) ? "" : c(str8); + + a.setFieldDefault(str9); + a.info("getColumnMetadataFormDataBase --->COLUMN_NAME:" + str3.toUpperCase() + " TYPE_NAME :" + str4 + " DECIMAL_DIGITS:" + i + " COLUMN_SIZE:" + j); + + hashMap.put(str3, a); + } + + + return (Map)hashMap; + } + + + + + + private Map c(a parama) { + HashMap hashMap = new HashMap<>(); + List list = parama.getColumns(); + + for (OnlCgformField onlCgformField : list) { + a a1 = new a(); + a1.setTableName(parama.getTableName().toLowerCase()); + a1.setColumnId(onlCgformField.getId()); + a1.setColumnName(onlCgformField.getDbFieldName().toLowerCase()); + a1.setColumnSize(onlCgformField.getDbLength().intValue()); + a1.setColunmType(onlCgformField.getDbType().toLowerCase()); + a1.setIsNullable((onlCgformField.getDbIsNull().intValue() == 1) ? "Y" : "N"); + a1.setComment(onlCgformField.getDbFieldTxt()); + a1.setDecimalDigits(onlCgformField.getDbPointLength().intValue()); + a1.setFieldDefault(c(onlCgformField.getDbDefaultVal())); + a1.setPkType((parama.getJformPkType() == null) ? "UUID" : parama.getJformPkType()); + a1.setOldColumnName((onlCgformField.getDbFieldNameOld() != null) ? onlCgformField.getDbFieldNameOld().toLowerCase() : null); + a.info("getColumnMetadataFormCgForm ----> DbFieldName: " + onlCgformField.getDbFieldName().toLowerCase() + " | DbType: " + onlCgformField.getDbType().toLowerCase() + " | DbPointLength:" + onlCgformField + .getDbPointLength() + " | DbLength:" + onlCgformField.getDbLength()); + hashMap.put(onlCgformField.getDbFieldName().toLowerCase(), a1); + } + + return (Map)hashMap; + } + + + + + + + + private Map a(List paramList) { + HashMap hashMap = new HashMap<>(); + for (OnlCgformField onlCgformField : paramList) { + hashMap.put(onlCgformField.getDbFieldName(), onlCgformField.getDbFieldNameOld()); + } + return (Map)hashMap; + } + + + + + + + + + private String b(String paramString) { + return c.getDropColumnSql(paramString); + } + + + + + + + + + + private String a(a parama1, a parama2) throws DBException { + return c.getUpdateColumnSql(parama1, parama2); + } + + + + + + + + private String b(a parama1, a parama2) { + return c.getSpecialHandle(parama1, parama2); + } + + + + + + + + + private String a(a parama) { + return c.getReNameFieldName(parama); + } + + + + + + + + + private String b(a parama) { + return c.getAddColumnSql(parama); + } + + + + + + + + + private String c(a parama) { + return c.getCommentSql(parama); + } + + private String d(String paramString1, String paramString2) { + return "update onl_cgform_field set DB_FIELD_NAME_OLD = '" + paramString1 + "' where ID ='" + paramString2 + "'"; + } + + private int a(String paramString1, String paramString2, Session paramSession) { + return paramSession.createSQLQuery("update onl_cgform_field set DB_FIELD_NAME_OLD= '" + paramString1 + "' where ID ='" + paramString2 + "'").executeUpdate(); + } + + + + + + + + + private static String c(String paramString) { + if (StringUtils.isNotEmpty(paramString)) { + try { + Double.valueOf(paramString); + } catch (Exception exception) { + + if (!paramString.startsWith("'") || !paramString.endsWith("'")) { + paramString = "'" + paramString + "'"; + } + } + } + + return paramString; + } + + public String a(String paramString1, String paramString2) { + return c.dropIndexs(paramString1, paramString2); + } + + public String b(String paramString1, String paramString2) { + return c.countIndex(paramString1, paramString2); + } + + + + + + + + + + + + public static List a(String paramString) throws SQLException { + Connection connection = null; + ResultSet resultSet = null; + ArrayList arrayList = new ArrayList(); + try { + connection = d.getConnection(); + DatabaseMetaData databaseMetaData = connection.getMetaData(); + resultSet = databaseMetaData.getIndexInfo(null, null, paramString, false, false); + ResultSetMetaData resultSetMetaData = resultSet.getMetaData(); + while (resultSet.next()) + { + String str = resultSet.getString("INDEX_NAME"); + if (oConvertUtils.isEmpty(str)) { + str = resultSet.getString("index_name"); + } + if (oConvertUtils.isNotEmpty(str)) { + arrayList.add(str); + + } + + } + + + } + catch (SQLException sQLException) { + a.error(sQLException.getMessage(), sQLException); + } finally { + if (connection != null) { + connection.close(); + } + } + return arrayList; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/d.java new file mode 100644 index 00000000..ab2367a6 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/d.java @@ -0,0 +1,302 @@ +package com.jero.generater.modules.online.config.b; + +import java.sql.Connection; +import java.sql.DatabaseMetaData; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.sql.DataSource; +import org.hibernate.Session; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.config.exception.DBException; +import com.jero.generater.modules.online.config.service.DbTableHandleI; +import com.jero.generater.modules.online.config.service.a.a; +import com.jero.generater.modules.online.config.service.a.c; +import com.jero.generater.modules.online.config.service.a.e; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +public class d +{ + private static final Logger b = LoggerFactory.getLogger(d.class); + + public static String a = ""; + + + + public static DbTableHandleI getTableHandle() throws SQLException, DBException { + c c; + a a; + e e; + com.jero.generater.modules.online.config.service.a.d d1; + com.jero.generater.modules.online.config.a.b b = null; + String str = getDatabaseType(); + switch (str) { + case "MYSQL": + b = new com.jero.generater.modules.online.config.a.b(); + break; + case "ORACLE": + c = new c(); + break; + case "DM": + a = new a(); + break; + case "SQLSERVER": + e = new e(); + break; + case "POSTGRESQL": + d1 = new com.jero.generater.modules.online.config.service.a.d(); + break; + } + + + return (DbTableHandleI)d1; + } + + + + + + + public static Connection getConnection() throws SQLException { + DataSource dataSource = (DataSource)SpringContextUtils.getApplicationContext().getBean(DataSource.class); + return dataSource.getConnection(); + } + + + + + + + + public static String getDatabaseType() throws SQLException, DBException { + if (oConvertUtils.isNotEmpty(a)) { + return a; + } + DataSource dataSource = (DataSource)SpringContextUtils.getApplicationContext().getBean(DataSource.class); + return a(dataSource); + } + + + + + + public static boolean a() { + try { + return "ORACLE".equals(getDatabaseType()); + } catch (SQLException sQLException) { + sQLException.printStackTrace(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + return false; + } + + + + + + + + + public static String a(DataSource paramDataSource) throws SQLException, DBException { + if ("".equals(a)) { + Connection connection = paramDataSource.getConnection(); + try { + DatabaseMetaData databaseMetaData = connection.getMetaData(); + String str = databaseMetaData.getDatabaseProductName().toLowerCase(); + if (str.indexOf("mysql") >= 0) { + a = "MYSQL"; + } else if (str.indexOf("oracle") >= 0 || str.indexOf("dm") >= 0) { + a = "ORACLE"; + } else if (str.indexOf("dm") >= 0) { + a = "DM"; + } else if (str.indexOf("sqlserver") >= 0 || str.indexOf("sql server") >= 0) { + a = "SQLSERVER"; + } else if (str.indexOf("postgresql") >= 0) { + a = "POSTGRESQL"; + } else { + throw new DBException("数据库类型:[" + str + "]不识别!"); + } + } catch (Exception exception) { + b.error(exception.getMessage(), exception); + } finally { + connection.close(); + } + } + return a; + } + + + + + + + + + + public static String a(Connection paramConnection) throws SQLException, DBException { + if ("".equals(a)) { + DatabaseMetaData databaseMetaData = paramConnection.getMetaData(); + String str = databaseMetaData.getDatabaseProductName().toLowerCase(); + if (str.indexOf("mysql") >= 0) { + a = "MYSQL"; + } else if (str.indexOf("oracle") >= 0) { + a = "ORACLE"; + } else if (str.indexOf("sqlserver") >= 0 || str.indexOf("sql server") >= 0) { + a = "SQLSERVER"; + } else if (str.indexOf("postgresql") >= 0) { + a = "POSTGRESQL"; + } else { + throw new DBException("数据库类型:[" + str + "]不识别!"); + } + } + return a; + } + + public static String a(Session paramSession) throws SQLException, DBException { + return getDatabaseType(); + } + + public static String a(String paramString1, String paramString2) { + switch (paramString2) { + case "ORACLE": + return paramString1.toUpperCase(); + case "POSTGRESQL": + return paramString1.toLowerCase(); + } + return paramString1; + } + + + + + + + + public static Boolean a(String paramString) { + Connection connection = null; + ResultSet resultSet = null; + try { + String[] arrayOfString = { "TABLE" }; + connection = getConnection(); + DatabaseMetaData databaseMetaData = connection.getMetaData(); + + String str1 = null; + try { + str1 = getDatabaseType(); + } catch (DBException dBException) { + dBException.printStackTrace(); + } + String str2 = a(paramString, str1); + + com.jero.generater.modules.online.config.a.b b = (com.jero.generater.modules.online.config.a.b)SpringContextUtils.getBean(com.jero.generater.modules.online.config.a.b.class); + String str3 = b.getUsername(); + if ("ORACLE".equals(str1) || "DM".equals(str1)) + { + str3 = (str3 != null) ? str3.toUpperCase() : null; + } + + resultSet = databaseMetaData.getTables(connection.getCatalog(), str3, str2, arrayOfString); + + + if ("SQLSERVER".equals(str1)) { + resultSet = databaseMetaData.getTables(connection.getCatalog(), null, str2, arrayOfString); + } else { + resultSet = databaseMetaData.getTables(connection.getCatalog(), str3, str2, arrayOfString); + } + + + + if (resultSet.next()) { + b.info("数据库表:【" + paramString + "】已存在"); + return Boolean.valueOf(true); + } + return Boolean.valueOf(false); + } + catch (SQLException sQLException) { + throw new RuntimeException(); + } finally { + try { + if (resultSet != null) resultSet.close(); + if (connection != null) connection.close(); + } catch (SQLException sQLException) { + b.error(sQLException.getMessage(), sQLException); + } + } + } + + + + + + + + + + public static Map a(List> paramList) { + HashMap hashMap = new HashMap<>(); + for (byte b = 0; b < paramList.size(); b++) { + hashMap.put(((Map)paramList.get(b)).get("column_name").toString(), paramList.get(b)); + } + return (Map)hashMap; + } + + + + + + + + + + public static String getDialect() throws SQLException, DBException { + String str = getDatabaseType(); + return b(str); + } + + + + public static String b(String paramString) throws SQLException, DBException { + String str = "org.hibernate.dialect.MySQL5InnoDBDialect"; + switch (paramString) { + case "SQLSERVER": + str = "org.hibernate.dialect.SQLServerDialect"; + break; + case "POSTGRESQL": + str = "org.hibernate.dialect.PostgreSQLDialect"; + break; + case "ORACLE": + str = "org.hibernate.dialect.OracleDialect"; + break; + case "DM": + str = "org.hibernate.dialect.DmDialect"; + break; + } + + + return str; + } + + + + + + + + + + public static String c(String paramString) { + return paramString; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/e.java new file mode 100644 index 00000000..bc04f125 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/e.java @@ -0,0 +1,141 @@ +package com.jero.generater.modules.online.config.b; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + + + + + + + + + + + +public class e +{ + protected static Map a = new HashMap<>(); + static { + a.put("class", "clazz"); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + private static String a(String paramString, int paramInt) { + String str = paramString; + Iterator iterator = a.keySet().iterator(); + while (iterator.hasNext()) { + String str1 = String.valueOf(iterator.next()); + String str2 = String.valueOf(a.get(str1)); + if (paramInt == 1) { + str = paramString.replaceAll(str1, str2); continue; + } if (paramInt == 2) { + str = paramString.replaceAll(str2, str1); + } + } + return str; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/f.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/f.java new file mode 100644 index 00000000..9dad25a6 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/f.java @@ -0,0 +1,31 @@ +package com.jero.generater.modules.online.config.b; + +import java.util.Comparator; +import com.jero.generater.modules.online.cgform.entity.OnlCgformField; + + + + + + + + + +public class f + implements Comparator +{ + public int a(OnlCgformField paramOnlCgformField1, OnlCgformField paramOnlCgformField2) { + if (paramOnlCgformField1 == null || paramOnlCgformField1.getOrderNum() == null || paramOnlCgformField2 == null || paramOnlCgformField2.getOrderNum() == null) { + return -1; + } + Integer integer1 = paramOnlCgformField1.getOrderNum(); + Integer integer2 = paramOnlCgformField2.getOrderNum(); + return (integer1.intValue() < integer2.intValue()) ? -1 : ((integer1 == integer2) ? 0 : 1); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\f.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/g.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/g.java new file mode 100644 index 00000000..e962a50f --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/b/g.java @@ -0,0 +1,55 @@ +package com.jero.generater.modules.online.config.b; + +import freemarker.template.Configuration; +import freemarker.template.Template; +import java.io.StringWriter; +import java.util.Map; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + + + +public class g +{ + private static final Logger a = LoggerFactory.getLogger(g.class); + + private static Configuration b = new Configuration(Configuration.VERSION_2_3_28); + + static { + b.setNumberFormat("0.#####################"); + b.setClassForTemplateLoading(g.class, "/"); + } + + + + + + + + + + public static String a(String paramString1, String paramString2, Map paramMap) { + try { + StringWriter stringWriter = new StringWriter(); + Template template = null; + template = b.getTemplate(paramString1, paramString2); + template.process(paramMap, stringWriter); + return stringWriter.toString(); + } catch (Exception exception) { + a.error(exception.getMessage(), exception); + return exception.toString(); + } + } + + public static String a(String paramString, Map paramMap) { + return a(paramString, "utf-8", paramMap); + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\b\g.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/engine/tableTemplate.ftl b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/engine/tableTemplate.ftl new file mode 100644 index 00000000..845bf4a0 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/engine/tableTemplate.ftl @@ -0,0 +1,139 @@ + + + + + <#if entity.columns?exists> + <#list entity.columns as attr> + <#if attr.dbFieldName == "id"> + <#if entity.jformPkType?if_exists?html=='UUID'> + + + + <#elseif entity.jformPkType?if_exists?html=='NATIVE'> + <#if dataType=='MYSQL'> + + + + <#elseif dataType=='ORACLE'> + + + + <#elseif dataType=='SQLSERVER'> + + + + <#elseif dataType=='POSTGRESQL'> + + + + + <#elseif entity.jformPkType?if_exists?html=='SEQUENCE'> + <#if dataType=='MYSQL'> + + + + <#elseif dataType=='ORACLE'> + + + ${entity.jformPkSequence} + + + + <#elseif dataType=='SQLSERVER'> + + + + <#elseif dataType=='POSTGRESQL'> + + + + + <#else> + + + + + + <#else> + + <#case "string"> + type="java.lang.String" + <#break> + <#case "text"> + <#-- update--begin--author:scott Date:20180227 for:针对oracle情况下text类型采用clob转换 --> + <#if dataType=='ORACLE'> + type="clob" + <#else> + type="text" + + <#-- update--end--author:scott Date:20180227 for:针对oracle情况下text类型采用clob转换 --> + <#break> + <#case "int"> + type="java.lang.Integer" + <#break> + <#case "double"> + <#if dataType=='MYSQL'> + type="java.lang.Double" + <#elseif dataType=='ORACLE'> + type="java.math.BigDecimal" + <#elseif dataType=='POSTGRESQL'> + type="java.math.BigDecimal" + <#elseif dataType=='SQLSERVER'> + type="java.math.BigDecimal" + + <#break> + <#case "date"> + <#if dataType=='MYSQL'> + type="java.util.Date" + <#elseif dataType=='ORACLE'> + type="java.sql.Timestamp" + <#elseif dataType=='POSTGRESQL'> + type="java.util.Date" + <#elseif dataType=='SQLSERVER'> + type="java.util.Date" + + <#break> + <#case "bigdecimal"> + <#if dataType=='MYSQL'> + type="java.math.BigDecimal" + <#elseif dataType=='ORACLE'> + type="java.math.BigDecimal" + <#elseif dataType=='POSTGRESQL'> + type="java.math.BigDecimal" + <#elseif dataType=='SQLSERVER'> + type="java.math.BigDecimal" + + <#break> + <#case "blob"> + <#if dataType=='MYSQL'> + type="blob" + <#elseif dataType=='ORACLE'> + type="blob" + <#elseif dataType=='POSTGRESQL'> + type="binary" + <#elseif dataType=='SQLSERVER'> + type="image" + + <#break> + access="property"> + sql-type="nvarchar(${attr.dbLength})" + <#if dataType=='SQLSERVER' && attr.dbType?lower_case="text"> sql-type="ntext" + <#if attr.dbType=='double'||attr.dbType=='BigDecimal'> + precision="${attr.dbLength}" scale="${attr.dbPointLength}"<#else>length="${attr.dbLength}" + <#if attr.dbDefaultVal?exists&&attr.dbDefaultVal!=''>default="${attr.dbDefaultVal}" + not-null="<#if attr.dbIsNull == 1>false<#else>true" unique="false"> + ${attr.dbFieldTxt} + + + + + + + + + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/exception/BusinessException.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/exception/BusinessException.java new file mode 100644 index 00000000..633eed85 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/exception/BusinessException.java @@ -0,0 +1,16 @@ +/* */ package com.jero.generater.modules.online.config.exception; +/* */ +/* */ +/* */ public class BusinessException +/* */ extends Exception +/* */ { +/* */ public BusinessException(String msg) { + super(msg); +/* */ } +/* */ } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\exception\BusinessException.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/exception/DBException.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/exception/DBException.java new file mode 100644 index 00000000..46b25fc0 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/exception/DBException.java @@ -0,0 +1,16 @@ +/* */ package com.jero.generater.modules.online.config.exception; +/* */ +/* */ +/* */ public class DBException +/* */ extends Exception +/* */ { +/* */ public DBException(String msg) { + super(msg); +/* */ } +/* */ } + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\exception\DBException.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/DbTableHandleI.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/DbTableHandleI.java new file mode 100644 index 00000000..0b0ba770 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/DbTableHandleI.java @@ -0,0 +1,32 @@ +package com.jero.generater.modules.online.config.service; + +import com.jero.generater.modules.online.config.b.a; +import com.jero.generater.modules.online.config.exception.DBException; + +public interface DbTableHandleI { + String getAddColumnSql(a parama); + + String getReNameFieldName(a parama); + + String getUpdateColumnSql(a parama1, a parama2) throws DBException; + + String getMatchClassTypeByDataType(String paramString, int paramInt); + + String dropTableSQL(String paramString); + + String getDropColumnSql(String paramString); + + String getCommentSql(a parama); + + String getSpecialHandle(a parama1, a parama2); + + String dropIndexs(String paramString1, String paramString2); + + String countIndex(String paramString1, String paramString2); +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\service\DbTableHandleI.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/a.java new file mode 100644 index 00000000..096db1c1 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/a.java @@ -0,0 +1,157 @@ +package com.jero.generater.modules.online.config.service.a; + +import org.apache.commons.lang.StringUtils; +import com.jero.generater.modules.online.config.service.DbTableHandleI; + + + + + + + + +public class a + implements DbTableHandleI +{ + public String getAddColumnSql(com.jero.generater.modules.online.config.b.a columnMeta) { + return " ADD " + a(columnMeta) + ""; + } + + + + public String getReNameFieldName(com.jero.generater.modules.online.config.b.a columnMeta) { + return "RENAME COLUMN " + columnMeta.getOldColumnName() + " TO " + columnMeta.getColumnName() + ""; + } + + + + public String getUpdateColumnSql(com.jero.generater.modules.online.config.b.a cgformcolumnMeta, com.jero.generater.modules.online.config.b.a datacolumnMeta) { + return " MODIFY " + a(cgformcolumnMeta, datacolumnMeta) + ""; + } + + + + + public String getMatchClassTypeByDataType(String dataType, int digits) { + String str = ""; + if (dataType.equalsIgnoreCase("varchar2")) + str = "string"; + if (dataType.equalsIgnoreCase("nvarchar2")) { + str = "string"; + } else if (dataType.equalsIgnoreCase("double")) { + str = "double"; + } else if (dataType.equalsIgnoreCase("number") && digits == 0) { + str = "int"; + } else if (dataType.equalsIgnoreCase("number") && digits != 0) { + str = "double"; + } else if (dataType.equalsIgnoreCase("int")) { + str = "int"; + } else if (dataType.equalsIgnoreCase("Date")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("Datetime")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("blob")) { + str = "blob"; + } else if (dataType.equalsIgnoreCase("clob")) { + str = "text"; + } + + return str; + } + + + + public String dropTableSQL(String tableName) { + return " DROP TABLE " + tableName.toLowerCase() + " "; + } + + + + public String getDropColumnSql(String fieldName) { + return " DROP COLUMN " + fieldName.toUpperCase() + ""; + } + + private String a(com.jero.generater.modules.online.config.b.a parama) { + String str = ""; + if (parama.getColunmType().equalsIgnoreCase("string")) { + str = parama.getColumnName() + " varchar2(" + parama.getColumnSize() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("date")) { + str = parama.getColumnName() + " date"; + } else if (parama.getColunmType().equalsIgnoreCase("int")) { + str = parama.getColumnName() + " NUMBER(" + parama.getColumnSize() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("double")) { + str = parama.getColumnName() + " NUMBER(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("bigdecimal")) { + str = parama.getColumnName() + " NUMBER(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("text")) { + str = parama.getColumnName() + " CLOB "; + } else if (parama.getColunmType().equalsIgnoreCase("blob")) { + str = parama.getColumnName() + " BLOB "; + } + str = str + (StringUtils.isNotEmpty(parama.getFieldDefault()) ? (" DEFAULT " + parama.getFieldDefault()) : " "); + str = str + ("Y".equals(parama.getIsNullable()) ? " NULL" : " NOT NULL"); + return str; + } + private String a(com.jero.generater.modules.online.config.b.a parama1, com.jero.generater.modules.online.config.b.a parama2) { + String str1 = ""; + String str2 = ""; + + if (!parama2.getIsNullable().equals(parama1.getIsNullable())) { + str2 = parama1.getIsNullable().equals("Y") ? "NULL" : "NOT NULL"; + } + + if (parama1.getColunmType().equalsIgnoreCase("string")) { + str1 = parama1.getColumnName() + " varchar2(" + parama1.getColumnSize() + ")" + str2; + } + else if (parama1.getColunmType().equalsIgnoreCase("date")) { + str1 = parama1.getColumnName() + " date " + str2; + } + else if (parama1.getColunmType().equalsIgnoreCase("int")) { + str1 = parama1.getColumnName() + " NUMBER(" + parama1.getColumnSize() + ") " + str2; + } + else if (parama1.getColunmType().equalsIgnoreCase("double")) { + str1 = parama1.getColumnName() + " NUMBER(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + str2; + } else if (parama1.getColunmType().equalsIgnoreCase("bigdecimal")) { + str1 = parama1.getColumnName() + " NUMBER(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + str2; + } else if (parama1.getColunmType().equalsIgnoreCase("blob")) { + str1 = parama1.getColumnName() + " BLOB " + str2; + } else if (parama1.getColunmType().equalsIgnoreCase("text")) { + str1 = parama1.getColumnName() + " CLOB " + str2; + } + + str1 = str1 + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" DEFAULT " + parama1.getFieldDefault()) : " "); + str1 = str1 + str2; + return str1; + } + + + + public String getCommentSql(com.jero.generater.modules.online.config.b.a columnMeta) { + return "COMMENT ON COLUMN " + columnMeta.getTableName() + "." + columnMeta.getColumnName() + " IS '" + columnMeta.getComment() + "'"; + } + + + + + public String getSpecialHandle(com.jero.generater.modules.online.config.b.a cgformcolumnMeta, com.jero.generater.modules.online.config.b.a datacolumnMeta) { + return null; + } + + + + public String dropIndexs(String indexName, String tableName) { + return "DROP INDEX " + indexName; + } + + + + public String countIndex(String indexName, String tableName) { + return "select count(*) from user_ind_columns where index_name=upper('" + indexName + "')"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\service\a\a.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/b.java new file mode 100644 index 00000000..56104fc3 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/b.java @@ -0,0 +1,148 @@ +package com.jero.generater.modules.online.config.service.a; + +import org.apache.commons.lang.StringUtils; +import com.jero.generater.modules.online.config.b.a; +import com.jero.generater.modules.online.config.service.DbTableHandleI; + + + + + + + + +public class b + implements DbTableHandleI +{ + public String getAddColumnSql(a columnMeta) { + return " ADD COLUMN " + a(columnMeta) + ";"; + } + + + + public String getReNameFieldName(a columnMeta) { + return "CHANGE COLUMN " + columnMeta.getOldColumnName() + " " + b(columnMeta) + " ;"; + } + + + + public String getUpdateColumnSql(a cgformcolumnMeta, a datacolumnMeta) { + return " MODIFY COLUMN " + b(cgformcolumnMeta, datacolumnMeta) + ";"; + } + + + + public String getMatchClassTypeByDataType(String dataType, int digits) { + String str = ""; + if (dataType.equalsIgnoreCase("varchar")) { + str = "string"; + } else if (dataType.equalsIgnoreCase("double")) { + str = "double"; + } else if (dataType.equalsIgnoreCase("int")) { + str = "int"; + } else if (dataType.equalsIgnoreCase("Date")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("Datetime")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("decimal")) { + str = "bigdecimal"; + } else if (dataType.equalsIgnoreCase("text")) { + str = "text"; + } else if (dataType.equalsIgnoreCase("blob")) { + str = "blob"; + } + return str; + } + + + + public String dropTableSQL(String tableName) { + return " DROP TABLE IF EXISTS " + tableName + " ;"; + } + + + + public String getDropColumnSql(String fieldName) { + return " DROP COLUMN " + fieldName + ";"; + } + + + + + + + private String a(a parama1, a parama2) { + String str1 = ""; + if (parama1.getColunmType().equalsIgnoreCase("string")) { + str1 = parama1.getColumnName() + " varchar(" + parama1.getColumnSize() + ") " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("date")) { + str1 = parama1.getColumnName() + " datetime " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("int")) { + str1 = parama1.getColumnName() + " int(" + parama1.getColumnSize() + ") " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("double")) { + str1 = parama1.getColumnName() + " double(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("bigdecimal")) { + str1 = parama1.getColumnName() + " decimal(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("text")) { + str1 = parama1.getColumnName() + " text " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("blob")) { + str1 = parama1.getColumnName() + " blob " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } + str1 = str1 + (StringUtils.isNotEmpty(parama1.getComment()) ? (" COMMENT '" + parama1.getComment() + "'") : " "); + str1 = str1 + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" DEFAULT " + parama1.getFieldDefault()) : " "); + String str2 = parama1.getPkType(); + if ("id".equalsIgnoreCase(parama1.getColumnName()) && str2 != null && ("SEQUENCE" + .equalsIgnoreCase(str2) || "NATIVE".equalsIgnoreCase(str2))) { + str1 = str1 + " AUTO_INCREMENT "; + } + return str1; + } + + private String b(a parama1, a parama2) { + return a(parama1, parama2); + } + + + private String a(a parama) { + return a(parama, null); + } + + + private String b(a parama) { + return a(parama, null); + } + + + + + + + public String getCommentSql(a columnMeta) { + return ""; + } + + + + + public String getSpecialHandle(a cgformcolumnMeta, a datacolumnMeta) { + return null; + } + + + + public String dropIndexs(String indexName, String tableName) { + return "DROP INDEX " + indexName + " ON " + tableName; + } + + + + public String countIndex(String indexName, String tableName) { + return "select COUNT(*) from information_schema.statistics where table_name = '" + tableName + "' AND index_name = '" + indexName + "'"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\service\a\b.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/c.java new file mode 100644 index 00000000..6f50502e --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/c.java @@ -0,0 +1,159 @@ +package com.jero.generater.modules.online.config.service.a; + +import org.apache.commons.lang.StringUtils; +import com.jero.generater.modules.online.config.b.a; +import com.jero.generater.modules.online.config.service.DbTableHandleI; + + + + + + + + + +public class c + implements DbTableHandleI +{ + public String getAddColumnSql(a columnMeta) { + return " ADD " + a(columnMeta) + ""; + } + + + + public String getReNameFieldName(a columnMeta) { + return "RENAME COLUMN " + columnMeta.getOldColumnName() + " TO " + columnMeta.getColumnName() + ""; + } + + + + public String getUpdateColumnSql(a cgformcolumnMeta, a datacolumnMeta) { + return " MODIFY " + a(cgformcolumnMeta, datacolumnMeta) + ""; + } + + + + + public String getMatchClassTypeByDataType(String dataType, int digits) { + String str = ""; + if (dataType.equalsIgnoreCase("varchar2")) + str = "string"; + if (dataType.equalsIgnoreCase("nvarchar2")) { + str = "string"; + } else if (dataType.equalsIgnoreCase("double")) { + str = "double"; + } else if (dataType.equalsIgnoreCase("number") && digits == 0) { + str = "int"; + } else if (dataType.equalsIgnoreCase("number") && digits != 0) { + str = "double"; + } else if (dataType.equalsIgnoreCase("int")) { + str = "int"; + } else if (dataType.equalsIgnoreCase("Date")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("Datetime")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("blob")) { + str = "blob"; + } else if (dataType.equalsIgnoreCase("clob")) { + str = "text"; + } + + return str; + } + + + + public String dropTableSQL(String tableName) { + return " DROP TABLE " + tableName.toLowerCase() + " "; + } + + + + public String getDropColumnSql(String fieldName) { + return " DROP COLUMN " + fieldName.toUpperCase() + ""; + } + + private String a(a parama) { + String str = ""; + if (parama.getColunmType().equalsIgnoreCase("string")) { + str = parama.getColumnName() + " varchar2(" + parama.getColumnSize() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("date")) { + str = parama.getColumnName() + " date"; + } else if (parama.getColunmType().equalsIgnoreCase("int")) { + str = parama.getColumnName() + " NUMBER(" + parama.getColumnSize() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("double")) { + str = parama.getColumnName() + " NUMBER(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("bigdecimal")) { + str = parama.getColumnName() + " NUMBER(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ")"; + } else if (parama.getColunmType().equalsIgnoreCase("text")) { + str = parama.getColumnName() + " CLOB "; + } else if (parama.getColunmType().equalsIgnoreCase("blob")) { + str = parama.getColumnName() + " BLOB "; + } + str = str + (StringUtils.isNotEmpty(parama.getFieldDefault()) ? (" DEFAULT " + parama.getFieldDefault()) : " "); + str = str + ("Y".equals(parama.getIsNullable()) ? " NULL" : " NOT NULL"); + return str; + } + private String a(a parama1, a parama2) { + String str1 = ""; + String str2 = ""; + + if (!parama2.getIsNullable().equals(parama1.getIsNullable())) { + str2 = parama1.getIsNullable().equals("Y") ? "NULL" : "NOT NULL"; + } + + if (parama1.getColunmType().equalsIgnoreCase("string")) { + str1 = parama1.getColumnName() + " varchar2(" + parama1.getColumnSize() + ")" + str2; + } + else if (parama1.getColunmType().equalsIgnoreCase("date")) { + str1 = parama1.getColumnName() + " date " + str2; + } + else if (parama1.getColunmType().equalsIgnoreCase("int")) { + str1 = parama1.getColumnName() + " NUMBER(" + parama1.getColumnSize() + ") " + str2; + } + else if (parama1.getColunmType().equalsIgnoreCase("double")) { + str1 = parama1.getColumnName() + " NUMBER(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + str2; + } else if (parama1.getColunmType().equalsIgnoreCase("bigdecimal")) { + str1 = parama1.getColumnName() + " NUMBER(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + str2; + } else if (parama1.getColunmType().equalsIgnoreCase("blob")) { + str1 = parama1.getColumnName() + " BLOB " + str2; + } else if (parama1.getColunmType().equalsIgnoreCase("text")) { + str1 = parama1.getColumnName() + " CLOB " + str2; + } + + str1 = str1 + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" DEFAULT " + parama1.getFieldDefault()) : " "); + str1 = str1 + str2; + return str1; + } + + + + public String getCommentSql(a columnMeta) { + return "COMMENT ON COLUMN " + columnMeta.getTableName() + "." + columnMeta.getColumnName() + " IS '" + columnMeta.getComment() + "'"; + } + + + + + public String getSpecialHandle(a cgformcolumnMeta, a datacolumnMeta) { + return null; + } + + + + public String dropIndexs(String indexName, String tableName) { + return "DROP INDEX " + indexName; + } + + + + public String countIndex(String indexName, String tableName) { + return "select count(*) from user_ind_columns where index_name=upper('" + indexName + "')"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\service\a\c.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/d.java new file mode 100644 index 00000000..39ce68fb --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/d.java @@ -0,0 +1,193 @@ +package com.jero.generater.modules.online.config.service.a; + +import org.apache.commons.lang.StringUtils; +import com.jero.generater.modules.online.config.b.a; +import com.jero.generater.modules.online.config.exception.DBException; +import com.jero.generater.modules.online.config.service.DbTableHandleI; + + + + + + + +public class d + implements DbTableHandleI +{ + public String getAddColumnSql(a columnMeta) { + return " ADD COLUMN " + a(columnMeta) + ";"; + } + + + + public String getReNameFieldName(a columnMeta) { + return " RENAME COLUMN " + columnMeta.getOldColumnName() + " to " + columnMeta.getColumnName() + ";"; + } + + + + public String getUpdateColumnSql(a cgformcolumnMeta, a datacolumnMeta) throws DBException { + return " ALTER COLUMN " + a(cgformcolumnMeta, datacolumnMeta) + ";"; + } + + + + + public String getSpecialHandle(a cgformcolumnMeta, a datacolumnMeta) { + return " ALTER COLUMN " + b(cgformcolumnMeta, datacolumnMeta) + ";"; + } + + + + public String getMatchClassTypeByDataType(String dataType, int digits) { + String str = ""; + if (dataType.equalsIgnoreCase("varchar")) { + str = "string"; + } else if (dataType.equalsIgnoreCase("double")) { + str = "double"; + } else if (dataType.contains("int")) { + str = "int"; + } else if (dataType.equalsIgnoreCase("Date")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("timestamp")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("bytea")) { + str = "blob"; + } else if (dataType.equalsIgnoreCase("text")) { + str = "text"; + } else if (dataType.equalsIgnoreCase("decimal")) { + str = "bigdecimal"; + } else if (dataType.equalsIgnoreCase("numeric")) { + + str = "bigdecimal"; + } + return str; + } + + + + public String dropTableSQL(String tableName) { + return " DROP TABLE " + tableName + " ;"; + } + + + + public String getDropColumnSql(String fieldName) { + return " DROP COLUMN " + fieldName + ";"; + } + + private String a(a parama1, a parama2) throws DBException { + String str = ""; + + if (parama1.getColunmType().equalsIgnoreCase("string")) { + str = parama1.getColumnName() + " type character varying(" + parama1.getColumnSize() + ") "; + } else if (parama1.getColunmType().equalsIgnoreCase("date")) { + str = parama1.getColumnName() + " type timestamp "; + } else if (parama1.getColunmType().equalsIgnoreCase("int")) { + + str = parama1.getColumnName() + " type int4 "; + } else if (parama1.getColunmType().equalsIgnoreCase("double")) { + str = parama1.getColumnName() + " type numeric(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") "; + } else if (parama1.getColunmType().equalsIgnoreCase("BigDecimal")) { + str = parama1.getColumnName() + " type decimal(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") "; + } else if (parama1.getColunmType().equalsIgnoreCase("text")) { + + str = parama1.getColumnName() + " text "; + } + else if (parama1.getColunmType().equalsIgnoreCase("blob")) { + + throw new DBException("blob类型不可修改"); + } + return str; + } + + private String b(a parama1, a parama2) { + String str = ""; + + if (!parama1.a(parama2)) { + if (parama1.getColunmType().equalsIgnoreCase("string")) { + str = parama1.getColumnName(); + str = str + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" SET DEFAULT " + parama1.getFieldDefault()) : " DROP DEFAULT"); + } else if (parama1.getColunmType().equalsIgnoreCase("date")) { + str = parama1.getColumnName(); + str = str + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" SET DEFAULT " + parama1.getFieldDefault()) : " DROP DEFAULT"); + } else if (parama1.getColunmType().equalsIgnoreCase("int")) { + str = parama1.getColumnName(); + str = str + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" SET DEFAULT " + parama1.getFieldDefault()) : " DROP DEFAULT"); + } else if (parama1.getColunmType().equalsIgnoreCase("double")) { + str = parama1.getColumnName(); + str = str + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" SET DEFAULT " + parama1.getFieldDefault()) : " DROP DEFAULT"); + } else if (parama1.getColunmType().equalsIgnoreCase("bigdecimal")) { + str = parama1.getColumnName(); + str = str + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" SET DEFAULT " + parama1.getFieldDefault()) : " DROP DEFAULT"); + } else if (parama1.getColunmType().equalsIgnoreCase("text")) { + str = parama1.getColumnName(); + str = str + (StringUtils.isNotEmpty(parama1.getFieldDefault()) ? (" SET DEFAULT " + parama1.getFieldDefault()) : " DROP DEFAULT"); + } + } + + return str; + } + + + private String a(a parama) { + String str = ""; + if (parama.getColunmType().equalsIgnoreCase("string")) { + str = parama.getColumnName() + " character varying(" + parama.getColumnSize() + ") "; + } else if (parama.getColunmType().equalsIgnoreCase("date")) { + str = parama.getColumnName() + " timestamp "; + } else if (parama.getColunmType().equalsIgnoreCase("int")) { + str = parama.getColumnName() + " int4"; + } else if (parama.getColunmType().equalsIgnoreCase("double")) { + str = parama.getColumnName() + " numeric(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ") "; + } else if (parama.getColunmType().equalsIgnoreCase("bigdecimal")) { + str = parama.getColumnName() + " decimal(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ") "; + } else if (parama.getColunmType().equalsIgnoreCase("blob")) { + str = parama.getColumnName() + " bytea(" + parama.getColumnSize() + ") "; + } else if (parama.getColunmType().equalsIgnoreCase("text")) { + + str = parama.getColumnName() + " text "; + } + + str = str + (StringUtils.isNotEmpty(parama.getFieldDefault()) ? (" DEFAULT " + parama.getFieldDefault()) : " "); + return str; + } + + private String b(a parama) { + String str = ""; + if (parama.getColunmType().equalsIgnoreCase("string")) { + str = parama.getColumnName() + " character varying(" + parama.getColumnSize() + ") "; + } else if (parama.getColunmType().equalsIgnoreCase("date")) { + str = parama.getColumnName() + " datetime "; + } else if (parama.getColunmType().equalsIgnoreCase("int")) { + str = parama.getColumnName() + " int(" + parama.getColumnSize() + ") "; + } else if (parama.getColunmType().equalsIgnoreCase("double")) { + str = parama.getColumnName() + " numeric(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ") "; + } + return str; + } + + + + public String getCommentSql(a columnMeta) { + return "COMMENT ON COLUMN " + columnMeta.getTableName() + "." + columnMeta.getColumnName() + " IS '" + columnMeta.getComment() + "'"; + } + + + + public String dropIndexs(String indexName, String tableName) { + return "DROP INDEX " + indexName; + } + + + + public String countIndex(String indexName, String tableName) { + return "SELECT count(*) FROM pg_indexes WHERE indexname = '" + indexName + "' and tablename = '" + tableName + "'"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\service\a\d.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/e.java new file mode 100644 index 00000000..b341f368 --- /dev/null +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/config/service/a/e.java @@ -0,0 +1,176 @@ +package com.jero.generater.modules.online.config.service.a; + +import com.jero.common.util.oConvertUtils; +import com.jero.generater.modules.online.config.b.a; +import com.jero.generater.modules.online.config.service.DbTableHandleI; + + + + + + + +public class e + implements DbTableHandleI +{ + public String getAddColumnSql(a columnMeta) { + return " ADD " + a(columnMeta) + ";"; + } + + + + + public String getReNameFieldName(a columnMeta) { + return " sp_rename '" + columnMeta.getTableName() + "." + columnMeta.getOldColumnName() + "', '" + columnMeta.getColumnName() + "', 'COLUMN';"; + } + + + + + public String getUpdateColumnSql(a cgformcolumnMeta, a datacolumnMeta) { + return " ALTER COLUMN " + a(cgformcolumnMeta, datacolumnMeta) + ";"; + } + + + + + public String getMatchClassTypeByDataType(String dataType, int digits) { + String str = ""; + if (dataType.equalsIgnoreCase("varchar") || dataType.equalsIgnoreCase("nvarchar")) { + str = "string"; + } else if (dataType.equalsIgnoreCase("float")) { + str = "double"; + } else if (dataType.equalsIgnoreCase("int")) { + str = "int"; + } else if (dataType.equalsIgnoreCase("Date")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("Datetime")) { + str = "date"; + } else if (dataType.equalsIgnoreCase("numeric")) { + str = "bigdecimal"; + } else if (dataType.equalsIgnoreCase("varbinary") || dataType.equalsIgnoreCase("image")) { + str = "blob"; + } else if (dataType.equalsIgnoreCase("text") || dataType.equalsIgnoreCase("ntext")) { + str = "text"; + } + + return str; + } + + + + public String dropTableSQL(String tableName) { + return " DROP TABLE " + tableName + " ;"; + } + + + + public String getDropColumnSql(String fieldName) { + return " DROP COLUMN " + fieldName + ";"; + } + + private String a(a parama1, a parama2) { + String str = ""; + + if (parama1.getColunmType().equalsIgnoreCase("string")) { + str = parama1.getColumnName() + " nvarchar(" + parama1.getColumnSize() + ") " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("date")) { + str = parama1.getColumnName() + " datetime " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("int")) { + str = parama1.getColumnName() + " int " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("double")) { + str = parama1.getColumnName() + " float " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("bigdecimal")) { + str = parama1.getColumnName() + " numeric(" + parama1.getColumnSize() + "," + parama1.getDecimalDigits() + ") " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("text")) { + str = parama1.getColumnName() + " ntext " + ("Y".equals(parama1.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama1.getColunmType().equalsIgnoreCase("blob")) { + str = parama1.getColumnName() + " image"; + } + + + return str; + } + + private String a(a parama) { + String str = ""; + + if (parama.getColunmType().equalsIgnoreCase("string")) { + str = parama.getColumnName() + " nvarchar(" + parama.getColumnSize() + ") " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("date")) { + str = parama.getColumnName() + " datetime " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("int")) { + str = parama.getColumnName() + " int " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("double")) { + str = parama.getColumnName() + " float " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("bigdecimal")) { + str = parama.getColumnName() + " numeric(" + parama.getColumnSize() + "," + parama.getDecimalDigits() + ") " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("text")) { + str = parama.getColumnName() + " ntext " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("blob")) { + str = parama.getColumnName() + " image"; + } + + + return str; + } + + private String b(a parama) { + String str = ""; + + if (parama.getColunmType().equalsIgnoreCase("string")) { + str = parama.getColumnName() + " nvarchar(" + parama.getColumnSize() + ") " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("date")) { + str = parama.getColumnName() + " datetime " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("int")) { + str = parama.getColumnName() + " int " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } else if (parama.getColunmType().equalsIgnoreCase("double")) { + str = parama.getColumnName() + " float " + ("Y".equals(parama.getIsNullable()) ? "NULL" : "NOT NULL"); + } + + return str; + } + + + + public String getCommentSql(a columnMeta) { + StringBuffer stringBuffer = new StringBuffer("EXECUTE "); + if (oConvertUtils.isEmpty(columnMeta.getOldColumnName())) { + stringBuffer.append("sp_addextendedproperty"); + } else { + stringBuffer.append("sp_updateextendedproperty"); + } + stringBuffer.append(" N'MS_Description', '"); + stringBuffer.append(columnMeta.getComment()); + stringBuffer.append("', N'SCHEMA', N'dbo', N'TABLE', N'"); + stringBuffer.append(columnMeta.getTableName()); + stringBuffer.append("', N'COLUMN', N'"); + stringBuffer.append(columnMeta.getColumnName() + "'"); + return stringBuffer.toString(); + } + + + + + public String getSpecialHandle(a cgformcolumnMeta, a datacolumnMeta) { + return null; + } + + + + public String dropIndexs(String indexName, String tableName) { + return "DROP INDEX " + indexName + " ON " + tableName; + } + + + + public String countIndex(String indexName, String tableName) { + return "SELECT count(*) FROM sys.indexes WHERE object_id=OBJECT_ID('" + tableName + "') and NAME= '" + indexName + "'"; + } +} + + +/* Location: C:\Users\syxy012\Desktop\hibernate-re-2.4.2.jar!\com.jero.generater.modules.online\config\service\a\e.class + * Java compiler version: 8 (52.0) + * JD-Core Version: 1.1.3 + */ \ No newline at end of file diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/a.java index 9b9e29bf..d65159b1 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/a.java @@ -33,17 +33,17 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; import org.apache.poi.ss.usermodel.Workbook; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.aspect.annotation.AutoLog; -import org.jeecg.common.aspect.annotation.OnlineAuth; -import org.jeecg.common.aspect.annotation.PermissionData; -import org.jeecg.common.constant.enums.ModuleType; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.vo.DictModel; -import org.jeecg.common.util.BrowserUtils; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.TokenUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.common.aspect.annotation.OnlineAuth; +import com.jero.common.aspect.annotation.PermissionData; +import com.jero.common.constant.enums.ModuleType; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.DictModel; +import com.jero.common.util.BrowserUtils; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.TokenUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.auth.service.IOnlAuthPageService; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJs; import org.jeecg.modules.online.cgform.entity.OnlCgformField; @@ -302,7 +302,7 @@ public class a { var3 = EnhanceJsUtil.b(var4.getCgJs(), (List)null); } - return Result.ok(var3); + return Result.OK(var3); } @AutoLog( @@ -313,7 +313,7 @@ public class a { public Result b(@PathVariable("code") String var1, @PathVariable("id") String var2) { try { Map var3 = this.onlCgformHeadService.queryManyFormData(var1, var2); - return Result.ok(org.jeecg.modules.online.cgform.util.b.b(var3)); + return Result.OK(org.jeecg.modules.online.cgform.util.b.b(var3)); } catch (Exception var4) { a.error("Online表单查询异常:" + var4.getMessage(), var4); return Result.error("查询失败," + var4.getMessage()); @@ -324,7 +324,7 @@ public class a { public Result c(@PathVariable("table") String var1, @PathVariable("mainId") String var2) { try { Map var3 = this.onlCgformHeadService.querySubFormData(var1, var2); - return Result.ok(org.jeecg.modules.online.cgform.util.b.b(var3)); + return Result.OK(org.jeecg.modules.online.cgform.util.b.b(var3)); } catch (Exception var4) { a.error("Online表单查询异常:" + var4.getMessage(), var4); return Result.error("查询失败," + var4.getMessage()); @@ -334,7 +334,7 @@ public class a { @GetMapping({"/subform/list/{table}/{mainId}"}) public Result d(@PathVariable("table") String var1, @PathVariable("mainId") String var2) { try { - return Result.ok(this.onlCgformHeadService.queryManySubFormData(var1, var2)); + return Result.OK(this.onlCgformHeadService.queryManySubFormData(var1, var2)); } catch (Exception var4) { a.error("Online表单查询异常:" + var4.getMessage(), var4); return Result.error("查询失败," + var4.getMessage()); @@ -402,7 +402,7 @@ public class a { public Result a(@PathVariable("code") String var1, @RequestBody JSONObject var2) { try { String var3 = this.onlCgformHeadService.editManyFormData(var1, var2); - Result var4 = Result.ok("修改成功!"); + Result var4 = Result.OK("修改成功!"); var4.setOnlTable(var3); return var4; } catch (Exception var5) { @@ -463,7 +463,7 @@ public class a { return Result.error("删除失败"); } - Result var13 = Result.ok("删除成功!"); + Result var13 = Result.OK("删除成功!"); var13.setOnlTable(var3.getTableName()); return var13; } @@ -492,7 +492,7 @@ public class a { return Result.error("删除失败"); } - Result var6 = Result.ok("删除成功!"); + Result var6 = Result.OK("删除成功!"); var6.setOnlTable(var3.getTableName()); return var6; } @@ -503,7 +503,7 @@ public class a { public Result b(@PathVariable("code") String var1) { try { List var2 = this.onlCgformFieldService.getAutoListQueryInfo(var1); - return Result.ok(var2); + return Result.OK(var2); } catch (Exception var3) { a.error("OnlCgformApiController.getQueryInfo()发生异常:" + var3.getMessage(), var3); return Result.error("查询失败"); @@ -521,7 +521,7 @@ public class a { return Result.error("同步数据库失败," + org.jeecg.modules.online.cgform.util.b.a(var5)); } - return Result.ok("同步数据库成功!"); + return Result.OK("同步数据库成功!"); } @OnlineAuth("exportXls") @@ -804,7 +804,7 @@ public class a { return Result.error("执行失败!"); } - return Result.ok("执行成功!"); + return Result.OK("执行成功!"); } public Object a(OnlCgformHead var1, DataSource var2, String var3) throws SQLException, DBException { @@ -978,21 +978,21 @@ public class a { OnlCgformHead var3; if (oConvertUtils.isEmpty(var2)) { if (d.a(var1)) { - return Result.ok(-1); + return Result.OK(-1); } var3 = (OnlCgformHead)this.onlCgformHeadService.getOne((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var1)); if (oConvertUtils.isNotEmpty(var3)) { - return Result.ok(-1); + return Result.OK(-1); } } else { var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var2); if (!var1.equals(var3.getTableName()) && d.a(var1)) { - return Result.ok(-1); + return Result.OK(-1); } } - return Result.ok(1); + return Result.OK(1); } @PostMapping({"/codeGenerate"}) @@ -1007,7 +1007,7 @@ public class a { var3 = this.onlCgformHeadService.generateOneToMany(var2); } - return Result.ok(var3); + return Result.OK(var3); } catch (Exception var5) { var5.printStackTrace(); return Result.error(var5.getMessage()); @@ -1162,7 +1162,7 @@ public class a { return Result.error("保存失败"); } - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } @AutoLog( diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/b.java index 3f64e880..29165781 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/b.java @@ -12,8 +12,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import java.util.Arrays; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.system.query.QueryGenerator; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; import org.jeecg.modules.online.cgform.entity.OnlCgformButton; import org.jeecg.modules.online.cgform.service.IOnlCgformButtonService; import org.slf4j.Logger; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/c.java index 365ee927..488c0cfd 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/c.java @@ -1,8 +1,3 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.b; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -12,8 +7,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.system.query.QueryGenerator; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; import org.jeecg.modules.online.cgform.entity.OnlCgformField; import org.jeecg.modules.online.cgform.entity.OnlCgformHead; import org.jeecg.modules.online.cgform.service.IOnlCgformFieldService; @@ -44,7 +39,7 @@ public class c { @GetMapping({"/listByHeadCode"}) public Result a(@RequestParam("headCode") String var1) { - LambdaQueryWrapper var2 = new LambdaQueryWrapper(); + LambdaQueryWrapper var2 = new LambdaQueryWrapper(); var2.eq(OnlCgformHead::getTableName, var1); OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getOne(var2); return var3 == null ? Result.error("不存在的code") : this.b(var3.getId()); @@ -56,7 +51,7 @@ public class c { var2.eq("cgform_head_id", var1); var2.orderByAsc("order_num"); List var3 = this.onlCgformFieldService.list(var2); - return Result.ok(var3); + return Result.OK(var3); } @GetMapping({"/list"}) diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/d.java index 7117ebfa..6ee6adc6 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/d.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/d.java @@ -1,8 +1,3 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.b; import com.alibaba.fastjson.JSONArray; @@ -26,11 +21,11 @@ import java.util.List; import java.util.Properties; import javax.servlet.http.HttpServletRequest; import org.apache.shiro.authz.annotation.RequiresRoles; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.constant.enums.CgformEnum; -import org.jeecg.common.system.query.QueryGenerator; -import org.jeecg.common.system.util.JwtUtil; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.constant.enums.CgformEnum; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.util.JwtUtil; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJava; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJs; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceSql; @@ -131,7 +126,7 @@ public class d { return Result.error("删除失败" + var4.getMessage()); } - return Result.ok("删除成功!"); + return Result.OK("删除成功!"); } @DeleteMapping({"/removeRecord"}) @@ -144,7 +139,7 @@ public class d { return Result.error("移除失败" + var4.getMessage()); } - return Result.ok("移除成功!"); + return Result.OK("移除成功!"); } @DeleteMapping({"/deleteBatch"}) @@ -176,11 +171,11 @@ public class d { @GetMapping({"/queryByTableNames"}) public Result d(@RequestParam(name = "tableNames",required = true) String var1) { - LambdaQueryWrapper var2 = new LambdaQueryWrapper(); + LambdaQueryWrapper var2 = new LambdaQueryWrapper(); String[] var3 = var1.split(","); var2.in(OnlCgformHead::getTableName, Arrays.asList(var3)); List var4 = this.onlCgformHeadService.list(var2); - return var4 == null ? Result.error("未找到对应实体") : Result.ok(var4); + return var4 == null ? Result.error("未找到对应实体") : Result.OK(var4); } @PostMapping({"/enhanceJs/{code}"}) @@ -188,7 +183,7 @@ public class d { try { var2.setCgformHeadId(var1); this.onlCgformHeadService.saveEnhance(var2); - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } catch (Exception var4) { a.error(var4.getMessage(), var4); return Result.error("保存失败!"); @@ -200,7 +195,7 @@ public class d { try { String var3 = var2.getParameter("type"); OnlCgformEnhanceJs var4 = this.onlCgformHeadService.queryEnhance(var1, var3); - return var4 == null ? Result.error("查询为空") : Result.ok(var4); + return var4 == null ? Result.error("查询为空") : Result.OK(var4); } catch (Exception var5) { a.error(var5.getMessage(), var5); return Result.error("查询失败!"); @@ -212,7 +207,7 @@ public class d { try { var2.setCgformHeadId(var1); this.onlCgformHeadService.editEnhance(var2); - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } catch (Exception var4) { a.error(var4.getMessage(), var4); return Result.error("保存失败!"); @@ -223,7 +218,7 @@ public class d { public Result b(@PathVariable("formId") String var1, HttpServletRequest var2) { try { List var3 = this.onlCgformHeadService.queryButtonList(var1); - return var3 != null && var3.size() != 0 ? Result.ok(var3) : Result.error("查询为空"); + return var3 != null && var3.size() != 0 ? Result.OK(var3) : Result.error("查询为空"); } catch (Exception var4) { a.error(var4.getMessage(), var4); return Result.error("查询失败!"); @@ -243,7 +238,7 @@ public class d { var2.setCgformHeadId(var1); if (this.onlCgformEnhanceService.checkOnlyEnhance(var2)) { this.onlCgformEnhanceService.saveEnhanceSql(var2); - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } else { return Result.error("保存失败,该按钮已存在增强配置!"); } @@ -260,7 +255,7 @@ public class d { var2.setCgformHeadId(var1); if (this.onlCgformEnhanceService.checkOnlyEnhance(var2)) { this.onlCgformEnhanceService.updateEnhanceSql(var2); - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } else { return Result.error("保存失败,该按钮已存在增强配置!"); } @@ -274,7 +269,7 @@ public class d { public Result e(@RequestParam(name = "id",required = true) String var1) { try { this.onlCgformEnhanceService.deleteEnhanceSql(var1); - return Result.ok("删除成功"); + return Result.OK("删除成功"); } catch (Exception var3) { a.error(var3.getMessage(), var3); return Result.error("删除失败!"); @@ -286,7 +281,7 @@ public class d { try { List var2 = Arrays.asList(var1.split(",")); this.onlCgformEnhanceService.deleteBatchEnhanceSql(var2); - return Result.ok("删除成功"); + return Result.OK("删除成功"); } catch (Exception var3) { a.error(var3.getMessage(), var3); return Result.error("删除失败!"); @@ -308,7 +303,7 @@ public class d { var2.setCgformHeadId(var1); if (this.onlCgformEnhanceService.checkOnlyEnhance(var2)) { this.onlCgformEnhanceService.saveEnhanceJava(var2); - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } else { return Result.error("保存失败,配置重复了!"); } @@ -328,7 +323,7 @@ public class d { var2.setCgformHeadId(var1); if (this.onlCgformEnhanceService.checkOnlyEnhance(var2)) { this.onlCgformEnhanceService.updateEnhanceJava(var2); - return Result.ok("保存成功!"); + return Result.OK("保存成功!"); } else { return Result.error("保存失败,配置重复了!"); } @@ -343,7 +338,7 @@ public class d { public Result g(@RequestParam(name = "id",required = true) String var1) { try { this.onlCgformEnhanceService.deleteEnhanceJava(var1); - return Result.ok("删除成功"); + return Result.OK("删除成功"); } catch (Exception var3) { a.error(var3.getMessage(), var3); return Result.error("删除失败!"); @@ -355,7 +350,7 @@ public class d { try { List var2 = Arrays.asList(var1.split(",")); this.onlCgformEnhanceService.deleteBatchEnhanceJava(var2); - return Result.ok("删除成功"); + return Result.OK("删除成功"); } catch (Exception var3) { a.error(var3.getMessage(), var3); return Result.error("删除失败!"); @@ -395,7 +390,7 @@ public class d { } } - return Result.ok(var8); + return Result.OK(var8); } } @@ -415,7 +410,7 @@ public class d { for(int var5 = 0; var5 < var4.length; ++var5) { if (oConvertUtils.isNotEmpty(var4[var5])) { - int var6 = this.onlCgformHeadService.count((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var4[var5])); + int var6 = this.onlCgformHeadService.count((Wrapper)(new LambdaQueryWrapper()).eq(OnlCgformHead::getTableName, var4[var5])); if (var6 <= 0) { a.info("[IP] [online数据库导入表] --表名:" + var4[var5]); this.onlCgformHeadService.saveDbTable2Online(var4[var5]); @@ -424,7 +419,7 @@ public class d { } c = null; - return Result.ok("同步完成!"); + return Result.OK("同步完成!"); } } @@ -451,7 +446,7 @@ public class d { var1.add(var7); } - return Result.ok(var1); + return Result.OK(var1); } @GetMapping({"/fileTree"}) @@ -478,7 +473,7 @@ public class d { } } - return Result.ok(var2); + return Result.OK(var2); } @GetMapping({"/tableInfo"}) @@ -499,14 +494,15 @@ public class d { for(int var9 = 0; var9 < var8; ++var9) { String var10 = var7[var9]; - LambdaQueryWrapper var11 = new LambdaQueryWrapper(); + LambdaQueryWrapper var11 = new LambdaQueryWrapper(); var11.eq(OnlCgformHead::getTableName, var10); OnlCgformHead var12 = (OnlCgformHead)this.onlCgformHeadService.getOne(var11); var5.add(var12); } Collections.sort(var5, new Comparator() { - public int a(OnlCgformHead var1, OnlCgformHead var2) { + @Override + public int compare(OnlCgformHead var1, OnlCgformHead var2) { Integer var3 = var1.getTabOrderNum(); if (var3 == null) { var3 = 0; @@ -532,7 +528,7 @@ public class d { List var14 = CgformEnum.getJspModelList(var13); var3.put("jspModeList", var14); var3.put("projectPath", org.jeecgframework.codegenerate.a.a.m()); - return Result.ok(var3); + return Result.OK(var3); } } @@ -549,7 +545,7 @@ public class d { var3.printStackTrace(); } - return Result.ok(); + return Result.OK(); } private boolean l(String var1) { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/e.java index b44cb724..3b4c48fd 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/e.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/b/e.java @@ -1,8 +1,3 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.b; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -11,9 +6,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.constant.CommonConstant; -import org.jeecg.common.system.query.QueryGenerator; +import com.jero.common.api.vo.Result; +import com.jero.common.constant.CommonConstant; +import com.jero.common.system.query.QueryGenerator; import org.jeecg.modules.online.cgform.entity.OnlCgformIndex; import org.jeecg.modules.online.cgform.service.IOnlCgformIndexService; import org.slf4j.Logger; @@ -45,7 +40,7 @@ public class e { var2.eq("del_flag", CommonConstant.DEL_FLAG_0); var2.orderByDesc("create_time"); List var3 = this.onlCgformIndexService.list(var2); - return Result.ok(var3); + return Result.OK(var3); } @GetMapping({"/list"}) diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/c/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/c/a.java index aa148a23..a67dabad 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/c/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/c/a.java @@ -1,8 +1,3 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.c; import com.alibaba.fastjson.JSONObject; @@ -10,7 +5,7 @@ import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.math.RandomUtils; -import org.jeecg.common.handler.IFillRuleHandler; +import com.jero.common.handler.IFillRuleHandler; public class a implements IFillRuleHandler { public a() { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a.java index 41f9616f..b525ac24 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a.java @@ -1,17 +1,12 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.converter; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; -import org.jeecg.common.util.MyClassLoader; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.MyClassLoader; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.b.b; import org.jeecg.modules.online.cgform.converter.b.c; import org.jeecg.modules.online.cgform.converter.b.d; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/a.java index 19d469fd..a8a31978 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/a.java @@ -1,16 +1,11 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.converter.a; import java.util.List; import java.util.Map; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.vo.DictModel; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.DictModel; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.FieldCommentConverter; public class a implements FieldCommentConverter { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/b.java index f0a9ab92..9944786d 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/a/b.java @@ -1,15 +1,10 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - package org.jeecg.modules.online.cgform.converter.a; import java.util.Iterator; import java.util.List; import java.util.Map; -import org.jeecg.common.system.vo.DictModel; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.vo.DictModel; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.FieldCommentConverter; public class b implements FieldCommentConverter { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b.java index 82e1acf3..6de7f3bc 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b.java @@ -10,7 +10,7 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformField; public class b { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/a.java index 69782395..3f1cafa6 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/a.java @@ -7,7 +7,7 @@ package org.jeecg.modules.online.cgform.converter.b; import java.util.HashMap; import java.util.Map; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformField; public class a extends org.jeecg.modules.online.cgform.converter.a.a { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/b.java index 83b98769..230175e1 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/b.java @@ -7,9 +7,9 @@ package org.jeecg.modules.online.cgform.converter.b; import java.util.ArrayList; import java.util.List; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformField; public class b extends org.jeecg.modules.online.cgform.converter.a.b { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/c.java index 3f9655a8..6b8b3ed3 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/c.java @@ -7,9 +7,9 @@ package org.jeecg.modules.online.cgform.converter.b; import java.util.ArrayList; import java.util.List; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.a.b; import org.jeecg.modules.online.cgform.entity.OnlCgformField; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/f.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/f.java index 6bbfca55..5ff4d16a 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/f.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/f.java @@ -7,9 +7,9 @@ package org.jeecg.modules.online.cgform.converter.b; import java.util.ArrayList; import java.util.List; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.a.b; import org.jeecg.modules.online.cgform.entity.OnlCgformField; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/g.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/g.java index f3b6061a..bd4a6198 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/g.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/g.java @@ -5,9 +5,9 @@ package org.jeecg.modules.online.cgform.converter.b; -import org.jeecg.common.constant.ProvinceCityArea; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.constant.ProvinceCityArea; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.a.b; import org.jeecg.modules.online.cgform.entity.OnlCgformField; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/h.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/h.java index 61fb6480..b2562a67 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/h.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/h.java @@ -7,7 +7,7 @@ package org.jeecg.modules.online.cgform.converter.b; import com.alibaba.fastjson.JSONArray; import java.util.ArrayList; -import org.jeecg.common.system.vo.DictModel; +import com.jero.common.system.vo.DictModel; import org.jeecg.modules.online.cgform.converter.a.b; import org.jeecg.modules.online.cgform.entity.OnlCgformField; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/j.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/j.java index f153d2ae..b5147092 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/j.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/converter/b/j.java @@ -7,9 +7,9 @@ package org.jeecg.modules.online.cgform.converter.b; import java.util.ArrayList; import java.util.List; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.converter.a.b; import org.jeecg.modules.online.cgform.entity.OnlCgformField; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/b.java index 42948903..275250b7 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/b.java @@ -9,9 +9,9 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.stream.Collectors; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.vo.SysCategoryModel; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.SysCategoryModel; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaListInter; import org.jeecg.modules.online.cgform.entity.OnlCgformField; import org.jeecg.modules.online.cgform.service.IOnlCgformFieldService; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/c.java index 43ba840f..80e1f3e9 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/enhance/a/c.java @@ -7,7 +7,7 @@ package org.jeecg.modules.online.cgform.enhance.a; import com.alibaba.fastjson.JSONObject; import java.util.Map; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaInter; import org.jeecg.modules.online.config.exception.BusinessException; import org.slf4j.Logger; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/model/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/model/b.java index e8b21cc8..a34caf51 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/model/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/model/b.java @@ -8,7 +8,7 @@ package org.jeecg.modules.online.cgform.model; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.jeecg.common.system.vo.DictModel; +import com.jero.common.system.vo.DictModel; import org.jeecg.modules.online.cgform.entity.OnlCgformButton; public class b { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/IOnlCgformHeadService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/IOnlCgformHeadService.java index a603d2c2..56f226e5 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/IOnlCgformHeadService.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/IOnlCgformHeadService.java @@ -14,7 +14,7 @@ import java.sql.SQLException; import java.util.List; import java.util.Map; import org.hibernate.HibernateException; -import org.jeecg.common.api.vo.Result; +import com.jero.common.api.vo.Result; import org.jeecg.modules.online.cgform.entity.OnlCgformButton; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJava; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJs; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/c.java index 55039b60..7b471fcf 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/c.java @@ -7,7 +7,7 @@ package org.jeecg.modules.online.cgform.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import java.util.List; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJava; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceSql; import org.jeecg.modules.online.cgform.mapper.OnlCgformEnhanceJavaMapper; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/d.java index 35c5fd3c..bf1ba81b 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/d.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/d.java @@ -18,10 +18,10 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.shiro.SecurityUtils; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.util.JeecgDataAutorUtils; -import org.jeecg.common.system.vo.LoginUser; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.util.JeecgDataAutorUtils; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.auth.mapper.OnlAuthDataMapper; import org.jeecg.modules.online.auth.service.IOnlAuthPageService; import org.jeecg.modules.online.cgform.a.a; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/e.java index 597c05b6..b283e4db 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/e.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/e.java @@ -25,14 +25,14 @@ import java.util.Map; import java.util.UUID; import java.util.stream.Collectors; import org.hibernate.HibernateException; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.constant.CommonConstant; -import org.jeecg.common.constant.enums.CgformEnum; -import org.jeecg.common.util.MyClassLoader; -import org.jeecg.common.util.RestUtil; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.UUIDGenerator; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.constant.CommonConstant; +import com.jero.common.constant.enums.CgformEnum; +import com.jero.common.util.MyClassLoader; +import com.jero.common.util.RestUtil; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.UUIDGenerator; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.auth.service.IOnlAuthPageService; import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaInter; import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaListInter; @@ -139,7 +139,7 @@ public class e extends ServiceImpl implement this.fieldService.saveBatch(var4); this.indexService.saveBatch(var5); this.a(var3, var4); - return Result.ok("添加成功"); + return Result.OK("添加成功"); } @Transactional( @@ -271,7 +271,7 @@ public class e extends ServiceImpl implement super.updateById(var2); this.a(var2, var6); this.b(var2, var6); - return Result.ok("全部修改成功"); + return Result.OK("全部修改成功"); } } diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/f.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/f.java index 3c1a2b37..ab62d368 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/f.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/f.java @@ -10,7 +10,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import java.util.Iterator; import java.util.List; -import org.jeecg.common.constant.CommonConstant; +import com.jero.common.constant.CommonConstant; import org.jeecg.modules.online.cgform.entity.OnlCgformIndex; import org.jeecg.modules.online.cgform.mapper.OnlCgformHeadMapper; import org.jeecg.modules.online.cgform.mapper.OnlCgformIndexMapper; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/g.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/g.java index 733dceb4..c173c923 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/g.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/g.java @@ -11,7 +11,7 @@ import java.util.List; import java.util.Map; import org.apache.ibatis.session.ExecutorType; import org.apache.ibatis.session.SqlSession; -import org.jeecg.common.util.SpringContextUtils; +import com.jero.common.util.SpringContextUtils; import org.jeecg.modules.online.cgform.converter.b; import org.jeecg.modules.online.cgform.entity.OnlCgformField; import org.jeecg.modules.online.cgform.entity.OnlCgformHead; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/h.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/h.java index 18fee074..ce8c5fe2 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/h.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/h.java @@ -8,7 +8,7 @@ package org.jeecg.modules.online.cgform.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import java.util.Iterator; import java.util.List; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformField; import org.jeecg.modules.online.cgform.entity.OnlCgformHead; import org.jeecg.modules.online.cgform.mapper.OnlCgformFieldMapper; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/i.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/i.java index 959225cc..4b305de7 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/i.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/service/impl/i.java @@ -15,9 +15,9 @@ import java.util.List; import java.util.stream.Collectors; import org.apache.commons.lang.StringUtils; import org.apache.shiro.SecurityUtils; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.vo.LoginUser; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.auth.service.IOnlAuthPageService; import org.jeecg.modules.online.cgform.a.a; import org.jeecg.modules.online.cgform.entity.OnlCgformButton; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/EnhanceJsUtil.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/EnhanceJsUtil.java index eba06911..3bb4a798 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/EnhanceJsUtil.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/EnhanceJsUtil.java @@ -10,7 +10,7 @@ import java.util.Iterator; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformButton; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJs; import org.jeecg.modules.online.cgform.entity.OnlCgformField; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/a.java index d43ace54..8efc17e8 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/a.java @@ -9,8 +9,8 @@ import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.util.SpringContextUtils; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.util.SpringContextUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformField; import org.jeecgframework.poi.handler.impl.ExcelDataHandlerDefaultImpl; import org.jeecgframework.poi.util.PoiPublicUtil; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/b.java index ac5a9a5a..c235de9b 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/b.java @@ -33,31 +33,31 @@ import java.util.stream.Collectors; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; import org.apache.shiro.SecurityUtils; -import org.jeecg.common.exception.JeecgBootException; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.query.MatchTypeEnum; -import org.jeecg.common.system.query.QueryGenerator; -import org.jeecg.common.system.query.QueryRuleEnum; -import org.jeecg.common.system.vo.DictModel; -import org.jeecg.common.system.vo.LoginUser; -import org.jeecg.common.system.vo.SysPermissionDataRuleModel; -import org.jeecg.common.util.CommonUtils; -import org.jeecg.common.util.DateUtils; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.UUIDGenerator; -import org.jeecg.common.util.oConvertUtils; -import org.jeecg.common.util.jsonschema.BaseColumn; -import org.jeecg.common.util.jsonschema.CommonProperty; -import org.jeecg.common.util.jsonschema.JsonSchemaDescrip; -import org.jeecg.common.util.jsonschema.JsonschemaUtil; -import org.jeecg.common.util.jsonschema.validate.DictProperty; -import org.jeecg.common.util.jsonschema.validate.HiddenProperty; -import org.jeecg.common.util.jsonschema.validate.LinkDownProperty; -import org.jeecg.common.util.jsonschema.validate.NumberProperty; -import org.jeecg.common.util.jsonschema.validate.PopupProperty; -import org.jeecg.common.util.jsonschema.validate.StringProperty; -import org.jeecg.common.util.jsonschema.validate.SwitchProperty; -import org.jeecg.common.util.jsonschema.validate.TreeSelectProperty; +import com.jero.common.exception.JeecgBootException; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.query.MatchTypeEnum; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.query.QueryRuleEnum; +import com.jero.common.system.vo.DictModel; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.system.vo.SysPermissionDataRuleModel; +import com.jero.common.util.CommonUtils; +import com.jero.common.util.DateUtils; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.UUIDGenerator; +import com.jero.common.util.oConvertUtils; +import com.jero.common.util.jsonschema.BaseColumn; +import com.jero.common.util.jsonschema.CommonProperty; +import com.jero.common.util.jsonschema.JsonSchemaDescrip; +import com.jero.common.util.jsonschema.JsonschemaUtil; +import com.jero.common.util.jsonschema.validate.DictProperty; +import com.jero.common.util.jsonschema.validate.HiddenProperty; +import com.jero.common.util.jsonschema.validate.LinkDownProperty; +import com.jero.common.util.jsonschema.validate.NumberProperty; +import com.jero.common.util.jsonschema.validate.PopupProperty; +import com.jero.common.util.jsonschema.validate.StringProperty; +import com.jero.common.util.jsonschema.validate.SwitchProperty; +import com.jero.common.util.jsonschema.validate.TreeSelectProperty; import org.jeecg.modules.online.cgform.entity.OnlCgformButton; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJava; import org.jeecg.modules.online.cgform.entity.OnlCgformEnhanceJs; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/j.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/j.java index 4b04896c..b97d8864 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/j.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgform/util/j.java @@ -12,7 +12,7 @@ import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.spec.SecretKeySpec; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; public class j { public j() { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/a.java index c1016eb7..2213c550 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/a.java @@ -26,14 +26,14 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.apache.poi.ss.usermodel.Workbook; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.aspect.annotation.PermissionData; -import org.jeecg.common.exception.JeecgBootException; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.vo.DictModel; -import org.jeecg.common.system.vo.DynamicDataSourceModel; -import org.jeecg.common.util.BrowserUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.PermissionData; +import com.jero.common.exception.JeecgBootException; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.vo.DictModel; +import com.jero.common.system.vo.DynamicDataSourceModel; +import com.jero.common.util.BrowserUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgreport.entity.OnlCgreportHead; import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem; import org.jeecg.modules.online.cgreport.entity.OnlCgreportParam; @@ -132,7 +132,7 @@ public class a { var19.put("fieldHrefSlots", var10); var19.put("cgreportHeadName", var3.getName()); var19.put("isGroupTitle", var12); - return Result.ok(var19); + return Result.OK(var19); } else { return var4; } @@ -228,7 +228,7 @@ public class a { var14.put("columns", var5); var14.put("dictOptions", var6); var14.put("cgreportHeadName", var2.getName()); - return Result.ok(var14); + return Result.OK(var14); } } @@ -254,7 +254,7 @@ public class a { var7 = this.onlCgreportHeadService.executeSelectSql(var4, var3.getId(), var6); } - return Result.ok(var7); + return Result.OK(var7); } catch (Exception var8) { a.error(var8.getMessage(), var8); return Result.error("SQL执行失败:" + var8.getMessage()); @@ -266,7 +266,7 @@ public class a { public Result b(@PathVariable("code") String var1) { try { List var2 = this.onlCgreportItemService.getAutoListQueryInfo(var1); - return Result.ok(var2); + return Result.OK(var2); } catch (Exception var3) { a.info(var3.getMessage(), var3); return Result.error("查询失败"); @@ -279,7 +279,7 @@ public class a { LambdaQueryWrapper var2 = new LambdaQueryWrapper(); var2.eq(OnlCgreportParam::getCgrheadId, var1); List var3 = this.onlCgreportParamService.list(var2); - return Result.ok(var3); + return Result.OK(var3); } catch (Exception var4) { a.info(var4.getMessage(), var4); return Result.error("查询失败"); @@ -474,7 +474,7 @@ public class a { var14.put("dictOptions", var7); var14.put("cgRpConfigId", var3.getId()); var14.put("cgRpConfigName", var3.getName()); - return Result.ok(var14); + return Result.OK(var14); } } @@ -488,11 +488,11 @@ public class a { var2 = DriverManager.getConnection(var1.getDbUrl(), var1.getDbUsername(), var1.getDbPassword()); Result var3; if (var2 == null) { - var3 = Result.ok("数据库连接失败:错误未知"); + var3 = Result.OK("数据库连接失败:错误未知"); return var3; } - var3 = Result.ok("数据库连接成功"); + var3 = Result.OK("数据库连接成功"); return var3; } catch (ClassNotFoundException var17) { a.error(var17.toString()); diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/b.java index 9ddb129d..76228345 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/b.java @@ -14,11 +14,11 @@ import java.util.Iterator; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.query.QueryGenerator; -import org.jeecg.common.system.vo.DynamicDataSourceModel; -import org.jeecg.common.util.SqlInjectionUtil; +import com.jero.common.api.vo.Result; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.vo.DynamicDataSourceModel; +import com.jero.common.util.SqlInjectionUtil; import org.jeecg.modules.base.service.BaseCommonService; import org.jeecg.modules.online.cgreport.entity.OnlCgreportHead; import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem; @@ -106,7 +106,7 @@ public class b { var13.put("fields", var4); var13.put("params", var5); - return Result.ok(var13); + return Result.OK(var13); } catch (Exception var12) { a.error(var12.getMessage(), var12); String var9 = "解析失败,"; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/c.java index bcac9d63..b9b4413a 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/c.java @@ -11,8 +11,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.system.query.QueryGenerator; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem; import org.jeecg.modules.online.cgreport.service.IOnlCgreportItemService; import org.slf4j.Logger; @@ -63,25 +63,25 @@ public class c { @PostMapping({"/add"}) public Result a(@RequestBody OnlCgreportItem var1) { this.onlCgreportItemService.save(var1); - return Result.ok("添加成功!"); + return Result.OK("添加成功!"); } @PutMapping({"/edit"}) public Result b(@RequestBody OnlCgreportItem var1) { this.onlCgreportItemService.updateById(var1); - return Result.ok("编辑成功!"); + return Result.OK("编辑成功!"); } @DeleteMapping({"/delete"}) public Result b(@RequestParam(name = "id",required = true) String var1) { this.onlCgreportItemService.removeById(var1); - return Result.ok("删除成功!"); + return Result.OK("删除成功!"); } @DeleteMapping({"/deleteBatch"}) public Result c(@RequestParam(name = "ids",required = true) String var1) { this.onlCgreportItemService.removeByIds(Arrays.asList(var1.split(","))); - return Result.ok("批量删除成功!"); + return Result.OK("批量删除成功!"); } @GetMapping({"/queryById"}) diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/d.java index a3e695b0..e01b9c52 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/d.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/a/d.java @@ -11,8 +11,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.system.query.QueryGenerator; +import com.jero.common.api.vo.Result; +import com.jero.common.system.query.QueryGenerator; import org.jeecg.modules.online.cgreport.entity.OnlCgreportParam; import org.jeecg.modules.online.cgreport.service.IOnlCgreportParamService; import org.slf4j.Logger; @@ -63,25 +63,25 @@ public class d { @PostMapping({"/add"}) public Result a(@RequestBody OnlCgreportParam var1) { this.onlCgreportParamService.save(var1); - return Result.ok("添加成功!"); + return Result.OK("添加成功!"); } @PutMapping({"/edit"}) public Result b(@RequestBody OnlCgreportParam var1) { this.onlCgreportParamService.updateById(var1); - return Result.ok("编辑成功!"); + return Result.OK("编辑成功!"); } @DeleteMapping({"/delete"}) public Result b(@RequestParam(name = "id",required = true) String var1) { this.onlCgreportParamService.removeById(var1); - return Result.ok("删除成功!"); + return Result.OK("删除成功!"); } @DeleteMapping({"/deleteBatch"}) public Result c(@RequestParam(name = "ids",required = true) String var1) { this.onlCgreportParamService.removeByIds(Arrays.asList(var1.split(","))); - return Result.ok("批量删除成功!"); + return Result.OK("批量删除成功!"); } @GetMapping({"/queryById"}) diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/entity/OnlCgreportHead.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/entity/OnlCgreportHead.java index 772064a3..9ff104bf 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/entity/OnlCgreportHead.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/entity/OnlCgreportHead.java @@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import java.io.Serializable; import java.util.Date; -import org.jeecg.common.aspect.annotation.Dict; +import com.jero.common.aspect.annotation.Dict; import org.springframework.format.annotation.DateTimeFormat; @TableName("onl_cgreport_head") diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/IOnlCgreportHeadService.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/IOnlCgreportHeadService.java index 9a13ba44..bea66eb2 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/IOnlCgreportHeadService.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/IOnlCgreportHeadService.java @@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService; import java.sql.SQLException; import java.util.List; import java.util.Map; -import org.jeecg.common.api.vo.Result; +import com.jero.common.api.vo.Result; import org.jeecg.modules.online.cgreport.entity.OnlCgreportHead; import org.jeecg.modules.online.cgreport.model.OnlCgreportModel; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/b.java index eed7642a..36dd0bd9 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/b.java @@ -21,15 +21,15 @@ import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang.StringUtils; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.exception.JeecgBootException; -import org.jeecg.common.system.api.ISysBaseAPI; -import org.jeecg.common.system.query.QueryGenerator; -import org.jeecg.common.system.vo.DynamicDataSourceModel; -import org.jeecg.common.util.oConvertUtils; -import org.jeecg.common.util.dynamic.db.DataSourceCachePool; -import org.jeecg.common.util.dynamic.db.DynamicDBUtil; -import org.jeecg.common.util.dynamic.db.SqlUtils; +import com.jero.common.api.vo.Result; +import com.jero.common.exception.JeecgBootException; +import com.jero.common.system.api.ISysBaseAPI; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.system.vo.DynamicDataSourceModel; +import com.jero.common.util.oConvertUtils; +import com.jero.common.util.dynamic.db.DataSourceCachePool; +import com.jero.common.util.dynamic.db.DynamicDBUtil; +import com.jero.common.util.dynamic.db.SqlUtils; import org.jeecg.modules.online.cgform.enums.DataBaseEnum; import org.jeecg.modules.online.cgreport.entity.OnlCgreportHead; import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem; @@ -232,7 +232,7 @@ public class b extends ServiceImpl imple this.onlCgreportItemService.saveBatch(values.getItems()); this.onlCgreportParamService.saveBatch(values.getParams()); - return Result.ok("全部修改成功"); + return Result.OK("全部修改成功"); } } @@ -250,7 +250,7 @@ public class b extends ServiceImpl imple this.onlCgreportParamService.remove(var4); } - return Result.ok("删除成功"); + return Result.OK("删除成功"); } @Transactional( @@ -273,7 +273,7 @@ public class b extends ServiceImpl imple } } - return Result.ok("删除成功"); + return Result.OK("删除成功"); } public List getSqlFields(String sql, String dbKey) throws SQLException { diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/c.java index 271cc63a..3822d5ce 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/service/a/c.java @@ -12,7 +12,7 @@ import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem; import org.jeecg.modules.online.cgreport.mapper.OnlCgreportItemMapper; import org.jeecg.modules.online.cgreport.service.IOnlCgreportItemService; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/SqlUtil.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/SqlUtil.java index 9a734aea..adee7161 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/SqlUtil.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/SqlUtil.java @@ -13,8 +13,8 @@ import java.util.Map.Entry; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.system.query.QueryGenerator; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.util.oConvertUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/a.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/a.java index 1d6e80ac..12d97347 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/a.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/cgreport/util/a.java @@ -16,9 +16,9 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; -import org.jeecg.common.system.query.QueryGenerator; -import org.jeecg.common.util.DateUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.system.query.QueryGenerator; +import com.jero.common.util.DateUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.util.b; import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem; import org.jeecg.modules.online.config.b.d; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/a/b.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/a/b.java index f2d3faf4..19d97521 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/a/b.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/a/b.java @@ -5,7 +5,7 @@ package org.jeecg.modules.online.config.a; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/c.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/c.java index be4ddaaf..6246da39 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/c.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/c.java @@ -31,8 +31,8 @@ import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.schema.TargetType; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.cgform.entity.OnlCgformField; import org.jeecg.modules.online.config.a.a; import org.jeecg.modules.online.config.a.b; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/d.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/d.java index f2afe505..f0d0270e 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/d.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/b/d.java @@ -14,8 +14,8 @@ import java.util.List; import java.util.Map; import javax.sql.DataSource; import org.hibernate.Session; -import org.jeecg.common.util.SpringContextUtils; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.SpringContextUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.config.exception.DBException; import org.jeecg.modules.online.config.service.DbTableHandleI; import org.jeecg.modules.online.config.service.a.a; diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/service/a/e.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/service/a/e.java index 44754cdf..b781d2c8 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/service/a/e.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/org/jeecg/modules/online/config/service/a/e.java @@ -5,7 +5,7 @@ package org.jeecg.modules.online.config.service.a; -import org.jeecg.common.util.oConvertUtils; +import com.jero.common.util.oConvertUtils; import org.jeecg.modules.online.config.b.a; import org.jeecg.modules.online.config.service.DbTableHandleI;