|
@@ -313,4 +313,98 @@ public class FbsPuArrivalvouchController {
|
|
|
return Result.ok("文件导入失败!");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @Author chenchuang
|
|
|
+ * @Description //TODO 品质看板:当月供应商合格率实时展示
|
|
|
+ * @Date 2020/10/27 14:50
|
|
|
+ * @Param []
|
|
|
+ * @return org.jeecg.common.api.vo.Result<java.util.Map<java.lang.String,java.lang.Object>>
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getPassRateByVendor")
|
|
|
+ public Result<Map<String,Object>> getPassRateByVendor(){
|
|
|
+ Result<Map<String,Object>> result=new Result<>();
|
|
|
+ try {
|
|
|
+ Map<String,Object> map=fbsPuArrivalvouchService.getPassRateByVendor();
|
|
|
+ result.setResult(map);
|
|
|
+ result.success("操作成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.error500("操作失败:"+e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Author chenchuang
|
|
|
+ * @Description //TODO 品质看板:当天到货批数
|
|
|
+ * @Date 2020/10/27 16:06
|
|
|
+ * @Param []
|
|
|
+ * @return org.jeecg.common.api.vo.Result<java.lang.Integer>
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getTodayArriveSum")
|
|
|
+ public Result<Integer> getTodayArriveSum(){
|
|
|
+ Result<Integer> result=new Result<>();
|
|
|
+ try {
|
|
|
+ Integer total=fbsPuArrivalvouchService.getTodayArriveSum();
|
|
|
+ if(total==null){
|
|
|
+ total=0;
|
|
|
+ }
|
|
|
+ result.setResult(total);
|
|
|
+ result.success("操作成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.error500("操作失败:"+e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Author chenchuang
|
|
|
+ * @Description //TODO 品质看板:未来3天的到货总批数
|
|
|
+ * @Date 2020/10/27 16:06
|
|
|
+ * @Param []
|
|
|
+ * @return org.jeecg.common.api.vo.Result<java.lang.Integer>
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getWillArriveSum")
|
|
|
+ public Result<Integer> getWillArriveSum(){
|
|
|
+ Result<Integer> result=new Result<>();
|
|
|
+ try {
|
|
|
+ Integer total=fbsPuArrivalvouchService.getWillArriveSum();
|
|
|
+ if(total==null){
|
|
|
+ total=0;
|
|
|
+ }
|
|
|
+ result.setResult(total);
|
|
|
+ result.success("操作成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.error500("操作失败:"+e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Author chenchuang
|
|
|
+ * @Description //TODO 品质看板:当月到货总批数
|
|
|
+ * @Date 2020/10/27 16:06
|
|
|
+ * @Param []
|
|
|
+ * @return org.jeecg.common.api.vo.Result<java.lang.Integer>
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getThisMonthArriveSum")
|
|
|
+ public Result<Integer> getThisMonthArriveSum(){
|
|
|
+ Result<Integer> result=new Result<>();
|
|
|
+ try {
|
|
|
+ Integer total=fbsPuArrivalvouchService.getThisMonthArriveSum();
|
|
|
+ if(total==null){
|
|
|
+ total=0;
|
|
|
+ }
|
|
|
+ result.setResult(total);
|
|
|
+ result.success("操作成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.error500("操作失败:"+e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
}
|