mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 15:55:18 +08:00
feat: cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user