@ -52,32 +52,32 @@ public interface GdInventoryOkMapper extends BaseMapper<GdInventoryOk> {
@Delete("delete from gd_inventory_ok where 1=1")
voidclearData();
@Select("select count(1) from (select warehouseCode from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112' group by warehouseCode) t ")
@Select("select IFNULL(count(1),0) from (select warehouseCode from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112' group by warehouseCode) t ")
intcountWarehouseType1Not112();
@Select("select count(1) from (select warehouseCode from gd_inventory_ok where warehouseType='2' group by warehouseCode) t ")
@Select("select IFNULL(count(1),0) from (select warehouseCode from gd_inventory_ok where warehouseType='2' group by warehouseCode) t ")
intcountWarehouseType2();
@Select("select count(1) from gd_inventory_ok where warehouseCode='112'")
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseCode='112'")
intcountProd112();
@Select("select count(1) from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112'")
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112'")
intcountProd1Not112();
@Select("select count(1) from gd_inventory_ok where warehouseType='2'")
@Select("select IFNULL(count(1),0) from gd_inventory_ok where warehouseType='2'")
intcountProd2();
@Select("select sum(prodValue) from gd_inventory_ok where warehouseCode='112'")
@Select("select IFNULL(sum(prodValue),0) from gd_inventory_ok where warehouseCode='112'")
doublecountVal112();
@Select("select sum(prodValue) from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112'")
@Select("select IFNULL(sum(prodValue),0) from gd_inventory_ok where warehouseType='1' and warehouseCode<>'112'")
doublecountVal1Not112();
@Select("select sum(prodValue) from gd_inventory_ok where warehouseType='2'")
@Select("select IFNULL(sum(prodValue),0) from gd_inventory_ok where warehouseType='2'")
doublecountVal2();
@Select("select warehouseName,warehouseType,count(1) as coun,sum(prodValue) as su from gd_inventory_ok gio group by warehouseName,warehouseType order by warehouseType")
@Select("select warehouseName,warehouseType,IFNULL(count(1),0) as coun,IFNULL(sum(prodValue),0) as su from gd_inventory_ok gio group by warehouseName,warehouseType order by warehouseType")
List<Map<String,Object>>listOfWarehouse();
@Select("select warehouseCode, warehouseName, warehouseType, prodCode, prodBarCode, prodName, prodNum, prodValue from gd_inventory_ok order by warehouseType")