From 66546c7df9a8ddf6ca6a36f4168fb25c568adb13 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 19 十一月 2021 13:45:56 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/ints/task/handler/IoCompleteLogHandler.java | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/zy/ints/task/handler/IoCompleteLogHandler.java b/src/main/java/com/zy/ints/task/handler/IoCompleteLogHandler.java
index 213489f..95403ad 100644
--- a/src/main/java/com/zy/ints/task/handler/IoCompleteLogHandler.java
+++ b/src/main/java/com/zy/ints/task/handler/IoCompleteLogHandler.java
@@ -4,14 +4,11 @@
import com.zy.asrs.task.AbstractHandler;
import com.zy.asrs.task.core.ReturnT;
import com.zy.ints.entity.IoComplete;
-import com.zy.ints.entity.WaitMatin;
import com.zy.ints.service.IoCompleteLogService;
import com.zy.ints.service.IoCompleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
-
-import javax.xml.ws.ServiceMode;
@Service
public class IoCompleteLogHandler extends AbstractHandler<String> {
@@ -25,12 +22,12 @@
public ReturnT<String> start(IoComplete ioComplete) {
try {
// 淇濆瓨宸ヤ綔涓绘。鍘嗗彶妗�
- if (!ioCompleteLogService.save(ioComplete.getBillNo(),ioComplete.getSeqNo())) {
- exceptionHandle("淇濆瓨宸ヤ綔鍘嗗彶妗workNo={0}]澶辫触", ioComplete.getBillNo());
+ if (!ioCompleteLogService.save(ioComplete.getId())) {
+ exceptionHandle("淇濆瓨鍥炴姤鍘嗗彶妗id={0}]澶辫触", ioComplete.getId());
}
// 鍒犻櫎宸ヤ綔涓绘。
- if (!ioCompleteService.delete(new EntityWrapper<IoComplete>().eq("bill_no", ioComplete.getBillNo()).eq("seq_no", ioComplete.getSeqNo()))) {
- exceptionHandle("鍒犻櫎宸ヤ綔涓绘。[workNo={0}]澶辫触", ioComplete.getBillNo());
+ if (!ioCompleteService.delete(new EntityWrapper<IoComplete>().eq("id", ioComplete.getId()))) {
+ exceptionHandle("鍒犻櫎鍥炴姤妗id={0}]澶辫触", ioComplete.getId());
}
} catch (Exception e) {
e.printStackTrace();
--
Gitblit v1.9.1