|
|
@ -219,6 +219,12 @@ public class EquipmentLedgerController extends DafController { |
|
|
|
@ApiOperation(value = "导出", notes = "传入") |
|
|
|
@ApiOperation(value = "导出", notes = "传入") |
|
|
|
@ApiLog |
|
|
|
@ApiLog |
|
|
|
public void exportUser(@ApiIgnore @RequestParam Map<String, Object> entity, HttpServletResponse response) { |
|
|
|
public void exportUser(@ApiIgnore @RequestParam Map<String, Object> entity, HttpServletResponse response) { |
|
|
|
|
|
|
|
if (entity.containsKey("station_equal")) { |
|
|
|
|
|
|
|
entity.put("station_equal", Integer.parseInt((String) entity.get("station_equal"))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (entity.containsKey("userStatus_equal")) { |
|
|
|
|
|
|
|
entity.put("userStatus_equal", Integer.parseInt((String) entity.get("userStatus_equal"))); |
|
|
|
|
|
|
|
} |
|
|
|
QueryWrapper<EquipmentLedger> queryWrapper = Condition.getQueryWrapper(entity, EquipmentLedger.class); |
|
|
|
QueryWrapper<EquipmentLedger> queryWrapper = Condition.getQueryWrapper(entity, EquipmentLedger.class); |
|
|
|
queryWrapper.lambda().eq(EquipmentLedger::getIsDeleted, DafConstant.DB_NOT_DELETED); |
|
|
|
queryWrapper.lambda().eq(EquipmentLedger::getIsDeleted, DafConstant.DB_NOT_DELETED); |
|
|
|
List<EquipmentLedgerExcel> list = equipmentLedgerService.export(queryWrapper); |
|
|
|
List<EquipmentLedgerExcel> list = equipmentLedgerService.export(queryWrapper); |
|
|
|