|
@@ -51,7 +51,7 @@ public class LiveDataAccountsController {
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
HttpServletRequest req) {
|
|
|
Result<IPage<LiveDataAccounts>> result = new Result<>();
|
|
|
- QueryWrapper<LiveDataAccounts> queryWrapper = QueryGenerator.initQueryWrapper(liveDataAccounts, req.getParameterMap());
|
|
|
+ QueryWrapper<LiveDataAccounts> queryWrapper = QueryGenerator.initQueryWrapper(new LiveDataAccounts(), req.getParameterMap());
|
|
|
Page<LiveDataAccounts> page = new Page<LiveDataAccounts>(pageNo, pageSize);
|
|
|
if (!Check.isNull(liveDataAccounts.getLiveAccountId())) {
|
|
|
queryWrapper.like("live_account_id", liveDataAccounts.getLiveAccountId());
|
|
@@ -155,6 +155,9 @@ public class LiveDataAccountsController {
|
|
|
@GetMapping(value = "/delete")
|
|
|
public Result<?> delete(@RequestParam(name = "liveAccountId") String liveAccountId, String userId) {
|
|
|
try {
|
|
|
+ if (Check.isNull(userId) || Check.isNull(liveAccountId)) {
|
|
|
+ return Result.ok("缺少数据");
|
|
|
+ }
|
|
|
LiveDataAccounts accounts = liveDataAccountsService.getById(liveAccountId);
|
|
|
if (!Check.isNull(accounts)) {
|
|
|
accounts.setState("0");
|