@ -64,7 +64,8 @@ public interface GdInventoryOkMapper extends BaseMapper<GdInventoryOk> {
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112'")
intcountProd1Not112();
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseType='2'")
// @Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseType='2'")
@Select("select IFNULL(count(1),0) FROM (SELECT DISTINCT prodCode from gd_inventory_ok where warehouseType='2') t")
intcountProd2();
@Select("select IFNULL(sum(prodValue),0) from gd_inventory_ok where warehouseCode='112'")
@ -82,4 +83,16 @@ public interface GdInventoryOkMapper extends BaseMapper<GdInventoryOk> {
@Select("select warehouseCode, warehouseName, warehouseType, prodCode, prodBarCode, prodName, prodNum, prodValue from gd_inventory_ok order by warehouseType")
List<Map<String,Object>>listOfProd();
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseCode='101'")
intcountProd101();
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseCode='199'")
intcountProd199();
@Select("select IFNULL(sum(prodValue),0) from gd_inventory_ok where warehouseCode='101'")
doublecountVal101();
@Select("select IFNULL(sum(prodValue),0) from gd_inventory_ok where warehouseCode='199'")