WmScorePackageMapper.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, hnqz All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: hnqz
  18. ~
  19. -->
  20. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  21. <mapper namespace="com.qunzhixinxi.hnqz.daemon.quartz.mapper.WmScorePackageMapper">
  22. <resultMap id="wmScorePackageMap" type="com.qunzhixinxi.hnqz.daemon.quartz.entity.WmScorePackage">
  23. <id property="id" column="id"/>
  24. <result property="taskRuleId" column="task_rule_id"/>
  25. <result property="drugEntId" column="drug_ent_id"/>
  26. <result property="scoreId" column="score_id"/>
  27. <result property="scoreName" column="score_name"/>
  28. <result property="score" column="score"/>
  29. <result property="agentTypeId" column="agent_type_id"/>
  30. <result property="level1Id" column="level1_id"/>
  31. <result property="level2Id" column="level2_id"/>
  32. <result property="zbId" column="zb_id"/>
  33. <result property="xxdbId" column="xxdb_id"/>
  34. <result property="typeid" column="typeid"/>
  35. <result property="packageStatus" column="package_status"/>
  36. <result property="packageFinishStatus" column="package_finish_status"/>
  37. <result property="sendPackageDeptId" column="send_package_dept_id"/>
  38. <result property="deptId" column="dept_id"/>
  39. <result property="delFlag" column="del_flag"/>
  40. <result property="enableFlag" column="enable_flag"/>
  41. <result property="tenantId" column="tenant_id"/>
  42. <result property="createTime" column="create_time"/>
  43. <result property="createUser" column="create_user"/>
  44. <result property="updateTime" column="update_time"/>
  45. <result property="updateUser" column="update_user"/>
  46. <result property="ytj" column="ytj"/>
  47. <result property="ysh" column="ysh"/>
  48. <result property="dsh" column="dsh"/>
  49. <result property="ytjtt" column="ytjtt"/>
  50. <result property="ywctt" column="ywctt"/>
  51. <result property="yshtt" column="yshtt"/>
  52. </resultMap>
  53. <select id="listPackageInfo" resultType="map">
  54. SELECT sp.id AS `packageId`,
  55. u.user_id AS `userId`,
  56. u.username,
  57. u.realname,
  58. sp.score_package_name AS `packageName`,
  59. CASE sp.score_package_status
  60. WHEN 1 THEN '审核中'
  61. WHEN 2 THEN '审核通过'
  62. WHEN 3 THEN '审核不通过'
  63. WHEN 4 THEN '终止'
  64. END `status`,
  65. sd.name AS `deptName`,
  66. sd.dept_id AS `deptId`,
  67. sp.create_time AS `packageCreateTime`,
  68. sps.create_time AS `packagePickUpTime`
  69. FROM wm_score_package sp
  70. LEFT JOIN wm_score_package_status sps ON sp.id = sps.package_id
  71. LEFT JOIN sys_user u ON sps.user_id = u.user_id
  72. LEFT JOIN sys_dept sd ON sp.send_package_dept_id = sd.dept_id
  73. <where>
  74. sps.status = 2
  75. AND sd.name NOT IN ('上海问云生物科技有限公司', '北京遥领医疗科技有限公司')
  76. AND sp.id IN
  77. <foreach collection="packageIds" index="idx" item="id" separator="," open="(" close=")">
  78. #{id}
  79. </foreach>
  80. </where>
  81. </select>
  82. </mapper>