| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.AbstractServiceCmdListener; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.file.FileRelDto; |
| | | import com.java110.intf.common.IFileRelInnerServiceSMO; |
| | |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "propertyRightRegistrationDetail.listPropertyRightRegistrationDetail") |
| | | public class ListPropertyRightRegistrationDetailCmd extends AbstractServiceCmdListener { |
| | | public class ListPropertyRightRegistrationDetailCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListPropertyRightRegistrationDetailCmd.class); |
| | | |
| | |
| | | for (FileRelDto fileRel : fileRelDtos) { |
| | | if (!StringUtil.isEmpty(fileRel.getFileRealName())) { //身份证图片 |
| | | if (!StringUtil.isEmpty(propertyRightRegistrationDetail.getIdCardUrl())) { |
| | | idCardUrl = propertyRightRegistrationDetail.getIdCardUrl() + "," + "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | idCardUrl = propertyRightRegistrationDetail.getIdCardUrl() + "," + fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setIdCardUrl(idCardUrl); |
| | | } else { |
| | | idCardUrl = "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | idCardUrl = fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setIdCardUrl(idCardUrl); |
| | | } |
| | | } |
| | |
| | | for (FileRelDto fileRel : fileRelDtos) { |
| | | if (!StringUtil.isEmpty(fileRel.getFileRealName())) { //购房合同图片 |
| | | if (!StringUtil.isEmpty(propertyRightRegistrationDetail.getHousePurchaseUrl())) { |
| | | housePurchaseUrl = propertyRightRegistrationDetail.getHousePurchaseUrl() + "," + "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | housePurchaseUrl = propertyRightRegistrationDetail.getHousePurchaseUrl() + "," + fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setHousePurchaseUrl(housePurchaseUrl); |
| | | } else { |
| | | housePurchaseUrl = "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | housePurchaseUrl = fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setHousePurchaseUrl(housePurchaseUrl); |
| | | } |
| | | } |
| | |
| | | for (FileRelDto fileRel : fileRelDtos) { |
| | | if (!StringUtil.isEmpty(fileRel.getFileRealName())) { //维修基金图片 |
| | | if (!StringUtil.isEmpty(propertyRightRegistrationDetail.getRepairUrl())) { |
| | | repairUrl = propertyRightRegistrationDetail.getRepairUrl() + "," + "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | repairUrl = propertyRightRegistrationDetail.getRepairUrl() + "," + fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setRepairUrl(repairUrl); |
| | | } else { |
| | | repairUrl = "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | repairUrl = fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setRepairUrl(repairUrl); |
| | | } |
| | | } |
| | |
| | | for (FileRelDto fileRel : fileRelDtos) { |
| | | if (!StringUtil.isEmpty(fileRel.getFileRealName())) { //契税图片 |
| | | if (!StringUtil.isEmpty(propertyRightRegistrationDetail.getDeedTaxUrl())) { |
| | | deedTaxUrl = propertyRightRegistrationDetail.getDeedTaxUrl() + "," + "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | deedTaxUrl = propertyRightRegistrationDetail.getDeedTaxUrl() + "," + fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setDeedTaxUrl(deedTaxUrl); |
| | | } else { |
| | | deedTaxUrl = "/callComponent/download/getFile/file?fileId=" + fileRel.getFileRealName() + "&communityId=-1"; |
| | | deedTaxUrl = fileRel.getFileRealName(); |
| | | propertyRightRegistrationDetail.setDeedTaxUrl(deedTaxUrl); |
| | | } |
| | | } |