|
@@ -46,8 +46,8 @@
|
46
|
DATA_KCGL_QCKC_DEFAULT.pz AS "pz",
|
46
|
DATA_KCGL_QCKC_DEFAULT.pz AS "pz",
|
47
|
b_3.enumName AS "pz_value",
|
47
|
b_3.enumName AS "pz_value",
|
48
|
DATA_KCGL_QCKC_DEFAULT.wjh AS "wjh",
|
48
|
DATA_KCGL_QCKC_DEFAULT.wjh AS "wjh",
|
49
|
- DATA_KCGL_QCKC_DEFAULT.hwmc AS "hwmc",
|
|
|
50
|
- DATA_KCGL_QCKC_DEFAULT.cfmc AS "cfmc",
|
|
|
|
|
49
|
+ c.warehouse_name AS "hwmc",
|
|
|
50
|
+ b.storehouse_name AS "cfmc",
|
51
|
DATA_KCGL_QCKC_DEFAULT.dj AS "dj",
|
51
|
DATA_KCGL_QCKC_DEFAULT.dj AS "dj",
|
52
|
b_7.enumName AS "dj_value",
|
52
|
b_7.enumName AS "dj_value",
|
53
|
DATA_KCGL_QCKC_DEFAULT.kcsl AS "kcsl",
|
53
|
DATA_KCGL_QCKC_DEFAULT.kcsl AS "kcsl",
|
|
@@ -60,6 +60,8 @@
|
60
|
LEFT JOIN basic_enum b_3 ON DATA_KCGL_QCKC_DEFAULT.pz = b_3.enumId
|
60
|
LEFT JOIN basic_enum b_3 ON DATA_KCGL_QCKC_DEFAULT.pz = b_3.enumId
|
61
|
LEFT JOIN basic_enum b_7 ON DATA_KCGL_QCKC_DEFAULT.dj = b_7.enumId
|
61
|
LEFT JOIN basic_enum b_7 ON DATA_KCGL_QCKC_DEFAULT.dj = b_7.enumId
|
62
|
LEFT JOIN basic_enum b_9 ON DATA_KCGL_QCKC_DEFAULT.hwxz = b_9.enumId
|
62
|
LEFT JOIN basic_enum b_9 ON DATA_KCGL_QCKC_DEFAULT.hwxz = b_9.enumId
|
|
|
63
|
+ LEFT JOIN basic_storehouse b on DATA_KCGL_QCKC_DEFAULT.ch = b.storehouse_id
|
|
|
64
|
+ LEFT JOIN basic_warehouse c on DATA_KCGL_QCKC_DEFAULT.hwh = c.warehouse_id
|
63
|
WHERE
|
65
|
WHERE
|
64
|
ifnull(
|
66
|
ifnull(
|
65
|
DATA_KCGL_QCKC_DEFAULT.SytelInfoID,
|
67
|
DATA_KCGL_QCKC_DEFAULT.SytelInfoID,
|