This commit is contained in:
yuqh 2025-04-25 11:15:08 +08:00
parent 4b8a5498ec
commit 414923ea0a
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@ package com.hzya.frame.plugin.ht.plugin;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity; import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.seeyon.makeinvoice.service.IMakeInvoiceService; //import com.hzya.frame.seeyon.makeinvoice.service.IMakeInvoiceService;
import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity; import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger; import org.slf4j.Logger;
@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
public class MakeInvoicePluginInitializer extends PluginBaseEntity { public class MakeInvoicePluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(getClass()); Logger logger = LoggerFactory.getLogger(getClass());
@Autowired @Autowired
private IMakeInvoiceService makeInvoiceService; // private IMakeInvoiceService makeInvoiceService;
/*** /***
* 插件初始化方法 * 插件初始化方法
* @Author 👻👻👻👻👻👻👻👻 gjh * @Author 👻👻👻👻👻👻👻👻 gjh
@ -95,7 +95,7 @@ public class MakeInvoicePluginInitializer extends PluginBaseEntity {
**/ **/
@Override @Override
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception { public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
JsonResultEntity result = makeInvoiceService.sendMakeInvoiceSw(requestJson); // JsonResultEntity result = makeInvoiceService.sendMakeInvoiceSw(requestJson);
return BaseResult.getSuccessMessageEntity("操作成功"); return BaseResult.getSuccessMessageEntity("操作成功");
} }
} }

View File

@ -1,5 +1,6 @@
package com.hzya.frame.execsql.service; package com.hzya.frame.execsql.service;
import cn.hutool.core.util.StrUtil;
import com.hzya.frame.datasource.DataSourceUtil; import com.hzya.frame.datasource.DataSourceUtil;
import com.hzya.frame.execsql.entity.ExecSqlEntity; import com.hzya.frame.execsql.entity.ExecSqlEntity;
import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSession;
@ -80,7 +81,7 @@ public class ExecSqlServiceImpl implements IExecSqlService {
@Override @Override
public int execUpdateSql(String sql, String data_source_code) throws Exception { public int execUpdateSql(String sql, String data_source_code) throws Exception {
logger.info("=============进入execUpdateSql方法============"); logger.info("=============进入execUpdateSql方法============");
if (ObjectUtils.isEmpty(sql)) { if (StrUtil.isNotEmpty(sql)) {
if (sql.contains("where") || sql.contains("WHERE")) { if (sql.contains("where") || sql.contains("WHERE")) {
// SqlSession sqlSession = getSqlSession(data_source_code); // SqlSession sqlSession = getSqlSession(data_source_code);
// SqlSession sqlSession = new DataSourceUtil().getDefaultSqlSession(); // SqlSession sqlSession = new DataSourceUtil().getDefaultSqlSession();