From a6349745d9bbfc1a2a4d2571e3726aadf5503697 Mon Sep 17 00:00:00 2001 From: elliott <382696293@qq.com> Date: Thu, 11 Jan 2024 16:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8F=B7=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/entity/WxInstrumentSerial.java | 36 ++ .../domain/entity/WxUserInstrumentLog.java | 10 + .../mapper/WxInstrumentSerialMapper.xml | 16 +- .../WxInstrumentSerialController.java | 14 +- .../WxUserInstrumentLogController.java | 12 + .../impl/WxInstrumentSerialServiceImpl.java | 7 + .../impl/WxUserInstrumentServiceImpl.java | 1 + flossom-ui/src/api/system/instrumentSerial.js | 44 ++ .../views/system/instrumentSerial/index.vue | 457 ++++++++++++++++++ 9 files changed, 589 insertions(+), 8 deletions(-) create mode 100644 flossom-ui/src/api/system/instrumentSerial.js create mode 100644 flossom-ui/src/views/system/instrumentSerial/index.vue diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentSerial.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentSerial.java index df85698..4199a4d 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentSerial.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentSerial.java @@ -5,6 +5,8 @@ import com.flossom.common.core.web.domain.BaseEntity; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import java.util.List; + /** * 仪器序列号关联对象 wx_instrument_serial * @@ -26,6 +28,10 @@ public class WxInstrumentSerial extends BaseEntity @Excel(name = "仪器名称") private String instrumentName; + /** 来源 */ + @Excel(name = "来源") + private String source; + /** 序列号 */ @Excel(name = "序列号") private String serial; @@ -42,6 +48,12 @@ public class WxInstrumentSerial extends BaseEntity @Excel(name = "状态", readConverterExp = "0=正常,1=停用") private Long status; + // 查询用途 + // 仪器集合名称集合 + private List instrumentIdArray; + + private String queryInstrumentIds; + public void setId(Long id) { this.id = id; @@ -106,6 +118,30 @@ public class WxInstrumentSerial extends BaseEntity return status; } + public List getInstrumentIdArray() { + return instrumentIdArray; + } + + public void setInstrumentIdArray(List instrumentIdArray) { + this.instrumentIdArray = instrumentIdArray; + } + + public String getQueryInstrumentIds() { + return queryInstrumentIds; + } + + public void setQueryInstrumentIds(String queryInstrumentIds) { + this.queryInstrumentIds = queryInstrumentIds; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxUserInstrumentLog.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxUserInstrumentLog.java index 1f17c90..09e88e8 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxUserInstrumentLog.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxUserInstrumentLog.java @@ -60,6 +60,8 @@ public class WxUserInstrumentLog extends BaseEntity @Excel(name = "状态", readConverterExp = "0=正常,1=停用") private Long status; + private WxUserMember wxUserMember; + public Long getUserInstrumentId() { return userInstrumentId; } @@ -159,6 +161,14 @@ public class WxUserInstrumentLog extends BaseEntity return status; } + public WxUserMember getWxUserMember() { + return wxUserMember; + } + + public void setWxUserMember(WxUserMember wxUserMember) { + this.wxUserMember = wxUserMember; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentSerialMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentSerialMapper.xml index 700721b..5b4a9cd 100644 --- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentSerialMapper.xml +++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentSerialMapper.xml @@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -26,11 +27,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and instrument_id = #{instrumentId} and instrument_name like concat('%', #{instrumentName}, '%') - and serial = #{serial} + and serial like concat('%', #{serial}, '%') + and `source` like concat('%', #{source}, '%') and binding_status = #{bindingStatus} and valid_status = #{validStatus} and status = #{status} + and remark like concat('%', #{remark}, '%') + + and + + instrument_id = #{item} + + + order by create_time desc