Wrapper → SQL Live Preview
Full static parsing of LambdaQueryWrapper / MPJLambdaWrapper without launching the project. Toggle dynamic conditions, fill parameters, 9 database dialects
Wrapper chain, XML/annotation dynamic SQL live preview (incl. MPJ JOIN), console log restore, SQL to Java reverse conversion. No more log digging.
LambdaQueryWrapper<DeviceInfoEntity> wrapper = new LambdaQueryWrapper<DeviceInfoEntity>()
.eq(DeviceInfoEntity::getId, 1001L)
.isNotNull(DeviceInfoEntity::getStationId);
// Press Alt+Shift+Q to preview SQL
SELECT id, station_id, share_scheme_id
FROM device_info_entity
WHERE id = 1001
AND station_id IS NOT NULLLambdaUpdateWrapper<DeviceInfoEntity> update = new LambdaUpdateWrapper<DeviceInfoEntity>()
.set(DeviceInfoEntity::getStationId, 101L)
.eq(DeviceInfoEntity::getId, 1001L);
// Red warning if no WHERE clause
UPDATE device_info_entity
SET station_id = 101
WHERE id = 1001MPJLambdaWrapper<DeviceInfoEntity> wrapper = new MPJLambdaWrapper<DeviceInfoEntity>()
.selectAll(DeviceInfoEntity.class)
.leftJoin(StationInfoEntity.class, StationInfoEntity::getDeviceId, DeviceInfoEntity::getId)
.eq(DeviceInfoEntity::getId, 1001L)
.orderByDesc(StationInfoEntity::getCreateTime);
SELECT t.id, t.station_id, t.share_scheme_id
FROM device_info t
LEFT JOIN station_info t1 ON t1.device_id = t.id
WHERE t.id = 1001
ORDER BY t1.create_time DESC-- Select SQL -> Right-click -> Convert SQL to MP Java Code
-- Alt+Shift+J or sidebar "SQL -> Java" tab
SELECT t.id, t.station_id, t.share_scheme_id
FROM device_info t
LEFT JOIN station_info t1 ON t1.device_id = t.id
WHERE t.id = 1001
ORDER BY t1.create_time DESC
// -> Generates MPJLambdaWrapper code (configurable default form)| Feature | Trigger | Scope |
|---|---|---|
| Wrapper → SQL | gutter icon / right-click / Alt+Shift+Q | LambdaQueryWrapper / LambdaUpdateWrapper / LambdaDeleteWrapper / QueryWrapper / MPJLambdaWrapper JOIN / service.lambdaQuery() chains |
| XML Dynamic SQL | gutter icon on <select> etc. | if / choose / where / set / foreach / bind / sql+include; OGNL toggles |
| Annotation SQL | gutter icon on annotation | @Select / @Update / @Delete / @Insert (incl. <script> & Provider) |
| Parameter Replace | panel input | ? placeholder → actual value; LIKE auto %; type-aware quoting |
| Feature | Trigger | Description |
|---|---|---|
| Auto Capture | sidebar "Capture" button | Monitor console Preparing: / Parameters:; mixed-prefix tolerant matching |
| Log → SQL | sidebar "Log → SQL" tab | Paste entire log for batch restore; multi-statement auto-split |
| SQL → Java | right-click / Alt+Shift+J / sidebar | 4 forms (QueryWrapper / Lambda / Wrappers / MPJ); configurable default |
| Feature | Description |
|---|---|
| SQL Completion | panel + mapper XML/annotation Ctrl+Space: table/column names, #{} params, XML tags |
| Logic Delete Injection | @TableLogic entity auto appends AND deleted = value (configurable) |
| UPDATE/DELETE Warning | Red warning when no WHERE clause — full-table operation risk |
| Update Check | Settings page one-click check, background download & install |
Supports IntelliJ IDEA 2024.3+, install and go