QhseContractWorkersDao.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.rongwei.bscommon.system.dao.QhseContractWorkersDao">
  6. <resultMap id="BaseResultMap" type="com.rongwei.bsentity.domain.QhseContractWorkersDo">
  7. <id property="id" column="ID"/>
  8. <result property="tenantid" column="TENANTID"/>
  9. <result property="roption" column="ROPTION"/>
  10. <result property="deleted" column="DELETED"/>
  11. <result property="remark" column="REMARK"/>
  12. <result property="createdate" column="CREATEDATE"/>
  13. <result property="createuserid" column="CREATEUSERID"/>
  14. <result property="modifydate" column="MODIFYDATE"/>
  15. <result property="modifyuserid" column="MODIFYUSERID"/>
  16. <result property="createusername" column="CREATEUSERNAME"/>
  17. <result property="modifyusername" column="MODIFYUSERNAME"/>
  18. <result property="worknumber" column="WORKNUMBER"/>
  19. <result property="workertype" column="WORKERTYPE"/>
  20. <result property="workername" column="WORKERNAME"/>
  21. <result property="identitycard" column="IDENTITYCARD"/>
  22. <result property="identitycardaddress" column="IDENTITYCARDADDRESS"/>
  23. <result property="phonenumber" column="PHONENUMBER"/>
  24. <result property="worktype" column="WORKTYPE"/>
  25. <result property="workstatus" column="WORKSTATUS"/>
  26. <result property="departmentid" column="DEPARTMENTID"/>
  27. <result property="departmentname" column="DEPARTMENTNAME"/>
  28. <result property="contractorid" column="CONTRACTORID"/>
  29. <result property="contractor" column="CONTRACTOR"/>
  30. <result property="relatedaccount" column="RELATEDACCOUNT"/>
  31. </resultMap>
  32. <sql id="Base_Column_List">
  33. ID,TENANTID,ROPTION,DELETED,REMARK,CREATEDATE,
  34. CREATEUSERID,MODIFYDATE,MODIFYUSERID,CREATEUSERNAME,MODIFYUSERNAME,
  35. WORKNUMBER,WORKERTYPE,WORKERNAME,IDENTITYCARD,IDENTITYCARDADDRESS,
  36. PHONENUMBER,WORKTYPE,WORKSTATUS,DEPARTMENTID,DEPARTMENTNAME,
  37. CONTRACTORID,CONTRACTOR,RELATEDACCOUNT
  38. </sql>
  39. <select id="getUninitializedData" resultType="com.rongwei.bsentity.domain.QhseContractWorkersDo">
  40. SELECT
  41. a.*
  42. FROM
  43. qhse_contract_workers a
  44. LEFT JOIN qhse_points_record_user b
  45. ON a.ID = b.HOLDERID
  46. AND b.POINTYEAR = #{year,jdbcType=INTEGER}
  47. <where>
  48. a.DELETED = '0'
  49. AND b.HOLDERID IS NULL;
  50. </where>
  51. </select>
  52. </mapper>