From 69cd9f59a0fabf12f8c9147fcba7f69817a870b3 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期一, 06 十一月 2023 23:40:59 +0800
Subject: [PATCH] 更新仓内抓拍2

---
 igds-inout/src/main/java/com/ld/igds/m/service/HCreditService.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 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..849abb7 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());
@@ -37,12 +37,12 @@
 				args.put("customerName", "%" + str + "%");
 			}
 		}
-		hql += " order by zhgxsj";
+		hql += " order by updateTime";
 
 		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