| | |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | |
| | | private String productName; |
| | | @Excel(name = "规格型号") |
| | | private String model; |
| | | |
| | | @Excel(name = "厚度(mm)") |
| | | private BigDecimal thickness; |
| | | |
| | | @Excel(name = "单位") |
| | | private String unit; |
| | | @Excel(name = "入库来源") |
| | |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | |
| | | private String productName; |
| | | @Excel(name = "规格型号") |
| | | private String model; |
| | | |
| | | @Excel(name = "厚度(mm)") |
| | | private BigDecimal thickness; |
| | | |
| | | @Excel(name = "单位") |
| | | private String unit; |
| | | @Excel(name = "出库来源") |
| | |
| | | sir.*, |
| | | p.product_name as product_name, |
| | | pm.model, |
| | | pm.thickness, |
| | | pm.unit, |
| | | u.nick_name as createBy, |
| | | CASE |
| | |
| | | SUM(qualifiedLockedQuantity) as qualifiedLockedQuantity, |
| | | SUM(unQualifiedLockedQuantity) as unQualifiedLockedQuantity, |
| | | model, |
| | | thickness, |
| | | unit, |
| | | product_name, |
| | | MAX(warn_num) as warn_num, |
| | |
| | | COALESCE(si.warn_num, 0) as warn_num, |
| | | si.remark, |
| | | pm.model, |
| | | pm.thickness, |
| | | pm.unit, |
| | | p.product_name, |
| | | p.id as product_id |
| | |
| | | 0 as warn_num, |
| | | su.remark, |
| | | pm.model, |
| | | pm.thickness, |
| | | pm.unit, |
| | | p.product_name, |
| | | p.id as product_id |
| | |
| | | and combined.product_id in (select id from product_tree) |
| | | </if> |
| | | </where> |
| | | group by product_model_id, model, unit, product_name |
| | | group by product_model_id, model, thickness, unit, product_name |
| | | </select> |
| | | |
| | | <select id="stockInventoryPage" resultType="com.ruoyi.stock.dto.StockInRecordDto"> |
| | | select sir.*,si.qualitity as current_stock, |
| | | pm.model, |
| | |
| | | SELECT |
| | | sor.*, |
| | | p.product_name as productName, |
| | | pm.thickness, |
| | | pm.model, |
| | | pm.unit, |
| | | u.nick_name as createBy, |
| | |
| | | </select> |
| | | <select id="listStockInventoryExportData" resultType="com.ruoyi.stock.execl.StockUnInventoryExportData"> |
| | | select su.*, |
| | | pm.thickness, |
| | | pm.model, |
| | | pm.unit, |
| | | p.product_name |