修改 总装
parent
9da5b1f019
commit
5d125ac7b0
@ -0,0 +1,47 @@
|
|||||||
|
package com.ruoyi.web.controller.broad;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.ruoyi.system.service.IBroadDataService;
|
||||||
|
import com.ruoyi.system.service.IBroadDruidService;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wanghao
|
||||||
|
* @date 2022/7/14 9:49
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/broad/fp")
|
||||||
|
@ApiOperation("总装")
|
||||||
|
@ResponseBody
|
||||||
|
public class ZZJXBroadController {
|
||||||
|
@Autowired
|
||||||
|
IBroadDataService service;
|
||||||
|
@Autowired
|
||||||
|
IBroadDruidService iBroadDruidService;
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/selectProductInByTeam/{id}")
|
||||||
|
@ApiOperation("成品入库统计-当班")
|
||||||
|
private String selectProductInByTeam(@PathVariable("id")int id) {
|
||||||
|
|
||||||
|
if (id==0){
|
||||||
|
return JSONArray.toJSONString(service.zz_selectProductInByTeam());
|
||||||
|
}else {
|
||||||
|
return JSONArray.toJSONString(service.zz_selectProductInByDay());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue