【添加】原始文件添加
This commit is contained in:
+1
-1
@@ -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("删除成功!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
+178
@@ -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;
|
||||
}
|
||||
}
|
||||
+1228
File diff suppressed because it is too large
Load Diff
+192
@@ -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<IPage<OnlCgformButton>> a(OnlCgformButton paramOnlCgformButton, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest, @PathVariable("code") String paramString) {
|
||||
Result<IPage<OnlCgformButton>> 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<OnlCgformButton> a(@RequestBody OnlCgformButton paramOnlCgformButton) {
|
||||
Result<OnlCgformButton> 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<OnlCgformButton> a(@RequestBody JSONArray paramJSONArray) {
|
||||
Result<OnlCgformButton> 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<OnlCgformButton> b(@RequestBody OnlCgformButton paramOnlCgformButton) {
|
||||
Result<OnlCgformButton> 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<OnlCgformButton> a(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformButton> 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<OnlCgformButton> b(@RequestParam(name = "ids", required = true) String paramString) {
|
||||
Result<OnlCgformButton> 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<OnlCgformButton> c(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformButton> 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
|
||||
*/
|
||||
+205
@@ -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<IPage<OnlCgformField>> a(OnlCgformField paramOnlCgformField, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) {
|
||||
Result<IPage<OnlCgformField>> 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<OnlCgformField> a(@RequestBody OnlCgformField paramOnlCgformField) {
|
||||
Result<OnlCgformField> 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<OnlCgformField> b(@RequestBody OnlCgformField paramOnlCgformField) {
|
||||
Result<OnlCgformField> 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<OnlCgformField> c(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformField> 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<OnlCgformField> d(@RequestParam(name = "ids", required = true) String paramString) {
|
||||
Result<OnlCgformField> 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<OnlCgformField> e(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformField> 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
|
||||
*/
|
||||
+706
@@ -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<String> b = null;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
ResourceLoader resourceLoader;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static String c;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@GetMapping({"/list"})
|
||||
public Result<IPage<OnlCgformHead>> a(OnlCgformHead paramOnlCgformHead, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) {
|
||||
Result<IPage<OnlCgformHead>> 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<OnlCgformHead> a(@RequestBody OnlCgformHead paramOnlCgformHead) {
|
||||
Result<OnlCgformHead> 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<OnlCgformHead> b(@RequestBody OnlCgformHead paramOnlCgformHead) {
|
||||
Result<OnlCgformHead> 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<OnlCgformHead> a(@RequestParam(name = "ids", required = true) String paramString1, @RequestParam(name = "flag") String paramString2) {
|
||||
Result<OnlCgformHead> 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<OnlCgformHead> c(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformHead> 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<String> 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<String> 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<HashMap<Object, Object>> arrayList = new ArrayList();
|
||||
for (String str1 : list) {
|
||||
if (l(str1)) {
|
||||
continue;
|
||||
}
|
||||
HashMap<Object, Object> 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<Object, Object> hashMap = new HashMap<>();
|
||||
hashMap.put("main", onlCgformHead);
|
||||
if (onlCgformHead.getTableType().intValue() == 2) {
|
||||
|
||||
String str = onlCgformHead.getSubTableStr();
|
||||
if (oConvertUtils.isNotEmpty(str)) {
|
||||
ArrayList<OnlCgformHead> 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<OnlCgformHead>(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
|
||||
*/
|
||||
+188
@@ -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<IPage<OnlCgformIndex>> a(OnlCgformIndex paramOnlCgformIndex, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) {
|
||||
Result<IPage<OnlCgformIndex>> 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<OnlCgformIndex> a(@RequestBody OnlCgformIndex paramOnlCgformIndex) {
|
||||
Result<OnlCgformIndex> 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<OnlCgformIndex> b(@RequestBody OnlCgformIndex paramOnlCgformIndex) {
|
||||
Result<OnlCgformIndex> 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<OnlCgformIndex> b(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformIndex> 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<OnlCgformIndex> c(@RequestParam(name = "ids", required = true) String paramString) {
|
||||
Result<OnlCgformIndex> 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<OnlCgformIndex> d(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgformIndex> 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
|
||||
*/
|
||||
+41
@@ -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
|
||||
*/
|
||||
+17
@@ -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<String, String> 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
|
||||
*/
|
||||
+129
@@ -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<String, FieldCommentConverter> a(List<OnlCgformField> paramList) {
|
||||
HashMap<Object, Object> 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
|
||||
*/
|
||||
+122
@@ -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<DictModel> 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<DictModel> 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<String, String> 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
|
||||
*/
|
||||
+71
@@ -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<DictModel> b;
|
||||
|
||||
public String getFiled() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
public void setFiled(String filed) {
|
||||
this.a = filed;
|
||||
}
|
||||
|
||||
public List<DictModel> getDictList() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public void setDictList(List<DictModel> 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<String, String> 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
|
||||
*/
|
||||
+99
@@ -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<Map<String, Object>> paramList, List<OnlCgformField> paramList1) {
|
||||
Map<String, FieldCommentConverter> map = a.a(paramList1);
|
||||
for (Map<String, Object> map1 : paramList) {
|
||||
Iterator<Map.Entry> iterator = map1.entrySet().iterator();
|
||||
|
||||
HashMap<Object, Object> 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<String, Object> paramMap, int paramInt) {
|
||||
Map<String, String> 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<String, Object> paramMap, String paramString) {
|
||||
Map<String, String> 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
|
||||
*/
|
||||
+48
@@ -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<String, String> getConfig() {
|
||||
if (oConvertUtils.isEmpty(this.f)) {
|
||||
return null;
|
||||
}
|
||||
HashMap<Object, Object> 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
|
||||
*/
|
||||
+66
@@ -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<String> 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<String> 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
|
||||
*/
|
||||
+38
@@ -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
|
||||
*/
|
||||
+22
@@ -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
|
||||
*/
|
||||
+48
@@ -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<String, String> getConfig() {
|
||||
HashMap<Object, Object> 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
|
||||
*/
|
||||
+70
@@ -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<String> 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<String> 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
|
||||
*/
|
||||
+41
@@ -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
|
||||
*/
|
||||
+39
@@ -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<DictModel> 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
|
||||
*/
|
||||
+26
@@ -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
|
||||
*/
|
||||
+65
@@ -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<String> 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<String> 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
|
||||
*/
|
||||
+40
@@ -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<String, String> 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
|
||||
*/
|
||||
+20
@@ -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
|
||||
*/
|
||||
+18
@@ -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<String, Object> 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
|
||||
*/
|
||||
+15
@@ -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<Map<String, Object>> 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
|
||||
*/
|
||||
+66
@@ -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<String, Object> 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
|
||||
*/
|
||||
+64
@@ -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<Map<String, Object>> data) throws BusinessException {
|
||||
List list = this.sysBaseAPI.queryAllDSysCategory();
|
||||
for (Map<String, String> map : data) {
|
||||
|
||||
String str1 = oConvertUtils.getString(map.get("fen_tree"));
|
||||
if (oConvertUtils.isEmpty(str1)) {
|
||||
continue;
|
||||
}
|
||||
List<SysCategoryModel> 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<String> 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
|
||||
*/
|
||||
+64
@@ -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<String, Object> 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
|
||||
*/
|
||||
+37
@@ -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<String, Object> 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
|
||||
*/
|
||||
+69
@@ -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<Map<String, Object>> data) throws BusinessException {
|
||||
List<a> list = a();
|
||||
for (Map<String, String> 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> a() {
|
||||
ArrayList<a> 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
|
||||
*/
|
||||
+47
@@ -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
|
||||
*/
|
||||
+44
@@ -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
|
||||
*/
|
||||
+44
@@ -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
|
||||
*/
|
||||
+39
@@ -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
|
||||
*/
|
||||
+140
File diff suppressed because one or more lines are too long
+112
File diff suppressed because one or more lines are too long
+59
@@ -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
|
||||
*/
|
||||
+19
@@ -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
|
||||
*/
|
||||
+80
@@ -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
|
||||
*/
|
||||
+58
@@ -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
|
||||
*/
|
||||
+12
@@ -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<OnlCgformButton> {}
|
||||
|
||||
|
||||
/* 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
|
||||
*/
|
||||
+12
@@ -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<OnlCgformEnhanceJava> {}
|
||||
|
||||
|
||||
/* 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
|
||||
*/
|
||||
+12
@@ -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<OnlCgformEnhanceJs> {}
|
||||
|
||||
|
||||
/* 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
|
||||
*/
|
||||
+12
@@ -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<OnlCgformEnhanceSql> {}
|
||||
|
||||
|
||||
/* 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
|
||||
*/
|
||||
+48
@@ -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<OnlCgformField> {
|
||||
List<Map<String, Object>> 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<String, Object> queryFormData(@Param("sqlStr") String paramString);
|
||||
|
||||
List<Map<String, Object>> queryListData(@Param("sqlStr") String paramString);
|
||||
|
||||
IPage<Map<String, Object>> selectPageBySql(Page<Map<String, Object>> paramPage, @Param("sqlStr") String paramString);
|
||||
|
||||
void executeInsertSQL(Map<String, Object> paramMap);
|
||||
|
||||
void executeUpdatetSQL(Map<String, Object> paramMap);
|
||||
|
||||
List<String> selectOnlineHideColumns(@Param("user_id") String paramString1, @Param("online_tbname") String paramString2);
|
||||
|
||||
List<String> selectOnlineDisabledColumns(@Param("user_id") String paramString1, @Param("online_tbname") String paramString2);
|
||||
|
||||
List<String> selectFlowAuthColumns(@Param("table_name") String paramString1, @Param("task_id") String paramString2, @Param("rule_type") String paramString3);
|
||||
|
||||
@Deprecated
|
||||
List<TreeModel> 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
|
||||
*/
|
||||
+42
@@ -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<OnlCgformHead> {
|
||||
void executeDDL(@Param("sqlStr") String paramString);
|
||||
|
||||
List<Map<String, Object>> queryList(@Param("sqlStr") String paramString);
|
||||
|
||||
List<String> queryOnlinetables();
|
||||
|
||||
Map<String, Object> 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<String> queryAllCopyTableName(@Param("physicId") String paramString);
|
||||
|
||||
@Select({"select physic_id from onl_cgform_head GROUP BY physic_id"})
|
||||
List<String> 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
|
||||
*/
|
||||
+15
@@ -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<OnlCgformIndex> {
|
||||
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
|
||||
*/
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.generater.modules.online.cgform.mapper.OnlCgformFieldMapper">
|
||||
|
||||
<!-- 执行select list语句 -->
|
||||
<select id="queryListBySql" parameterType="java.lang.String" resultType="java.util.HashMap">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
<!-- 执行select count语句 -->
|
||||
<select id="queryCountBySql" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
<!-- 执行保存语句 -->
|
||||
<insert id="saveFormData" parameterType="java.lang.String">
|
||||
${sqlStr}
|
||||
</insert>
|
||||
|
||||
<!-- 执行编辑语句 -->
|
||||
<update id="editFormData" parameterType="java.lang.String">
|
||||
${sqlStr}
|
||||
</update>
|
||||
|
||||
<!-- 执行select form语句 -->
|
||||
<select id="queryFormData" parameterType="java.lang.String" resultType="java.util.HashMap">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
<!-- 执行select 查询集合 -->
|
||||
<select id="queryListData" parameterType="java.lang.String" resultType="java.util.HashMap">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
<!-- 执行delete 删除数据 -->
|
||||
<delete id="deleteAutoList" parameterType="java.lang.String">
|
||||
${sqlStr}
|
||||
</delete>
|
||||
|
||||
<!-- 执行select 分页查询集合 -->
|
||||
<select id="selectPageBySql" parameterType="java.lang.String" resultType="java.util.HashMap">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
<!-- 执行update语句 据说可以防注入 -->
|
||||
<update id="executeUpdatetSQL" parameterType="java.util.Map">
|
||||
${execute_sql_string}
|
||||
</update>
|
||||
|
||||
<!-- 执行insert语句 据说可以防注入 -->
|
||||
<insert id="executeInsertSQL" parameterType="java.util.Map">
|
||||
${execute_sql_string}
|
||||
</insert>
|
||||
|
||||
<!-- 查询不被权限控制隐藏的列 -->
|
||||
<select id="selectOnlineHideColumns" resultType="java.lang.String">
|
||||
select t.perms from sys_permission t where menu_type = 2 and t.perms like #{online_tbname}
|
||||
and (t.perms_type = '0'
|
||||
or (t.perms_type = '1'
|
||||
and NOT EXISTS(
|
||||
select * from sys_user a
|
||||
join sys_user_role b on a.id = b.user_id
|
||||
join sys_role c on c.id = b.role_id
|
||||
join sys_role_permission d on d.role_id = c. id
|
||||
where t.id = d.permission_id and a.id = #{user_id}
|
||||
)
|
||||
)
|
||||
)
|
||||
</select>
|
||||
|
||||
<!-- 查询disabled的列 -->
|
||||
<select id="selectOnlineDisabledColumns" resultType="java.lang.String">
|
||||
select t.perms from sys_permission t where menu_type = 2 and t.perms like #{online_tbname}
|
||||
and t.perms_type = '2'
|
||||
and NOT EXISTS(
|
||||
select * from sys_user a
|
||||
join sys_user_role b on a.id = b.user_id
|
||||
join sys_role c on c.id = b.role_id
|
||||
join sys_role_permission d on d.role_id = c. id
|
||||
where t.id = d.permission_id and a.id = #{user_id}
|
||||
)
|
||||
</select>
|
||||
|
||||
<!-- 查询流程节点权限 隐藏的列 显示无效为隐藏10 禁用有效为禁用21 -->
|
||||
<select id="selectFlowAuthColumns" resultType="java.lang.String">
|
||||
SELECT rule_code FROM ext_act_process_node_auth eapna
|
||||
WHERE eapna.form_type = '1'
|
||||
AND eapna.process_node_code = #{task_id}
|
||||
AND eapna.form_biz_code = #{table_name}
|
||||
<choose>
|
||||
<when test='rule_type == "1"'>
|
||||
AND eapna.status = '0' AND eapna.rule_type = '1'
|
||||
</when>
|
||||
<when test='rule_type == "2"'>
|
||||
AND eapna.status = '1' AND eapna.rule_type = '2'
|
||||
</when>
|
||||
<otherwise>
|
||||
AND 1 = 0
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<!-- 查询级联数据 -->
|
||||
<select id="queryDataListByLinkDown" parameterType="Object" resultType="com.jero.generater.modules.online.cgform.model.TreeModel">
|
||||
select
|
||||
${query.key} as store,
|
||||
${query.txt} as label,
|
||||
${query.idField} as id,
|
||||
${query.pidField} as pid
|
||||
from ${query.table} where 1 = 1
|
||||
<choose>
|
||||
<when test="query.pidValue !=null and query.pidValue != ''">
|
||||
AND ${query.pidField} = #{query.pidValue}
|
||||
</when>
|
||||
<otherwise>
|
||||
<if test="query.condition !=null and query.condition != ''">
|
||||
AND ${query.condition}
|
||||
</if>
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.generater.modules.online.cgform.mapper.OnlCgformHeadMapper">
|
||||
|
||||
<!-- 执行ddl语句 -->
|
||||
<update id="executeDDL" parameterType="java.lang.String">
|
||||
${sqlStr}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 执行查询语句 -->
|
||||
<select id="queryList" parameterType="java.lang.String" resultType="java.util.HashMap">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
<!-- 查询Online所有的配置表名集合 -->
|
||||
<select id="queryOnlinetables" resultType="java.lang.String">
|
||||
select table_name from onl_cgform_head
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 执行查询语句返回一个map -->
|
||||
<select id="queryOneByTableNameAndId" parameterType="java.lang.String" resultType="java.util.HashMap">
|
||||
select * from ${tbname} where id = #{dataId}
|
||||
</select>
|
||||
|
||||
<!-- 执行delete 删除数据 -->
|
||||
<delete id="deleteOne" parameterType="java.lang.String">
|
||||
${sqlStr}
|
||||
</delete>
|
||||
|
||||
<!-- 根据code查询id -->
|
||||
<select id="queryCategoryIdByCode" resultType="java.lang.String" parameterType="java.lang.String">
|
||||
select ID from SYS_CATEGORY WHERE CODE = #{code,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.generater.modules.online.cgform.mapper.OnlCgformIndexMapper">
|
||||
|
||||
<select id ="queryIndexCount" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||||
${sqlStr}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+23
@@ -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
|
||||
*/
|
||||
+51
@@ -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
|
||||
*/
|
||||
+278
@@ -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<OnlColumn> j;
|
||||
private List<String> 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<OnlColumn> columns) {
|
||||
this.j = columns;
|
||||
}
|
||||
|
||||
public void setHideColumns(List<String> hideColumns) {
|
||||
this.k = hideColumns;
|
||||
}
|
||||
|
||||
public void setDictOptions(Map<String, List<DictModel>> dictOptions) {
|
||||
this.l = dictOptions;
|
||||
}
|
||||
|
||||
public void setCgButtonList(List<OnlCgformButton> cgButtonList) {
|
||||
this.m = cgButtonList;
|
||||
}
|
||||
|
||||
public void setFieldHrefSlots(List<HrefSlots> fieldHrefSlots) {
|
||||
this.a = fieldHrefSlots;
|
||||
}
|
||||
|
||||
public void setEnhanceJs(String enhanceJs) {
|
||||
this.n = enhanceJs;
|
||||
}
|
||||
|
||||
public void setForeignKeys(List<c> 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<OnlColumn> list1 = getColumns(), list2 = onlComplexModel1.getColumns();
|
||||
if ((list1 == null) ? (list2 != null) : !list1.equals(list2)) return false;
|
||||
List<String> list3 = getHideColumns(), list4 = onlComplexModel1.getHideColumns();
|
||||
if ((list3 == null) ? (list4 != null) : !list3.equals(list4)) return false;
|
||||
Map<String, List<DictModel>> map1 = getDictOptions(), map2 = onlComplexModel1.getDictOptions();
|
||||
if ((map1 == null) ? (map2 != null) : !map1.equals(map2)) return false;
|
||||
List<OnlCgformButton> list5 = getCgButtonList(), list6 = onlComplexModel1.getCgButtonList();
|
||||
if ((list5 == null) ? (list6 != null) : !list5.equals(list6)) return false;
|
||||
List<HrefSlots> 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<c> 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<OnlColumn> getColumns() {
|
||||
return this.j;
|
||||
}
|
||||
|
||||
|
||||
public List<String> getHideColumns() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
|
||||
private Map<String, List<DictModel>> l = new HashMap<>();
|
||||
private List<OnlCgformButton> m;
|
||||
List<HrefSlots> a;
|
||||
private String n;
|
||||
private List<c> o;
|
||||
private String p;
|
||||
|
||||
public Map<String, List<DictModel>> getDictOptions() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
private String q;
|
||||
private String r;
|
||||
private String s;
|
||||
private String t;
|
||||
private Integer u;
|
||||
|
||||
public List<OnlCgformButton> getCgButtonList() {
|
||||
return this.m;
|
||||
}
|
||||
|
||||
|
||||
public List<HrefSlots> getFieldHrefSlots() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
|
||||
public String getEnhanceJs() {
|
||||
return this.n;
|
||||
}
|
||||
|
||||
|
||||
public List<c> 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
|
||||
*/
|
||||
+115
@@ -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<OnlGenerateModel> 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<OnlGenerateModel> getSubList() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
public void setSubList(List<OnlGenerateModel> 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
|
||||
*/
|
||||
+24
@@ -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
|
||||
*/
|
||||
+75
@@ -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<OnlCgformField> b;
|
||||
private List<String> c;
|
||||
private List<OnlCgformIndex> d;
|
||||
private List<String> e;
|
||||
|
||||
public OnlCgformHead getHead() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
public void setHead(OnlCgformHead head) {
|
||||
this.a = head;
|
||||
}
|
||||
|
||||
public List<OnlCgformField> getFields() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public void setFields(List<OnlCgformField> fields) {
|
||||
this.b = fields;
|
||||
}
|
||||
|
||||
public List<OnlCgformIndex> getIndexs() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public void setIndexs(List<OnlCgformIndex> indexs) {
|
||||
this.d = indexs;
|
||||
}
|
||||
|
||||
public List<String> getDeleteFieldIds() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public void setDeleteFieldIds(List<String> deleteFieldIds) {
|
||||
this.c = deleteFieldIds;
|
||||
}
|
||||
|
||||
public List<String> getDeleteIndexIds() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
public void setDeleteIndexIds(List<String> 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
|
||||
*/
|
||||
+37
@@ -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
|
||||
*/
|
||||
+21
@@ -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
|
||||
*/
|
||||
+80
@@ -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
|
||||
*/
|
||||
+14
@@ -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<OnlCgformButton> {
|
||||
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
|
||||
*/
|
||||
+37
@@ -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<OnlCgformEnhanceJava> queryEnhanceJavaList(String paramString);
|
||||
|
||||
void saveEnhanceJava(OnlCgformEnhanceJava paramOnlCgformEnhanceJava);
|
||||
|
||||
void updateEnhanceJava(OnlCgformEnhanceJava paramOnlCgformEnhanceJava);
|
||||
|
||||
void deleteEnhanceJava(String paramString);
|
||||
|
||||
void deleteBatchEnhanceJava(List<String> paramList);
|
||||
|
||||
boolean checkOnlyEnhance(OnlCgformEnhanceJava paramOnlCgformEnhanceJava);
|
||||
|
||||
boolean checkOnlyEnhance(OnlCgformEnhanceSql paramOnlCgformEnhanceSql);
|
||||
|
||||
List<OnlCgformEnhanceSql> queryEnhanceSqlList(String paramString);
|
||||
|
||||
void saveEnhanceSql(OnlCgformEnhanceSql paramOnlCgformEnhanceSql);
|
||||
|
||||
void updateEnhanceSql(OnlCgformEnhanceSql paramOnlCgformEnhanceSql);
|
||||
|
||||
void deleteEnhanceSql(String paramString);
|
||||
|
||||
void deleteBatchEnhanceSql(List<String> 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
|
||||
*/
|
||||
+81
@@ -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<OnlCgformField> {
|
||||
Map<String, Object> queryAutolistPage(String paramString1, String paramString2, Map<String, Object> paramMap, List<String> paramList);
|
||||
|
||||
Map<String, Object> queryAutoTreeNoPage(String paramString1, String paramString2, Map<String, Object> paramMap, List<String> 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<OnlCgformField> paramList, String paramString, JSONObject paramJSONObject);
|
||||
|
||||
List<OnlCgformField> queryFormFields(String paramString, boolean paramBoolean);
|
||||
|
||||
List<OnlCgformField> 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<String, Object> queryFormData(String paramString1, String paramString2, String paramString3);
|
||||
|
||||
Map<String, Object> queryFormData(List<OnlCgformField> paramList, String paramString1, String paramString2);
|
||||
|
||||
List<Map<String, Object>> querySubFormData(List<OnlCgformField> paramList, String paramString1, String paramString2, String paramString3);
|
||||
|
||||
List<Map<String, String>> getAutoListQueryInfo(String paramString);
|
||||
|
||||
IPage<Map<String, Object>> selectPageBySql(Page<Map<String, Object>> paramPage, @Param("sqlStr") String paramString);
|
||||
|
||||
List<String> selectOnlineHideColumns(String paramString);
|
||||
|
||||
List<OnlCgformField> queryAvailableFields(String paramString1, String paramString2, String paramString3, boolean paramBoolean);
|
||||
|
||||
List<String> queryDisabledFields(String paramString);
|
||||
|
||||
List<String> queryDisabledFields(String paramString1, String paramString2);
|
||||
|
||||
List<OnlCgformField> queryAvailableFields(String paramString, boolean paramBoolean, List<OnlCgformField> paramList, List<String> paramList1);
|
||||
|
||||
List<OnlCgformField> queryAvailableFields(String paramString1, String paramString2, boolean paramBoolean, List<OnlCgformField> paramList, List<String> paramList1);
|
||||
|
||||
void executeInsertSQL(Map<String, Object> paramMap);
|
||||
|
||||
void executeUpdatetSQL(Map<String, Object> paramMap);
|
||||
|
||||
List<TreeModel> 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
|
||||
*/
|
||||
+105
@@ -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<OnlCgformHead> {
|
||||
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<Map<String, Object>> 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<OnlCgformButton> queryButtonList(String paramString, boolean paramBoolean);
|
||||
|
||||
List<OnlCgformButton> queryButtonList(String paramString);
|
||||
|
||||
List<String> queryOnlinetables();
|
||||
|
||||
void saveDbTable2Online(String paramString);
|
||||
|
||||
JSONObject queryFormItem(OnlCgformHead paramOnlCgformHead);
|
||||
|
||||
String saveManyFormData(String paramString1, JSONObject paramJSONObject, String paramString2) throws DBException, BusinessException;
|
||||
|
||||
Map<String, Object> queryManyFormData(String paramString1, String paramString2) throws DBException;
|
||||
|
||||
List<Map<String, Object>> queryManySubFormData(String paramString1, String paramString2) throws DBException;
|
||||
|
||||
Map<String, Object> 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<Map<String, Object>> paramList) throws BusinessException;
|
||||
|
||||
void executeEnhanceList(OnlCgformHead paramOnlCgformHead, String paramString, List<Map<String, Object>> paramList) throws BusinessException;
|
||||
|
||||
void executeEnhanceSql(String paramString1, String paramString2, JSONObject paramJSONObject);
|
||||
|
||||
void executeCustomerButton(String paramString1, String paramString2, String paramString3) throws BusinessException;
|
||||
|
||||
List<OnlCgformButton> queryValidButtonList(String paramString);
|
||||
|
||||
OnlCgformEnhanceJs queryEnhanceJs(String paramString1, String paramString2);
|
||||
|
||||
void deleteOneTableInfo(String paramString1, String paramString2) throws BusinessException;
|
||||
|
||||
List<String> generateCode(OnlGenerateModel paramOnlGenerateModel) throws Exception;
|
||||
|
||||
List<String> 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<OnlCgformHead> 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
|
||||
*/
|
||||
+19
@@ -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<OnlCgformIndex> {
|
||||
void createIndex(String paramString1, String paramString2, String paramString3);
|
||||
|
||||
boolean isExistIndex(String paramString);
|
||||
|
||||
List<OnlCgformIndex> 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
|
||||
*/
|
||||
+19
@@ -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<OnlCgformField> paramList, List<Map<String, Object>> paramList1) throws BusinessException;
|
||||
|
||||
void saveOrUpdateSubData(String paramString, OnlCgformHead paramOnlCgformHead, List<OnlCgformField> 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
|
||||
*/
|
||||
+11
@@ -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
|
||||
*/
|
||||
+24
@@ -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<OnlCgformButton> 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
|
||||
*/
|
||||
+35
@@ -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<OnlCgformButtonMapper, OnlCgformButton>
|
||||
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
|
||||
*/
|
||||
+119
@@ -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<OnlCgformEnhanceJava> 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<String> 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<OnlCgformEnhanceSql> 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<String> 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
|
||||
*/
|
||||
+930
@@ -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<OnlCgformFieldMapper, OnlCgformField> 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<String, Object> queryAutolistPage(String tbname, String headId, Map<String, Object> params, List<String> needList) {
|
||||
HashMap<Object, Object> hashMap = new HashMap<>();
|
||||
|
||||
|
||||
LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper();
|
||||
lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, headId);
|
||||
lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum);
|
||||
List<OnlCgformField> list1 = list((Wrapper)lambdaQueryWrapper);
|
||||
|
||||
|
||||
List<OnlCgformField> 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<String, Object> queryAutoTreeNoPage(String tbname, String headId, Map<String, Object> params, List<String> needList, String pidField) {
|
||||
HashMap<Object, Object> hashMap = new HashMap<>();
|
||||
|
||||
|
||||
LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper();
|
||||
lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, headId);
|
||||
lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum);
|
||||
List<OnlCgformField> list1 = list((Wrapper)lambdaQueryWrapper);
|
||||
|
||||
|
||||
List<OnlCgformField> 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<Map<String, Object>> list3 = this.onlCgformFieldMapper.queryListBySql(stringBuffer.toString());
|
||||
|
||||
|
||||
if ("true".equals(params.get("hasQuery"))) {
|
||||
ArrayList<Map<String, Object>> arrayList = new ArrayList();
|
||||
for (Map<String, Object> map : (Iterable<Map<String, Object>>)list3) {
|
||||
String str = map.get(pidField).toString();
|
||||
|
||||
if (str != null && !"0".equals(str)) {
|
||||
Map<String, Object> 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<String, Object> a(String paramString1, String paramString2, String paramString3, List<String> paramList, String paramString4) {
|
||||
HashMap<Object, Object> hashMap = new HashMap<>();
|
||||
hashMap.put("id", paramString1);
|
||||
|
||||
LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper();
|
||||
lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, paramString3);
|
||||
lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum);
|
||||
List<OnlCgformField> list1 = list((Wrapper)lambdaQueryWrapper);
|
||||
|
||||
|
||||
List<OnlCgformField> 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<Map> list3 = this.onlCgformFieldMapper.queryListBySql(stringBuffer.toString());
|
||||
if (list3 != null && list3.size() > 0) {
|
||||
Map<String, Object> 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<OnlCgformField> 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<String, Object> 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<HashMap<Object, Object>> 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<OnlCgformField> list1 = list((Wrapper)lambdaQueryWrapper1);
|
||||
if (list1 != null && list1.size() != 0) {
|
||||
|
||||
|
||||
|
||||
OnlCgformField onlCgformField = list1.get(0);
|
||||
HashMap<Object, Object> 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<String, String> 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<Object, Object> 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<Map<String, String>> 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<HashMap<Object, Object>> arrayList = new ArrayList();
|
||||
byte b = 0;
|
||||
for (OnlCgformField onlCgformField : list) {
|
||||
HashMap<Object, Object> 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<OnlCgformField> 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<OnlCgformField> 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<String, Object> queryFormData(List<OnlCgformField> fieldList, String tbname, String id) {
|
||||
String str = b.a(tbname, fieldList, id);
|
||||
return this.onlCgformFieldMapper.queryFormData(str);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<Map<String, Object>> querySubFormData(List<OnlCgformField> fieldList, String tbname, String linkField, String value) {
|
||||
String str = b.a(tbname, fieldList, linkField, value);
|
||||
return this.onlCgformFieldMapper.queryListData(str);
|
||||
}
|
||||
|
||||
|
||||
public IPage<Map<String, Object>> selectPageBySql(Page<Map<String, Object>> page, String sql) {
|
||||
return ((OnlCgformFieldMapper)this.baseMapper).selectPageBySql(page, sql);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<String> selectOnlineHideColumns(String tbname) {
|
||||
String str1 = "online:" + tbname + ":%";
|
||||
|
||||
LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
|
||||
String str2 = loginUser.getId();
|
||||
List<String> list = ((OnlCgformFieldMapper)this.baseMapper).selectOnlineHideColumns(str2, str1);
|
||||
return a(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public List<OnlCgformField> 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<OnlCgformField> list = list((Wrapper)lambdaQueryWrapper);
|
||||
|
||||
|
||||
String str1 = "online:" + tbname + "%";
|
||||
LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
|
||||
String str2 = loginUser.getId();
|
||||
ArrayList<String> 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<OnlCgformField> 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<String> queryDisabledFields(String tbname) {
|
||||
String str1 = "online:" + tbname + "%";
|
||||
LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
|
||||
String str2 = loginUser.getId();
|
||||
List<String> list = ((OnlCgformFieldMapper)this.baseMapper).selectOnlineDisabledColumns(str2, str1);
|
||||
return a(list);
|
||||
}
|
||||
|
||||
|
||||
public List<String> queryDisabledFields(String tbname, String taskId) {
|
||||
if (oConvertUtils.isEmpty(taskId)) {
|
||||
return null;
|
||||
}
|
||||
List<String> list = ((OnlCgformFieldMapper)this.baseMapper).selectFlowAuthColumns(tbname, taskId, "2");
|
||||
return a(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private List<String> a(List<String> paramList) {
|
||||
ArrayList<String> 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<OnlCgformField> queryAvailableFields(String tbname, boolean isList, List<OnlCgformField> list, List<String> needList) {
|
||||
String str1 = "online:" + tbname + "%";
|
||||
LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
|
||||
String str2 = loginUser.getId();
|
||||
List<String> list1 = ((OnlCgformFieldMapper)this.baseMapper).selectOnlineHideColumns(str2, str1);
|
||||
return a(list1, isList, list, needList);
|
||||
}
|
||||
|
||||
|
||||
public List<OnlCgformField> queryAvailableFields(String cgformId, String tbname, boolean isList, List<OnlCgformField> list, List<String> needList) {
|
||||
LoginUser loginUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
|
||||
String str = loginUser.getId();
|
||||
List<String> list1 = this.onlAuthPageService.queryListHideColumn(str, cgformId);
|
||||
return a(list1, isList, list, needList);
|
||||
}
|
||||
|
||||
private List<OnlCgformField> a(List<String> paramList1, boolean paramBoolean, List<OnlCgformField> paramList, List<String> paramList2) {
|
||||
ArrayList<OnlCgformField> 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<String> 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<OnlCgformField> paramList) {
|
||||
boolean bool = false;
|
||||
for (OnlCgformField onlCgformField : paramList) {
|
||||
if (oConvertUtils.camelToUnderline(paramString).equals(onlCgformField.getDbFieldName())) {
|
||||
bool = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return bool;
|
||||
}
|
||||
|
||||
|
||||
public void executeInsertSQL(Map<String, Object> params) {
|
||||
((OnlCgformFieldMapper)this.baseMapper).executeInsertSQL(params);
|
||||
}
|
||||
|
||||
|
||||
public void executeUpdatetSQL(Map<String, Object> params) {
|
||||
((OnlCgformFieldMapper)this.baseMapper).executeUpdatetSQL(params);
|
||||
}
|
||||
|
||||
|
||||
public List<TreeModel> 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.<String>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
|
||||
*/
|
||||
+1904
File diff suppressed because it is too large
Load Diff
+99
@@ -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<OnlCgformIndexMapper, OnlCgformIndex>
|
||||
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<OnlCgformIndex> 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
|
||||
*/
|
||||
+113
@@ -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<OnlCgformField> fieldList, List<Map<String, Object>> 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<OnlCgformField> subFiledList) throws BusinessException {
|
||||
OnlCgformFieldMapper onlCgformFieldMapper = (OnlCgformFieldMapper)SpringContextUtils.getBean(OnlCgformFieldMapper.class);
|
||||
a(subDataJsonStr, head, subFiledList, onlCgformFieldMapper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void a(String paramString, OnlCgformHead paramOnlCgformHead, List<OnlCgformField> 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
|
||||
*/
|
||||
+58
@@ -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
|
||||
*/
|
||||
+374
@@ -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<OnlCgformField> list = a(str);
|
||||
|
||||
|
||||
|
||||
List list1 = this.onlAuthPageService.queryHideCode(str, true);
|
||||
|
||||
|
||||
ArrayList<OnlColumn> arrayList = new ArrayList();
|
||||
|
||||
HashMap<Object, Object> hashMap = new HashMap<>();
|
||||
|
||||
ArrayList<HrefSlots> arrayList1 = new ArrayList();
|
||||
|
||||
ArrayList<c> arrayList2 = new ArrayList();
|
||||
ArrayList<String> 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<OnlCgformButton> 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<OnlCgformField> paramList, List<String> paramList1, List<OnlColumn> 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<OnlCgformButton> 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<OnlCgformButton> queryFormValidButton(String headId) {
|
||||
List list = this.onlCgformHeadService.queryButtonList(headId, false);
|
||||
List<OnlCgformButton> 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<OnlCgformField> 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
|
||||
*/
|
||||
+249
@@ -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<OnlCgformButton> 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<OnlCgformButton> 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<OnlCgformButton> 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<OnlCgformButton> 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<OnlCgformField> 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<OnlCgformField> 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
|
||||
*/
|
||||
+88
@@ -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<String, OnlCgformField> a;
|
||||
ISysBaseAPI b;
|
||||
String c;
|
||||
String d;
|
||||
String e;
|
||||
|
||||
public a(List<OnlCgformField> 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<String, OnlCgformField> a(List<OnlCgformField> paramList) {
|
||||
HashMap<Object, Object> hashMap = new HashMap<>();
|
||||
|
||||
for (OnlCgformField onlCgformField : paramList) {
|
||||
hashMap.put(onlCgformField.getDbFieldTxt(), onlCgformField);
|
||||
}
|
||||
return (Map)hashMap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setMapValue(Map<String, Object> 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
|
||||
*/
|
||||
+2112
File diff suppressed because it is too large
Load Diff
+6682
File diff suppressed because it is too large
Load Diff
+87
@@ -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<String> 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
|
||||
*/
|
||||
+6856
File diff suppressed because it is too large
Load Diff
+7296
File diff suppressed because it is too large
Load Diff
+19
@@ -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
|
||||
*/
|
||||
+21
@@ -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
|
||||
*/
|
||||
+111
@@ -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<String, Object> 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
|
||||
*/
|
||||
+163
@@ -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
|
||||
*/
|
||||
+527
@@ -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
|
||||
*/
|
||||
+7283
File diff suppressed because it is too large
Load Diff
+6752
File diff suppressed because it is too large
Load Diff
+626
@@ -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<Object, Object> 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<DictModel> list1 = a(str, jSONArray1, onlCgreportItem.getFieldName());
|
||||
if (list1 != null) {
|
||||
hashMap1.put(onlCgreportItem.getFieldName(), list1);
|
||||
jSONObject1.put("customRender", onlCgreportItem.getFieldName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HashMap<Object, Object> 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<DictModel> a(String paramString1, JSONArray paramJSONArray, String paramString2) {
|
||||
List<DictModel> 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<String> 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<HashMap<Object, Object>> arrayList = new ArrayList();
|
||||
HashMap<Object, Object> hashMap1 = new HashMap<>();
|
||||
for (OnlCgreportItem onlCgreportItem : list) {
|
||||
HashMap<Object, Object> 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<Object, Object> 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<String, Object> 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<Map> list = (List)map.get("items");
|
||||
|
||||
paramHttpServletRequest.setAttribute("getAll", Boolean.valueOf(true));
|
||||
Result<?> result = b(paramString, paramHttpServletRequest);
|
||||
List<HashMap<Object, Object>> list1 = null;
|
||||
if (result.getCode().equals(Integer.valueOf(200))) {
|
||||
Map map1 = (Map)result.getResult();
|
||||
list1 = (List)map1.get("records");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ArrayList<String> arrayList = new ArrayList();
|
||||
HashMap<Object, Object> hashMap1 = new HashMap<>();
|
||||
|
||||
HashMap<Object, Object> hashMap2 = new HashMap<>();
|
||||
|
||||
ArrayList<ExcelExportEntity> 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<DictModel> list2 = a(oConvertUtils.getString(object1), jSONArray, str);
|
||||
if (list2 != null && list2.size() > 0) {
|
||||
ArrayList<String> arrayList2 = new ArrayList();
|
||||
for (DictModel dictModel : list2) {
|
||||
arrayList2.add(dictModel.getText() + "_" + dictModel.getValue());
|
||||
}
|
||||
|
||||
excelExportEntity.setReplace(arrayList2.<String>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<String> 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<Object, Object> 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<HashMap<Object, Object>> arrayList = new ArrayList();
|
||||
HashMap<Object, Object> hashMap1 = new HashMap<>();
|
||||
for (OnlCgreportItem onlCgreportItem : list) {
|
||||
HashMap<Object, Object> 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<DictModel> list1 = a(onlCgreportItem.getDictCode(), (JSONArray)null, (String)null);
|
||||
hashMap1.put(onlCgreportItem.getFieldName(), list1);
|
||||
hashMap.put("customRender", onlCgreportItem.getFieldName());
|
||||
}
|
||||
arrayList.add(hashMap);
|
||||
}
|
||||
|
||||
HashMap<Object, Object> 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
|
||||
*/
|
||||
+267
@@ -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<Object, Object> hashMap = new HashMap<>();
|
||||
|
||||
ArrayList<OnlCgreportItem> arrayList = new ArrayList();
|
||||
|
||||
ArrayList<OnlCgreportParam> arrayList1 = new ArrayList();
|
||||
List<String> list1 = null;
|
||||
List<String> 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<IPage<OnlCgreportHead>> a(OnlCgreportHead paramOnlCgreportHead, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) {
|
||||
Result<IPage<OnlCgreportHead>> 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<OnlCgreportParam> list1 = paramOnlCgreportModel.getParams();
|
||||
List<OnlCgreportItem> 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<OnlCgreportHead> c(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgreportHead> 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
|
||||
*/
|
||||
+148
@@ -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<IPage<OnlCgreportItem>> a(OnlCgreportItem paramOnlCgreportItem, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) {
|
||||
Result<IPage<OnlCgreportItem>> 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<OnlCgreportItem> d(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgreportItem> 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
|
||||
*/
|
||||
+148
@@ -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<IPage<OnlCgreportParam>> a(OnlCgreportParam paramOnlCgreportParam, @RequestParam(name = "pageNo", defaultValue = "1") Integer paramInteger1, @RequestParam(name = "pageSize", defaultValue = "10") Integer paramInteger2, HttpServletRequest paramHttpServletRequest) {
|
||||
Result<IPage<OnlCgreportParam>> 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<OnlCgreportParam> d(@RequestParam(name = "id", required = true) String paramString) {
|
||||
Result<OnlCgreportParam> 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
|
||||
*/
|
||||
+69
@@ -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
|
||||
*/
|
||||
+65
File diff suppressed because one or more lines are too long
+78
File diff suppressed because one or more lines are too long
+57
@@ -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
|
||||
*/
|
||||
+32
@@ -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<OnlCgreportHead> {
|
||||
List<Map<String, Object>> executeSelect(@Param("sql") String paramString);
|
||||
|
||||
List<Map<?, ?>> executeSelete(@Param("sql") String paramString);
|
||||
|
||||
IPage<Map<String, Object>> selectPageBySql(Page<Map<String, Object>> paramPage, @Param("sqlStr") String paramString);
|
||||
|
||||
Long queryCountBySql(@Param("sql") String paramString);
|
||||
|
||||
Map<String, Object> queryCgReportMainConfig(@Param("reportId") String paramString);
|
||||
|
||||
List<Map<String, Object>> queryCgReportItems(@Param("cgrheadId") String paramString);
|
||||
|
||||
List<OnlCgreportParam> 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
|
||||
*/
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user