whyclxw
2021-12-16 06a3ee2348db3261bcfbc7b21f28306e398fd6a6
src/main/java/com/whyc/controller/BattRtstateController.java
@@ -3,7 +3,7 @@
import com.whyc.dto.BattState;
import com.whyc.dto.Batt_Maint_Dealarm;
import com.whyc.dto.Response;
import com.whyc.service.BattTtstateService;
import com.whyc.service.BattRtstateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
@@ -20,26 +20,11 @@
public class BattRtstateController {
    @Resource
    private BattTtstateService service;
    private BattRtstateService service;
    @PostMapping("/searchBattLife")
    @ApiOperation(notes = "{\n" +
            "\t\"binf\": {\n" +
            "\t\t\"num\": 0,\n" +
            "\t\t\"battGroupId\": 0,\n" +
            "\t\t\"stationName\": \"\",\n" +
            "\t\t\"stationName1\": \"\"\n" +
            "\t},\n" +
            "\t\"page\": {\n" +
            "\t\t\"pageAll\": 0,\n" +
            "\t\t\"pageCurr\": 0,\n" +
            "\t\t\"pageSize\": 0\n" +
            "\t},\n" +
            "\t\"uinf\": {\n" +
            "\t\t\"uid\": 0\n" +
            "\t}\n" +
            "}", value = "电池实时状态查询/searchBattLife")
    @ApiOperation( value = "电池实时状态查询/searchBattLife")
    public Response<List<BattState>> searchBattLife(@RequestBody Batt_Maint_Dealarm bmd) {
        return service.searchBattLife(bmd);