Commit ee643c89 authored by 刘林's avatar 刘林

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents d43ba788 f196f60a
...@@ -53,6 +53,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -53,6 +53,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
...@@ -181,6 +182,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -181,6 +182,7 @@ public class CommonServiceImpl implements ICommonService {
JgUseRegistrationServiceImpl jgUseRegistrationServiceImpl; JgUseRegistrationServiceImpl jgUseRegistrationServiceImpl;
@Autowired @Autowired
@Lazy
JgEquipTransferServiceImpl jgEquipTransferServiceImpl; JgEquipTransferServiceImpl jgEquipTransferServiceImpl;
@Autowired @Autowired
......
...@@ -1248,9 +1248,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste ...@@ -1248,9 +1248,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
iIdxBizJgConstructionInfoService.saveOrUpdateData(constructionInfo); iIdxBizJgConstructionInfoService.saveOrUpdateData(constructionInfo);
//注册登记 //注册登记
IdxBizJgRegisterInfo equipmentClassRegisterInfo = JSON.parseObject(JSON.toJSONString(equipmentClassForm), IdxBizJgRegisterInfo.class); // IdxBizJgRegisterInfo equipmentClassRegisterInfo = JSON.parseObject(JSON.toJSONString(equipmentClassForm), IdxBizJgRegisterInfo.class);
IdxBizJgRegisterInfo registerInfo = JSON.parseObject(JSON.toJSONString(equipmentInfoForm), IdxBizJgRegisterInfo.class); IdxBizJgRegisterInfo registerInfo = JSON.parseObject(JSON.toJSONString(equipmentInfoForm), IdxBizJgRegisterInfo.class);
Bean.copyExistPropertis(equipmentClassRegisterInfo, registerInfo); // Bean.copyExistPropertis(equipmentClassRegisterInfo, registerInfo);
registerInfo.setRecord(record); registerInfo.setRecord(record);
registerInfo.setRecDate(date); registerInfo.setRecDate(date);
registerInfo.setSequenceNbr(OPERATESAVE.equals(operateType) ? null : String.valueOf(equipmentInfoForm.get("REGISTERINFO_SEQ"))); registerInfo.setSequenceNbr(OPERATESAVE.equals(operateType) ? null : String.valueOf(equipmentInfoForm.get("REGISTERINFO_SEQ")));
......
...@@ -26,6 +26,7 @@ import com.yeejoin.amos.feign.workflow.model.*; ...@@ -26,6 +26,7 @@ import com.yeejoin.amos.feign.workflow.model.*;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.ObjectUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -58,11 +59,13 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto, ...@@ -58,11 +59,13 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
private final JgEquipTransferEqMapper jgEquipTransferEqMapper; private final JgEquipTransferEqMapper jgEquipTransferEqMapper;
private final RedisUtils redisUtils; private final RedisUtils redisUtils;
private final TzsServiceFeignClient tzsServiceFeignClient; private final TzsServiceFeignClient tzsServiceFeignClient;
private final CommonServiceImpl commonService;
private final CmWorkflowServiceImpl cmWorkflowService; private final CmWorkflowServiceImpl cmWorkflowService;
private final IJgInstallationNoticeService jrmInstallationNoticeService; private final IJgInstallationNoticeService jrmInstallationNoticeService;
private final IIdxBizJgRegisterInfoService idxBizJgRegisterInfoService; private final IIdxBizJgRegisterInfoService idxBizJgRegisterInfoService;
@Lazy
private final CommonServiceImpl commonService;
/** /**
* 保存和保存并提交 * 保存和保存并提交
* *
......
...@@ -13,7 +13,7 @@ public class FileExporter { ...@@ -13,7 +13,7 @@ public class FileExporter {
response.reset(); response.reset();
response.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8");
response.setContentType(fileType.getContentType()); response.setContentType(fileType.getContentType());
fileName = fileName.replaceAll("\\.", "); fileName = fileName.replaceAll("\\..*", "");
fileName = URLEncoder.encode(fileName + fileType.getFileSufix(), "UTF-8"); fileName = URLEncoder.encode(fileName + fileType.getFileSufix(), "UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=" + fileName + ""); response.setHeader("Content-Disposition", "attachment; filename=" + fileName + "");
response.getOutputStream().write(data); response.getOutputStream().write(data);
......
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