业务: 查询多个机身号的业务数据
具体见代码如下:
String machinenos = wxUser.getMachinenos(); paramMap.put("isOperator", true); if (machinenos == null) { machinenos = ""; } List<String> machineNoList = Arrays.asList(machinenos.split(",")); paramMap.put("authorizeMachineNoList", machineNoList); |
Mapper.xml中代码如下:
MachineNo in <foreach item="machineNo" index="i" collection="authorizeMachineNoList" open="(" separator="," close=")"> #{machineNo} </foreach> |