This commit is contained in:
张洋川 2024-04-23 09:08:54 +08:00
commit e8ded5cae2
27 changed files with 3285 additions and 2 deletions

View File

@ -132,7 +132,7 @@ xss:
file:
ceph:
#endpoint: http://127.0.0.1:9000
endpoint: http://minio.zsmarter.com:8000
endpoint: http://file.sac.zsmarter.com
# 50M
defaultMaxSize: 52428800
access:

View File

@ -216,7 +216,7 @@ public class HuaweiPaymentServiceImpl implements IHuaweiPaymentService {
Long userId = SecurityUtils.getUserId();
OrderInfo orderInfo = new OrderInfo();
orderInfo.setOrderNo(snowflakeIdWorker.nextId());
orderInfo.setOrderStatus(6L);
orderInfo.setOrderStatus(4L);
orderInfo.setPayType(1L);
orderInfo.setPayChannel(2L);
orderInfo.setOrderAmt(appPurchaseOrderPayload.getPrice());

View File

@ -0,0 +1,105 @@
package com.sf.system.deployment.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.sf.system.deployment.domain.DeploymentApplyEnvironment;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sf.common.annotation.Log;
import com.sf.common.core.controller.BaseController;
import com.sf.common.core.domain.AjaxResult;
import com.sf.common.enums.BusinessType;
import com.sf.deployment.service.IDeploymentApplyEnvironmentService;
import com.sf.common.utils.poi.ExcelUtil;
import com.sf.common.core.page.TableDataInfo;
/**
* 环境维护Controller
*
* @author ztzh
* @date 2024-04-19
*/
@RestController
@RequestMapping("/deployment/environment")
public class DeploymentApplyEnvironmentController extends BaseController
{
@Autowired
private IDeploymentApplyEnvironmentService deploymentApplyEnvironmentService;
/**
* 查询环境维护列表
*/
@PreAuthorize("@ss.hasPermi('deployment:environment:list')")
@GetMapping("/list")
public TableDataInfo list(DeploymentApplyEnvironment deploymentApplyEnvironment)
{
startPage();
List<DeploymentApplyEnvironment> list = deploymentApplyEnvironmentService.selectDeploymentApplyEnvironmentList(deploymentApplyEnvironment);
return getDataTable(list);
}
/**
* 导出环境维护列表
*/
@PreAuthorize("@ss.hasPermi('deployment:environment:export')")
@Log(title = "环境维护", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DeploymentApplyEnvironment deploymentApplyEnvironment)
{
List<DeploymentApplyEnvironment> list = deploymentApplyEnvironmentService.selectDeploymentApplyEnvironmentList(deploymentApplyEnvironment);
ExcelUtil<DeploymentApplyEnvironment> util = new ExcelUtil<DeploymentApplyEnvironment>(DeploymentApplyEnvironment.class);
util.exportExcel(response, list, "环境维护数据");
}
/**
* 获取环境维护详细信息
*/
@PreAuthorize("@ss.hasPermi('deployment:environment:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(deploymentApplyEnvironmentService.selectDeploymentApplyEnvironmentById(id));
}
/**
* 新增环境维护
*/
@PreAuthorize("@ss.hasPermi('deployment:environment:add')")
@Log(title = "环境维护", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DeploymentApplyEnvironment deploymentApplyEnvironment)
{
return toAjax(deploymentApplyEnvironmentService.insertDeploymentApplyEnvironment(deploymentApplyEnvironment));
}
/**
* 修改环境维护
*/
@PreAuthorize("@ss.hasPermi('deployment:environment:edit')")
@Log(title = "环境维护", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DeploymentApplyEnvironment deploymentApplyEnvironment)
{
return toAjax(deploymentApplyEnvironmentService.updateDeploymentApplyEnvironment(deploymentApplyEnvironment));
}
/**
* 删除环境维护
*/
@PreAuthorize("@ss.hasPermi('deployment:environment:remove')")
@Log(title = "环境维护", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(deploymentApplyEnvironmentService.deleteDeploymentApplyEnvironmentByIds(ids));
}
}

View File

@ -0,0 +1,122 @@
package com.sf.system.deployment.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.sf.common.utils.StringUtils;
import com.sf.system.deployment.domain.rqs.ModuleListByCoreRequest;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sf.common.annotation.Log;
import com.sf.common.core.controller.BaseController;
import com.sf.common.core.domain.AjaxResult;
import com.sf.common.enums.BusinessType;
import com.sf.system.deployment.domain.DeploymentModuleList;
import com.sf.system.deployment.service.IDeploymentModuleListService;
import com.sf.common.utils.poi.ExcelUtil;
import com.sf.common.core.page.TableDataInfo;
/**
* H5模块包Controller
*
* @author ztzh
* @date 2024-04-22
*/
@RestController
@RequestMapping("/deployment/module")
public class DeploymentModuleListController extends BaseController
{
@Autowired
private IDeploymentModuleListService deploymentModuleListService;
/**
* 查询H5模块包列表
*/
@PreAuthorize("@ss.hasPermi('deployment:module:list')")
@GetMapping("/list")
public TableDataInfo list(DeploymentModuleList deploymentModuleList)
{
startPage();
List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList);
return getDataTable(list);
}
/**
* 查询H5模块包列表
*/
@GetMapping("/qurey/list")
public AjaxResult queryByCore(ModuleListByCoreRequest request)
{
if(StringUtils.isEmpty(request.getAppCore())){
return error("appCore不能为空");
}
DeploymentModuleList deploymentModuleList = new DeploymentModuleList();
deploymentModuleList.setAppCore(request.getAppCore());
deploymentModuleList.setSysType(request.getSysType());
List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList);
return success(list);
}
/**
* 导出H5模块包列表
*/
@PreAuthorize("@ss.hasPermi('deployment:module:export')")
@Log(title = "H5模块包", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DeploymentModuleList deploymentModuleList)
{
List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList);
ExcelUtil<DeploymentModuleList> util = new ExcelUtil<DeploymentModuleList>(DeploymentModuleList.class);
util.exportExcel(response, list, "H5模块包数据");
}
/**
* 获取H5模块包详细信息
*/
@PreAuthorize("@ss.hasPermi('deployment:module:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(deploymentModuleListService.selectDeploymentModuleListById(id));
}
/**
* 新增H5模块包
*/
@PreAuthorize("@ss.hasPermi('deployment:module:add')")
@Log(title = "H5模块包", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DeploymentModuleList deploymentModuleList)
{
return toAjax(deploymentModuleListService.insertDeploymentModuleList(deploymentModuleList));
}
/**
* 修改H5模块包
*/
@PreAuthorize("@ss.hasPermi('deployment:module:edit')")
@Log(title = "H5模块包", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DeploymentModuleList deploymentModuleList)
{
return toAjax(deploymentModuleListService.updateDeploymentModuleList(deploymentModuleList));
}
/**
* 删除H5模块包
*/
@PreAuthorize("@ss.hasPermi('deployment:module:remove')")
@Log(title = "H5模块包", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(deploymentModuleListService.deleteDeploymentModuleListByIds(ids));
}
}

View File

@ -0,0 +1,105 @@
package com.sf.system.deployment.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.sf.system.deployment.domain.DeploymentServicePublish;
import com.sf.system.deployment.service.IDeploymentServicePublishService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sf.common.annotation.Log;
import com.sf.common.core.controller.BaseController;
import com.sf.common.core.domain.AjaxResult;
import com.sf.common.enums.BusinessType;
import com.sf.common.utils.poi.ExcelUtil;
import com.sf.common.core.page.TableDataInfo;
/**
* 发布列表Controller
*
* @author ztzh
* @date 2024-04-19
*/
@RestController
@RequestMapping("/deployment/publish")
public class DeploymentServicePublishController extends BaseController
{
@Autowired
private IDeploymentServicePublishService deploymentServicePublishService;
/**
* 查询发布列表列表
*/
@PreAuthorize("@ss.hasPermi('deployment:publish:list')")
@GetMapping("/list")
public TableDataInfo list(DeploymentServicePublish deploymentServicePublish)
{
startPage();
List<DeploymentServicePublish> list = deploymentServicePublishService.selectDeploymentServicePublishList(deploymentServicePublish);
return getDataTable(list);
}
/**
* 导出发布列表列表
*/
@PreAuthorize("@ss.hasPermi('deployment:publish:export')")
@Log(title = "发布列表", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DeploymentServicePublish deploymentServicePublish)
{
List<DeploymentServicePublish> list = deploymentServicePublishService.selectDeploymentServicePublishList(deploymentServicePublish);
ExcelUtil<DeploymentServicePublish> util = new ExcelUtil<DeploymentServicePublish>(DeploymentServicePublish.class);
util.exportExcel(response, list, "发布列表数据");
}
/**
* 获取发布列表详细信息
*/
@PreAuthorize("@ss.hasPermi('deployment:publish:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(deploymentServicePublishService.selectDeploymentServicePublishById(id));
}
/**
* 新增发布列表
*/
@PreAuthorize("@ss.hasPermi('deployment:publish:add')")
@Log(title = "发布列表", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DeploymentServicePublish deploymentServicePublish)
{
return toAjax(deploymentServicePublishService.insertDeploymentServicePublish(deploymentServicePublish));
}
/**
* 修改发布列表
*/
@PreAuthorize("@ss.hasPermi('deployment:publish:edit')")
@Log(title = "发布列表", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DeploymentServicePublish deploymentServicePublish)
{
return toAjax(deploymentServicePublishService.updateDeploymentServicePublish(deploymentServicePublish));
}
/**
* 删除发布列表
*/
@PreAuthorize("@ss.hasPermi('deployment:publish:remove')")
@Log(title = "发布列表", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(deploymentServicePublishService.deleteDeploymentServicePublishByIds(ids));
}
}

View File

@ -0,0 +1,124 @@
package com.sf.system.deployment.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sf.common.annotation.Excel;
import com.sf.common.core.domain.BaseEntity;
/**
* 环境维护对象 DEPLOYMENT_APPLY_ENVIRONMENT
*
* @author ztzh
* @date 2024-04-19
*/
public class DeploymentApplyEnvironment extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 应用id */
private Long appId;
/** 应用编号 */
private String applyCode;
/** 环境名称 */
@Excel(name = "环境名称")
private String name;
/** 服务器地址 */
@Excel(name = "服务器地址")
private String serverAddress;
/** 逻辑删除标识
0:未删除
1:已删除 */
private Long isDelete;
/** 创建部门 */
private Long createDept;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAppId(Long appId)
{
this.appId = appId;
}
public Long getAppId()
{
return appId;
}
public void setApplyCode(String applyCode)
{
this.applyCode = applyCode;
}
public String getApplyCode()
{
return applyCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setServerAddress(String serverAddress)
{
this.serverAddress = serverAddress;
}
public String getServerAddress()
{
return serverAddress;
}
public void setIsDelete(Long isDelete)
{
this.isDelete = isDelete;
}
public Long getIsDelete()
{
return isDelete;
}
public void setCreateDept(Long createDept)
{
this.createDept = createDept;
}
public Long getCreateDept()
{
return createDept;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("appId", getAppId())
.append("applyCode", getApplyCode())
.append("name", getName())
.append("serverAddress", getServerAddress())
.append("remark", getRemark())
.append("isDelete", getIsDelete())
.append("createDept", getCreateDept())
.append("createTime", getCreateTime())
.append("createBy", getCreateBy())
.append("updateTime", getUpdateTime())
.append("updateBy", getUpdateBy())
.toString();
}
}

View File

@ -0,0 +1,241 @@
package com.sf.system.deployment.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sf.common.annotation.Excel;
import com.sf.common.core.domain.BaseEntity;
/**
* H5模块包对象 DEPLOYMENT_MODULE_LIST
*
* @author ztzh
* @date 2024-04-22
*/
public class DeploymentModuleList extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 应用id */
private Long appId;
/** 应用core */
private String appCore;
/** 上传类型 */
private String uploadingType;
/** 模块包名称名称 */
@Excel(name = "模块包名称名称")
private String moduleName;
/** 版本号 */
@Excel(name = "版本号")
private String version;
/** 安装包 */
@Excel(name = "安装包")
private String moduleUrl;
/** 安装包大小 */
@Excel(name = "安装包大小")
private String moduleSize;
/** 系统类型 */
@Excel(name = "系统类型")
private String sysType;
/** 模块类型 */
@Excel(name = "模块类型")
private String moduleType;
/** 上传状态 */
@Excel(name = "上传状态")
private String uploadingStatus;
/** 日志id */
private Long uploadingLogId;
/** 排序 */
private Long orderNum;
/** 逻辑删除,0:未删除,1:删除 */
private Long isDelete;
/** 创建人 */
private String created;
/** 更新人 */
private String modified;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAppId(Long appId)
{
this.appId = appId;
}
public Long getAppId()
{
return appId;
}
public void setAppCore(String appCore)
{
this.appCore = appCore;
}
public String getAppCore()
{
return appCore;
}
public void setUploadingType(String uploadingType)
{
this.uploadingType = uploadingType;
}
public String getUploadingType()
{
return uploadingType;
}
public void setModuleName(String moduleName)
{
this.moduleName = moduleName;
}
public String getModuleName()
{
return moduleName;
}
public void setVersion(String version)
{
this.version = version;
}
public String getVersion()
{
return version;
}
public void setModuleUrl(String moduleUrl)
{
this.moduleUrl = moduleUrl;
}
public String getModuleUrl()
{
return moduleUrl;
}
public void setModuleSize(String moduleSize)
{
this.moduleSize = moduleSize;
}
public String getModuleSize()
{
return moduleSize;
}
public void setSysType(String sysType)
{
this.sysType = sysType;
}
public String getSysType()
{
return sysType;
}
public void setModuleType(String moduleType)
{
this.moduleType = moduleType;
}
public String getModuleType()
{
return moduleType;
}
public void setUploadingStatus(String uploadingStatus)
{
this.uploadingStatus = uploadingStatus;
}
public String getUploadingStatus()
{
return uploadingStatus;
}
public void setUploadingLogId(Long uploadingLogId)
{
this.uploadingLogId = uploadingLogId;
}
public Long getUploadingLogId()
{
return uploadingLogId;
}
public void setOrderNum(Long orderNum)
{
this.orderNum = orderNum;
}
public Long getOrderNum()
{
return orderNum;
}
public void setIsDelete(Long isDelete)
{
this.isDelete = isDelete;
}
public Long getIsDelete()
{
return isDelete;
}
public void setCreated(String created)
{
this.created = created;
}
public String getCreated()
{
return created;
}
public void setModified(String modified)
{
this.modified = modified;
}
public String getModified()
{
return modified;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("appId", getAppId())
.append("appCore", getAppCore())
.append("uploadingType", getUploadingType())
.append("moduleName", getModuleName())
.append("version", getVersion())
.append("moduleUrl", getModuleUrl())
.append("moduleSize", getModuleSize())
.append("sysType", getSysType())
.append("moduleType", getModuleType())
.append("uploadingStatus", getUploadingStatus())
.append("uploadingLogId", getUploadingLogId())
.append("orderNum", getOrderNum())
.append("isDelete", getIsDelete())
.append("created", getCreated())
.append("modified", getModified())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,321 @@
package com.sf.system.deployment.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sf.common.annotation.Excel;
import com.sf.common.core.domain.BaseEntity;
/**
* 发布列表对象 DEPLOYMENT_SERVICE_PUBLISH
*
* @author ztzh
* @date 2024-04-19
*/
public class DeploymentServicePublish extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 应用id */
@Excel(name = "应用id")
private Long applyId;
/** 应用name */
@Excel(name = "应用name")
private String appName;
/** 系统类型 */
@Excel(name = "系统类型")
private String systemType;
/** 安装包编号 */
@Excel(name = "安装包编号")
private String apkId;
/** app store地址 */
@Excel(name = "app store地址")
private String appStoreAddress;
/** 版本号 */
@Excel(name = "版本号")
private String version;
/** 版本说明 */
@Excel(name = "版本说明")
private String versionDesc;
/** 发布环境 */
@Excel(name = "发布环境")
private Long publishEnvironment;
/** 发布策略 */
@Excel(name = "发布策略")
private Long publishStrategy;
/** 通知 */
@Excel(name = "通知")
private Long resultNotify;
/** 公开版 */
@Excel(name = "公开版")
private Long publicVersion;
/** 强制更新 */
@Excel(name = "强制更新")
private Long forceUpdate;
/** 下载验证 */
@Excel(name = "下载验证")
private Long downloadVerification;
/** 更新对象(-1: 不限制, 白名单id) */
@Excel(name = "更新对象(-1: 不限制, 白名单id)")
private Long updateObject;
/** 有效期开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "有效期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date validityStartTime;
/** 有效期结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "有效期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date validityEndTime;
/** 0:保存,1:已发布,2:已下架 */
@Excel(name = "0:保存,1:已发布,2:已下架")
private Long status;
/** 逻辑删除,0:未删除,1:删除 */
private Long isDelete;
/** 创建人 */
private String created;
/** 更新人 */
private String modified;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setApplyId(Long applyId)
{
this.applyId = applyId;
}
public Long getApplyId()
{
return applyId;
}
public void setAppName(String appName)
{
this.appName = appName;
}
public String getAppName()
{
return appName;
}
public void setSystemType(String systemType)
{
this.systemType = systemType;
}
public String getSystemType()
{
return systemType;
}
public void setApkId(String apkId)
{
this.apkId = apkId;
}
public String getApkId()
{
return apkId;
}
public void setAppStoreAddress(String appStoreAddress)
{
this.appStoreAddress = appStoreAddress;
}
public String getAppStoreAddress()
{
return appStoreAddress;
}
public void setVersion(String version)
{
this.version = version;
}
public String getVersion()
{
return version;
}
public void setVersionDesc(String versionDesc)
{
this.versionDesc = versionDesc;
}
public String getVersionDesc()
{
return versionDesc;
}
public void setPublishEnvironment(Long publishEnvironment)
{
this.publishEnvironment = publishEnvironment;
}
public Long getPublishEnvironment()
{
return publishEnvironment;
}
public void setPublishStrategy(Long publishStrategy)
{
this.publishStrategy = publishStrategy;
}
public Long getPublishStrategy()
{
return publishStrategy;
}
public void setResultNotify(Long resultNotify)
{
this.resultNotify = resultNotify;
}
public Long getResultNotify()
{
return resultNotify;
}
public void setPublicVersion(Long publicVersion)
{
this.publicVersion = publicVersion;
}
public Long getPublicVersion()
{
return publicVersion;
}
public void setForceUpdate(Long forceUpdate)
{
this.forceUpdate = forceUpdate;
}
public Long getForceUpdate()
{
return forceUpdate;
}
public void setDownloadVerification(Long downloadVerification)
{
this.downloadVerification = downloadVerification;
}
public Long getDownloadVerification()
{
return downloadVerification;
}
public void setUpdateObject(Long updateObject)
{
this.updateObject = updateObject;
}
public Long getUpdateObject()
{
return updateObject;
}
public void setValidityStartTime(Date validityStartTime)
{
this.validityStartTime = validityStartTime;
}
public Date getValidityStartTime()
{
return validityStartTime;
}
public void setValidityEndTime(Date validityEndTime)
{
this.validityEndTime = validityEndTime;
}
public Date getValidityEndTime()
{
return validityEndTime;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
public void setIsDelete(Long isDelete)
{
this.isDelete = isDelete;
}
public Long getIsDelete()
{
return isDelete;
}
public void setCreated(String created)
{
this.created = created;
}
public String getCreated()
{
return created;
}
public void setModified(String modified)
{
this.modified = modified;
}
public String getModified()
{
return modified;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("applyId", getApplyId())
.append("appName", getAppName())
.append("systemType", getSystemType())
.append("apkId", getApkId())
.append("appStoreAddress", getAppStoreAddress())
.append("version", getVersion())
.append("versionDesc", getVersionDesc())
.append("publishEnvironment", getPublishEnvironment())
.append("publishStrategy", getPublishStrategy())
.append("resultNotify", getResultNotify())
.append("publicVersion", getPublicVersion())
.append("forceUpdate", getForceUpdate())
.append("downloadVerification", getDownloadVerification())
.append("updateObject", getUpdateObject())
.append("validityStartTime", getValidityStartTime())
.append("validityEndTime", getValidityEndTime())
.append("remark", getRemark())
.append("status", getStatus())
.append("isDelete", getIsDelete())
.append("created", getCreated())
.append("modified", getModified())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,16 @@
package com.sf.system.deployment.domain.rqs;
import lombok.Data;
import javax.validation.constraints.NotBlank;
@Data
public class ModuleListByCoreRequest {
@NotBlank
private String appCore;
@NotBlank
private String sysType;
}

View File

@ -0,0 +1,62 @@
package com.sf.deployment.mapper;
import com.sf.system.deployment.domain.DeploymentApplyEnvironment;
import java.util.List;
/**
* 环境维护Mapper接口
*
* @author ztzh
* @date 2024-04-19
*/
public interface DeploymentApplyEnvironmentMapper
{
/**
* 查询环境维护
*
* @param id 环境维护主键
* @return 环境维护
*/
public DeploymentApplyEnvironment selectDeploymentApplyEnvironmentById(Long id);
/**
* 查询环境维护列表
*
* @param deploymentApplyEnvironment 环境维护
* @return 环境维护集合
*/
public List<DeploymentApplyEnvironment> selectDeploymentApplyEnvironmentList(DeploymentApplyEnvironment deploymentApplyEnvironment);
/**
* 新增环境维护
*
* @param deploymentApplyEnvironment 环境维护
* @return 结果
*/
public int insertDeploymentApplyEnvironment(DeploymentApplyEnvironment deploymentApplyEnvironment);
/**
* 修改环境维护
*
* @param deploymentApplyEnvironment 环境维护
* @return 结果
*/
public int updateDeploymentApplyEnvironment(DeploymentApplyEnvironment deploymentApplyEnvironment);
/**
* 删除环境维护
*
* @param id 环境维护主键
* @return 结果
*/
public int deleteDeploymentApplyEnvironmentById(Long id);
/**
* 批量删除环境维护
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDeploymentApplyEnvironmentByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.sf.system.deployment.mapper;
import java.util.List;
import com.sf.system.deployment.domain.DeploymentModuleList;
/**
* H5模块包Mapper接口
*
* @author ztzh
* @date 2024-04-22
*/
public interface DeploymentModuleListMapper
{
/**
* 查询H5模块包
*
* @param id H5模块包主键
* @return H5模块包
*/
public DeploymentModuleList selectDeploymentModuleListById(Long id);
/**
* 查询H5模块包列表
*
* @param deploymentModuleList H5模块包
* @return H5模块包集合
*/
public List<DeploymentModuleList> selectDeploymentModuleListList(DeploymentModuleList deploymentModuleList);
/**
* 新增H5模块包
*
* @param deploymentModuleList H5模块包
* @return 结果
*/
public int insertDeploymentModuleList(DeploymentModuleList deploymentModuleList);
/**
* 修改H5模块包
*
* @param deploymentModuleList H5模块包
* @return 结果
*/
public int updateDeploymentModuleList(DeploymentModuleList deploymentModuleList);
/**
* 删除H5模块包
*
* @param id H5模块包主键
* @return 结果
*/
public int deleteDeploymentModuleListById(Long id);
/**
* 批量删除H5模块包
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDeploymentModuleListByIds(Long[] ids);
}

View File

@ -0,0 +1,62 @@
package com.sf.system.deployment.mapper;
import com.sf.system.deployment.domain.DeploymentServicePublish;
import java.util.List;
/**
* 发布列表Mapper接口
*
* @author ztzh
* @date 2024-04-19
*/
public interface DeploymentServicePublishMapper
{
/**
* 查询发布列表
*
* @param id 发布列表主键
* @return 发布列表
*/
public DeploymentServicePublish selectDeploymentServicePublishById(Long id);
/**
* 查询发布列表列表
*
* @param deploymentServicePublish 发布列表
* @return 发布列表集合
*/
public List<DeploymentServicePublish> selectDeploymentServicePublishList(DeploymentServicePublish deploymentServicePublish);
/**
* 新增发布列表
*
* @param deploymentServicePublish 发布列表
* @return 结果
*/
public int insertDeploymentServicePublish(DeploymentServicePublish deploymentServicePublish);
/**
* 修改发布列表
*
* @param deploymentServicePublish 发布列表
* @return 结果
*/
public int updateDeploymentServicePublish(DeploymentServicePublish deploymentServicePublish);
/**
* 删除发布列表
*
* @param id 发布列表主键
* @return 结果
*/
public int deleteDeploymentServicePublishById(Long id);
/**
* 批量删除发布列表
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDeploymentServicePublishByIds(Long[] ids);
}

View File

@ -0,0 +1,62 @@
package com.sf.deployment.service;
import com.sf.system.deployment.domain.DeploymentApplyEnvironment;
import java.util.List;
/**
* 环境维护Service接口
*
* @author ztzh
* @date 2024-04-19
*/
public interface IDeploymentApplyEnvironmentService
{
/**
* 查询环境维护
*
* @param id 环境维护主键
* @return 环境维护
*/
public DeploymentApplyEnvironment selectDeploymentApplyEnvironmentById(Long id);
/**
* 查询环境维护列表
*
* @param deploymentApplyEnvironment 环境维护
* @return 环境维护集合
*/
public List<DeploymentApplyEnvironment> selectDeploymentApplyEnvironmentList(DeploymentApplyEnvironment deploymentApplyEnvironment);
/**
* 新增环境维护
*
* @param deploymentApplyEnvironment 环境维护
* @return 结果
*/
public int insertDeploymentApplyEnvironment(DeploymentApplyEnvironment deploymentApplyEnvironment);
/**
* 修改环境维护
*
* @param deploymentApplyEnvironment 环境维护
* @return 结果
*/
public int updateDeploymentApplyEnvironment(DeploymentApplyEnvironment deploymentApplyEnvironment);
/**
* 批量删除环境维护
*
* @param ids 需要删除的环境维护主键集合
* @return 结果
*/
public int deleteDeploymentApplyEnvironmentByIds(Long[] ids);
/**
* 删除环境维护信息
*
* @param id 环境维护主键
* @return 结果
*/
public int deleteDeploymentApplyEnvironmentById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.sf.system.deployment.service;
import java.util.List;
import com.sf.system.deployment.domain.DeploymentModuleList;
/**
* H5模块包Service接口
*
* @author ztzh
* @date 2024-04-22
*/
public interface IDeploymentModuleListService
{
/**
* 查询H5模块包
*
* @param id H5模块包主键
* @return H5模块包
*/
public DeploymentModuleList selectDeploymentModuleListById(Long id);
/**
* 查询H5模块包列表
*
* @param deploymentModuleList H5模块包
* @return H5模块包集合
*/
public List<DeploymentModuleList> selectDeploymentModuleListList(DeploymentModuleList deploymentModuleList);
/**
* 新增H5模块包
*
* @param deploymentModuleList H5模块包
* @return 结果
*/
public int insertDeploymentModuleList(DeploymentModuleList deploymentModuleList);
/**
* 修改H5模块包
*
* @param deploymentModuleList H5模块包
* @return 结果
*/
public int updateDeploymentModuleList(DeploymentModuleList deploymentModuleList);
/**
* 批量删除H5模块包
*
* @param ids 需要删除的H5模块包主键集合
* @return 结果
*/
public int deleteDeploymentModuleListByIds(Long[] ids);
/**
* 删除H5模块包信息
*
* @param id H5模块包主键
* @return 结果
*/
public int deleteDeploymentModuleListById(Long id);
}

View File

@ -0,0 +1,62 @@
package com.sf.system.deployment.service;
import com.sf.system.deployment.domain.DeploymentServicePublish;
import java.util.List;
/**
* 发布列表Service接口
*
* @author ztzh
* @date 2024-04-19
*/
public interface IDeploymentServicePublishService
{
/**
* 查询发布列表
*
* @param id 发布列表主键
* @return 发布列表
*/
public DeploymentServicePublish selectDeploymentServicePublishById(Long id);
/**
* 查询发布列表列表
*
* @param deploymentServicePublish 发布列表
* @return 发布列表集合
*/
public List<DeploymentServicePublish> selectDeploymentServicePublishList(DeploymentServicePublish deploymentServicePublish);
/**
* 新增发布列表
*
* @param deploymentServicePublish 发布列表
* @return 结果
*/
public int insertDeploymentServicePublish(DeploymentServicePublish deploymentServicePublish);
/**
* 修改发布列表
*
* @param deploymentServicePublish 发布列表
* @return 结果
*/
public int updateDeploymentServicePublish(DeploymentServicePublish deploymentServicePublish);
/**
* 批量删除发布列表
*
* @param ids 需要删除的发布列表主键集合
* @return 结果
*/
public int deleteDeploymentServicePublishByIds(Long[] ids);
/**
* 删除发布列表信息
*
* @param id 发布列表主键
* @return 结果
*/
public int deleteDeploymentServicePublishById(Long id);
}

View File

@ -0,0 +1,96 @@
package com.sf.deployment.service.impl;
import java.util.List;
import com.sf.common.utils.DateUtils;
import com.sf.system.deployment.domain.DeploymentApplyEnvironment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sf.deployment.mapper.DeploymentApplyEnvironmentMapper;
import com.sf.deployment.service.IDeploymentApplyEnvironmentService;
/**
* 环境维护Service业务层处理
*
* @author ztzh
* @date 2024-04-19
*/
@Service
public class DeploymentApplyEnvironmentServiceImpl implements IDeploymentApplyEnvironmentService
{
@Autowired
private DeploymentApplyEnvironmentMapper deploymentApplyEnvironmentMapper;
/**
* 查询环境维护
*
* @param id 环境维护主键
* @return 环境维护
*/
@Override
public DeploymentApplyEnvironment selectDeploymentApplyEnvironmentById(Long id)
{
return deploymentApplyEnvironmentMapper.selectDeploymentApplyEnvironmentById(id);
}
/**
* 查询环境维护列表
*
* @param deploymentApplyEnvironment 环境维护
* @return 环境维护
*/
@Override
public List<DeploymentApplyEnvironment> selectDeploymentApplyEnvironmentList(DeploymentApplyEnvironment deploymentApplyEnvironment)
{
return deploymentApplyEnvironmentMapper.selectDeploymentApplyEnvironmentList(deploymentApplyEnvironment);
}
/**
* 新增环境维护
*
* @param deploymentApplyEnvironment 环境维护
* @return 结果
*/
@Override
public int insertDeploymentApplyEnvironment(DeploymentApplyEnvironment deploymentApplyEnvironment)
{
deploymentApplyEnvironment.setCreateTime(DateUtils.getNowDate());
return deploymentApplyEnvironmentMapper.insertDeploymentApplyEnvironment(deploymentApplyEnvironment);
}
/**
* 修改环境维护
*
* @param deploymentApplyEnvironment 环境维护
* @return 结果
*/
@Override
public int updateDeploymentApplyEnvironment(DeploymentApplyEnvironment deploymentApplyEnvironment)
{
deploymentApplyEnvironment.setUpdateTime(DateUtils.getNowDate());
return deploymentApplyEnvironmentMapper.updateDeploymentApplyEnvironment(deploymentApplyEnvironment);
}
/**
* 批量删除环境维护
*
* @param ids 需要删除的环境维护主键
* @return 结果
*/
@Override
public int deleteDeploymentApplyEnvironmentByIds(Long[] ids)
{
return deploymentApplyEnvironmentMapper.deleteDeploymentApplyEnvironmentByIds(ids);
}
/**
* 删除环境维护信息
*
* @param id 环境维护主键
* @return 结果
*/
@Override
public int deleteDeploymentApplyEnvironmentById(Long id)
{
return deploymentApplyEnvironmentMapper.deleteDeploymentApplyEnvironmentById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.sf.system.deployment.service.impl;
import java.util.List;
import com.sf.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sf.system.deployment.mapper.DeploymentModuleListMapper;
import com.sf.system.deployment.domain.DeploymentModuleList;
import com.sf.system.deployment.service.IDeploymentModuleListService;
/**
* H5模块包Service业务层处理
*
* @author ztzh
* @date 2024-04-22
*/
@Service
public class DeploymentModuleListServiceImpl implements IDeploymentModuleListService
{
@Autowired
private DeploymentModuleListMapper deploymentModuleListMapper;
/**
* 查询H5模块包
*
* @param id H5模块包主键
* @return H5模块包
*/
@Override
public DeploymentModuleList selectDeploymentModuleListById(Long id)
{
return deploymentModuleListMapper.selectDeploymentModuleListById(id);
}
/**
* 查询H5模块包列表
*
* @param deploymentModuleList H5模块包
* @return H5模块包
*/
@Override
public List<DeploymentModuleList> selectDeploymentModuleListList(DeploymentModuleList deploymentModuleList)
{
return deploymentModuleListMapper.selectDeploymentModuleListList(deploymentModuleList);
}
/**
* 新增H5模块包
*
* @param deploymentModuleList H5模块包
* @return 结果
*/
@Override
public int insertDeploymentModuleList(DeploymentModuleList deploymentModuleList)
{
deploymentModuleList.setCreateTime(DateUtils.getNowDate());
return deploymentModuleListMapper.insertDeploymentModuleList(deploymentModuleList);
}
/**
* 修改H5模块包
*
* @param deploymentModuleList H5模块包
* @return 结果
*/
@Override
public int updateDeploymentModuleList(DeploymentModuleList deploymentModuleList)
{
deploymentModuleList.setUpdateTime(DateUtils.getNowDate());
return deploymentModuleListMapper.updateDeploymentModuleList(deploymentModuleList);
}
/**
* 批量删除H5模块包
*
* @param ids 需要删除的H5模块包主键
* @return 结果
*/
@Override
public int deleteDeploymentModuleListByIds(Long[] ids)
{
return deploymentModuleListMapper.deleteDeploymentModuleListByIds(ids);
}
/**
* 删除H5模块包信息
*
* @param id H5模块包主键
* @return 结果
*/
@Override
public int deleteDeploymentModuleListById(Long id)
{
return deploymentModuleListMapper.deleteDeploymentModuleListById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.sf.system.deployment.service.impl;
import java.util.List;
import com.sf.common.utils.DateUtils;
import com.sf.system.deployment.domain.DeploymentServicePublish;
import com.sf.system.deployment.mapper.DeploymentServicePublishMapper;
import com.sf.system.deployment.service.IDeploymentServicePublishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 发布列表Service业务层处理
*
* @author ztzh
* @date 2024-04-19
*/
@Service
public class DeploymentServicePublishServiceImpl implements IDeploymentServicePublishService
{
@Autowired
private DeploymentServicePublishMapper deploymentServicePublishMapper;
/**
* 查询发布列表
*
* @param id 发布列表主键
* @return 发布列表
*/
@Override
public DeploymentServicePublish selectDeploymentServicePublishById(Long id)
{
return deploymentServicePublishMapper.selectDeploymentServicePublishById(id);
}
/**
* 查询发布列表列表
*
* @param deploymentServicePublish 发布列表
* @return 发布列表
*/
@Override
public List<DeploymentServicePublish> selectDeploymentServicePublishList(DeploymentServicePublish deploymentServicePublish)
{
return deploymentServicePublishMapper.selectDeploymentServicePublishList(deploymentServicePublish);
}
/**
* 新增发布列表
*
* @param deploymentServicePublish 发布列表
* @return 结果
*/
@Override
public int insertDeploymentServicePublish(DeploymentServicePublish deploymentServicePublish)
{
deploymentServicePublish.setCreateTime(DateUtils.getNowDate());
return deploymentServicePublishMapper.insertDeploymentServicePublish(deploymentServicePublish);
}
/**
* 修改发布列表
*
* @param deploymentServicePublish 发布列表
* @return 结果
*/
@Override
public int updateDeploymentServicePublish(DeploymentServicePublish deploymentServicePublish)
{
deploymentServicePublish.setUpdateTime(DateUtils.getNowDate());
return deploymentServicePublishMapper.updateDeploymentServicePublish(deploymentServicePublish);
}
/**
* 批量删除发布列表
*
* @param ids 需要删除的发布列表主键
* @return 结果
*/
@Override
public int deleteDeploymentServicePublishByIds(Long[] ids)
{
return deploymentServicePublishMapper.deleteDeploymentServicePublishByIds(ids);
}
/**
* 删除发布列表信息
*
* @param id 发布列表主键
* @return 结果
*/
@Override
public int deleteDeploymentServicePublishById(Long id)
{
return deploymentServicePublishMapper.deleteDeploymentServicePublishById(id);
}
}

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sf.deployment.mapper.DeploymentApplyEnvironmentMapper">
<resultMap type="DeploymentApplyEnvironment" id="DeploymentApplyEnvironmentResult">
<result property="id" column="id" />
<result property="appId" column="app_id" />
<result property="applyCode" column="apply_code" />
<result property="name" column="name" />
<result property="serverAddress" column="server_address" />
<result property="remark" column="remark" />
<result property="isDelete" column="is_delete" />
<result property="createDept" column="create_dept" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectDeploymentApplyEnvironmentVo">
select id, app_id, apply_code, name, server_address, remark, is_delete, create_dept, create_time, create_by, update_time, update_by from DEPLOYMENT_APPLY_ENVIRONMENT
</sql>
<select id="selectDeploymentApplyEnvironmentList" parameterType="DeploymentApplyEnvironment" resultMap="DeploymentApplyEnvironmentResult">
<include refid="selectDeploymentApplyEnvironmentVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
</where>
</select>
<select id="selectDeploymentApplyEnvironmentById" parameterType="Long" resultMap="DeploymentApplyEnvironmentResult">
<include refid="selectDeploymentApplyEnvironmentVo"/>
where id = #{id}
</select>
<insert id="insertDeploymentApplyEnvironment" parameterType="DeploymentApplyEnvironment" useGeneratedKeys="true" keyProperty="id">
insert into DEPLOYMENT_APPLY_ENVIRONMENT
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="appId != null">app_id,</if>
<if test="applyCode != null">apply_code,</if>
<if test="name != null and name != ''">name,</if>
<if test="serverAddress != null and serverAddress != ''">server_address,</if>
<if test="remark != null">remark,</if>
<if test="isDelete != null">is_delete,</if>
<if test="createDept != null">create_dept,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appId != null">#{appId},</if>
<if test="applyCode != null">#{applyCode},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="serverAddress != null and serverAddress != ''">#{serverAddress},</if>
<if test="remark != null">#{remark},</if>
<if test="isDelete != null">#{isDelete},</if>
<if test="createDept != null">#{createDept},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateDeploymentApplyEnvironment" parameterType="DeploymentApplyEnvironment">
update DEPLOYMENT_APPLY_ENVIRONMENT
<trim prefix="SET" suffixOverrides=",">
<if test="appId != null">app_id = #{appId},</if>
<if test="applyCode != null">apply_code = #{applyCode},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="serverAddress != null and serverAddress != ''">server_address = #{serverAddress},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDelete != null">is_delete = #{isDelete},</if>
<if test="createDept != null">create_dept = #{createDept},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDeploymentApplyEnvironmentById" parameterType="Long">
delete from DEPLOYMENT_APPLY_ENVIRONMENT where id = #{id}
</delete>
<delete id="deleteDeploymentApplyEnvironmentByIds" parameterType="String">
delete from DEPLOYMENT_APPLY_ENVIRONMENT where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sf.system.deployment.mapper.DeploymentModuleListMapper">
<resultMap type="DeploymentModuleList" id="DeploymentModuleListResult">
<result property="id" column="id"/>
<result property="appId" column="app_id"/>
<result property="appCore" column="app_core"/>
<result property="uploadingType" column="uploading_type"/>
<result property="moduleName" column="module_name"/>
<result property="version" column="version"/>
<result property="moduleUrl" column="module_url"/>
<result property="moduleSize" column="module_size"/>
<result property="sysType" column="sys_type"/>
<result property="moduleType" column="module_type"/>
<result property="uploadingStatus" column="uploading_status"/>
<result property="uploadingLogId" column="uploading_log_id"/>
<result property="orderNum" column="order_num"/>
<result property="isDelete" column="is_delete"/>
<result property="created" column="created"/>
<result property="modified" column="modified"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectDeploymentModuleListVo">
select id, app_id, app_core, uploading_type, module_name, version, module_url, module_size, sys_type, module_type, uploading_status, uploading_log_id, order_num, is_delete, created, modified, create_time, update_time from DEPLOYMENT_MODULE_LIST
</sql>
<select id="selectDeploymentModuleListList" parameterType="DeploymentModuleList"
resultMap="DeploymentModuleListResult">
<include refid="selectDeploymentModuleListVo"/>
<where>
<if test="appCore != null and appCore != ''">and app_core = #{appCore}</if>
<if test="sysType != null and sysType != ''">and sys_type= #{sysType}</if>
<if test="moduleName != null and moduleName != ''">and module_name like concat('%', #{moduleName}, '%')</if>
<if test="version != null and version != ''">and version = #{version}</if>
<if test="uploadingStatus != null and uploadingStatus != ''">and uploading_status = #{uploadingStatus}</if>
<if test="createTime != null ">and create_time = #{createTime}</if>
</where>
</select>
<select id="selectDeploymentModuleListById" parameterType="Long" resultMap="DeploymentModuleListResult">
<include refid="selectDeploymentModuleListVo"/>
where id = #{id}
</select>
<insert id="insertDeploymentModuleList" parameterType="DeploymentModuleList" useGeneratedKeys="true"
keyProperty="id">
insert into DEPLOYMENT_MODULE_LIST
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="appId != null">app_id,</if>
<if test="appCore != null">app_core,</if>
<if test="uploadingType != null">uploading_type,</if>
<if test="moduleName != null and moduleName != ''">module_name,</if>
<if test="version != null and version != ''">version,</if>
<if test="moduleUrl != null">module_url,</if>
<if test="moduleSize != null">module_size,</if>
<if test="sysType != null and sysType != ''">sys_type,</if>
<if test="moduleType != null and moduleType != ''">module_type,</if>
<if test="uploadingStatus != null and uploadingStatus != ''">uploading_status,</if>
<if test="uploadingLogId != null">uploading_log_id,</if>
<if test="orderNum != null">order_num,</if>
<if test="isDelete != null">is_delete,</if>
<if test="created != null">created,</if>
<if test="modified != null">modified,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appId != null">#{appId},</if>
<if test="appCore != null">#{appCore},</if>
<if test="uploadingType != null">#{uploadingType},</if>
<if test="moduleName != null and moduleName != ''">#{moduleName},</if>
<if test="version != null and version != ''">#{version},</if>
<if test="moduleUrl != null">#{moduleUrl},</if>
<if test="moduleSize != null">#{moduleSize},</if>
<if test="sysType != null and sysType != ''">#{sysType},</if>
<if test="moduleType != null and moduleType != ''">#{moduleType},</if>
<if test="uploadingStatus != null and uploadingStatus != ''">#{uploadingStatus},</if>
<if test="uploadingLogId != null">#{uploadingLogId},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="isDelete != null">#{isDelete},</if>
<if test="created != null">#{created},</if>
<if test="modified != null">#{modified},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateDeploymentModuleList" parameterType="DeploymentModuleList">
update DEPLOYMENT_MODULE_LIST
<trim prefix="SET" suffixOverrides=",">
<if test="appId != null">app_id = #{appId},</if>
<if test="appCore != null">app_core = #{appCore},</if>
<if test="uploadingType != null">uploading_type = #{uploadingType},</if>
<if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</if>
<if test="version != null and version != ''">version = #{version},</if>
<if test="moduleUrl != null">module_url = #{moduleUrl},</if>
<if test="moduleSize != null">module_size = #{moduleSize},</if>
<if test="sysType != null and sysType != ''">sys_type = #{sysType},</if>
<if test="moduleType != null and moduleType != ''">module_type = #{moduleType},</if>
<if test="uploadingStatus != null and uploadingStatus != ''">uploading_status = #{uploadingStatus},</if>
<if test="uploadingLogId != null">uploading_log_id = #{uploadingLogId},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="isDelete != null">is_delete = #{isDelete},</if>
<if test="created != null">created = #{created},</if>
<if test="modified != null">modified = #{modified},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDeploymentModuleListById" parameterType="Long">
delete
from DEPLOYMENT_MODULE_LIST
where id = #{id}
</delete>
<delete id="deleteDeploymentModuleListByIds" parameterType="String">
delete from DEPLOYMENT_MODULE_LIST where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,147 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sf.system.deployment.mapper.DeploymentServicePublishMapper">
<resultMap type="DeploymentServicePublish" id="DeploymentServicePublishResult">
<result property="id" column="id" />
<result property="applyId" column="apply_id" />
<result property="appName" column="app_name" />
<result property="systemType" column="system_type" />
<result property="apkId" column="apk_id" />
<result property="appStoreAddress" column="app_store_address" />
<result property="version" column="version" />
<result property="versionDesc" column="version_desc" />
<result property="publishEnvironment" column="publish_environment" />
<result property="publishStrategy" column="publish_strategy" />
<result property="resultNotify" column="result_notify" />
<result property="publicVersion" column="public_version" />
<result property="forceUpdate" column="force_update" />
<result property="downloadVerification" column="download_verification" />
<result property="updateObject" column="update_object" />
<result property="validityStartTime" column="validity_start_time" />
<result property="validityEndTime" column="validity_end_time" />
<result property="remark" column="remark" />
<result property="status" column="status" />
<result property="isDelete" column="is_delete" />
<result property="created" column="created" />
<result property="modified" column="modified" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDeploymentServicePublishVo">
select id, apply_id, app_name, system_type, apk_id, app_store_address, version, version_desc, publish_environment, publish_strategy, result_notify, public_version, force_update, download_verification, update_object, validity_start_time, validity_end_time, remark, status, is_delete, created, modified, create_time, update_time from DEPLOYMENT_SERVICE_PUBLISH
</sql>
<select id="selectDeploymentServicePublishList" parameterType="DeploymentServicePublish" resultMap="DeploymentServicePublishResult">
<include refid="selectDeploymentServicePublishVo"/>
<where>
<if test="appName != null and appName != ''"> and app_name like concat('%', #{appName}, '%')</if>
<if test="version != null and version != ''"> and version = #{version}</if>
<if test="validityStartTime != null "> and validity_start_time = #{validityStartTime}</if>
<if test="validityEndTime != null "> and validity_end_time = #{validityEndTime}</if>
</where>
</select>
<select id="selectDeploymentServicePublishById" parameterType="Long" resultMap="DeploymentServicePublishResult">
<include refid="selectDeploymentServicePublishVo"/>
where id = #{id}
</select>
<insert id="insertDeploymentServicePublish" parameterType="DeploymentServicePublish" useGeneratedKeys="true" keyProperty="id">
insert into DEPLOYMENT_SERVICE_PUBLISH
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applyId != null">apply_id,</if>
<if test="appName != null and appName != ''">app_name,</if>
<if test="systemType != null and systemType != ''">system_type,</if>
<if test="apkId != null and apkId != ''">apk_id,</if>
<if test="appStoreAddress != null">app_store_address,</if>
<if test="version != null and version != ''">version,</if>
<if test="versionDesc != null">version_desc,</if>
<if test="publishEnvironment != null">publish_environment,</if>
<if test="publishStrategy != null">publish_strategy,</if>
<if test="resultNotify != null">result_notify,</if>
<if test="publicVersion != null">public_version,</if>
<if test="forceUpdate != null">force_update,</if>
<if test="downloadVerification != null">download_verification,</if>
<if test="updateObject != null">update_object,</if>
<if test="validityStartTime != null">validity_start_time,</if>
<if test="validityEndTime != null">validity_end_time,</if>
<if test="remark != null">remark,</if>
<if test="status != null">status,</if>
<if test="isDelete != null">is_delete,</if>
<if test="created != null">created,</if>
<if test="modified != null">modified,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applyId != null">#{applyId},</if>
<if test="appName != null and appName != ''">#{appName},</if>
<if test="systemType != null and systemType != ''">#{systemType},</if>
<if test="apkId != null and apkId != ''">#{apkId},</if>
<if test="appStoreAddress != null">#{appStoreAddress},</if>
<if test="version != null and version != ''">#{version},</if>
<if test="versionDesc != null">#{versionDesc},</if>
<if test="publishEnvironment != null">#{publishEnvironment},</if>
<if test="publishStrategy != null">#{publishStrategy},</if>
<if test="resultNotify != null">#{resultNotify},</if>
<if test="publicVersion != null">#{publicVersion},</if>
<if test="forceUpdate != null">#{forceUpdate},</if>
<if test="downloadVerification != null">#{downloadVerification},</if>
<if test="updateObject != null">#{updateObject},</if>
<if test="validityStartTime != null">#{validityStartTime},</if>
<if test="validityEndTime != null">#{validityEndTime},</if>
<if test="remark != null">#{remark},</if>
<if test="status != null">#{status},</if>
<if test="isDelete != null">#{isDelete},</if>
<if test="created != null">#{created},</if>
<if test="modified != null">#{modified},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateDeploymentServicePublish" parameterType="DeploymentServicePublish">
update DEPLOYMENT_SERVICE_PUBLISH
<trim prefix="SET" suffixOverrides=",">
<if test="applyId != null">apply_id = #{applyId},</if>
<if test="appName != null and appName != ''">app_name = #{appName},</if>
<if test="systemType != null and systemType != ''">system_type = #{systemType},</if>
<if test="apkId != null and apkId != ''">apk_id = #{apkId},</if>
<if test="appStoreAddress != null">app_store_address = #{appStoreAddress},</if>
<if test="version != null and version != ''">version = #{version},</if>
<if test="versionDesc != null">version_desc = #{versionDesc},</if>
<if test="publishEnvironment != null">publish_environment = #{publishEnvironment},</if>
<if test="publishStrategy != null">publish_strategy = #{publishStrategy},</if>
<if test="resultNotify != null">result_notify = #{resultNotify},</if>
<if test="publicVersion != null">public_version = #{publicVersion},</if>
<if test="forceUpdate != null">force_update = #{forceUpdate},</if>
<if test="downloadVerification != null">download_verification = #{downloadVerification},</if>
<if test="updateObject != null">update_object = #{updateObject},</if>
<if test="validityStartTime != null">validity_start_time = #{validityStartTime},</if>
<if test="validityEndTime != null">validity_end_time = #{validityEndTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="status != null">status = #{status},</if>
<if test="isDelete != null">is_delete = #{isDelete},</if>
<if test="created != null">created = #{created},</if>
<if test="modified != null">modified = #{modified},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDeploymentServicePublishById" parameterType="Long">
delete from DEPLOYMENT_SERVICE_PUBLISH where id = #{id}
</delete>
<delete id="deleteDeploymentServicePublishByIds" parameterType="String">
delete from DEPLOYMENT_SERVICE_PUBLISH where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询环境维护列表
export function listEnvironment(query) {
return request({
url: '/deployment/environment/list',
method: 'get',
params: query
})
}
// 查询环境维护详细
export function getEnvironment(id) {
return request({
url: '/deployment/environment/' + id,
method: 'get'
})
}
// 新增环境维护
export function addEnvironment(data) {
return request({
url: '/deployment/environment',
method: 'post',
data: data
})
}
// 修改环境维护
export function updateEnvironment(data) {
return request({
url: '/deployment/environment',
method: 'put',
data: data
})
}
// 删除环境维护
export function delEnvironment(id) {
return request({
url: '/deployment/environment/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询H5模块包列表
export function listModule(query) {
return request({
url: '/deployment/module/list',
method: 'get',
params: query
})
}
// 查询H5模块包详细
export function getModule(id) {
return request({
url: '/deployment/module/' + id,
method: 'get'
})
}
// 新增H5模块包
export function addModule(data) {
return request({
url: '/deployment/module',
method: 'post',
data: data
})
}
// 修改H5模块包
export function updateModule(data) {
return request({
url: '/deployment/module',
method: 'put',
data: data
})
}
// 删除H5模块包
export function delModule(id) {
return request({
url: '/deployment/module/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询发布列表列表
export function listPublish(query) {
return request({
url: '/deployment/publish/list',
method: 'get',
params: query
})
}
// 查询发布列表详细
export function getPublish(id) {
return request({
url: '/deployment/publish/' + id,
method: 'get'
})
}
// 新增发布列表
export function addPublish(data) {
return request({
url: '/deployment/publish',
method: 'post',
data: data
})
}
// 修改发布列表
export function updatePublish(data) {
return request({
url: '/deployment/publish',
method: 'put',
data: data
})
}
// 删除发布列表
export function delPublish(id) {
return request({
url: '/deployment/publish/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,274 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="环境名称" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入环境名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['deployment:environment:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['deployment:environment:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['deployment:environment:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['deployment:environment:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="environmentList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="环境名称" align="center" prop="name" />
<el-table-column label="服务器地址" align="center" prop="serverAddress" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['deployment:environment:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['deployment:environment:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改环境维护对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="应用id" prop="appId">
<el-input v-model="form.appId" placeholder="请输入应用id" />
</el-form-item>
<el-form-item label="环境名称" prop="name">
<el-input v-model="form.name" placeholder="请输入环境名称" />
</el-form-item>
<el-form-item label="服务器地址" prop="serverAddress">
<el-input v-model="form.serverAddress" placeholder="请输入服务器地址" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listEnvironment, getEnvironment, delEnvironment, addEnvironment, updateEnvironment } from "@/api/deployment/environment";
export default {
name: "Environment",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
environmentList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
name: null,
},
//
form: {},
//
rules: {
name: [
{ required: true, message: "环境名称不能为空", trigger: "blur" }
],
serverAddress: [
{ required: true, message: "服务器地址不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询环境维护列表 */
getList() {
this.loading = true;
listEnvironment(this.queryParams).then(response => {
this.environmentList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
appId: null,
applyCode: null,
name: null,
serverAddress: null,
remark: null,
isDelete: null,
createDept: null,
createTime: null,
createBy: null,
updateTime: null,
updateBy: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加环境维护";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getEnvironment(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改环境维护";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
let data = Object.assign({},this.form)
delete data.explain
updateEnvironment(data).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addEnvironment(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除环境维护编号为"' + ids + '"的数据项?').then(function() {
return delEnvironment(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('deployment/environment/export', {
...this.queryParams
}, `environment_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,341 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="模块包名称名称" prop="moduleName">
<el-input
v-model="queryParams.moduleName"
placeholder="请输入模块包名称名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input
v-model="queryParams.version"
placeholder="请输入版本号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间" prop="createTime">
<el-date-picker clearable
v-model="queryParams.createTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择创建时间">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['deployment:module:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['deployment:module:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['deployment:module:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['deployment:module:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="moduleList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="模块包名称名称" align="center" prop="moduleName" />
<el-table-column label="版本号" align="center" prop="version" />
<el-table-column label="安装包" align="center" prop="moduleUrl" />
<el-table-column label="安装包大小" align="center" prop="moduleSize" />
<el-table-column label="系统类型" align="center" prop="sysType">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_apk_type" :value="scope.row.sysType"/>
</template>
</el-table-column>
<el-table-column label="模块类型" align="center" prop="moduleType">
<template slot-scope="scope">
<dict-tag :options="dict.type.module_type" :value="scope.row.moduleType"/>
</template>
</el-table-column>
<el-table-column label="上传状态" align="center" prop="uploadingStatus" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['deployment:module:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['deployment:module:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改H5模块包对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="模块包名称名称" prop="moduleName">
<el-input v-model="form.moduleName" placeholder="请输入模块包名称名称" />
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input v-model="form.version" placeholder="请输入版本号" />
</el-form-item>
<el-form-item label="安装包" prop="moduleUrl">
<el-input v-model="form.moduleUrl" placeholder="请输入安装包" />
</el-form-item>
<el-form-item label="安装包大小" prop="moduleSize">
<el-input v-model="form.moduleSize" placeholder="请输入安装包大小" />
</el-form-item>
<el-form-item label="系统类型" prop="sysType">
<el-select v-model="form.sysType" placeholder="请选择系统类型">
<el-option
v-for="dict in dict.type.sys_apk_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="模块类型" prop="moduleType">
<el-select v-model="form.moduleType" placeholder="请选择模块类型">
<el-option
v-for="dict in dict.type.module_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listModule, getModule, delModule, addModule, updateModule } from "@/api/deployment/module";
export default {
name: "Module",
dicts: ['module_type', 'sys_apk_type'],
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// H5
moduleList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
moduleName: null,
version: null,
uploadingStatus: null,
createTime: null,
},
//
form: {},
//
rules: {
moduleName: [
{ required: true, message: "模块包名称名称不能为空", trigger: "blur" }
],
version: [
{ required: true, message: "版本号不能为空", trigger: "blur" }
],
sysType: [
{ required: true, message: "系统类型不能为空", trigger: "change" }
],
moduleType: [
{ required: true, message: "模块类型不能为空", trigger: "change" }
],
uploadingStatus: [
{ required: true, message: "上传状态不能为空", trigger: "change" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询H5模块包列表 */
getList() {
this.loading = true;
listModule(this.queryParams).then(response => {
this.moduleList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
appId: null,
appCore: null,
uploadingType: null,
moduleName: null,
version: null,
moduleUrl: null,
moduleSize: null,
sysType: null,
moduleType: null,
uploadingStatus: null,
uploadingLogId: null,
orderNum: null,
isDelete: null,
created: null,
modified: null,
createTime: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加H5模块包";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getModule(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改H5模块包";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
let data = Object.assign({},this.form)
delete data.explain
updateModule(data).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addModule(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除H5模块包编号为"' + ids + '"的数据项?').then(function() {
return delModule(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('deployment/module/export', {
...this.queryParams
}, `module_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,472 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="应用name" prop="appName">
<el-input
v-model="queryParams.appName"
placeholder="请输入应用name"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input
v-model="queryParams.version"
placeholder="请输入版本号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="有效期开始时间" prop="validityStartTime">
<el-date-picker clearable
v-model="queryParams.validityStartTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择有效期开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="有效期结束时间" prop="validityEndTime">
<el-date-picker clearable
v-model="queryParams.validityEndTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择有效期结束时间">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['deployment:publish:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['deployment:publish:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['deployment:publish:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['deployment:publish:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="publishList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="应用id" align="center" prop="applyId" />
<el-table-column label="应用name" align="center" prop="appName" />
<el-table-column label="系统类型" align="center" prop="systemType" />
<el-table-column label="安装包编号" align="center" prop="apkId" />
<el-table-column label="app store地址" align="center" prop="appStoreAddress" />
<el-table-column label="版本号" align="center" prop="version" />
<el-table-column label="版本说明" align="center" prop="versionDesc" />
<el-table-column label="发布环境" align="center" prop="publishEnvironment">
<template slot-scope="scope">
<dict-tag :options="dict.type.release_environment" :value="scope.row.publishEnvironment"/>
</template>
</el-table-column>
<el-table-column label="发布策略" align="center" prop="publishStrategy">
<template slot-scope="scope">
<dict-tag :options="dict.type.release_strategy" :value="scope.row.publishStrategy"/>
</template>
</el-table-column>
<el-table-column label="通知" align="center" prop="resultNotify" />
<el-table-column label="公开版" align="center" prop="publicVersion">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.publicVersion"/>
</template>
</el-table-column>
<el-table-column label="强制更新" align="center" prop="forceUpdate">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.forceUpdate"/>
</template>
</el-table-column>
<el-table-column label="下载验证" align="center" prop="downloadVerification" />
<el-table-column label="更新对象(-1: 不限制, 白名单id)" align="center" prop="updateObject">
<template slot-scope="scope">
<dict-tag :options="dict.type.release_user_type" :value="scope.row.updateObject"/>
</template>
</el-table-column>
<el-table-column label="有效期开始时间" align="center" prop="validityStartTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.validityStartTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="有效期结束时间" align="center" prop="validityEndTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.validityEndTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="0:保存,1:已发布,2:已下架" align="center" prop="status" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['deployment:publish:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['deployment:publish:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改发布列表对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="应用id" prop="applyId">
<el-input v-model="form.applyId" placeholder="请输入应用id" />
</el-form-item>
<el-form-item label="应用name" prop="appName">
<el-input v-model="form.appName" placeholder="请输入应用name" />
</el-form-item>
<el-form-item label="安装包编号" prop="apkId">
<el-input v-model="form.apkId" placeholder="请输入安装包编号" />
</el-form-item>
<el-form-item label="app store地址" prop="appStoreAddress">
<el-input v-model="form.appStoreAddress" placeholder="请输入app store地址" />
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input v-model="form.version" placeholder="请输入版本号" />
</el-form-item>
<el-form-item label="版本说明" prop="versionDesc">
<el-input v-model="form.versionDesc" placeholder="请输入版本说明" />
</el-form-item>
<el-form-item label="发布环境" prop="publishEnvironment">
<el-radio-group v-model="form.publishEnvironment">
<el-radio
v-for="dict in dict.type.release_environment"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="发布策略" prop="publishStrategy">
<el-radio-group v-model="form.publishStrategy">
<el-radio
v-for="dict in dict.type.release_strategy"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="通知" prop="resultNotify">
<el-input v-model="form.resultNotify" placeholder="请输入通知" />
</el-form-item>
<el-form-item label="公开版" prop="publicVersion">
<el-radio-group v-model="form.publicVersion">
<el-radio
v-for="dict in dict.type.sys_yes_no"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="强制更新" prop="forceUpdate">
<el-radio-group v-model="form.forceUpdate">
<el-radio
v-for="dict in dict.type.sys_yes_no"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="下载验证" prop="downloadVerification">
<el-input v-model="form.downloadVerification" placeholder="请输入下载验证" />
</el-form-item>
<el-form-item label="更新对象(-1: 不限制, 白名单id)" prop="updateObject">
<el-radio-group v-model="form.updateObject">
<el-radio
v-for="dict in dict.type.release_user_type"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="有效期开始时间" prop="validityStartTime">
<el-date-picker clearable
v-model="form.validityStartTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择有效期开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="有效期结束时间" prop="validityEndTime">
<el-date-picker clearable
v-model="form.validityEndTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择有效期结束时间">
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="逻辑删除,0:未删除,1:删除" prop="isDelete">
<el-input v-model="form.isDelete" placeholder="请输入逻辑删除,0:未删除,1:删除" />
</el-form-item>
<el-form-item label="创建人" prop="created">
<el-input v-model="form.created" placeholder="请输入创建人" />
</el-form-item>
<el-form-item label="更新人" prop="modified">
<el-input v-model="form.modified" placeholder="请输入更新人" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/deployment/publish";
export default {
name: "Publish",
dicts: ['release_environment', 'sys_yes_no', 'release_strategy', 'release_user_type'],
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
publishList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
appName: null,
version: null,
validityStartTime: null,
validityEndTime: null,
},
//
form: {},
//
rules: {
appName: [
{ required: true, message: "应用name不能为空", trigger: "blur" }
],
systemType: [
{ required: true, message: "系统类型不能为空", trigger: "change" }
],
apkId: [
{ required: true, message: "安装包编号不能为空", trigger: "blur" }
],
version: [
{ required: true, message: "版本号不能为空", trigger: "blur" }
],
publishEnvironment: [
{ required: true, message: "发布环境不能为空", trigger: "change" }
],
publishStrategy: [
{ required: true, message: "发布策略不能为空", trigger: "change" }
],
publicVersion: [
{ required: true, message: "公开版不能为空", trigger: "change" }
],
forceUpdate: [
{ required: true, message: "强制更新不能为空", trigger: "change" }
],
updateObject: [
{ required: true, message: "更新对象(-1: 不限制, 白名单id)不能为空", trigger: "change" }
],
status: [
{ required: true, message: "0:保存,1:已发布,2:已下架不能为空", trigger: "change" }
],
isDelete: [
{ required: true, message: "逻辑删除,0:未删除,1:删除不能为空", trigger: "blur" }
],
createTime: [
{ required: true, message: "创建时间不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询发布列表列表 */
getList() {
this.loading = true;
listPublish(this.queryParams).then(response => {
this.publishList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
applyId: null,
appName: null,
systemType: null,
apkId: null,
appStoreAddress: null,
version: null,
versionDesc: null,
publishEnvironment: null,
publishStrategy: null,
resultNotify: null,
publicVersion: null,
forceUpdate: null,
downloadVerification: null,
updateObject: null,
validityStartTime: null,
validityEndTime: null,
remark: null,
status: null,
isDelete: null,
created: null,
modified: null,
createTime: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加发布列表";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPublish(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改发布列表";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
let data = Object.assign({},this.form)
delete data.explain
updatePublish(data).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPublish(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除发布列表编号为"' + ids + '"的数据项?').then(function() {
return delPublish(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('deployment/publish/export', {
...this.queryParams
}, `publish_${new Date().getTime()}.xlsx`)
}
}
};
</script>