LeaderworkCQuery.xml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.ghsc.partybuild.mapper.LeaderworkCQuery">
  4. <select id="selectLeaderTeamList" resultType="com.ghsc.partybuild.vo.LeaderTeamVo">
  5. select ldt.leaderTeamId, ldt.name, ldt.no, ldt.leaderTeamType, ldt.sex, ldt.birthDate, ldt.nativePlace,
  6. ldt.politicsStatus, ldt.departmentName, ldt.position, ldt.positionLevel, ldt.nowPositionDate,
  7. ldt.samePositionDate,ldt.joinDate, ldt.workDate, ldt.educationType, ldt.qualificationType, ldt.professionalType,
  8. ldt.undergraduateProfessional, ldt.masterProfessional, ldt.remark, ldt.createTime, ldt.createUserId,
  9. ldt.updateTime, ldt.updateUserId, ldt.party ,ldt.jobTitle,ldt.birthplace,ldt.engageDate,
  10. ldt.graduationSchoolMajor,ldt.inJobEducationType,ldt.inJobQualificationType, ldt.inJobGraduationSchoolMajor,ldt.workExperience
  11. from lw_leaderteam ldt
  12. where 1=1
  13. <if test="leaderTeamType != null">
  14. and ldt.leaderTeamType = #{leaderTeamType}
  15. </if>
  16. <if test="id != null and id != ''">
  17. and ldt.leaderTeamId = #{id}
  18. </if>
  19. <if test="departmentName != null and departmentName != ''">
  20. and ldt.departmentName like concat('%',#{departmentName},'%')
  21. </if>
  22. <if test="name != null and name != ''">
  23. and ldt.name like concat('%',#{name},'%')
  24. </if>
  25. <if test="position != null and position != ''">
  26. and ldt.position like concat('%',#{position},'%')
  27. </if>
  28. <if test="sex != null and sex != ''">
  29. and ldt.sex = #{sex}
  30. </if>
  31. <if test="party != null and party != ''">
  32. and ldt.party = #{party}
  33. </if>
  34. <if test="joinStartDate != null">
  35. and ldt.joinDate <![CDATA[ >= ]]> #{joinStartDate}
  36. </if>
  37. <if test="joinEndDate != null">
  38. and ldt.joinDate <![CDATA[ < ]]> date_add(#{joinEndDate}, interval 1 day)
  39. </if>
  40. <if test="birthStartDate != null">
  41. and ldt.birthDate <![CDATA[ >= ]]> #{birthStartDate}
  42. </if>
  43. <if test="birthEndDate != null">
  44. and ldt.birthDate <![CDATA[ < ]]> date_add(#{birthEndDate}, interval 1 day)
  45. </if>
  46. order by ldt.createTime desc
  47. </select>
  48. <select id="selectLeaderAssessmentList" resultType="com.ghsc.partybuild.vo.LeaderAssessmentVo">
  49. select lda.leaderAssessmentID, lda.departmentName, lda.name, lda.no,
  50. lda.position,lda.assessmentResult,lda.year,lda.createTime, lda.createUserId, lda.updateTime, lda.updateUserId
  51. from lw_leaderassessment lda
  52. where 1=1
  53. <if test="id != null and id != ''">
  54. and lda.leaderAssessmentID = #{id}
  55. </if>
  56. <if test="departmentName != null and departmentName != ''">
  57. and lda.departmentName like concat('%',#{departmentName},'%')
  58. </if>
  59. <if test="userName != null and userName != ''">
  60. and lda.name like concat('%',#{userName},'%')
  61. </if>
  62. <if test="position != null and position != ''">
  63. and lda.position like concat('%',#{position},'%')
  64. </if>
  65. <if test="assessmentResult != null and assessmentResult != ''">
  66. and lda.assessmentResult like concat('%',#{assessmentResult},'%')
  67. </if>
  68. <if test="year != null">
  69. and lda.year = #{year}
  70. </if>
  71. order by lda.year desc,lda.departmentName,lda.name
  72. </select>
  73. </mapper>