소스 검색

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

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; 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.github.pagehelper.PageInfo;
import com.simple.common.Result; import com.simple.common.Result;
import com.simple.common.ResultData; import com.simple.common.ResultData;
import com.simple.domain.po.PushLimit; import com.simple.domain.po.PushLimit;
import com.simple.service.PushLimitService; import com.simple.service.PushLimitService;

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


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


불러오는 중...
취소
저장