WmTaskMapper.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.WmTaskMapper">
  22. <resultMap id="wmTaskMap" type="com.qunzhixinxi.hnqz.daemon.quartz.entity.WmTask">
  23. <id property="id" column="id"/>
  24. <result property="taskRuleId" column="task_rule_id"/>
  25. <result property="score" column="score"/>
  26. <result property="scorePackageDrugId" column="score_package_drug_id"/>
  27. <result property="scorePackageLevel1Id" column="score_package_level1_id"/>
  28. <result property="scorePackageId" column="score_package_id"/>
  29. <result property="taskTypeId" column="task_type_id"/>
  30. <result property="lookintoDate" column="lookinto_date"/>
  31. <result property="province" column="province"/>
  32. <result property="city" column="city"/>
  33. <result property="area" column="area"/>
  34. <result property="address" column="address"/>
  35. <result property="lookintoTypeId" column="lookinto_type_id"/>
  36. <result property="taskContentId" column="task_content_id"/>
  37. <result property="taskStatus" column="task_status"/>
  38. <result property="taskUserId" column="task_user_id"/>
  39. <result property="taskUserType" column="task_user_type"/>
  40. <result property="drugEntId" column="drug_ent_id"/>
  41. <result property="deptId" column="dept_id"/>
  42. <result property="delFlag" column="del_flag"/>
  43. <result property="enableFlag" column="enable_flag"/>
  44. <result property="tenantId" column="tenant_id"/>
  45. <result property="createTime" column="create_time"/>
  46. <result property="createUser" column="create_user"/>
  47. <result property="updateTime" column="update_time"/>
  48. <result property="updateUser" column="update_user"/>
  49. <result property="submitStatus" column="submit_status"/>
  50. <result property="shareImgUrl" column="share_img_url"/>
  51. <result property="platAuditStatus" column="plat_audit_status"/>
  52. <result property="taskInfoImg" column="task_info_img"/>
  53. </resultMap>
  54. <select id="listUserInfo" resultType="map">
  55. SELECT u.user_id AS `userId`,
  56. u.username,
  57. u.realname,
  58. sd.dept_id AS `deptId`,
  59. sd.name AS `deptName`
  60. FROM sys_user u
  61. LEFT JOIN sys_dept sd ON u.dept_id = sd.dept_id
  62. <where>
  63. sd.name NOT IN ('上海问云生物科技有限公司', '北京遥领医疗科技有限公司')
  64. AND u.user_id IN
  65. <foreach collection="userIds" item="id" index="idx" separator="," open="(" close=")">
  66. #{id}
  67. </foreach>
  68. </where>
  69. </select>
  70. </mapper>