Category.sql.xml 828 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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='addCategory'>
  11. <![CDATA[
  12. INSERT INTO Org_Category
  13. (
  14. CategoryId,
  15. CategoryName,
  16. CategoryLevel,
  17. SecondLevelId,
  18. FirstLevelId,
  19. OrgName,
  20. OrgId,
  21. CategoryState,
  22. InsertTime,
  23. UpdateTime,
  24. OperatorName,
  25. OperatorId
  26. )
  27. VALUES(?,?,?,?,?,?,?,?,?,?,?,?)
  28. ]]>
  29. </Sql>
  30. <Sql name='updateCategory'>
  31. <![CDATA[
  32. update Org_Category set @behaviorParam where 1=1 @Condition
  33. ]]>
  34. </Sql>
  35. </Sqls>
  36. </das-client>