mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
生产工序代码-排单-新增排单-板件参数,SQL修改
This commit is contained in:
+10
@@ -40,4 +40,14 @@ public class PlatePage {
|
||||
private String customOrderNo;
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
@Schema(description = "板件数量")
|
||||
private Long num;
|
||||
|
||||
@Schema(description = "异形", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String specialShaped;
|
||||
|
||||
@Schema(description = "造型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String profiling;
|
||||
}
|
||||
|
||||
+4
-2
@@ -23,9 +23,11 @@
|
||||
|
||||
select a.id as plateId, a.name, a.width, a.height, a.thickness, a.area,
|
||||
b.custom_order_no, b.customer, b.address, b.remark, b.id as orderId,
|
||||
c.goods_name, c.material, c.color, c.goods_id
|
||||
c.goods_name, c.material, c.color, c.goods_id,oi.num,
|
||||
CASE WHEN a.unregular_point_count = 0 THEN '否' ELSE '是' END AS specialShaped,
|
||||
CASE WHEN front_model_count = 0 or a.back_hole_count or a.side_hole_count THEN '否' ELSE '是' END AS profiling
|
||||
from order_plate a
|
||||
-- LEFT JOIN order_item oi on a.order_id = oi.order_id
|
||||
LEFT JOIN order_item oi on a.id = oi.plate_id
|
||||
LEFT JOIN `order` b on a.order_id = b.id
|
||||
LEFT JOIN order_goods c on a.goods_id = c.goods_id
|
||||
<where>
|
||||
|
||||
Reference in New Issue
Block a user