Commit 54236876 authored by xxxxxwwwww's avatar xxxxxwwwww

修改

parent 0941f2bc
package com.pms.ocp.controller;
import com.pms.ocp.common.aspectj.WebLog;
import com.pms.ocp.common.config.CreateGroups;
import com.pms.ocp.common.utils.StringBusinessUtil;
import com.pms.ocp.model.dto.AppRegisterDTO;
......@@ -31,6 +32,7 @@ public class AppRegisterController {
@ApiOperation("新增应用注册")
@PostMapping("addApp")
@WebLog(description = "新增应用注册")
public ResponseVO addApp(@RequestBody @Validated(CreateGroups.class) AppRegisterDTO appRegisterDTO,
BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
......@@ -42,6 +44,7 @@ public class AppRegisterController {
@ApiOperation("查询应用目录")
@PostMapping("getAppInfo")
@WebLog(description = "查询应用目录")
public ResponseVO getAppInfo(@RequestBody @Validated QueryAppDTO queryAppDTO, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return StringBusinessUtil.verifyDispose(bindingResult);
......@@ -52,6 +55,7 @@ public class AppRegisterController {
@ApiOperation("应用预览图")
@PostMapping("addAppImgUrl")
@WebLog(description = "应用预览图")
public ResponseVO addAppImgUrl(@RequestBody @Validated(CreateGroups.class) List<ImgDTO> imgDTO,
BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
......
......@@ -28,7 +28,7 @@ public class AppRegisterDTO {
@ApiModelProperty("应用图标")
@NotBlank(message = "应用图标不能为空", groups = CreateGroups.class)
private String imgUrl;
private byte[] imgUrl;
@ApiModelProperty("应用名称")
@NotBlank(message = "应用名称不能为空", groups = CreateGroups.class)
......@@ -165,11 +165,11 @@ public class AppRegisterDTO {
this.time = time;
}
public String getImgUrl() {
public byte[] getImgUrl() {
return imgUrl;
}
public void setImgUrl(String imgUrl) {
public void setImgUrl(byte[] imgUrl) {
this.imgUrl = imgUrl;
}
......
......@@ -20,7 +20,7 @@ public class ImgDTO {
@ApiModelProperty(value = "应用预览url")
@NotBlank(message = "应用预览url不能为空", groups = CreateGroups.class)
private String img;
private byte[] img;
public String getTenantCode() {
return tenantCode;
......@@ -30,11 +30,11 @@ public class ImgDTO {
this.tenantCode = tenantCode;
}
public String getImg() {
public byte[] getImg() {
return img;
}
public void setImg(String img) {
public void setImg(byte[] img) {
this.img = img;
}
}
......
......@@ -40,7 +40,7 @@ public class OcpTenantIocn implements Serializable {
* 应用调用的服务数量图标数据
*/
@ApiModelProperty(value = "应用调用的服务数量图标数据")
private String iocn;
private byte[] iocn;
@ApiModelProperty(value = "图片类型")
private Object iocnKind;
......@@ -77,11 +77,11 @@ public class OcpTenantIocn implements Serializable {
this.codeNo = codeNo;
}
public String getIocn() {
public byte[] getIocn() {
return iocn;
}
public void setIocn(String iocn) {
public void setIocn(byte[] iocn) {
this.iocn = iocn;
}
......
......@@ -48,7 +48,7 @@ public class ApiProvinceVo implements Serializable {
@Excel(name = "服务厂商")
private String apiUnit;
@ApiModelProperty(value = "服务图标")
private String apiPic;
private byte[] apiPic;
@ApiModelProperty(value = "服务返回体")
private String apiResp;
@ApiModelProperty(value = "服务请求体")
......@@ -137,11 +137,11 @@ public class ApiProvinceVo implements Serializable {
this.apiUnit = apiUnit;
}
public String getApiPic() {
public byte[] getApiPic() {
return apiPic;
}
public void setApiPic(String apiPic) {
public void setApiPic(byte[] apiPic) {
this.apiPic = apiPic;
}
......
......@@ -14,7 +14,7 @@ import lombok.Data;
public class QueryAppInfoVO {
@ApiModelProperty("应用图标")
private Object icon;
private byte[] icon;
@ApiModelProperty("应用名称")
private String appName;
......
......@@ -16,10 +16,10 @@
INNER JOIN ocp_tenant_group g ON g.tenant_group_code = base.tenant_group_code
WHERE icon.iocn_type = 'tenant' and icon.iocn_kind is null
<if test="dto.kind != null and dto.kind != ''">
base.professional_kind like CONCAT('%', #{dto.kind}, '%')
and base.professional_kind like '${dto.kind}'
</if>
<if test="dto.type != null and dto.type != ''">
and g.tenant_group_name like CONCAT('%', #{dto.type}, '%')
and g.tenant_group_name like '${dto.type}'
</if>
</select>
......
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