| | |
| | | |
| | | import com.whyc.dto.AllModel; |
| | | import com.whyc.dto.BattMaintDealarm; |
| | | import com.whyc.dto.ReportBattDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.BatttestdataInf; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.service.BattMaintDealarmService; |
| | | 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; |
| | |
| | | /** |
| | | * 电池组统计分析查询 |
| | | * |
| | | * @param bmd |
| | | * @param tinf |
| | | * @return |
| | | */ |
| | | //1.3根据电池组id查询电池的电导和充放电信息 |
| | | @PostMapping("searchLow") |
| | | @ApiOperation(notes = "TODO ", value = "电池组统计分析查询/serchLow") |
| | | public Response<List<AllModel>> searchLow(@RequestBody BattMaintDealarm bmd) { |
| | | //return battMaintDealarmService.searchLow(bmd); |
| | | return null; |
| | | @ApiOperation(notes = "/serchLow", value = "电池组统计分析查询") |
| | | public Response searchLow(@RequestBody ReportBattDTO tinf) { |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return battMaintDealarmService.searchLow(tinf,userInf.getUId().intValue()); |
| | | } |
| | | |
| | | /** |
| | | * 蓄电池组后评估 |
| | | */ |
| | | @PostMapping("searchByCondition") |
| | | @ApiOperation(notes = "TODO ", value = "蓄电池组后评估/searchByCondition") |
| | | public Response<List<AllModel>> searchByCondition(@RequestBody BattMaintDealarm bmd) { |
| | | |
| | | //return battMaintDealarmService.searchByCondition(bmd); |
| | | return null; |
| | | @PostMapping("searchGroupAssess") |
| | | @ApiOperation(notes = "searchByCondition ", value = "蓄电池组后评估") |
| | | public Response searchByCondition(@RequestParam int pageNum,@RequestParam int pageSize, @RequestBody ReportBattDTO tinf) { |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | 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); |
| | | } |
| | | |
| | | } |