赫艾后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.6 KiB

2 years ago
1 year ago
1 year ago
1 year ago
  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.heai.modules.taskmanage.dao.TaskListDao">
  4. <!-- 可根据自己的需求,是否要使用 -->
  5. <resultMap type="com.heai.modules.taskmanage.entity.TaskListEntity" id="taskListMap">
  6. <result property="id" column="id"/>
  7. <result property="project" column="project"/>
  8. <result property="customer" column="customer"/>
  9. <result property="taskInitiator" column="task_initiator"/>
  10. <result property="taskDescription" column="task_description"/>
  11. <result property="department" column="department"/>
  12. <result property="requiredCompletionDate" column="required_completion_date"/>
  13. <result property="status" column="status"/>
  14. <result property="finalStatus" column="final_status"/>
  15. <result property="taskStartDate" column="task_start_date"/>
  16. <result property="createdDate" column="created_date"/>
  17. <result property="createdBy" column="created_by"/>
  18. <result property="updatedDate" column="updated_date"/>
  19. <result property="updatedBy" column="updated_by"/>
  20. </resultMap>
  21. <select id="queryList" resultType="com.heai.modules.taskmanage.entity.TaskListEntity">
  22. select
  23. id
  24. ,project
  25. ,customer
  26. ,task_initiator
  27. ,task_description
  28. ,department
  29. ,required_completion_date
  30. ,status
  31. ,final_status
  32. ,task_start_date
  33. ,created_date
  34. ,created_by
  35. ,updated_date
  36. ,updated_by
  37. ,task_header
  38. ,responsible_person,AllowCloseByHand,OrderRef1,OrderRef2,
  39. OrderRef3,OrderRefType,OrderRef4,taskType,oldSpec,newSpec
  40. from task_list
  41. <where>
  42. site = #{site}
  43. <if test="department != null and department != ''">
  44. and department like #{department}
  45. </if>
  46. <if test="customer != null and customer != ''">
  47. and customer like #{customer}
  48. </if>
  49. <if test="status != null and status != ''">
  50. and status = #{status}
  51. </if>
  52. <if test="project != null and project != ''">
  53. and project = #{project}
  54. </if>
  55. <if test="responsiblePerson != null and responsiblePerson != ''">
  56. and responsible_person like #{responsiblePerson}
  57. </if>
  58. <if test="startDate !=null ">
  59. and task_start_date <![CDATA[ >= ]]> #{startDate}
  60. </if>
  61. <if test="endDate !=null ">
  62. and task_start_date <![CDATA[ <= ]]> #{endDate}
  63. </if>
  64. <if test="taskType != null and taskType != ''">
  65. and taskType like #{taskType}
  66. </if>
  67. <if test="oldSpec != null and oldSpec != ''">
  68. and oldSpec like #{oldSpec}
  69. </if>
  70. <if test="newSpec != null and newSpec != ''">
  71. and newSpec like #{newSpec}
  72. </if>
  73. <if test="finishStartDate != null ">
  74. and required_completion_date <![CDATA[ >= ]]> #{finishStartDate}
  75. </if>
  76. <if test="finishEndDate != null ">
  77. and required_completion_date <![CDATA[ <= ]]>#{finishEndDate}
  78. </if>
  79. </where>
  80. order by active_date,created_date
  81. </select>
  82. <select id="getTaskTypeList" resultType="TaskTypeList">
  83. select id,taskType,[order] from taskTypeList order by [order]
  84. </select>
  85. </mapper>