@@ -28,13 +27,12 @@ public interface DcInventoryBalanceMapper {
...
@@ -28,13 +27,12 @@ public interface DcInventoryBalanceMapper {
* @param lastDay
* @param lastDay
*/
*/
@Insert("insert into dc_inventory_balance(warehouse_code,warehouse_name,hq_type,balance_rmb,statistical_time,is_transfer,transfer_rmb,transfer_plan_rmb,purchase_rmb)"+
@Insert("insert into dc_inventory_balance(warehouse_code,warehouse_name,hq_type,balance_rmb,statistical_time,is_transfer,transfer_rmb,transfer_plan_rmb,purchase_rmb)"+
@@ -59,9 +57,12 @@ public interface DcInventoryBalanceMapper {
...
@@ -59,9 +57,12 @@ public interface DcInventoryBalanceMapper {
* @param lastDay
* @param lastDay
* @return
* @return
*/
*/
@Select("select sum(balance_rmb) from dc_inventory_balance where statistical_time = #{lastDay} and hq_type<>'FBA仓' and is_transfer=0")
@Select("select sum(balance_rmb) from dc_inventory_balance where statistical_time = #{lastDay} and hq_type<>'FBA仓' and hq_type<>'耗材仓' and is_transfer=0")
@Select("select sum(balance_rmb) from dc_inventory_balance where statistical_time = #{lastDay} and hq_type<>'FBA仓' and hq_type = '耗材仓' and is_transfer=0")