|
|
|
@ -53,11 +53,11 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
*/ |
|
|
|
|
@RestController |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@RequestMapping("basic/Pda") |
|
|
|
|
@RequestMapping("/pda") |
|
|
|
|
@Api(value = "pda信息", tags = "pda信息接口") |
|
|
|
|
public class PdaController extends BladeController { |
|
|
|
|
|
|
|
|
|
private final IBasicPdaService BasicPdaService; |
|
|
|
|
private final IBasicPdaService basicPdaService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* pda信息 详情 |
|
|
|
@ -66,7 +66,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "详情", notes = "传入basicPda") |
|
|
|
|
public R<BasicPdaEntity> detail(BasicPdaEntity BasicPda) { |
|
|
|
|
BasicPdaEntity detail = BasicPdaService.getOne(Condition.getQueryWrapper(BasicPda)); |
|
|
|
|
BasicPdaEntity detail = basicPdaService.getOne(Condition.getQueryWrapper(BasicPda)); |
|
|
|
|
return R.data(detail); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
@ -76,7 +76,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
|
@ApiOperation(value = "分页", notes = "传入BasicPda") |
|
|
|
|
public R<IPage<BasicPdaEntity>> list(@ApiIgnore @RequestParam Map<String, Object> BasicPda, Query query) { |
|
|
|
|
IPage<BasicPdaEntity> pages = BasicPdaService.page(Condition.getPage(query), Condition.getQueryWrapper(BasicPda, BasicPdaEntity.class)); |
|
|
|
|
IPage<BasicPdaEntity> pages = basicPdaService.page(Condition.getPage(query), Condition.getQueryWrapper(BasicPda, BasicPdaEntity.class)); |
|
|
|
|
return R.data(pages); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -87,7 +87,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperation(value = "分页", notes = "传入BasicPda") |
|
|
|
|
public R<IPage<BasicPdaVO>> page(BasicPdaVO BasicPda, Query query) { |
|
|
|
|
IPage<BasicPdaVO> pages = BasicPdaService.selectBasicPdaPage(Condition.getPage(query), BasicPda); |
|
|
|
|
IPage<BasicPdaVO> pages = basicPdaService.selectBasicPdaPage(Condition.getPage(query), BasicPda); |
|
|
|
|
return R.data(pages); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -98,7 +98,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
@ApiOperation(value = "新增", notes = "传入BasicPda") |
|
|
|
|
public R save(@Valid @RequestBody BasicPdaEntity BasicPda) { |
|
|
|
|
return R.status(BasicPdaService.save(BasicPda)); |
|
|
|
|
return R.status(basicPdaService.save(BasicPda)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -108,7 +108,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 5) |
|
|
|
|
@ApiOperation(value = "修改", notes = "传入BasicPda") |
|
|
|
|
public R update(@Valid @RequestBody BasicPdaEntity BasicPda) { |
|
|
|
|
return R.status(BasicPdaService.updateById(BasicPda)); |
|
|
|
|
return R.status(basicPdaService.updateById(BasicPda)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -118,7 +118,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
|
@ApiOperation(value = "新增或修改", notes = "传入BasicPda") |
|
|
|
|
public R submit(@Valid @RequestBody BasicPdaEntity BasicPda) { |
|
|
|
|
return R.status(BasicPdaService.saveOrUpdate(BasicPda)); |
|
|
|
|
return R.status(basicPdaService.saveOrUpdate(BasicPda)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -128,7 +128,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 7) |
|
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
|
|
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
|
return R.status(BasicPdaService.deleteLogic(Func.toLongList(ids))); |
|
|
|
|
return R.status(basicPdaService.deleteLogic(Func.toLongList(ids))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -144,7 +144,7 @@ public class PdaController extends BladeController {
|
|
|
|
|
// queryWrapper.lambda().eq(BasicPda::getTenantId, bladeUser.getTenantId());
|
|
|
|
|
//}
|
|
|
|
|
queryWrapper.lambda().eq(BasicPdaEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
|
|
|
|
List<BasicPdaExcel> list = BasicPdaService.exportBasicPda(queryWrapper); |
|
|
|
|
List<BasicPdaExcel> list = basicPdaService.exportBasicPda(queryWrapper); |
|
|
|
|
ExcelUtil.export(response, "pda信息数据" + DateUtil.time(), "pda信息数据表", list, BasicPdaExcel.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|