Commit 2373f21f by yubin

Merge remote-tracking branch 'origin/master'

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