From 9e253a7fd8f57e1f7c3e7288a36167ff878ab28d Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期一, 06 十一月 2023 21:59:43 +0800
Subject: [PATCH] 库存管理添加粮权字段
---
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