feat: cleanup

This commit is contained in:
2024-11-23 21:44:11 +08:00
parent 5962b09d66
commit 0a018b46a5
2 changed files with 0 additions and 19 deletions

View File

@@ -5,19 +5,9 @@ import cn.lihongjie.coal.warehouse.dto.WarehouseDto;
import lombok.Data;
import org.hibernate.annotations.Formula;
@Data
public class WarehouseShelveDto extends OrgCommonDto {
private WarehouseDto warehouse;
@Formula("(select count(1) from t_warehouse_goods_summary s where s.shelve_id = id)")
private Double goodsCount;
@Formula("(select sum(s.number) from t_warehouse_goods_summary s where s.shelve_id = id)")
private Double goodsNumber;
@Formula("(select sum(s.number * s.price) from t_warehouse_goods_summary s where s.shelve_id = id)")
private Double goodsAmount;
}

View File

@@ -21,15 +21,6 @@ public class WarehouseShelveEntity extends OrgCommonEntity {
// @Formula("(select count(1) from t_warehouse_goods_summary s where s.shelve_id = id)")
private Double goodsCount;
// @Formula("(select sum(s.number) from t_warehouse_goods_summary s where s.shelve_id = id)")
private Double goodsNumber;
// @Formula("(select sum(s.number * s.price) from t_warehouse_goods_summary s where s.shelve_id = id)")
private Double goodsAmount;
}