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/mapper/WrkDetlLogMapper.java | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java b/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java index 966252a..1cccd65 100644 --- a/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java +++ b/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java @@ -1,7 +1,7 @@ package com.zy.asrs.mapper; -import com.zy.asrs.entity.WrkDetlLog; import com.baomidou.mybatisplus.mapper.BaseMapper; +import com.zy.asrs.entity.WrkDetlLog; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -17,9 +17,27 @@ @Insert("insert into asr_wrk_detl_log select * from asr_wrk_detl where wrk_no=#{workNo}") int save(Integer workNo); - List<WrkDetlLog> selectWrkDetlLogs(@Param("wrkNo") Integer wrkNo, @Param("orderNo") String orderNo, @Param("modiTimeStart") Date modiTimeStart, @Param("modiTimeEnd") Date modiTimeEnd, @Param("pageNumber") Integer curr, @Param("pageSize") Integer limit); + List<WrkDetlLog> selectWrkDetlLogs(@Param("wrkNo") Integer wrkNo, + @Param("orderNo") String orderNo, + @Param("matnr") String matnr, + @Param("specs") String specs, + @Param("zpallet") String zpallet, + @Param("batch") String batch, + @Param("anfme") Double anfme, @Param("model") String model, + @Param("modiTimeStart") Date modiTimeStart, + @Param("modiTimeEnd") Date modiTimeEnd, + @Param("pageNumber") Integer curr, + @Param("pageSize") Integer limit); - Long selectWrkDetlLogsTotal(@Param("wrkNo") Integer wrkNo, @Param("orderNo") String orderNo, @Param("modiTimeStart") Date modiTimeStart, @Param("modiTimeEnd") Date modiTimeEnd); + Long selectWrkDetlLogsTotal(@Param("wrkNo") Integer wrkNo, + @Param("orderNo") String orderNo, + @Param("matnr") String matnr, + @Param("specs") String specs, + @Param("zpallet") String zpallet, + @Param("batch") String batch, + @Param("anfme") Double anfme, @Param("model") String model, + @Param("modiTimeStart") Date modiTimeStart, + @Param("modiTimeEnd") Date modiTimeEnd); } -- Gitblit v1.9.1