From c30bf257e682643e3c721b7329597b64a11581af Mon Sep 17 00:00:00 2001 From: ZY <zc857179121@qq.com> Date: 星期三, 21 八月 2024 10:46:04 +0800 Subject: [PATCH] 档查询出来有多条数据时,加上数量条件,进行匹配,如果数量也匹配不上,就默认返回第一个 --- src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java index e0caced..bd51e68 100644 --- a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java @@ -9,4 +9,9 @@ @Service("wrkMastLogService") public class WrkMastLogServiceImpl extends ServiceImpl<WrkMastLogMapper, WrkMastLog> implements WrkMastLogService { + @Override + public boolean save(Integer workNo) { + return this.baseMapper.save(workNo) > 0; + } + } -- Gitblit v1.9.1