Commit 9ed47a85 authored by 赵啸非's avatar 赵啸非

添加资源部署站点字段

parent 612535ac
...@@ -11,13 +11,18 @@ ...@@ -11,13 +11,18 @@
import dialogShow from "./dialogshow"; import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table"; import table from "@/assets/mixins/table";
import session from "@/assets/utils/session";
export default { export default {
name: "DeviceModuleDistributeList", name: "DeviceModuleDistributeList",
components: { components: {
dialogShow, dialogShow,
}, },
mixins: [table], mixins: [table],
created() {}, created() {
const siteid = session.getSession("siteid");
console.log("siteId:"+siteid)
this.query["siteId"]=1;
},
methods: { methods: {
/** 重写新增方法 */ /** 重写新增方法 */
toAdd(row) { toAdd(row) {
......
...@@ -49,3 +49,16 @@ ADD COLUMN `push` tinyint(2) DEFAULT '0' COMMENT '是否推送', ...@@ -49,3 +49,16 @@ ADD COLUMN `push` tinyint(2) DEFAULT '0' COMMENT '是否推送',
ADD COLUMN `productId` bigint(20) DEFAULT '0' COMMENT '产品Id', ADD COLUMN `productId` bigint(20) DEFAULT '0' COMMENT '产品Id',
ADD COLUMN `productCode` varchar(256) DEFAULT '' COMMENT '产品编码', ADD COLUMN `productCode` varchar(256) DEFAULT '' COMMENT '产品编码',
ADD COLUMN `productName` varchar(256) DEFAULT '' COMMENT '产品名称' ADD COLUMN `productName` varchar(256) DEFAULT '' COMMENT '产品名称'
-- ----------------------------
2023-08-17
-- ----------------------------
ALTER TABLE mortals_xhx_device_module_distribute ADD COLUMN `siteId` bigint(20) COMMENT '站点Id,来源基础服务平台';
ALTER TABLE mortals_xhx_device_module_distribute ADD COLUMN `siteCode` varchar(256) default '' COMMENT '站点编号,来源基础服务平台';
ALTER TABLE mortals_xhx_device_module_distribute ADD COLUMN `siteName` varchar(256) default '' COMMENT '站点名称';
ALTER TABLE mortals_xhx_product_version ADD COLUMN `siteId` bigint(20) COMMENT '站点Id,来源基础服务平台';
ALTER TABLE mortals_xhx_product_version ADD COLUMN `siteCode` varchar(256) default '' COMMENT '站点编号,来源基础服务平台';
ALTER TABLE mortals_xhx_product_version ADD COLUMN `siteName` varchar(256) default '' COMMENT '站点名称';
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
<profiles.datasource.uri> <profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/device-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]></profiles.datasource.uri> <![CDATA[jdbc:mysql://127.0.0.1:3306/device-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]></profiles.datasource.uri>
<profiles.datasource.username>root</profiles.datasource.username> <profiles.datasource.username>root</profiles.datasource.username>
<profiles.datasource.password>xhx@2022</profiles.datasource.password> <profiles.datasource.password>root</profiles.datasource.password>
<profiles.redis.uri>127.0.0.1</profiles.redis.uri> <profiles.redis.uri>127.0.0.1</profiles.redis.uri>
<profiles.redis.port>6379</profiles.redis.port> <profiles.redis.port>6379</profiles.redis.port>
<profiles.redis.username></profiles.redis.username> <profiles.redis.username></profiles.redis.username>
...@@ -186,8 +186,8 @@ ...@@ -186,8 +186,8 @@
<profiles.redis.database>6</profiles.redis.database> <profiles.redis.database>6</profiles.redis.database>
<profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host> <profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host>
<profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port>
<profiles.rabbitmq.username>root_mq</profiles.rabbitmq.username> <profiles.rabbitmq.username>taxi_mq</profiles.rabbitmq.username>
<profiles.rabbitmq.password>xhx@2022</profiles.rabbitmq.password> <profiles.rabbitmq.password>admin@2020</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>/</profiles.rabbitmq.virtualhost> <profiles.rabbitmq.virtualhost>/</profiles.rabbitmq.virtualhost>
<profiles.rabbitmq.exchange>amp.direct</profiles.rabbitmq.exchange> <profiles.rabbitmq.exchange>amp.direct</profiles.rabbitmq.exchange>
<profiles.sms.smsSendUrl>http://127.0.0.1:8089/api/index/index</profiles.sms.smsSendUrl> <profiles.sms.smsSendUrl>http://127.0.0.1:8089/api/index/index</profiles.sms.smsSendUrl>
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
<profiles.nacos.server-addr>127.0.0.1:8848</profiles.nacos.server-addr> <profiles.nacos.server-addr>127.0.0.1:8848</profiles.nacos.server-addr>
<profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group>
<profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace>
<profiles.log.path>/mortals/app/logs</profiles.log.path> <profiles.log.path>/home/mortals/app/logs</profiles.log.path>
<package.environment>build:prod</package.environment> <package.environment>build:prod</package.environment>
<skipDeploy>false</skipDeploy> <skipDeploy>false</skipDeploy>
</properties> </properties>
......
...@@ -29,7 +29,7 @@ set JVM_CONFIG=%JVM_CONFIG% -Dapp.port=%PORT% ...@@ -29,7 +29,7 @@ set JVM_CONFIG=%JVM_CONFIG% -Dapp.port=%PORT%
set JVM_CONFIG=%JVM_CONFIG% -Djava.io.tmpdir=%TEMP_PATH% set JVM_CONFIG=%JVM_CONFIG% -Djava.io.tmpdir=%TEMP_PATH%
set JVM_CONFIG=%JVM_CONFIG% -Dbasedir=%BASEDIR% set JVM_CONFIG=%JVM_CONFIG% -Dbasedir=%BASEDIR%
set JVM_CONFIG=%JVM_CONFIG% -Dloader.path=file://%BASEDIR%/conf,file://%BASEDIR%/lib set JVM_CONFIG=%JVM_CONFIG% -Dloader.path=file://%BASEDIR%/conf,file://%BASEDIR%/lib
set JVM_CONFIG=%JVM_CONFIG% -Dfile.encoding=utf-8
set DEBUG_OPTS= set DEBUG_OPTS=
if ""%1"" == ""debug"" ( if ""%1"" == ""debug"" (
......
package com.mortals.xhx.module.device.model; package com.mortals.xhx.module.device.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.device.model.vo.DeviceModuleDistributeVo; import com.mortals.xhx.module.device.model.vo.DeviceModuleDistributeVo;
import lombok.Data;
/** /**
* 设备前端模块部署实体对象 * 设备前端模块部署实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-08-02 * @date 2023-08-18
*/ */
@Data
public class DeviceModuleDistributeEntity extends DeviceModuleDistributeVo { public class DeviceModuleDistributeEntity extends DeviceModuleDistributeVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -57,140 +54,18 @@ public class DeviceModuleDistributeEntity extends DeviceModuleDistributeVo { ...@@ -57,140 +54,18 @@ public class DeviceModuleDistributeEntity extends DeviceModuleDistributeVo {
*/ */
@Excel(name = "是否部署", readConverterExp = "0=否,1=是") @Excel(name = "是否部署", readConverterExp = "0=否,1=是")
private Integer distribute; private Integer distribute;
public DeviceModuleDistributeEntity(){}
/**
* 获取 产品Id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品Id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品编码
* @return String
*/
public String getProductCode(){
return productCode;
}
/**
* 设置 产品编码
* @param productCode
*/
public void setProductCode(String productCode){
this.productCode = productCode;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 分辨率
* @return String
*/
public String getImageResolution(){
return imageResolution;
}
/**
* 设置 分辨率
* @param imageResolution
*/
public void setImageResolution(String imageResolution){
this.imageResolution = imageResolution;
}
/**
* 获取 分辨率值
* @return String
*/
public String getImageResolutionValue(){
return imageResolutionValue;
}
/**
* 设置 分辨率值
* @param imageResolutionValue
*/
public void setImageResolutionValue(String imageResolutionValue){
this.imageResolutionValue = imageResolutionValue;
}
/** /**
* 获取 文件相对路径地址 * 站点Id,来源基础服务平台
* @return String
*/ */
public String getFilePath(){ private Long siteId;
return filePath;
}
/**
* 设置 文件相对路径地址
* @param filePath
*/
public void setFilePath(String filePath){
this.filePath = filePath;
}
/**
* 获取 文件部署路径地址
* @return String
*/
public String getDistributeFilePath(){
return distributeFilePath;
}
/**
* 设置 文件部署路径地址
* @param distributeFilePath
*/
public void setDistributeFilePath(String distributeFilePath){
this.distributeFilePath = distributeFilePath;
}
/**
* 获取 版本号
* @return String
*/
public String getVersion(){
return version;
}
/**
* 设置 版本号
* @param version
*/
public void setVersion(String version){
this.version = version;
}
/** /**
* 获取 是否部署(0.否,1.是) * 站点编号,来源基础服务平台
* @return Integer
*/ */
public Integer getDistribute(){ private String siteCode;
return distribute;
}
/** /**
* 设置 是否部署(0.否,1.是) * 站点名称
* @param distribute
*/ */
public void setDistribute(Integer distribute){ private String siteName;
this.distribute = distribute;
}
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -207,38 +82,18 @@ public class DeviceModuleDistributeEntity extends DeviceModuleDistributeVo { ...@@ -207,38 +82,18 @@ public class DeviceModuleDistributeEntity extends DeviceModuleDistributeVo {
return false; return false;
} }
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",productCode:").append(getProductCode());
sb.append(",productName:").append(getProductName());
sb.append(",imageResolution:").append(getImageResolution());
sb.append(",imageResolutionValue:").append(getImageResolutionValue());
sb.append(",filePath:").append(getFilePath());
sb.append(",distributeFilePath:").append(getDistributeFilePath());
sb.append(",version:").append(getVersion());
sb.append(",distribute:").append(getDistribute());
return sb.toString();
}
public void initAttrValue(){ public void initAttrValue(){
this.productId = 0L;
this.productId = null;
this.productCode = ""; this.productCode = "";
this.productName = ""; this.productName = "";
this.imageResolution = "";
this.imageResolution = "0";
this.imageResolutionValue = ""; this.imageResolutionValue = "";
this.filePath = ""; this.filePath = "";
this.distributeFilePath = ""; this.distributeFilePath = "";
this.version = ""; this.version = "";
this.distribute = 0; this.distribute = 0;
this.siteId = 0L;
this.siteCode = "";
this.siteName = "";
} }
} }
\ No newline at end of file
...@@ -42,9 +42,7 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D ...@@ -42,9 +42,7 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
ProductEntity productEntity = productService.get(entity.getProductId(), context); ProductEntity productEntity = productService.get(entity.getProductId(), context);
entity.setProductCode(productEntity.getProductCode()); entity.setProductCode(productEntity.getProductCode());
entity.setProductName(productEntity.getProductName()); entity.setProductName(productEntity.getProductName());
entity.setImageResolutionValue(ImageReEnum.getByValue(Integer.parseInt(entity.getImageResolution())).getDesc()); entity.setImageResolutionValue(ImageReEnum.getByValue(Integer.parseInt(entity.getImageResolution())).getDesc());
super.saveBefore(entity, context); super.saveBefore(entity, context);
} }
......
package com.mortals.xhx.module.product.model; package com.mortals.xhx.module.product.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.vo.ProductVersionVo; import com.mortals.xhx.module.product.model.vo.ProductVersionVo;
import lombok.Data;
/** /**
* 产品客户端版本实体对象 * 产品客户端版本实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-08-22 * @date 2023-08-18
*/ */
@Data
public class ProductVersionEntity extends ProductVersionVo { public class ProductVersionEntity extends ProductVersionVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -43,98 +40,18 @@ public class ProductVersionEntity extends ProductVersionVo { ...@@ -43,98 +40,18 @@ public class ProductVersionEntity extends ProductVersionVo {
*/ */
@Excel(name = "备注信息") @Excel(name = "备注信息")
private String remark; private String remark;
public ProductVersionEntity(){}
/**
* 获取 产品Id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品Id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 产品编码
* @return String
*/
public String getProductCode(){
return productCode;
}
/**
* 设置 产品编码
* @param productCode
*/
public void setProductCode(String productCode){
this.productCode = productCode;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/** /**
* 设置 产品名称 * 站点Id,来源基础服务平台
* @param productName
*/ */
public void setProductName(String productName){ private Long siteId;
this.productName = productName;
}
/** /**
* 获取 文件相对路径地址 * 站点编号,来源基础服务平台
* @return String
*/ */
public String getFilePath(){ private String siteCode;
return filePath;
}
/** /**
* 设置 文件相对路径地址 * 站点名称
* @param filePath
*/ */
public void setFilePath(String filePath){ private String siteName;
this.filePath = filePath;
}
/**
* 获取 版本号
* @return Integer
*/
public Integer getVersion(){
return version;
}
/**
* 设置 版本号
* @param version
*/
public void setVersion(Integer version){
this.version = version;
}
/**
* 获取 备注信息
* @return String
*/
public String getRemark(){
return remark;
}
/**
* 设置 备注信息
* @param remark
*/
public void setRemark(String remark){
this.remark = remark;
}
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -151,29 +68,15 @@ public class ProductVersionEntity extends ProductVersionVo { ...@@ -151,29 +68,15 @@ public class ProductVersionEntity extends ProductVersionVo {
return false; return false;
} }
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",productCode:").append(getProductCode());
sb.append(",productName:").append(getProductName());
sb.append(",filePath:").append(getFilePath());
sb.append(",version:").append(getVersion());
sb.append(",remark:").append(getRemark());
return sb.toString();
}
public void initAttrValue(){ public void initAttrValue(){
this.productId = 0L;
this.productId = null;
this.productCode = ""; this.productCode = "";
this.productName = ""; this.productName = "";
this.filePath = ""; this.filePath = "";
this.version = 0;
this.version = null;
this.remark = ""; this.remark = "";
this.siteId = 0L;
this.siteCode = "";
this.siteName = "";
} }
} }
\ No newline at end of file
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