| | |
| | | update_time, |
| | | parent_id, |
| | | update_user_id, |
| | | (select user_name from automessage_sys_user where user_id=automessage_organization_chart.update_user_id)updateUserName, |
| | | (select user_name from automessage_sys_user where user_id=automessage_organization_chart.update_user_id) as updateUserName, |
| | | (select organization_name from automessage_organization_chart as oc where oc.id=automessage_organization_chart.parent_id) as parentName, |
| | | city, |
| | | district, |
| | |
| | | (select name from area_code_2022 where village=area_code_2022.code) as villageName, |
| | | detailed_address, |
| | | grade, |
| | | resume,contact_number,area_list |
| | | area_list |
| | | FROM |
| | | automessage_organization_chart |
| | | </sql> |
| | |
| | | or resume like concat('%', #{keyWord}, '%') or #{keyWord} like concat('%', resume, '%') |
| | | </select> |
| | | |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.OrganizationChartEntity"> |
| | | insert into automessage_organization_chart ( |
| | | <if test="id != null">id,</if> |
| | |
| | | <if test="detailedAddress != null and detailedAddress != '' ">detailed_address,</if> |
| | | <if test="grade != null and grade != '' ">grade,</if> |
| | | <if test="areaList != null and areaList != '' ">area_list,</if> |
| | | <if test="contactNumber != null and contactNumber != '' ">contact_number,</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">departmental_application,</if> |
| | | <if test="updateUserId != null and updateUserId != '' ">update_user_id,</if> |
| | | <if test="resume != null and resume != '' ">resume,</if> |
| | | update_time, |
| | | create_time |
| | | )values( |
| | |
| | | <if test="detailedAddress != null and detailedAddress != '' ">#{detailedAddress},</if> |
| | | <if test="grade != null and grade != '' ">#{grade},</if> |
| | | <if test="areaList != null and areaList != '' ">#{areaList},</if> |
| | | <if test="contactNumber != null and contactNumber != '' ">#{contactNumber},</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">#{departmentalApplication},</if> |
| | | <if test="updateUserId != null and updateUserId != '' ">#{updateUserId},</if> |
| | | <if test="resume != null and resume != '' ">#{resume},</if> |
| | | sysdate(), |
| | | sysdate() |
| | | ) |
| | |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">departmental_application=#{departmentalApplication},</if> |
| | | <if test="updateUserId != null">update_user_id=#{updateUserId},</if> |
| | | <if test="areaList != null and areaList != '' ">area_list=#{areaList},</if> |
| | | <if test="contactNumber != null and contactNumber != '' ">contact_number=#{contactNumber},</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">departmental_application=#{departmentalApplication},</if> |
| | | <if test="updateUserId != null and updateUserId != '' ">update_user_id=#{updateUserId},</if> |
| | | <if test="resume != null and resume != '' ">resume=#{resume},</if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id= #{id} |