VueWebCoreApi/DLL/DAL/ProductModelDAL.cs
@@ -513,7 +513,7 @@
                mes.code = "200";
                mes.message = "查询成功!";
                mes.data = data;
                LogHelper.OperateLog("999", "查询", "存货分类查询数据为:" + JsonConvert.SerializeObject(data), "PC");
                //LogHelper.OperateLog("999", "查询", "存货分类查询数据为:" + JsonConvert.SerializeObject(data), "PC");
            }
            catch (Exception e)
            {
@@ -1144,7 +1144,7 @@
                        sql = @"update TMateriel_Info set is_retdproc='N',default_route='' where partcode=@partcode";
                        list.Add(new { str = sql, parm = new { partcode = json[0].partcode } });
                        //清除节拍工价表对应数据
                        sql = @"delete TPrteEqp_Stad where materiel_code=@partcode";
                        sql = @"delete TPrteStep_Price where materiel_code=@partcode";
                        list.Add(new { str = sql, parm = new { partcode = json[0].partcode } });
                    }
                    else
@@ -1175,7 +1175,7 @@
                        //清除节拍工价表当前产品对应工艺路线不包含此次设置的其它数据
                        //string分割转string[]
                        string[] routcode = Array.ConvertAll<string, string>(string.Join(",", json[0].children.Select(s => s.code)).Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries), s => s.ToString());
                        sql = @"delete TPrteEqp_Stad where materiel_code=@partcode and route_code not in @routecode";
                        sql = @"delete TPrteStep_Price where materiel_code=@partcode and route_code not in @routecode";
                        list.Add(new { str = sql, parm = new { partcode = json[0].partcode, routecode= routcode } });
                    }
                }
@@ -1190,7 +1190,7 @@
                        sql = @"update TMateriel_Info set is_retdproc='N',default_route='' where partcode=@partcode";
                        list.Add(new { str = sql, parm = new { partcode = json[0].partcode } });
                        //清除节拍工价表对应数据
                        sql = @"delete TPrteEqp_Stad where materiel_code=@partcode";
                        sql = @"delete TPrteStep_Price where materiel_code=@partcode";
                        list.Add(new { str = sql, parm = new { partcode = json[0].partcode } });
                    }
                    else
@@ -1225,7 +1225,7 @@
                        //清除节拍工价表当前产品对应工序不包含此次设置的其它数据
                        //string分割转string[]
                        string[] stepcode = Array.ConvertAll<string, string>(string.Join(",", json[0].children.Select(s => s.code)).Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries), s => s.ToString());
                        sql = @"delete TPrteEqp_Stad where materiel_code=@partcode and step_code not in @stepcode";
                        sql = @"delete TPrteStep_Price where materiel_code=@partcode and step_code not in @stepcode";
                        list.Add(new { str = sql, parm = new { partcode = json[0].partcode, stepcode = stepcode } });
                    }
                }