Commit 2373f21f by yubin

Merge remote-tracking branch 'origin/master'

parents 5b56f7ea d97af811
...@@ -154,19 +154,17 @@ public class InboundOrdersController extends BaseController ...@@ -154,19 +154,17 @@ public class InboundOrdersController extends BaseController
* @return 结果 * @return 结果
*/ */
@GetMapping("/countQuantity") @GetMapping("/countQuantity")
public TableDataInfo countQuantity(){ public AjaxResult countQuantity(){
startPage();
List<InboundMaterialTotalVO> list = inboundOrdersService.countInboundMaterialQuantity(); List<InboundMaterialTotalVO> list = inboundOrdersService.countInboundMaterialQuantity();
return getDataTable(list); return AjaxResult.success(list);
} }
/** /**
* 按金额统计本月入库物料Top前10 * 按金额统计本月入库物料Top前10
* @return 结果 * @return 结果
*/ */
@GetMapping("/countMoney") @GetMapping("/countMoney")
public TableDataInfo countMoney(){ public AjaxResult countMoney(){
startPage();
List<InboundMaterialTotalVO> list = inboundOrdersService.countInboundMaterialMoney(); List<InboundMaterialTotalVO> list = inboundOrdersService.countInboundMaterialMoney();
return getDataTable(list); return AjaxResult.success(list);
} }
} }
...@@ -174,11 +174,10 @@ public class InventoryController extends BaseController ...@@ -174,11 +174,10 @@ public class InventoryController extends BaseController
* 统计库存物料超出预警值 * 统计库存物料超出预警值
*/ */
@GetMapping("/exceed") @GetMapping("/exceed")
public TableDataInfo exceedWarnValue() public AjaxResult exceedWarnValue()
{ {
startPage();
List<InventoryExceedWarnVO> list = inventoryService.selectInventoryExceedWarnList(); List<InventoryExceedWarnVO> list = inventoryService.selectInventoryExceedWarnList();
return getDataTable(list); return AjaxResult.success(list);
} }
......
...@@ -251,7 +251,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -251,7 +251,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where io.order_status = 2 where io.order_status = 2
group by m.id group by m.id
order by total_quantity desc order by total_quantity desc
limit 10
</select> </select>
<select id="countInboundMaterialMoney" resultMap="InboundMaterialTotalResultMap" parameterType="String"> <select id="countInboundMaterialMoney" resultMap="InboundMaterialTotalResultMap" parameterType="String">
select m.material_name,sum(ioi.actual_quantity * ioi.unit_price) as total_money select m.material_name,sum(ioi.actual_quantity * ioi.unit_price) as total_money
...@@ -261,6 +260,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -261,6 +260,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where io.order_status = 2 where io.order_status = 2
group by m.id group by m.id
order by total_money desc order by total_money desc
limit 10
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论