| | |
| | | package com.fgkj.controller; |
| | | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.util.*; |
| | | |
| | | import com.fgkj.dto.Batt_discharge; |
| | |
| | | |
| | | @RequestMapping("battDischarge") |
| | | @RestController |
| | | @Api(tags = "battDischarge接口") |
| | | @Api(tags = "battDischarge接口 Deprecated") |
| | | @Deprecated |
| | | public class Batt_dischargeController{ |
| | | |
| | | @Resource |
| | | private Batt_dischargeService service; |
| | | |
| | | |
| | | |
| | | //批量添加 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="批量添加") |
| | | @ApiOperation(notes = "[{ \"uid\": 12, \"dev_id\": 91100013, \"record_time\": \"2021-01-28 14:53:21\" }]",value="批量添加") |
| | | public ServiceModel add(@RequestBody List<Batt_discharge> list) { |
| | | // List<Batt_discharge> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Batt_discharge>>(){}.getType()); |
| | | // User_inf user = (User_inf) ActionUtil.getUser(); |
| | | ServiceModel model=service.add(list); |
| | | |
| | | return model; |