总包有量可以点击查看编码设备

This commit is contained in:
liang.chao 2024-11-20 17:04:21 +08:00
parent 1053dd7952
commit c815dc496c
3 changed files with 5 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class StorageStatusController extends BaseController {
maIds.addAll(xshdrkids); maIds.addAll(xshdrkids);
Set<Integer> ids = new HashSet<>(maIds); Set<Integer> ids = new HashSet<>(maIds);
startPage(); startPage();
List<MaType> list = storageStatusMapper.getAllRecords(ids); List<MaType> list = storageStatusMapper.getAllRecords(ids,bean);
return AjaxResult.success(getDataTable(list)); return AjaxResult.success(getDataTable(list));
} }
} }

View File

@ -36,5 +36,5 @@ public interface StorageStatusMapper {
List<Integer> getxshdrk(StorageStatus bean); List<Integer> getxshdrk(StorageStatus bean);
List<MaType> getAllRecords(@Param("ids") Set<Integer> ids); List<MaType> getAllRecords(@Param("ids") Set<Integer> ids,@Param("bean") StorageStatus bean);
} }

View File

@ -293,6 +293,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<foreach collection="ids" item="maId" open="(" separator="," close=")"> <foreach collection="ids" item="maId" open="(" separator="," close=")">
#{maId} #{maId}
</foreach> </foreach>
<if test="bean.maCode != null and bean.maCode != ''">
and mm.ma_code like concat('%',#{bean.maCode},'%')
</if>
</select> </select>
</mapper> </mapper>