From 0f769b47d8d71bd419ddf1733b0b2f21c82e86b1 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期一, 07 十月 2024 10:33:30 +0800 Subject: [PATCH] 跨巷道移库 --- src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java | 47 +++++++++++++++++++++++------------------------ 1 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java index 43fb249..4f7cc0e 100644 --- a/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java @@ -1,15 +1,12 @@ package com.zy.asrs.service.impl; import com.baomidou.mybatisplus.mapper.EntityWrapper; -import com.core.common.Cools; -import com.core.exception.CoolException; -import com.zy.asrs.mapper.DocTypeMapper; -import com.zy.asrs.entity.DocType; -import com.zy.asrs.service.DocTypeService; import com.baomidou.mybatisplus.service.impl.ServiceImpl; +import com.core.common.Cools; +import com.zy.asrs.entity.DocType; +import com.zy.asrs.mapper.DocTypeMapper; +import com.zy.asrs.service.DocTypeService; import org.springframework.stereotype.Service; - -import java.util.Date; @Service("docTypeService") public class DocTypeServiceImpl extends ServiceImpl<DocTypeMapper, DocType> implements DocTypeService { @@ -21,23 +18,25 @@ } DocType docType = this.selectOne(new EntityWrapper<DocType>().eq("doc_name", docName)); if (docType == null) { - long docId = 1L; - DocType last = this.selectOne(new EntityWrapper<DocType>().orderBy("doc_id", false)); - if (last != null) { - docId = last.getDocId() + 1; - } - docType = new DocType(); - docType.setDocId(docId); - docType.setDocName(docName); - if (null != pakin) { - docType.setPakin(pakin ? 1 : 0); - } - docType.setStatus(1); - docType.setCreateTime(new Date()); - docType.setUpdateTime(new Date()); - if (!this.insert(docType)) { - throw new CoolException("鍗曟嵁绫诲瀷閿欒"); - } + return null; +// long docId = 1L; +// DocType last = this.selectOne(new EntityWrapper<DocType>().orderBy("doc_id", false)); +// if (last != null) { +// docId = last.getDocId() + 1; +// } +// docType = new DocType(); +// docType.setDocId(docId); +// docType.setDocName(docName); +// if (null != pakin) { +// docType.setPakin(pakin ? 1 : 0); +// docType.setPakout(pakin ? 0 : 1); +// } +// docType.setStatus(1); +// docType.setCreateTime(new Date()); +// docType.setUpdateTime(new Date()); +// if (!this.insert(docType)) { +// throw new CoolException("鍗曟嵁绫诲瀷閿欒"); +// } } return docType; } -- Gitblit v1.9.1