| | |
| | | package com.fgkj.controller; |
| | | |
| | | import com.fgkj.util.*; |
| | | |
| | | import com.fgkj.dto.BattInf; |
| | | import com.fgkj.dto.Batt_Maint_Dealarm; |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.BattTest_ResService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @RequestMapping("battTestRes") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestRes接口") |
| | | //Perry TODO |
| | | public class BattTest_ResController{ |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private BattTest_ResService service; |
| | | |
| | | // private Batt_Maint_Dealarm bmd; |
| | | |
| | | //电池充放电数据管理 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池充放电数据管理") |
| | | public List serchByCondition(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // bmd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | List list=service.serchByCondition(bmd); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | //TODO |
| | | //电池充放电数据管理(删除操作) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="电池充放电数据管理(删除操作)") |
| | | public ServiceModel delete(@RequestBody List<BattInf> list){ |
| | | // List<BattInf> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, new TypeToken<List<BattInf>>(){}.getType()); |
| | | ServiceModel model=service.delete(list); |
| | | return model; |
| | | } |