Merge branch 'master' into docker_package
This commit is contained in:
commit
53798a2e7f
|
@ -114,4 +114,5 @@ public class CodeGenerationUtils {
|
|||
public static CodeGenerationUtils getInstance() {
|
||||
return CodeGenerationUtilsEnum.INSTANCE.getInstnce();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -88,4 +88,7 @@ public class ProcessInstanceDTO {
|
|||
private Integer demandCommentFlag;
|
||||
@ApiModelProperty(value = "评论情况")
|
||||
private String demandCommentFlagTip;
|
||||
|
||||
@ApiModelProperty(value = "申请单号")
|
||||
private String applyNumber;
|
||||
}
|
||||
|
|
|
@ -289,12 +289,14 @@ public class ActHistoryService {
|
|||
stringBuffer.deleteCharAt(stringBuffer.length() - 1);
|
||||
dto.setName(stringBuffer.toString());
|
||||
dto.setResourceId(null);
|
||||
dto.setApplyNumber(abilityApplicationDTO.get(0).getApplyNumber());
|
||||
}
|
||||
} else {
|
||||
TAbilityApplicationDTO abilityApplicationDTO1 = tAbilityApplicationService.getByBusinessKey(dto.getBusinessKey());
|
||||
if (abilityApplicationDTO1 != null) {
|
||||
dto.setName(abilityApplicationDTO1.getSystem());
|
||||
dto.setResourceId(abilityApplicationDTO1.getResourceId());
|
||||
dto.setApplyNumber(abilityApplicationDTO1.getApplyNumber());
|
||||
} else {
|
||||
TResourceMountApplyDTO resourceMountApplyDTO = tResourceMountApplyService.get(Long.valueOf(dto.getBusinessKey()));
|
||||
if (resourceMountApplyDTO != null && resourceMountApplyDTO.getResourceDTO() != null
|
||||
|
@ -306,6 +308,7 @@ public class ActHistoryService {
|
|||
if (resourceDTO != null) {
|
||||
dto.setName(resourceDTO.getName());
|
||||
dto.setResourceId(resourceDTO.getId().toString());
|
||||
dto.setApplyNumber(resourceMountApplyDTO.getApplyNumber());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -313,6 +316,7 @@ public class ActHistoryService {
|
|||
if (resourceDTO != null) {
|
||||
dto.setName(resourceDTO.getName());
|
||||
dto.setResourceId(resourceDTO.getId().toString());
|
||||
dto.setApplyNumber(resourceDTO.getApplyNumber());
|
||||
} else {
|
||||
TDemandCommentDTO tDemandCommentDTO = tDemandCommentService.get(Long.valueOf(dto.getBusinessKey()));
|
||||
if (tDemandCommentDTO != null) {
|
||||
|
@ -323,6 +327,7 @@ public class ActHistoryService {
|
|||
if (tDemandCommentEntityDelFlag.isPresent()) {
|
||||
dto.setDemandCommentFlagTip(tDemandCommentEntityDelFlag.get().getTip());
|
||||
}
|
||||
dto.setApplyNumber(tDemandCommentDTO.getApplyNumber());
|
||||
} else {
|
||||
TDemandDataDTO tDemandDataDTO = tDemandDataService.get(Long.valueOf(dto.getBusinessKey()));
|
||||
if (tDemandDataDTO != null) {
|
||||
|
@ -333,6 +338,7 @@ public class ActHistoryService {
|
|||
if (tDemandCommentEntityDelFlag.isPresent()) {
|
||||
dto.setDemandFlagTip(tDemandCommentEntityDelFlag.get().getTip());
|
||||
}
|
||||
dto.setApplyNumber(tDemandDataDTO.getApplyNumber());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,8 +48,8 @@ public class DevelopmentGuideController {
|
|||
})
|
||||
public Result uploadDevelopmentFile(@RequestParam("file") MultipartFile uploadFile, HttpServletRequest request) {
|
||||
try {
|
||||
developmentGuideService.uploadDevelopmentFile(uploadFile, request);
|
||||
return new Result();
|
||||
String s = developmentGuideService.uploadDevelopmentFile(uploadFile, request);
|
||||
return new Result().ok(s);
|
||||
}catch (Exception e) {
|
||||
return new Result().error(e.getMessage());
|
||||
}
|
||||
|
|
|
@ -9,5 +9,5 @@ public interface DevelopmentGuideService {
|
|||
|
||||
void getDevelopmentFile(HttpServletRequest request, HttpServletResponse response) throws Exception;
|
||||
|
||||
void uploadDevelopmentFile(MultipartFile uploadFile, HttpServletRequest request) throws Exception;
|
||||
String uploadDevelopmentFile(MultipartFile uploadFile, HttpServletRequest request) throws Exception;
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ public class DevelopmentGuideServiceImpl implements DevelopmentGuideService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void uploadDevelopmentFile(MultipartFile uploadFile, HttpServletRequest request) throws Exception{
|
||||
public String uploadDevelopmentFile(MultipartFile uploadFile, HttpServletRequest request) throws Exception{
|
||||
logger.info("----------------------------------开始上传开发指南--------------------------------------------------");
|
||||
String type = request.getParameter("type");
|
||||
String fileName = request.getParameter("fileName");
|
||||
|
@ -81,6 +81,7 @@ public class DevelopmentGuideServiceImpl implements DevelopmentGuideService {
|
|||
// 文件保存
|
||||
uploadFile.transferTo(new File(path, fileName));
|
||||
logger.info("----------------------------------文件上传成功--------------------------------------");
|
||||
return folder.getPath();
|
||||
} catch (IOException e) {
|
||||
logger.info("----------------------------------文件上传失败--------------------------------------");
|
||||
logger.info("异常描述" + e.getMessage());
|
||||
|
|
Loading…
Reference in New Issue