From 096ed3f92817b4f95f90b2a572667ecb6679c91a Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期一, 14 八月 2023 16:01:31 +0800
Subject: [PATCH] 优化
---
igds-inout/src/main/java/com/ld/igds/m/service/HCreditService.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/igds-inout/src/main/java/com/ld/igds/m/service/HCreditService.java b/igds-inout/src/main/java/com/ld/igds/m/service/HCreditService.java
index 7c130b3..b41fa21 100644
--- a/igds-inout/src/main/java/com/ld/igds/m/service/HCreditService.java
+++ b/igds-inout/src/main/java/com/ld/igds/m/service/HCreditService.java
@@ -1,7 +1,7 @@
package com.ld.igds.m.service;
import com.bstek.bdf2.core.orm.hibernate.HibernateDao;
-import com.ld.igds.models.Credit;
+import com.ld.igds.models.InoutCredit;
import com.ld.igds.util.ContextUtil;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.Session;
@@ -17,8 +17,8 @@
@Component
public class HCreditService extends HibernateDao {
- public List<Credit> listCredit(Map<String, Object> param) {
- String hql = " from " + Credit.class.getName() + " where companyId=:companyId and deptId =:deptId ";
+ public List<InoutCredit> listCredit(Map<String, Object> param) {
+ String hql = " from " + InoutCredit.class.getName() + " where companyId=:companyId and deptId =:deptId ";
Map<String, Object> args = new HashMap<String, Object>();
args.put("companyId", ContextUtil.getCompanyId());
@@ -42,7 +42,7 @@
return this.query(hql,args);
}
- public String saveCredit(Credit data) {
+ public String saveCredit(InoutCredit data) {
Session session = this.getSessionFactory().openSession();
try {
if(StringUtils.isEmpty(data.getCompanyId())){
@@ -62,7 +62,7 @@
return null;
}
- public String delCredit(Credit data) {
+ public String delCredit(InoutCredit data) {
Session session = this.getSessionFactory().openSession();
try {
if(null == data.getCompanyId()) data.setCompanyId(ContextUtil.getCompanyId());
--
Gitblit v1.9.3