修改getLogger lombook无法覆盖get方法

main
youHong.ai 2023-03-18 04:18:09 +08:00
parent 7bd5d5b782
commit ab52c273f9
6 changed files with 72 additions and 90 deletions

View File

@ -20,6 +20,7 @@ import java.util.List;
* @author EBU7-dev1-ayh create 2021/12/19 0019 14:39 * @author EBU7-dev1-ayh create 2021/12/19 0019 14:39
*/ */
@SuppressWarnings("all")
public class RecordsetUtil implements InvocationHandler { public class RecordsetUtil implements InvocationHandler {

View File

@ -4,7 +4,6 @@ import aiyh.utils.Util;
import aiyh.utils.annotation.ActionDesc; import aiyh.utils.annotation.ActionDesc;
import aiyh.utils.annotation.PrintParamMark; import aiyh.utils.annotation.PrintParamMark;
import aiyh.utils.annotation.RequiredMark; import aiyh.utils.annotation.RequiredMark;
import aiyh.utils.excention.CustomerException;
import aiyh.utils.httpUtil.ResponeVo; import aiyh.utils.httpUtil.ResponeVo;
import aiyh.utils.httpUtil.util.HttpUtils; import aiyh.utils.httpUtil.util.HttpUtils;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;

View File

@ -1 +1 @@
cus.logPath=/applog/tongweb/ecology_log/ cus.logPath=

View File

@ -75,25 +75,25 @@ public class ParseSqlTest extends BaseTest {
@Test @Test
public void testSqlChoose() { public void testSqlChoose() {
String sql = "@my-bind:name='likeName':value=''%' + name + '%''{}\n" + String sql = "@my-bind:name='likeName':value=''%' + name + '%''{}" +
"select * from table @my-where{\n" + "select * from table @my-where{" +
"\t@my-for:collection='list':separator='and'{\n" + " @my-for:collection='list':separator='and'{" +
"\t\t${index} = #{item}\t\n" + " ${index} = #{item}" +
"\t}\n" + " }" +
"} or @my-choose{\n" + "} or @my-choose{" +
"\t@my-when:test='selectValue == 1'{\n" + "@my-when:test='selectValue == 1'{" +
"\t\tselect_name = #{selectName1}\n" + " select_name = #{selectName1}" +
"\t}\n" + " }" +
"\t@my-when:test='selectValue == 2'{\n" + " @my-when:test='selectValue == 2'{" +
"\t\tselect_name = #{selectName2}\n" + " select_name = #{selectName2}" +
"\t}\n" + " }" +
"\t@my-when:test='selectValue == 3'{\n" + " @my-when:test='selectValue == 3'{" +
"\t\tselect_name = #{selectName3}\n" + " select_name = #{selectName3}" +
"\t}\n" + " }" +
"\t@my-otherwise{\n" + " @my-otherwise{" +
"\t\tselect_name like #{likeName}\n" + " select_name like #{likeName}" +
"\t}\n" + " }" +
"}\n"; "}";
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
param.put("list", new HashMap<String, String>() {{ param.put("list", new HashMap<String, String>() {{

View File

@ -38,7 +38,7 @@ public class AbstractCommandPropertiesFactory {
return this.setValue(commandItemList, new MyIfProperties()); return this.setValue(commandItemList, new MyIfProperties());
} }
@MethodRuleNo(name = CommandConsTant.TRIM, desc = "tirm 指令参数解析") @MethodRuleNo(name = CommandConsTant.TRIM, desc = "trim 指令参数解析")
private AbstractCommandProperties getTrimProperties(List<String> commandItemList) { private AbstractCommandProperties getTrimProperties(List<String> commandItemList) {
return this.setValue(commandItemList, new MyTrimProperties()); return this.setValue(commandItemList, new MyTrimProperties());
} }

View File

@ -10,18 +10,15 @@ import com.cloudstore.dev.api.util.Util_DataCache;
import org.junit.Test; import org.junit.Test;
import weaver.conn.RecordSet; import weaver.conn.RecordSet;
import weaver.general.BaseBean; import weaver.general.BaseBean;
import weaver.general.GCONST;
import weaver.hrm.User; import weaver.hrm.User;
import weaver.workflow.request.todo.OfsSettingObject; import weaver.workflow.request.todo.OfsSettingObject;
import weaver.workflow.request.todo.RequestUtil; import weaver.workflow.request.todo.RequestUtil;
import weaver.workflow.webservices.WorkflowBaseInfo; import weaver.workflow.webservices.WorkflowBaseInfo;
import weaver.workflow.webservices.WorkflowRequestInfo; import weaver.workflow.webservices.WorkflowRequestInfo;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* <h1></h1> * <h1></h1>
@ -35,21 +32,6 @@ public class TestTaiBao extends BaseTest {
@Test @Test
public void test() { public void test() {
String logPath = GCONST.getLogPath();
try {
Map<String, Object> map = Util.getProperties2Map("logPathConfig", "cus");
if (map != null) {
if (map.containsKey("logPath")) {
logPath = "".equals(Util.null2String(map.get("logPath"))) ? logPath : Util.null2String(map.get("logPath"));
}
}
} catch (Exception ignore) {
}
if (!logPath.endsWith(File.separator)) {
logPath = logPath + File.separator;
}
System.out.println(logPath);
FunctionListService functionListService = new FunctionListService(); FunctionListService functionListService = new FunctionListService();
System.out.println(JSON.toJSONString(functionListService.getFunctionList(new User(90)))); System.out.println(JSON.toJSONString(functionListService.getFunctionList(new User(90))));
} }