--修改数据日志查询连接配置错误

This commit is contained in:
2025-10-23 16:15:38 +08:00
parent 2a9ca5b784
commit 9cd958a536
2 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.xjrsoft.module.test.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@ -10,6 +11,7 @@ import com.xjrsoft.common.model.result.R;
import com.xjrsoft.module.common.db.service.CommonCallService;
import com.xjrsoft.module.dev.entity.Testfrom3;
import com.xjrsoft.module.dev.vo.Testfrom3Vo;
import com.xjrsoft.module.system.client.ICodeRuleClient;
import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.hutool.core.bean.BeanUtil;
@ -24,6 +26,9 @@ public class CallTest {
@Autowired
private CommonCallService callService;
@Autowired
private ICodeRuleClient client;
@GetMapping(value = "/fSave")
@ApiOperation(value="根据id查询Testfrom3信息")
public R info(){
@ -31,5 +36,19 @@ public class CallTest {
System.out.println(out);
return R.ok(null);
}
@GetMapping(value = "/CodeRule")
@ApiOperation(value="根据id查询Testfrom3信息")
public R CodeRule(){
String code = genEncode();
System.out.println(code);
return R.ok(null);
}
@Transactional
public String genEncode() {
return client.genEncode("bankCode");
}
}

View File

@ -820,7 +820,7 @@ public class DataLogTools {
String sql = parseSql(SQL_LIST, tableName);
JdbcContext context = null;
try {
context = new JdbcContext(true,false);
context = new JdbcContext(true,true);
context.init(sql);
context.setParams(ListUtils.ofArray(JdbcParam.ofLong(dataId)));
ResultSet set = context.executeQuery();