提交 ba7ba545 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码 [Spring Boot]

上级 b403cc0c
......@@ -915,6 +915,14 @@ public class Hr_employee extends EntityMP implements Serializable {
@JSONField(name = "leave_manager_id")
@JsonProperty("leave_manager_id")
private Long leaveManagerId;
/**
* 手动设置出席
*/
@DEField(name = "manually_set_present")
@TableField(value = "manually_set_present")
@JSONField(name = "manually_set_present")
@JsonProperty("manually_set_present")
private Boolean manuallySetPresent;
/**
*
......@@ -1494,6 +1502,14 @@ public class Hr_employee extends EntityMP implements Serializable {
this.modify("leave_manager_id",leaveManagerId);
}
/**
* 设置 [手动设置出席]
*/
public void setManuallySetPresent(Boolean manuallySetPresent){
this.manuallySetPresent = manuallySetPresent ;
this.modify("manually_set_present",manuallySetPresent);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Hr_employeeResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t51.ACTIVE, t1.ADDITIONAL_NOTE, t1.ADDRESS_HOME_ID, t81.NAME AS ADDRESS_HOME_ID_TEXT, t1.ADDRESS_ID, t171.NAME AS ADDRESS_ID_TEXT, t1.BANK_ACCOUNT_ID, t1.BARCODE, t1.BIRTHDAY, t1.CERTIFICATE, t1.CHILDREN, t1.COACH_ID, t211.NAME AS COACH_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t191.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_ID, t221.NAME AS COUNTRY_ID_TEXT, t1.COUNTRY_OF_BIRTH, t131.NAME AS COUNTRY_OF_BIRTH_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t121.NAME AS DEPARTMENT_ID_TEXT, t1.EMERGENCY_CONTACT, t1.EMERGENCY_PHONE, t1.EXPENSE_MANAGER_ID, t151.NAME AS EXPENSE_MANAGER_ID_TEXT, t1.GENDER, t1.ID, t1.IDENTIFICATION_ID, t1.JOB_ID, t161.NAME AS JOB_ID_TEXT, t1.JOB_TITLE, t1.KM_HOME_WORK, t1.LAST_ATTENDANCE_ID, t1.LEAVE_MANAGER_ID, t1.MARITAL, t1.MEDIC_EXAM, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE_PHONE, t51.NAME, t1.NOTES, t1.PARENT_ID, t21.NAME AS PARENT_ID_TEXT, t1.PASSPORT_ID, t1.PERMIT_NO, t1.PIN, t1.PLACE_OF_BIRTH, t1.RESOURCE_CALENDAR_ID, t91.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t1.SINID, t1.SPOUSE_BIRTHDATE, t1.SPOUSE_COMPLETE_NAME, t1.SSNID, t1.STUDY_FIELD, t1.STUDY_SCHOOL, t51.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VEHICLE, t1.VISA_EXPIRE, t1.VISA_NO, t1.WORK_EMAIL, t1.WORK_LOCATION, t1.WORK_PHONE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM HR_EMPLOYEE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.PARENT_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_RESOURCE t51 ON t1.RESOURCE_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.ADDRESS_HOME_ID = t81.ID LEFT JOIN RESOURCE_CALENDAR t91 ON t1.RESOURCE_CALENDAR_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_DEPARTMENT t121 ON t1.DEPARTMENT_ID = t121.ID LEFT JOIN RES_COUNTRY t131 ON t1.COUNTRY_OF_BIRTH = t131.ID LEFT JOIN RES_USERS t141 ON t1.EXPENSE_MANAGER_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN HR_JOB t161 ON t1.JOB_ID = t161.ID LEFT JOIN RES_PARTNER t171 ON t1.ADDRESS_ID = t171.ID LEFT JOIN RES_COMPANY t181 ON t1.COMPANY_ID = t181.ID LEFT JOIN RES_PARTNER t191 ON t181.PARTNER_ID = t191.ID LEFT JOIN HR_EMPLOYEE t201 ON t1.COACH_ID = t201.ID LEFT JOIN RESOURCE_RESOURCE t211 ON t201.RESOURCE_ID = t211.ID LEFT JOIN RES_COUNTRY t221 ON t1.COUNTRY_ID = t221.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t51.ACTIVE, t1.ADDITIONAL_NOTE, t1.ADDRESS_HOME_ID, t81.NAME AS ADDRESS_HOME_ID_TEXT, t1.ADDRESS_ID, t171.NAME AS ADDRESS_ID_TEXT, t1.BANK_ACCOUNT_ID, t1.BARCODE, t1.BIRTHDAY, t1.CERTIFICATE, t1.CHILDREN, t1.COACH_ID, t211.NAME AS COACH_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t191.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_ID, t221.NAME AS COUNTRY_ID_TEXT, t1.COUNTRY_OF_BIRTH, t131.NAME AS COUNTRY_OF_BIRTH_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t121.NAME AS DEPARTMENT_ID_TEXT, t1.EMERGENCY_CONTACT, t1.EMERGENCY_PHONE, t1.EXPENSE_MANAGER_ID, t151.NAME AS EXPENSE_MANAGER_ID_TEXT, t1.GENDER, t1.ID, t1.IDENTIFICATION_ID, t1.JOB_ID, t161.NAME AS JOB_ID_TEXT, t1.JOB_TITLE, t1.KM_HOME_WORK, t1.LAST_ATTENDANCE_ID, t1.LEAVE_MANAGER_ID, t1.MANUALLY_SET_PRESENT, t1.MARITAL, t1.MEDIC_EXAM, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE_PHONE, t51.NAME, t1.NOTES, t1.PARENT_ID, t21.NAME AS PARENT_ID_TEXT, t1.PASSPORT_ID, t1.PERMIT_NO, t1.PIN, t1.PLACE_OF_BIRTH, t1.RESOURCE_CALENDAR_ID, t91.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t1.SINID, t1.SPOUSE_BIRTHDATE, t1.SPOUSE_COMPLETE_NAME, t1.SSNID, t1.STUDY_FIELD, t1.STUDY_SCHOOL, t51.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VEHICLE, t1.VISA_EXPIRE, t1.VISA_NO, t1.WORK_EMAIL, t1.WORK_LOCATION, t1.WORK_PHONE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM HR_EMPLOYEE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.PARENT_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_RESOURCE t51 ON t1.RESOURCE_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.ADDRESS_HOME_ID = t81.ID LEFT JOIN RESOURCE_CALENDAR t91 ON t1.RESOURCE_CALENDAR_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_DEPARTMENT t121 ON t1.DEPARTMENT_ID = t121.ID LEFT JOIN RES_COUNTRY t131 ON t1.COUNTRY_OF_BIRTH = t131.ID LEFT JOIN RES_USERS t141 ON t1.EXPENSE_MANAGER_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN HR_JOB t161 ON t1.JOB_ID = t161.ID LEFT JOIN RES_PARTNER t171 ON t1.ADDRESS_ID = t171.ID LEFT JOIN RES_COMPANY t181 ON t1.COMPANY_ID = t181.ID LEFT JOIN RES_PARTNER t191 ON t181.PARTNER_ID = t191.ID LEFT JOIN HR_EMPLOYEE t201 ON t1.COACH_ID = t201.ID LEFT JOIN RESOURCE_RESOURCE t211 ON t201.RESOURCE_ID = t211.ID LEFT JOIN RES_COUNTRY t221 ON t1.COUNTRY_ID = t221.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -111,6 +111,7 @@
<result property="countryOfBirth" column="country_of_birth" />
<result property="resourceCalendarId" column="resource_calendar_id" />
<result property="leaveManagerId" column="leave_manager_id" />
<result property="manuallySetPresent" column="manually_set_present" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
......@@ -289,12 +290,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t51.ACTIVE, t1.ADDRESS_HOME_ID, t81.NAME AS ADDRESS_HOME_ID_TEXT, t1.ADDRESS_ID, t171.NAME AS ADDRESS_ID_TEXT, t1.BANK_ACCOUNT_ID, t1.BARCODE, t1.BIRTHDAY, t1.CERTIFICATE, t1.CHILDREN, t1.COACH_ID, t211.NAME AS COACH_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t191.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_ID, t221.NAME AS COUNTRY_ID_TEXT, t1.COUNTRY_OF_BIRTH, t131.NAME AS COUNTRY_OF_BIRTH_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t121.NAME AS DEPARTMENT_ID_TEXT, t1.EMERGENCY_CONTACT, t1.EMERGENCY_PHONE, t1.EXPENSE_MANAGER_ID, t151.NAME AS EXPENSE_MANAGER_ID_TEXT, t1.GENDER, t1.ID, t1.IDENTIFICATION_ID, t1.JOB_ID, t161.NAME AS JOB_ID_TEXT, t1.JOB_TITLE, t1.KM_HOME_WORK, t1.LAST_ATTENDANCE_ID, t1.LEAVE_MANAGER_ID, t1.MARITAL, t1.MEDIC_EXAM, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE_PHONE, t51.NAME, t1.PARENT_ID, t21.NAME AS PARENT_ID_TEXT, t1.PASSPORT_ID, t1.PERMIT_NO, t1.PIN, t1.PLACE_OF_BIRTH, t1.RESOURCE_CALENDAR_ID, t91.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t1.SINID, t1.SPOUSE_BIRTHDATE, t1.SPOUSE_COMPLETE_NAME, t1.SSNID, t1.STUDY_FIELD, t1.STUDY_SCHOOL, t51.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VEHICLE, t1.VISA_EXPIRE, t1.VISA_NO, t1.WORK_EMAIL, t1.WORK_LOCATION, t1.WORK_PHONE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM HR_EMPLOYEE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.PARENT_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_RESOURCE t51 ON t1.RESOURCE_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.ADDRESS_HOME_ID = t81.ID LEFT JOIN RESOURCE_CALENDAR t91 ON t1.RESOURCE_CALENDAR_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_DEPARTMENT t121 ON t1.DEPARTMENT_ID = t121.ID LEFT JOIN RES_COUNTRY t131 ON t1.COUNTRY_OF_BIRTH = t131.ID LEFT JOIN RES_USERS t141 ON t1.EXPENSE_MANAGER_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN HR_JOB t161 ON t1.JOB_ID = t161.ID LEFT JOIN RES_PARTNER t171 ON t1.ADDRESS_ID = t171.ID LEFT JOIN RES_COMPANY t181 ON t1.COMPANY_ID = t181.ID LEFT JOIN RES_PARTNER t191 ON t181.PARTNER_ID = t191.ID LEFT JOIN HR_EMPLOYEE t201 ON t1.COACH_ID = t201.ID LEFT JOIN RESOURCE_RESOURCE t211 ON t201.RESOURCE_ID = t211.ID LEFT JOIN RES_COUNTRY t221 ON t1.COUNTRY_ID = t221.ID
<![CDATA[ SELECT t51.ACTIVE, t1.ADDRESS_HOME_ID, t81.NAME AS ADDRESS_HOME_ID_TEXT, t1.ADDRESS_ID, t171.NAME AS ADDRESS_ID_TEXT, t1.BANK_ACCOUNT_ID, t1.BARCODE, t1.BIRTHDAY, t1.CERTIFICATE, t1.CHILDREN, t1.COACH_ID, t211.NAME AS COACH_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t191.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_ID, t221.NAME AS COUNTRY_ID_TEXT, t1.COUNTRY_OF_BIRTH, t131.NAME AS COUNTRY_OF_BIRTH_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t121.NAME AS DEPARTMENT_ID_TEXT, t1.EMERGENCY_CONTACT, t1.EMERGENCY_PHONE, t1.EXPENSE_MANAGER_ID, t151.NAME AS EXPENSE_MANAGER_ID_TEXT, t1.GENDER, t1.ID, t1.IDENTIFICATION_ID, t1.JOB_ID, t161.NAME AS JOB_ID_TEXT, t1.JOB_TITLE, t1.KM_HOME_WORK, t1.LAST_ATTENDANCE_ID, t1.LEAVE_MANAGER_ID, t1.MANUALLY_SET_PRESENT, t1.MARITAL, t1.MEDIC_EXAM, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE_PHONE, t51.NAME, t1.PARENT_ID, t21.NAME AS PARENT_ID_TEXT, t1.PASSPORT_ID, t1.PERMIT_NO, t1.PIN, t1.PLACE_OF_BIRTH, t1.RESOURCE_CALENDAR_ID, t91.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t1.SINID, t1.SPOUSE_BIRTHDATE, t1.SPOUSE_COMPLETE_NAME, t1.SSNID, t1.STUDY_FIELD, t1.STUDY_SCHOOL, t51.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VEHICLE, t1.VISA_EXPIRE, t1.VISA_NO, t1.WORK_EMAIL, t1.WORK_LOCATION, t1.WORK_PHONE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM HR_EMPLOYEE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.PARENT_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_RESOURCE t51 ON t1.RESOURCE_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.ADDRESS_HOME_ID = t81.ID LEFT JOIN RESOURCE_CALENDAR t91 ON t1.RESOURCE_CALENDAR_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_DEPARTMENT t121 ON t1.DEPARTMENT_ID = t121.ID LEFT JOIN RES_COUNTRY t131 ON t1.COUNTRY_OF_BIRTH = t131.ID LEFT JOIN RES_USERS t141 ON t1.EXPENSE_MANAGER_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN HR_JOB t161 ON t1.JOB_ID = t161.ID LEFT JOIN RES_PARTNER t171 ON t1.ADDRESS_ID = t171.ID LEFT JOIN RES_COMPANY t181 ON t1.COMPANY_ID = t181.ID LEFT JOIN RES_PARTNER t191 ON t181.PARTNER_ID = t191.ID LEFT JOIN HR_EMPLOYEE t201 ON t1.COACH_ID = t201.ID LEFT JOIN RESOURCE_RESOURCE t211 ON t201.RESOURCE_ID = t211.ID LEFT JOIN RES_COUNTRY t221 ON t1.COUNTRY_ID = t221.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t51.ACTIVE, t1.ADDITIONAL_NOTE, t1.ADDRESS_HOME_ID, t81.NAME AS ADDRESS_HOME_ID_TEXT, t1.ADDRESS_ID, t171.NAME AS ADDRESS_ID_TEXT, t1.BANK_ACCOUNT_ID, t1.BARCODE, t1.BIRTHDAY, t1.CERTIFICATE, t1.CHILDREN, t1.COACH_ID, t211.NAME AS COACH_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t191.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_ID, t221.NAME AS COUNTRY_ID_TEXT, t1.COUNTRY_OF_BIRTH, t131.NAME AS COUNTRY_OF_BIRTH_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t121.NAME AS DEPARTMENT_ID_TEXT, t1.EMERGENCY_CONTACT, t1.EMERGENCY_PHONE, t1.EXPENSE_MANAGER_ID, t151.NAME AS EXPENSE_MANAGER_ID_TEXT, t1.GENDER, t1.ID, t1.IDENTIFICATION_ID, t1.JOB_ID, t161.NAME AS JOB_ID_TEXT, t1.JOB_TITLE, t1.KM_HOME_WORK, t1.LAST_ATTENDANCE_ID, t1.LEAVE_MANAGER_ID, t1.MARITAL, t1.MEDIC_EXAM, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE_PHONE, t51.NAME, t1.NOTES, t1.PARENT_ID, t21.NAME AS PARENT_ID_TEXT, t1.PASSPORT_ID, t1.PERMIT_NO, t1.PIN, t1.PLACE_OF_BIRTH, t1.RESOURCE_CALENDAR_ID, t91.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t1.SINID, t1.SPOUSE_BIRTHDATE, t1.SPOUSE_COMPLETE_NAME, t1.SSNID, t1.STUDY_FIELD, t1.STUDY_SCHOOL, t51.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VEHICLE, t1.VISA_EXPIRE, t1.VISA_NO, t1.WORK_EMAIL, t1.WORK_LOCATION, t1.WORK_PHONE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM HR_EMPLOYEE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.PARENT_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_RESOURCE t51 ON t1.RESOURCE_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.ADDRESS_HOME_ID = t81.ID LEFT JOIN RESOURCE_CALENDAR t91 ON t1.RESOURCE_CALENDAR_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_DEPARTMENT t121 ON t1.DEPARTMENT_ID = t121.ID LEFT JOIN RES_COUNTRY t131 ON t1.COUNTRY_OF_BIRTH = t131.ID LEFT JOIN RES_USERS t141 ON t1.EXPENSE_MANAGER_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN HR_JOB t161 ON t1.JOB_ID = t161.ID LEFT JOIN RES_PARTNER t171 ON t1.ADDRESS_ID = t171.ID LEFT JOIN RES_COMPANY t181 ON t1.COMPANY_ID = t181.ID LEFT JOIN RES_PARTNER t191 ON t181.PARTNER_ID = t191.ID LEFT JOIN HR_EMPLOYEE t201 ON t1.COACH_ID = t201.ID LEFT JOIN RESOURCE_RESOURCE t211 ON t201.RESOURCE_ID = t211.ID LEFT JOIN RES_COUNTRY t221 ON t1.COUNTRY_ID = t221.ID
<![CDATA[ SELECT t51.ACTIVE, t1.ADDITIONAL_NOTE, t1.ADDRESS_HOME_ID, t81.NAME AS ADDRESS_HOME_ID_TEXT, t1.ADDRESS_ID, t171.NAME AS ADDRESS_ID_TEXT, t1.BANK_ACCOUNT_ID, t1.BARCODE, t1.BIRTHDAY, t1.CERTIFICATE, t1.CHILDREN, t1.COACH_ID, t211.NAME AS COACH_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t191.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_ID, t221.NAME AS COUNTRY_ID_TEXT, t1.COUNTRY_OF_BIRTH, t131.NAME AS COUNTRY_OF_BIRTH_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t121.NAME AS DEPARTMENT_ID_TEXT, t1.EMERGENCY_CONTACT, t1.EMERGENCY_PHONE, t1.EXPENSE_MANAGER_ID, t151.NAME AS EXPENSE_MANAGER_ID_TEXT, t1.GENDER, t1.ID, t1.IDENTIFICATION_ID, t1.JOB_ID, t161.NAME AS JOB_ID_TEXT, t1.JOB_TITLE, t1.KM_HOME_WORK, t1.LAST_ATTENDANCE_ID, t1.LEAVE_MANAGER_ID, t1.MANUALLY_SET_PRESENT, t1.MARITAL, t1.MEDIC_EXAM, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE_PHONE, t51.NAME, t1.NOTES, t1.PARENT_ID, t21.NAME AS PARENT_ID_TEXT, t1.PASSPORT_ID, t1.PERMIT_NO, t1.PIN, t1.PLACE_OF_BIRTH, t1.RESOURCE_CALENDAR_ID, t91.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t1.SINID, t1.SPOUSE_BIRTHDATE, t1.SPOUSE_COMPLETE_NAME, t1.SSNID, t1.STUDY_FIELD, t1.STUDY_SCHOOL, t51.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VEHICLE, t1.VISA_EXPIRE, t1.VISA_NO, t1.WORK_EMAIL, t1.WORK_LOCATION, t1.WORK_PHONE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM HR_EMPLOYEE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.PARENT_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_RESOURCE t51 ON t1.RESOURCE_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.ADDRESS_HOME_ID = t81.ID LEFT JOIN RESOURCE_CALENDAR t91 ON t1.RESOURCE_CALENDAR_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_DEPARTMENT t121 ON t1.DEPARTMENT_ID = t121.ID LEFT JOIN RES_COUNTRY t131 ON t1.COUNTRY_OF_BIRTH = t131.ID LEFT JOIN RES_USERS t141 ON t1.EXPENSE_MANAGER_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN HR_JOB t161 ON t1.JOB_ID = t161.ID LEFT JOIN RES_PARTNER t171 ON t1.ADDRESS_ID = t171.ID LEFT JOIN RES_COMPANY t181 ON t1.COMPANY_ID = t181.ID LEFT JOIN RES_PARTNER t191 ON t181.PARTNER_ID = t191.ID LEFT JOIN HR_EMPLOYEE t201 ON t1.COACH_ID = t201.ID LEFT JOIN RESOURCE_RESOURCE t211 ON t201.RESOURCE_ID = t211.ID LEFT JOIN RES_COUNTRY t221 ON t1.COUNTRY_ID = t221.ID
]]>
</sql>
......
......@@ -66057,6 +66057,20 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"MANUALLY_SET_PRESENT" ,
"codename":"Manually_set_present",
"field_logic_name":"手动设置出席",
"entity_name":"Hr_employee",
"field_type":"TRUEFALSE",
"dict":"Odoo_truefalse",
"nullable":1,
"physical_field":1,
"data_type":"BIT",
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......@@ -1054,6 +1054,14 @@ public class Hr_employeeDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long leaveManagerId;
/**
* 属性 [MANUALLY_SET_PRESENT]
*
*/
@JSONField(name = "manually_set_present")
@JsonProperty("manually_set_present")
private Boolean manuallySetPresent;
/**
* 设置 [MOBILE_PHONE]
......@@ -1447,6 +1455,14 @@ public class Hr_employeeDTO extends DTOBase implements Serializable {
this.modify("leave_manager_id",leaveManagerId);
}
/**
* 设置 [MANUALLY_SET_PRESENT]
*/
public void setManuallySetPresent(Boolean manuallySetPresent){
this.manuallySetPresent = manuallySetPresent ;
this.modify("manually_set_present",manuallySetPresent);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册