Преглед изворни кода

[疲劳度][修改]可接收短信数不准修改

release_toaliyun_real
jinguo24@163.com пре 7 година
родитељ
комит
1433aafb94
1 измењених фајлова са 14 додато и 3 уклоњено
  1. +14
    -3
      mallinkAdmin/src/main/java/com/simple/controller/PushLimitController.java

+ 14
- 3
mallinkAdmin/src/main/java/com/simple/controller/PushLimitController.java Прегледај датотеку

@@ -1,19 +1,28 @@
package com.simple.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageInfo;
import com.simple.common.Result;
import com.simple.common.ResultData;
import com.simple.domain.po.PushLimit;
import com.simple.service.PushLimitService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("pushLimit")
@Api(description="疲劳度相关接口")
public class PushLimitController extends BaseController
{
@Autowired
@@ -28,6 +37,7 @@ public class PushLimitController extends BaseController
@ApiImplicitParam(name="pageSize",value="每页条数",dataType="int", paramType = "query",required=true)})
public ResultData list(@ModelAttribute PushLimit pushLimit, Integer pageNum, Integer pageSize) {
if (null == pushLimit) pushLimit = new PushLimit();
pushLimit.setTenantId(getTenantId());
final PageInfo<PushLimit> page = pushLimitService.listAsPage(pushLimit, pageNum, pageSize);
return new ResultData(page);
}
@@ -37,6 +47,7 @@ public class PushLimitController extends BaseController
@ApiOperation("根据id更新接口")
@PostMapping("update")
public ResultData update(@RequestBody PushLimit pushLimit) {
pushLimit.setMsgAmount(null);
pushLimitService.saveOrUpdate(pushLimit);
return new ResultData();
}


Loading…
Откажи
Сачувај