|
|
|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.ruoyi.system.domain.*;
|
|
|
|
|
import com.ruoyi.system.service.IBroadDataService;
|
|
|
|
|
import com.ruoyi.system.service.IBroadDruidService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
@ -23,6 +24,8 @@ import java.util.List;
|
|
|
|
|
public class BoxBroadController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private IBroadDataService service;
|
|
|
|
|
@Autowired
|
|
|
|
|
private IBroadDruidService BroadDruidServiceImpl;
|
|
|
|
|
|
|
|
|
|
@PostMapping("/planCompletion")
|
|
|
|
|
@ApiOperation("箱壳查询计划数量完成情况")
|
|
|
|
|
@ -65,8 +68,10 @@ public class BoxBroadController {
|
|
|
|
|
@ApiOperation("箱壳按小时查询产量")
|
|
|
|
|
public String selectOutputByTime() {
|
|
|
|
|
List<BoxOutput> info = service.selectOutputByTime();
|
|
|
|
|
BoxOutput info1 = service.selectOutputByTimeDY();
|
|
|
|
|
info.add(info1);
|
|
|
|
|
int qty = BroadDruidServiceImpl.selectNowXkOutPut();
|
|
|
|
|
|
|
|
|
|
BoxOutput boxOutput=info.get(info.size()-1);
|
|
|
|
|
boxOutput.setQty(qty+boxOutput.getQty());
|
|
|
|
|
String jsonInfo = JSONArray.toJSONString(info);
|
|
|
|
|
System.out.println("根据型号统计产量:" + jsonInfo);
|
|
|
|
|
return jsonInfo;
|
|
|
|
|
|