暫無描述

sql_20190614_问题类别数据.sql 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. select *from T_Wo_QuestionManage
  2. --update T_Wo_QuestionManage set f_isdelete=0
  3. ------抽检 SpotCheck
  4. ----养分、标识、公关
  5. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  6. --[F_CreateBy],[F_CreateOn])values('养分','',0,1,'','SpotCheck','8000',GETDATE())
  7. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  8. --[F_CreateBy],[F_CreateOn])values('标识','',0,1,'','SpotCheck','8000',GETDATE())
  9. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  10. --[F_CreateBy],[F_CreateOn])values('公关','',0,1,'','SpotCheck','8000',GETDATE())
  11. ----咨询及需求问题类别
  12. ----产品、农化服务、测土配方、价格、包装、真伪、公司情况、化工产品反馈
  13. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  14. --[F_CreateBy],[F_CreateOn])
  15. --values('产品','',0,1,'','ConsultingNeeds','8000',GETDATE())
  16. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  17. --[F_CreateBy],[F_CreateOn])
  18. --values('农化服务','',0,1,'','ConsultingNeeds','8000',GETDATE())
  19. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  20. --[F_CreateBy],[F_CreateOn])
  21. --values('测土配方','',0,1,'','ConsultingNeeds','8000',GETDATE())
  22. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  23. --[F_CreateBy],[F_CreateOn])
  24. --values('价格','',0,1,'','ConsultingNeeds','8000',GETDATE())
  25. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  26. --[F_CreateBy],[F_CreateOn])
  27. --values('包装','',0,1,'','ConsultingNeeds','8000',GETDATE())
  28. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  29. --[F_CreateBy],[F_CreateOn])
  30. --values('真伪','',0,1,'','ConsultingNeeds','8000',GETDATE())
  31. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  32. --[F_CreateBy],[F_CreateOn])
  33. --values('公司情况','',0,1,'','ConsultingNeeds','8000',GETDATE())
  34. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  35. --[F_CreateBy],[F_CreateOn])
  36. --values('化工产品反馈','',0,1,'','ConsultingNeeds','8000',GETDATE())
  37. ----投诉问题类别
  38. --select * from A_Level1
  39. --select * from A_Level2
  40. --select * from A_Level3
  41. --insert into T_Wo_QuestionManage([F_QuestionName],[F_QuestionContent],[F_ParentId],[F_Label],[F_DealMethods],[F_Type],
  42. --[F_CreateBy],[F_CreateOn])
  43. --select F_QuestionName,F_QuestionContent,(select f_id from T_Wo_QuestionManage where T_Wo_QuestionManage.F_QuestionName=A_Level3.F_Parent and f_label=2) F_ParentID,3,F_DealMethods,'Complaint','8000',GETDATE() from A_Level3
  44. --select F_QuestionName,'',(select f_id from T_Wo_QuestionManage where T_Wo_QuestionManage.F_QuestionName=A_Level2.F_Parent) F_ParentID,1,'','Complaint','8000',GETDATE() from A_Level2
  45. --select F_QuestionName,'',0,1,'','Complaint','8000',GETDATE() from A_Level1
  46. --drop table A_Level1
  47. --drop table A_Level2
  48. --drop table A_Level3
  49. --update T_Wo_QuestionManage set f_label=2 where f_parentid>0