|
@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static com.xy.utils.Beans.copy;
|
|
@@ -133,14 +134,12 @@ public class DeviceCreateIdsServiceImpl extends ServiceImpl<DeviceCreateIdsMappe
|
|
|
@PostMapping("exportQrCode")
|
|
|
@ApiOperation("导出二维码")
|
|
|
public void exportQrCode(DeviceCreateIdsDto.ExportQrCode exportQrCode) {
|
|
|
- List<String> list = null;
|
|
|
+ List<String> list = new ArrayList<>();
|
|
|
Boolean isWhere = exportQrCode.getIsWhere() == null ? false : exportQrCode.getIsWhere();
|
|
|
if (!isWhere) {
|
|
|
List<Long> deviceIds = exportQrCode.getDeviceIds();
|
|
|
if (Emptys.check(deviceIds)) {
|
|
|
- for (Long aLong : deviceIds) {
|
|
|
- list.add(aLong.toString());
|
|
|
- }
|
|
|
+ deviceIds.forEach(aLong -> list.add(aLong.toString()));
|
|
|
}
|
|
|
} else {
|
|
|
LambdaQueryWrapper<DeviceCreateIds> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(exportQrCode, DeviceCreateIds.class)
|