Compare commits

...

3 Commits

7 changed files with 101 additions and 120 deletions

View File

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

View File

@ -1,17 +1,16 @@
package weaver.bokang.xiao.xhny_report.schedule;
import aiyh.utils.Util;
import aiyh.utils.action.CusBaseCronJob;
import aiyh.utils.annotation.ActionDesc;
import aiyh.utils.annotation.PrintParamMark;
import aiyh.utils.annotation.RequiredMark;
import lombok.Data;
import org.apache.log4j.Logger;
import weaver.bokang.xiao.xhny_report.entity.SourceTrackingData;
import weaver.bokang.xiao.xhny_report.entity.VendorMarkReport;
import weaver.bokang.xiao.xhny_report.service.ScoreChainPattern;
import weaver.bokang.xiao.xhny_report.service.chain.AbstractScoreChain;
import weaver.bokang.xiao.xhny_report.service.store.VendorStore;
import weaver.interfaces.schedule.BaseCronJob;
import java.util.ArrayList;
import java.util.List;
@ -24,16 +23,15 @@ import java.util.List;
**/
@Data
@ActionDesc(value = "生成报表信息", author = "bokang.xiao")
public class GenerateReportSchedule extends BaseCronJob {
public class GenerateReportSchedule extends CusBaseCronJob {
private final Logger log = Util.getLogger();
@RequiredMark("报表模块id")
@PrintParamMark
private String reportModelId;
@Override
public void execute() {
public void runCode() {
try {
// 必填参数校验
Util.verifyRequiredField(this);

View File

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

View File

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

View File

@ -38,7 +38,7 @@ public class AbstractCommandPropertiesFactory {
return this.setValue(commandItemList, new MyIfProperties());
}
@MethodRuleNo(name = CommandConsTant.TRIM, desc = "tirm 指令参数解析")
@MethodRuleNo(name = CommandConsTant.TRIM, desc = "trim 指令参数解析")
private AbstractCommandProperties getTrimProperties(List<String> commandItemList) {
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 weaver.conn.RecordSet;
import weaver.general.BaseBean;
import weaver.general.GCONST;
import weaver.hrm.User;
import weaver.workflow.request.todo.OfsSettingObject;
import weaver.workflow.request.todo.RequestUtil;
import weaver.workflow.webservices.WorkflowBaseInfo;
import weaver.workflow.webservices.WorkflowRequestInfo;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* <h1></h1>
@ -35,21 +32,6 @@ public class TestTaiBao extends BaseTest {
@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();
System.out.println(JSON.toJSONString(functionListService.getFunctionList(new User(90))));
}