上传的图像用于项目: 'CST技术支持'
  1. CST技术支持
  2. SLAL2-2457

【PRO-中信】UAT-S01 报表中心-自定义报表: "易路编码表"

XMLWord打印

    • Icon: 任务 任务
    • 解决结果: 完成
    • Icon: High High
    • 202105
    • F-FA-中信银行-Y2020075
    • 中信UAT环境, trustlinktest
    • 人力资源等
    • 隐藏
      select case sel_ca.code when 'gender' then '性别/编码' 
      when 'registered_residence_type' then '户籍类型/编码'
      when 'marital_status' then '婚姻状况/编码' 
      when 'card_type' then '证件类型/编码' 
      when 'educational_background' then '学历/编码' 
      when 'academic_degree' then '学位/编码' 
      when 'contact_relationship' then '联系人关系/编码'  
      when 'fertility_status' then '生育状况/编码'  
      when 'email_type' then '邮箱类型/编码'
      when 'certifier_relationship' then '证明人关系/编码'
      
      end as field_name,
      sel.code as code,
      tran_.value as name
      from res_selection sel 
      left join res_selection_category sel_ca on sel.selection_category=sel_ca.id
      left join ir_translation tran_ on tran_.res_id = sel.id and tran_.lang='zh_CN' AND tran_.name = 'res.selection,name'
      where sel_ca.code in ('gender','registered_residence_type','marital_status','card_type','educational_background','academic_degree','contact_relationship','fertility_status','email_type','certifier_relationship')
      
      UNION
      select case when country.id!=0 then '国籍/国家/地区编号' end, country.code, tran_country.value
      from res_country country
      left join ir_translation tran_country on tran_country.res_id = country.id and tran_country.lang='zh_CN' AND tran_country.name = 'res.country,name'
      
      UNION
      select case when type_.id != 0 then '员工类型/编码' end, type_.code, tran_type.value
      from employee_type type_ 
      left join ir_translation tran_type on tran_type.res_id = type_.id and tran_type.lang='zh_CN' AND tran_type.name = 'employee.type,name'
      
      UNION
      select case when status_.id != 0 then '员工状态/编码' end, status_.code, tran_status.value
      from employee_status status_ 
      left join ir_translation tran_status on tran_status.res_id = status_.id and tran_status.lang='zh_CN' AND tran_status.name = 'employee.status,name'
      
      UNION
      select case when nation_.id != 0 then '民族/编码' end, nation_.code, nation_.name
      from res_nation nation_ 
      
      UNION
      select case when country_state.id != 0 then '籍贯/州/省代码' end, country_state.code, country_state.name
      from res_country_state country_state
      left join res_country country_ on country_state.country_id=country_.id
      where country_.code ='CN'
      
      UNION
      select case when political.id != 0 then '政治面貌/编码' end, political.code, political.name
      from political_status political 
      
      UNION
      select case when payroll.id != 0 then '薪资档案名称/编码' end, payroll.code, tran_payroll.value
      from payroll_archive_config payroll 
      left join ir_translation tran_payroll on tran_payroll.res_id = payroll.id and tran_payroll.lang='zh_CN' AND tran_payroll.name = 'payroll.archive.config,name'
      
      UNION
      select case when city.id != 0 then '工作地/编码' end, city.code, city.name
      from res_city city 
      
      order by field_name desc
      
      
      显示
      select case sel_ca.code when 'gender' then '性别/编码' when 'registered_residence_type' then '户籍类型/编码' when 'marital_status' then '婚姻状况/编码' when 'card_type' then '证件类型/编码' when 'educational_background' then '学历/编码' when 'academic_degree' then '学位/编码' when 'contact_relationship' then '联系人关系/编码' when 'fertility_status' then '生育状况/编码' when 'email_type' then '邮箱类型/编码' when 'certifier_relationship' then '证明人关系/编码' end as field_name, sel.code as code, tran_.value as name from res_selection sel left join res_selection_category sel_ca on sel.selection_category=sel_ca.id left join ir_translation tran_ on tran_.res_id = sel.id and tran_.lang= 'zh_CN' AND tran_.name = 'res.selection,name' where sel_ca.code in ( 'gender' , 'registered_residence_type' , 'marital_status' , 'card_type' , 'educational_background' , 'academic_degree' , 'contact_relationship' , 'fertility_status' , 'email_type' , 'certifier_relationship' ) UNION select case when country.id!=0 then '国籍/国家/地区编号' end, country.code, tran_country.value from res_country country left join ir_translation tran_country on tran_country.res_id = country.id and tran_country.lang= 'zh_CN' AND tran_country.name = 'res.country,name' UNION select case when type_.id != 0 then '员工类型/编码' end, type_.code, tran_type.value from employee_type type_ left join ir_translation tran_type on tran_type.res_id = type_.id and tran_type.lang= 'zh_CN' AND tran_type.name = 'employee.type,name' UNION select case when status_.id != 0 then '员工状态/编码' end, status_.code, tran_status.value from employee_status status_ left join ir_translation tran_status on tran_status.res_id = status_.id and tran_status.lang= 'zh_CN' AND tran_status.name = 'employee.status,name' UNION select case when nation_.id != 0 then '民族/编码' end, nation_.code, nation_.name from res_nation nation_ UNION select case when country_state.id != 0 then '籍贯/州/省代码' end, country_state.code, country_state.name from res_country_state country_state left join res_country country_ on country_state.country_id=country_.id where country_.code = 'CN' UNION select case when political.id != 0 then '政治面貌/编码' end, political.code, political.name from political_status political UNION select case when payroll.id != 0 then '薪资档案名称/编码' end, payroll.code, tran_payroll.value from payroll_archive_config payroll left join ir_translation tran_payroll on tran_payroll.res_id = payroll.id and tran_payroll.lang= 'zh_CN' AND tran_payroll.name = 'payroll.archive.config,name' UNION select case when city.id != 0 then '工作地/编码' end, city.code, city.name from res_city city order by field_name desc

      需要新建自定义报表, 写SQL, 样表如附件
      共有以下字段需要取值编码:
      性别/编码
      户籍类型/编码
      国籍/国家/地区编号
      婚姻状况/编码
      员工类型/编码
      员工状态/编码
      证件类型/编码
      最高学历/编码
      学位/编码
      联系人关系/编码
      民族/编码
      籍贯/州/省代码
      政治面貌/编码
      生育状况/编码
      邮箱类型/编码
      证明人关系/编码
      薪资档案名称/编码
      工作地/编码
      法人实体/编码
      成本中心/编码
      权限组/编码
      部门/编码
      岗位/岗位编码
      薪资发放单位/编码
      社保缴纳单位/编码
      电话类型/编码
      薪资方案/编码
      学历/编码
      奖惩类型/编码
      掌握程度/编码

            chengdd 程丹丹
            yu.yu 俞晶晶
            表决:
            0 为这个问题表决

              创建日期:
              已更新:
              已解决: