|
|
@@ -90,7 +90,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
string ms_firstsn = dt.Rows[0]["ms_firstsn"].ToString();
|
|
|
string ms_makecode = dt.Rows[0]["ms_makecode"].ToString();
|
|
|
sql.Clear();
|
|
|
- sql.Append("select wm_concat(sp_soncode) sp_soncode from stepproduct left join product on pr_code=sp_fsoncode where ");
|
|
|
+ sql.Append("select wm_concat(pr_detail) sp_soncode from stepproduct left join product on pr_code=sp_fsoncode where ");
|
|
|
sql.Append("sp_bomversion='" + ms_bomversion + "' and sp_craftcode='" + ms_craftcode + "' ");
|
|
|
sql.Append("And sp_mothercode ='" + ms_prodcode + "' and sp_tracekind=1 and not exists(select 1 from craftmaterial where ");
|
|
|
sql.Append("cm_sncode in (select '" + ms_firstsn + "' from dual union select sn from makesnrelation where firstsn='" + ms_firstsn + "') and cm_makecode='" + ms_makecode + "' and cm_fsoncode=");
|
|
|
@@ -114,7 +114,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
string ms_firstsn = dt.Rows[0]["ms_firstsn"].ToString();
|
|
|
string ms_makecode = dt.Rows[0]["ms_makecode"].ToString();
|
|
|
sql.Clear();
|
|
|
- sql.Append("select wm_concat(sp_soncode) sp_soncode from stepproduct left join product on pr_code=sp_fsoncode where ");
|
|
|
+ sql.Append("select wm_concat(pr_detail) sp_soncode from stepproduct left join product on pr_code=sp_fsoncode where ");
|
|
|
sql.Append("sp_bomversion='" + ms_bomversion + "' and sp_craftcode='" + ms_craftcode + "' ");
|
|
|
sql.Append("And sp_mothercode ='" + ms_prodcode + "' and sp_tracekind=1 and not exists(select 1 from craftmaterial where ");
|
|
|
sql.Append("cm_sncode in (select '" + ms_firstsn + "' from dual union select sn from makesnrelation where firstsn='" + ms_firstsn + "') and cm_makecode='" + ms_makecode + "' and cm_fsoncode=");
|