Selaa lähdekoodia

口岸监管服务系统】企业台账管理,勾选一条数据,导出文件中不止一条

heguanxun 3 kuukautta sitten
vanhempi
commit
c0f1417d46

+ 5 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecord/param/QyRecordPageParam.java

@@ -17,6 +17,7 @@ import lombok.Getter;
 import lombok.Setter;
 import java.math.BigDecimal;
 import java.util.Date;
+import java.util.List;
 
 /**
  * 企业资质备案查询参数
@@ -77,4 +78,8 @@ public class QyRecordPageParam {
 
     @Schema(description = "统一社会信用代码")
     private String companyCode;
+
+    /** ids */
+    @Schema(description = "ids")
+    private List<String> ids;
 }

+ 5 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecord/service/impl/QyRecordServiceImpl.java

@@ -49,6 +49,11 @@ public class QyRecordServiceImpl extends ServiceImpl<QyRecordMapper, QyRecord> i
     @Override
     public Page<QyRecord> page(QyRecordPageParam qyRecordPageParam) {
         QueryWrapper<QyRecord> queryWrapper = new QueryWrapper<QyRecord>().checkSqlInjection();
+
+        if (CollectionUtil.isNotEmpty(qyRecordPageParam.getIds())){
+            queryWrapper.lambda().in(QyRecord::getId, qyRecordPageParam.getIds());
+        }
+
         //备案类型
         if(ObjectUtil.isNotEmpty(qyRecordPageParam.getBaType())) {
             queryWrapper.lambda().eq(QyRecord::getBaType, qyRecordPageParam.getBaType());

+ 4 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecordinfo/param/QyRecordInfoPageParam.java

@@ -17,6 +17,7 @@ import lombok.Getter;
 import lombok.Setter;
 import java.math.BigDecimal;
 import java.util.Date;
+import java.util.List;
 
 /**
  * 企业备案信息查询参数
@@ -64,4 +65,7 @@ public class QyRecordInfoPageParam {
     @Schema(description = "企业类型")
     private String companyType;
 
+    /** ids */
+    @Schema(description = "ids")
+    private List<String> ids;
 }

+ 3 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecordinfo/service/impl/QyRecordInfoServiceImpl.java

@@ -78,6 +78,9 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
     @Override
     public Page<QyRecordInfo> page(QyRecordInfoPageParam qyRecordInfoPageParam) {
         QueryWrapper<QyRecordInfo> queryWrapper = new QueryWrapper<QyRecordInfo>().checkSqlInjection();
+        if (CollectionUtil.isNotEmpty(qyRecordInfoPageParam.getIds())){
+            queryWrapper.lambda().in(QyRecordInfo::getId, qyRecordInfoPageParam.getIds());
+        }
         if (ObjectUtil.isNotEmpty(qyRecordInfoPageParam.getYlTzCode())) {
             queryWrapper.lambda().like(QyRecordInfo::getYlTzCode, qyRecordInfoPageParam.getYlTzCode());
         }