| | |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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 org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | @RequestMapping("BattMaintDealarm") |
| | | @RestController |
| | | @Api(tags = "报表统计") |
| | | public class BattMaintDealarmController { |
| | | public class BattMaintDealarmController extends BaseController{ |
| | | |
| | | @Resource |
| | | private BattMaintDealarmService battMaintDealarmService; |
| | |
| | | */ |
| | | @PostMapping("searchGroupAssess") |
| | | @ApiOperation(notes = "searchByCondition ", value = "蓄电池组后评估") |
| | | public Response<List<AllModel>> searchByCondition(@RequestBody ReportBattDTO tinf) { |
| | | public Response searchByCondition(@RequestParam int pageNum,@RequestParam int pageSize, @RequestBody ReportBattDTO tinf) { |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return battMaintDealarmService.searchGroupAssess(tinf,userInf.getUId().intValue()); |
| | | return battMaintDealarmService.searchGroupAssess(pageNum,pageSize,tinf,userInf.getUId().intValue()); |
| | | } |
| | | |
| | | @PostMapping("searchMonNum") |
| | | @ApiOperation(value = "根据电池组id查询电池的电导和充放电信息",notes = "Batt_MaintAction/serchMon_num") |
| | | public Response searchMonNum(@RequestBody ReportBattDTO dto){ |
| | | return battMaintDealarmService.searchMonNum(dto); |
| | | } |
| | | |
| | | } |