| | |
| | | private String model; |
| | | |
| | | private String bomNo; |
| | | |
| | | //物料编码 |
| | | private String materialCode; |
| | | } |
| | |
| | | |
| | | |
| | | private String model; |
| | | |
| | | //物料编码 |
| | | private String materialCode; |
| | | } |
| | |
| | | //产品规格型号 |
| | | private String productModelName; |
| | | |
| | | //物料编码 |
| | | private String materialCode; |
| | | } |
| | |
| | | @Excel(name = "规格") |
| | | private String specificationModel; |
| | | |
| | | //料号 |
| | | @ApiModelProperty(value = "料号") |
| | | @Excel(name = "料号") |
| | | private String materialCode; |
| | | |
| | | @ApiModelProperty(value = "工艺路线编号") |
| | | @Excel(name = "工艺路线编号") |
| | | private String processRouteCode; |
| | |
| | | private String model; |
| | | |
| | | private Boolean isComplete; |
| | | |
| | | //物料编码 |
| | | private String materialCode; |
| | | } |
| | |
| | | |
| | | @TableField(exist = false) |
| | | private List<ProductStructureDto> children; |
| | | |
| | | //物料编码 |
| | | private String materialCode; |
| | | } |
| | |
| | | @ApiModelProperty(value = "规格") |
| | | private String model; |
| | | |
| | | //料号 |
| | | @ApiModelProperty(value = "料号") |
| | | private String materialCode; |
| | | |
| | | //工序 |
| | | @ApiModelProperty(value = "工序") |
| | | private String processName; |
| | |
| | | @ApiModelProperty(value = "产品型号") |
| | | private String model; |
| | | |
| | | //料号 |
| | | @ApiModelProperty(value = "料号") |
| | | private String materialCode; |
| | | |
| | | @ApiModelProperty(value = "产品名称") |
| | | private String productName; |
| | | |
| | |
| | | //产品规格型号 |
| | | @Excel(name = "产品规格型号") |
| | | private String productModelName; |
| | | //料号 |
| | | @Excel(name = "料号") |
| | | private String materialCode; |
| | | |
| | | //单位 |
| | | @Excel(name = "单位") |
| | |
| | | private String specificationModel; |
| | | |
| | | /** |
| | | * 料号 |
| | | */ |
| | | @Excel(name = "料号") |
| | | @ApiModelProperty(value = "料号") |
| | | private String materialCode; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @Excel(name = "单位") |
| | |
| | | pm.product_id, |
| | | pm.model, |
| | | p.product_name, |
| | | pm.unit |
| | | pm.unit, |
| | | pm.material_code as materialCode |
| | | from |
| | | process_route_item pri |
| | | left join product_model pm on pri.product_model_id = pm.id |
| | |
| | | </resultMap> |
| | | |
| | | <select id="pageProcessRouteDto" resultType="com.ruoyi.production.dto.ProcessRouteDto"> |
| | | select ps.*, p.product_name,pm.product_id,pm.model,pb.bom_no |
| | | select ps.*, p.product_name,pm.product_id,pm.model,pb.bom_no, pm.material_code as materialCode |
| | | from process_route ps |
| | | left join product_bom pb on ps.bom_id = pb.id |
| | | left join product_model pm on ps.product_model_id = pm.id |
| | |
| | | <select id="listPage" resultType="com.ruoyi.production.dto.ProductBomDto"> |
| | | select * from (select pb.*, |
| | | pm.model productModelName, |
| | | pm.material_code as materialCode, |
| | | p.product_name productName |
| | | from product_bom pb |
| | | left join product_model pm on pb.product_model_id = pm.id |
| | |
| | | p.product_name as product_category, |
| | | pm.model as specification_model, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | ppr.process_route_code, |
| | | pb.bom_no, |
| | | ROUND(po.complete_quantity / po.quantity * 100, 2) AS completionStatus, |
| | |
| | | p.product_name, |
| | | pp.name as process_name, |
| | | pm.product_id, |
| | | pm.model |
| | | pm.model, |
| | | pm.material_code as materialCode |
| | | from |
| | | product_structure ps |
| | | left join product_model pm on ps.product_model_id = pm.id |
| | |
| | | pp.name as process_name, |
| | | pm.model, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | p.product_name, |
| | | case when pwo.complete_quantity>0 then true else false end as is_complete |
| | | from product_process_route_item ppri |
| | |
| | | <result column="product_order_id" property="productOrderId"/> |
| | | </resultMap> |
| | | <select id="listMain" resultType="com.ruoyi.production.dto.ProcessRouteDto"> |
| | | select ppr.*, p.product_name, pm.product_id, pm.model, pb.bom_no |
| | | select ppr.*, p.product_name, pm.product_id, pm.model, pb.bom_no, pm.material_code as materialCode |
| | | from product_process_route ppr |
| | | left join product_bom pb on ppr.bom_id = pb.id |
| | | left join product_model pm on ppr.product_model_id = pm.id |
| | |
| | | p.product_name, |
| | | pp.name as process_name, |
| | | pm.product_id, |
| | | pm.model |
| | | pm.model, |
| | | pm.material_code as materialCode |
| | | from |
| | | product_structure ps |
| | | left join product_model pm on ps.product_model_id = pm.id |
| | |
| | | pp.qualified_rate as processQualifiedRate, |
| | | pm.model, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | p.product_name AS productName, |
| | | p.id AS productId, |
| | | po.nps_no AS productOrderNpsNo, |
| | |
| | | pm.model as model, |
| | | ppm.product_no as productNo, |
| | | p.product_name, |
| | | pm.unit |
| | | pm.unit, |
| | | pm.material_code as materialCode |
| | | from |
| | | production_product_input ppi |
| | | left join production_product_main ppm on ppm.id = ppi.product_main_id |
| | |
| | | pp.name as process, |
| | | pp.qualified_rate as processQualifiedRate, |
| | | pm.model as productModelName, |
| | | pm.material_code as materialCode, |
| | | ppo.quantity, |
| | | ppo.scrap_qty, |
| | | (ppo.quantity - ppo.scrap_qty) as qualifiedQty, |
| | |
| | | p.product_name, |
| | | pm.model as product_model_name, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | slpa.process, |
| | | ppo.quantity, |
| | | slpa.work_hours, |
| | |
| | | T1.customer_name, |
| | | t3.product_category, |
| | | t3.specification_model, |
| | | t3.unit |
| | | t3.unit, |
| | | pm.material_code as materialCode |
| | | FROM |
| | | sales_ledger_production_accounting t4 |
| | | LEFT JOIN sales_ledger T1 ON T1.id = t4.sales_ledger_id |
| | | left join sales_ledger_product t3 on t4.sales_ledger_product_id = t3.id |
| | | LEFT JOIN production_product_main ppm ON t4.product_main_id = ppm.id |
| | | LEFT JOIN product_work_order pwo ON ppm.work_order_id = pwo.id |
| | | LEFT JOIN product_order po ON pwo.product_order_id = po.id |
| | | LEFT JOIN sales_ledger T1 ON T1.id = po.sales_ledger_id |
| | | LEFT JOIN sales_ledger_product t3 ON po.sale_ledger_product_id = t3.id |
| | | LEFT JOIN product_model pm ON po.product_model_id = pm.id |
| | | <where> |
| | | t3.type = 1 |
| | | <if test="salesLedgerDto.schedulingUserName != null and salesLedgerDto.schedulingUserName != '' "> |