| | |
| | | package org.jeecg.modules.dry.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.config.TenantContext; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | |
| | | IPage<DryOrder> pageList = dryOrderService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value="月生产情况概览", notes="") |
| | | @GetMapping(value = "/monthOverview") |
| | | public Result<?> queryMonthOverview(@RequestParam(name="month") String month) { |
| | | int tenantId = oConvertUtils.getInt(TenantContext.getTenant(),0); |
| | | List<String> list = dryOrderService.queryMonthOverview(month, tenantId); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加 |
| | |
| | | return super.importExcel(request, response, DryOrder.class); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value="接收实时数据", notes="设备实时数据上传") |
| | | @PostMapping("/sendRealTimeData") |
| | | public void realTimeData(@RequestBody DryOrderVo orderVo) { |
| | | System.out.println("接收到实时数据:" + orderVo.toString()); |
| | | service.saveRealTimeData(orderVo); |
| | | |
| | | } |
| | | |
| | | } |