<update id="update" parameterType="com.foresealife.newglschannel.grp.domain.TgrpAgentBaseDomain">
UPDATE t_grp_agt_base_tmp SET
<if test="grpAgtName!=null">
GRP_AGT_NAME = #{grpAgtName} ,
</if>
<if test="grpAgtName==null">
GRP_AGT_NAME = null ,
</if>
<if test="organId!=null">
ORGAN_ID = #{organId} ,
</if>
<if test="organId==null">
ORGAN_ID = null ,
</if>
<if test="birthDate!=null">
BIRTH_DATE = to_date(to_char(#{birthDate},'yyyy-MM-dd'),'yyyy-MM-dd') ,
</if>
<if test="birthDate==null">
BIRTH_DATE = null ,
</if>
<if test="sexCode!=null">
SEX_CODE = #{sexCode} ,
</if>
<if test="sexCode==null">
SEX_CODE = null ,
</if>
<if test="marriageCode!=null">
MARRIAGE_CODE = #{marriageCode} ,
</if>
<if test="marriageCode==null">
MARRIAGE_CODE = null ,
</if>
<if test="nationCode!=null">
NATION_CODE = #{nationCode} ,
</if>
<if test="nationCode==null">
NATION_CODE = null ,
</if>
<if test="partyCode!=null">
PARTY_CODE = #{partyCode} ,
</if>
<if test="partyCode==null">
PARTY_CODE = null,
</if>
<if test="nativeplace!=null">
NATIVEPLACE = #{nativeplace} ,
</if>
<if test="nativeplace==null">
NATIVEPLACE = null,
</if>
<if test="hukou!=null">
HUKOU = #{hukou} ,
</if>
<if test="hukou==null">
HUKOU = null ,
</if>
<if test="email!=null">
EMAIL = #{email} ,
</if>
<if test="email==null">
EMAIL = null,
</if>
<if test="contactAddress!=null">
CONTACT_ADDRESS = #{contactAddress} ,
</if>
<if test="contactAddress==null">
CONTACT_ADDRESS = null,
</if>
<if test="postcode!=null">
POSTCODE = #{postcode} ,
</if>
<if test="postcode==null">
POSTCODE = null ,
</if>
<if test="educationCode!=null">
EDUCATION_CODE = #{educationCode} ,
</if>
<if test="educationCode==null">
EDUCATION_CODE =null,
</if>
<if test="school!=null">
SCHOOL = #{school} ,
</if>
<if test="school==null">
SCHOOL =null ,
</if>
<if test="specialty!=null">
SPECIALTY = #{specialty} ,
</if>
<if test="specialty==null">
SPECIALTY = null ,
</if>
<if test="workDate!=null">
WORK_DATE = #{workDate} ,
</if>
<if test="workDate==null">
WORK_DATE = null ,
</if>
<if test="startWorkDate!=null">
start_work_date = #{startWorkDate} ,
</if>
<if test="startWorkDate==null">
start_work_date = null ,
</if>
<if test="lastCompany!=null">
LAST_COMPANY = #{lastCompany} ,
</if>
<if test="lastCompany==null">
LAST_COMPANY =null ,
</if>
<if test="lastPosition!=null">
LAST_POSITION = #{lastPosition} ,
</if>
<if test="lastPosition==null">
LAST_POSITION = null ,
</if>
<if test="insWorkYear!=null">
INS_WORK_YEAR = #{insWorkYear} ,
</if>
<if test="insWorkYear==null">
INS_WORK_YEAR = null,
</if>
<if test="grpWorkYear!=null">
GRP_WORK_YEAR = #{grpWorkYear} ,
</if>
<if test="grpWorkYear==null">
GRP_WORK_YEAR = null ,
</if>
<if test="isSecondEntry!=null">
IS_SECOND_ENTRY = #{isSecondEntry} ,
</if>
<if test="isSecondEntry==null">
IS_SECOND_ENTRY = null,
</if>
<if test="hireDate!=null">
HIRE_DATE = #{hireDate} ,
</if>
<if test="hireDate==null">
HIRE_DATE =null ,
</if>
<if test="signDate!=null">
SIGN_DATE = #{signDate} ,
</if>
<if test="signDate==null">
SIGN_DATE = null ,
</if>
<if test="conExpire!=null">
CON_EXPIRE = #{conExpire} ,
</if>
<if test="conExpire==null">
CON_EXPIRE = null ,
</if>
<if test="nationalityCode!=null">
NATIONALITY_CODE = #{nationalityCode} ,
</if>
<if test="nationalityCode==null">
NATIONALITY_CODE = null,
</if>
<if test="cmsBankCode!=null">
CMS_BANK_CODE = #{cmsBankCode} ,
</if>
<if test="cmsBankCode==null">
CMS_BANK_CODE = null,
</if>
<if test="accountNo!=null">
ACCOUNT_NO = #{accountNo} ,
</if>
<if test="accountNo==null">
ACCOUNT_NO = null ,
</if>
<if test="emRelTypeCode!=null">
EM_REL_TYPE_CODE = #{emRelTypeCode} ,
</if>
<if test="emRelTypeCode==null">
EM_REL_TYPE_CODE = null ,
</if>
<if test="emAgtName!=null">
EM_AGT_NAME = #{emAgtName} ,
</if>
<if test="emAgtName==null">
EM_AGT_NAME =null,
</if>
<if test="emTel!=null">
EM_TEL = #{emTel} ,
</if>
<if test="emTel==null">
EM_TEL = null ,
</if>
<if test="certNo!=null">
CERT_NO = #{certNo} ,
</if>
<if test="certNo==null">
CERT_NO = null ,
</if>
<if test="startDate!=null">
START_DATE = #{startDate} ,
</if>
<if test="startDate==null">
START_DATE = null,
</if>
<if test="endDate!=null">
END_DATE = #{endDate}+1-1/ (24 * 3600) ,
</if>
<if test="agentGrade!=null">
AGENT_GRADE = #{agentGrade} ,
</if>
<if test="agentGrade==null">
AGENT_GRADE = null ,
</if>
<if test="channelType!=null">
CHANNEL_TYPE = #{channelType} ,
</if>
<if test="channelType==null">
CHANNEL_TYPE = null,
</if>
<if test="phoneNo!=null">
PHONE_NO = #{phoneNo} ,
</if>
<if test="phoneNo==null">
PHONE_NO = null ,
</if>
<if test="grpOrgCode!=null">
GRP_ORG_CODE = #{grpOrgCode} ,
</if>
<if test="grpOrgCode==null">
GRP_ORG_CODE = null ,
</if>
id_type_code=#{idTypeCode} ,
id_no = #{idNo}
WHERE id_type_code=#{idTypeCode}
and id_no = #{idNo}
</update>在agent_status=‘2’时,end_time_date置为当前系统时间
最新发布