Category.sql.xml 971 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <das-client>
  3. <Sqls>
  4. <!--<Sql name='getCategoryList'>
  5. <![CDATA[
  6. select m.*, ISNULL (n.CategoryId) as isSubscrive from Org_Category m left JOIN
  7. User_Subscrive n on m.CategoryId=n.CategoryId and 1=1 @UserId where 1=1 and CategoryState!=2 @Condition
  8. ]]>
  9. </Sql>-->
  10. <Sql name='getCategoryList'>
  11. <![CDATA[
  12. select m.* from Org_Category m where 1=1 and CategoryState!=2 @Condition
  13. ]]>
  14. </Sql>
  15. <Sql name='addCategory'>
  16. <![CDATA[
  17. INSERT INTO Org_Category
  18. (
  19. CategoryId,
  20. CategoryName,
  21. CategoryLevel,
  22. SecondLevelId,
  23. FirstLevelId,
  24. OrgName,
  25. OrgId,
  26. CategoryState,
  27. InsertTime,
  28. UpdateTime,
  29. OperatorName,
  30. OperatorId
  31. )
  32. VALUES(?,?,?,?,?,?,?,?,?,?,?,?)
  33. ]]>
  34. </Sql>
  35. <Sql name='updateCategory'>
  36. <![CDATA[
  37. update Org_Category set @behaviorParam where 1=1 @Condition
  38. ]]>
  39. </Sql>
  40. </Sqls>
  41. </das-client>