三江业务中台更新/删除项目
This commit is contained in:
parent
d0473678cc
commit
9b3eb7cfcf
@ -0,0 +1,43 @@
|
|||||||
|
package com.zhgd.xmgl.modules.basicdata.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.zhgd.jeecg.common.api.vo.Result;
|
||||||
|
import com.zhgd.xmgl.modules.basicdata.entity.vo.UploadImageVo;
|
||||||
|
import com.zhgd.xmgl.modules.basicdata.service.UploadFileService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @program: diseaseManage
|
||||||
|
* @description: 文件
|
||||||
|
* @author: Mr.Peng
|
||||||
|
* @create: 2020-02-18 13:13
|
||||||
|
**/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(value = "/xmgl/upload")
|
||||||
|
@Slf4j
|
||||||
|
@Api(tags = "文件")
|
||||||
|
public class SjUploadFileController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private UploadFileService uploadFileService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 三江业务中台上传图片返回url
|
||||||
|
*
|
||||||
|
* @param file
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping(value = "/sj/image")
|
||||||
|
@ApiOperation(value = "三江业务中台上传图片", notes = "三江业务中台上传图片", httpMethod = "POST")
|
||||||
|
public Result<UploadImageVo> uploadSjImage(@RequestParam("file") MultipartFile file) {
|
||||||
|
return uploadFileService.uploadSjImage(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -53,18 +53,6 @@ public class UploadFileController {
|
|||||||
return resultMap;
|
return resultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 三江业务中台上传图片返回url
|
|
||||||
*
|
|
||||||
* @param file
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@PostMapping(value = "/sj/image")
|
|
||||||
@ApiOperation(value = "三江业务中台上传图片", notes = "三江业务中台上传图片", httpMethod = "POST")
|
|
||||||
public Result<UploadImageVo> uploadSjImage(@RequestParam("file") MultipartFile file) {
|
|
||||||
return uploadFileService.uploadSjImage(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*@ApiOperation(value = "企业上传资料", notes = "企业上传资料" , httpMethod="POST")
|
/*@ApiOperation(value = "企业上传资料", notes = "企业上传资料" , httpMethod="POST")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "file", value = "文件", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "file", value = "文件", paramType = "query", required = true, dataType = "String"),
|
||||||
|
|||||||
@ -248,7 +248,7 @@ public class Project implements Serializable {
|
|||||||
@ApiModelProperty(value = "云联万物-工程所在街(乡)镇机构编码")
|
@ApiModelProperty(value = "云联万物-工程所在街(乡)镇机构编码")
|
||||||
private String streetTownshipTownCode;
|
private String streetTownshipTownCode;
|
||||||
|
|
||||||
@ApiModelProperty(value = "'三江重点工程类型多选'")
|
@ApiModelProperty(value = "三江重点工程类型多选")
|
||||||
private String keyProjectType;
|
private String keyProjectType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,4 +90,4 @@ sj.unifiedAuthentication.login.code.url=http://wbtqry.natappfree.cc/xmgl/sj/unif
|
|||||||
sj.unifiedAuthentication.success.redirect=http://192.168.34.150:8080/index.html#/login?UID=
|
sj.unifiedAuthentication.success.redirect=http://192.168.34.150:8080/index.html#/login?UID=
|
||||||
|
|
||||||
|
|
||||||
sj.upload.image.url=http://192.168.34.221/image/
|
sj.upload.image.url=http://192.168.34.221:11111/image/
|
||||||
Loading…
x
Reference in New Issue
Block a user