WorkflowConditionSwitchMapper.xml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.platform.dao.mapper.workflow.WorkflowConditionSwitchMapper">
  4. <sql id="Base_Column_List">
  5. conditionSwitch
  6. .
  7. id
  8. ,
  9. conditionSwitch.created_user_id,
  10. conditionSwitch.update_user_id,
  11. conditionSwitch.created_time,
  12. conditionSwitch.update_time,
  13. conditionSwitch.created_user_name,
  14. conditionSwitch.update_user_name,
  15. conditionSwitch.flow_id,
  16. conditionSwitch.node_level,
  17. conditionSwitch.node_sort,
  18. conditionSwitch.switch_type,
  19. conditionSwitch.class_name,
  20. conditionSwitch.method_name
  21. </sql>
  22. <sql id="Ref_Column_List">
  23. conditionSwitch
  24. .
  25. flow_id
  26. ,
  27. conditionSwitch.node_level,
  28. conditionSwitch.node_sort,
  29. conditionSwitch.switch_type,
  30. conditionSwitch.class_name,
  31. conditionSwitch.method_name
  32. </sql>
  33. <sql id="List_Condition">
  34. <if test="id != null and id != ''">
  35. and conditionSwitch.id = #{id}
  36. </if>
  37. <if test="createdUserId != null and createdUserId != ''">
  38. and conditionSwitch.created_user_id = #{createdUserId}
  39. </if>
  40. <if test="updateUserId != null and updateUserId != ''">
  41. and conditionSwitch.update_user_id = #{updateUserId}
  42. </if>
  43. <if test="createdTimeStart != null">
  44. and conditionSwitch.created_time <![CDATA[>=]]>; #{createdTimeStart}
  45. </if>
  46. <if test="createdTimeEnd != null">
  47. and conditionSwitch.created_time <![CDATA[<=]]> #{createdTimeEnd}
  48. </if>
  49. <if test="createdTime != null">
  50. and conditionSwitch.created_time = #{createdTime}
  51. </if>
  52. <if test="updateTimeStart != null">
  53. and conditionSwitch.update_time <![CDATA[>=]]>; #{updateTimeStart}
  54. </if>
  55. <if test="updateTimeEnd != null">
  56. and conditionSwitch.update_time <![CDATA[<=]]> #{updateTimeEnd}
  57. </if>
  58. <if test="updateTime != null">
  59. and conditionSwitch.update_time = #{updateTime}
  60. </if>
  61. <if test="createdUserName != null and createdUserName != ''">
  62. and conditionSwitch.created_user_name = #{createdUserName}
  63. </if>
  64. <if test="updateUserName != null and updateUserName != ''">
  65. and conditionSwitch.update_user_name = #{updateUserName}
  66. </if>
  67. <if test="flowId != null and flowId != ''">
  68. and conditionSwitch.flow_id = #{flowId}
  69. </if>
  70. <if test="nodeLevel != null">
  71. and conditionSwitch.node_level = #{nodeLevel}
  72. </if>
  73. <if test="nodeSort != null">
  74. and conditionSwitch.node_sort = #{nodeSort}
  75. </if>
  76. <if test="switchType != null and switchType != ''">
  77. and conditionSwitch.switch_type = #{switchType}
  78. </if>
  79. <if test="className != null and className != ''">
  80. and conditionSwitch.class_name = #{className}
  81. </if>
  82. <if test="methodName != null and methodName != ''">
  83. and conditionSwitch.method_name = #{methodName}
  84. </if>
  85. <if test="keyword != null and keyword != ''">
  86. and conditionSwitch.id like concat(concat('%',#{keyword}),'%')
  87. </if>
  88. </sql>
  89. <select id="selectList" parameterType="com.platform.dao.dto.workflow.WorkflowConditionSwitchDTO"
  90. resultType="com.platform.dao.vo.query.workflow.WorkflowConditionSwitchVO">
  91. select conditionSwitch.*
  92. from t_workflow_condition_switch as conditionSwitch
  93. <where>
  94. <include refid="List_Condition"/>
  95. </where>
  96. </select>
  97. </mapper>