Commit df60843f authored by 刘林's avatar 刘林

fix(jg):单位变更bug修改

parent 7736ab16
......@@ -419,8 +419,9 @@
resultType="com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption">
SELECT distinct
ibjpc.*,
(SELECT CONCAT(ESTATE_UNIT_CREDIT_CODE, '_', ESTATE_UNIT_NAME) FROM idx_biz_jg_use_info
WHERE "PROJECT_CONTRAPTION_ID" = ibjpc."sequence_nbr" ORDER BY REC_DATE DESC LIMIT 1) AS estateUnitName
(SELECT ei.sequence_nbr from idx_biz_jg_use_info ui
LEFT JOIN tz_base_enterprise_info ei ON ei.use_code = ui.ESTATE_UNIT_CREDIT_CODE
WHERE ui.PROJECT_CONTRAPTION_ID = ibjpc.sequence_nbr ORDER BY REC_DATE DESC LIMIT 1) AS estateUnitName
FROM
idx_biz_jg_project_contraption ibjpc
LEFT JOIN tzs_jg_use_registration_manage tjurm ON ibjpc.use_registration_code = tjurm.use_registration_code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment