| | |
| | | // @Tags 生产数量 |
| | | // @Summary 获取生产进度 |
| | | // @Produce application/json |
| | | // @Param object body request.SendProcessParams true "查询参数" |
| | | // @Param object body request.GetProductProgress true "查询参数" |
| | | // @Success 200 {object} contextx.Response{data=response.ProductProgress} "成功" |
| | | // @Router /v1/plc/productProgress [post] |
| | | func (slf *PlcApi) GetProductProgress(c *gin.Context) { |
| | |
| | | } |
| | | resp.PlcStatus = plcStatus |
| | | |
| | | resp.RealStartTime = service.TaskStartTimeGet(params.Channel) |
| | | resp.RealEndTime = service.TaskEndTimeGet(params.Channel) |
| | | |
| | | ctx.OkWithDetailed(resp) |
| | | } |
| | | |