diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml
index 89eb9432..4fc2d74d 100644
--- a/ruoyi-admin/src/main/resources/application-druid.yml
+++ b/ruoyi-admin/src/main/resources/application-druid.yml
@@ -6,7 +6,11 @@ spring:
druid:
# 主库数据源
master:
+<<<<<<< HEAD
url: jdbc:mysql://121.199.168.157:3306/unis_pms?useUnicode=true&rewriteBatchedStatements=true&allowMultiQueries=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+=======
+ url: jdbc:mysql://121.199.168.157:3306/unis_pms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true
+>>>>>>> 86c13c73368897b23df2c463fbe3202d994b8609
username: root
password: unis@db
# 从库数据源
diff --git a/ruoyi-admin/src/main/resources/templates/manage/service/service.html b/ruoyi-admin/src/main/resources/templates/manage/service/service.html
index 1f91d3fd..e767bf82 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/service/service.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/service/service.html
@@ -1,28 +1,165 @@
-
+
+
-
+
+
+
(不支持第三方信息查询)
+
+
+
+
+
+
+
+
+
+
+
+
查询结果
-
产品信息
-
-
- 硬件序列号 |
- 产品号 |
- 产品描述 |
- 产品线描述 |
- 区域 |
-
-
- 2131340A.CZ02300002M |
- 313048.C |
- H3C Workspace 云桌面许可证 |
- 云产品 |
- CN |
-
+ 产品信息
+
+
+
+ 硬件序列号 |
+ 产品号 |
+ 产品描述 |
+ 产品线描述 |
+ 区域 |
+
+
+
+
+
+
+ 合同
+
+
+
+
+
+ 服务项目识别号 |
+ 合同类型 |
+ 服务级别 |
+ 服务级别描述 |
+ 服务项 |
+ 服务项描述 |
+ 开始时间 |
+ 结束时间 |
+ 状态 |
+
+
+
+
+
+
+
+
+
+ 硬件序列号 |
+ 产品号 |
+ 产品描述 |
+ 产品线描述 |
+ 区域 |
+
+
+
+
+
+
@@ -32,10 +169,63 @@
getData()
});
function getData() {
+let serialNumber=$('#serialNumber').val()
+ let productCode=$('#productCode').val()
- $.operate.get("/system/product/query",{isTable:0}, function (res){
-
+ $.operate.get(`/system/product/query?productCode=${productCode}&serialNumber=${serialNumber}`, function (res){
+ let str=`暂无数据 |
`
+ if(res.data.length){
+ str=``
+ res.data.forEach((ele)=>{
+ str+=`
+${ele.serialNumber} |
+${ele.model} |
+${ele.description} |
+${ele.productName} |
+${ele.model} |
+
`
+ })
+ }
+ $('#tableBOx tbody').html(str)
})
+ $.operate.get(`/manage/order/query?productCode=${productCode}&serialNumber=${serialNumber}`, function (res){
+ let str=`暂无数据 |
`
+ if(res.data.length){
+ str=``
+ res.data.forEach((ele)=>{
+ str+=`
+ |
+${ele.orderType=='zq'?'直签合同':'代理合同'} |
+ |
+ |
+ |
+ |
+${ele.createdAt} |
+ |
+
+${ele.statua==0?'有效':'无效'} |
+
+
`
+ })
+ }
+ $('#tableBOx2 tbody').html(str)
+ })
+ }
+ function changeTab(show) {
+ if(!show){
+ $('#btn1').css({'background': '#dd242a','color':'#fff'})
+ $('#btn2').css({'background': '#fff','color':'#333'})
+
+ $('#tableBOx2').show()
+ $('#tableBOx3').hide()
+ }else{
+ $('#tableBOx3').show()
+ $('#tableBOx2').hide()
+ $('#btn2').css({'background': '#dd242a','color':'#fff'})
+ $('#btn1').css({'background': '#fff','color':'#333'})
+
+
+ }
}
diff --git a/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProductInfo.java b/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProductInfo.java
index e9b86544..77a1d04a 100644
--- a/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProductInfo.java
+++ b/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProductInfo.java
@@ -2,6 +2,8 @@ package com.ruoyi.sip.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@@ -13,6 +15,8 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author mula
* @date 2025-04-11
*/
+@Data
+@EqualsAndHashCode(callSuper = false)
public class ProductInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
@@ -46,99 +50,6 @@ public class ProductInfo extends BaseEntity
/** 删除时间 */
private Date deletedAt;
+ private String serialNumber;
- public void setId(Long id)
- {
- this.id = id;
- }
-
- public Long getId()
- {
- return id;
- }
-
- public void setProductCode(String productCode)
- {
- this.productCode = productCode;
- }
-
- public String getProductCode()
- {
- return productCode;
- }
-
- public void setProductName(String productName)
- {
- this.productName = productName;
- }
-
- public String getProductName()
- {
- return productName;
- }
-
- public void setModel(String model)
- {
- this.model = model;
- }
-
- public String getModel()
- {
- return model;
- }
-
- public void setDescription(String description)
- {
- this.description = description;
- }
-
- public String getDescription()
- {
- return description;
- }
-
- public void setCreatedAt(Date createdAt)
- {
- this.createdAt = createdAt;
- }
-
- public Date getCreatedAt()
- {
- return createdAt;
- }
-
- public void setUpdatedAt(Date updatedAt)
- {
- this.updatedAt = updatedAt;
- }
-
- public Date getUpdatedAt()
- {
- return updatedAt;
- }
-
- public void setDeletedAt(Date deletedAt)
- {
- this.deletedAt = deletedAt;
- }
-
- public Date getDeletedAt()
- {
- return deletedAt;
- }
-
- @Override
- public String toString() {
- return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
- .append("id", getId())
- .append("productCode", getProductCode())
- .append("productName", getProductName())
- .append("model", getModel())
- .append("description", getDescription())
- .append("remark", getRemark())
- .append("createdAt", getCreatedAt())
- .append("updatedAt", getUpdatedAt())
- .append("deletedAt", getDeletedAt())
- .toString();
- }
}
diff --git a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
index 9bb15e4c..d248a4e0 100644
--- a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
+++ b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
@@ -43,13 +43,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"