From 11ccf7821465570b887c05f41104e8f486d1f12f Mon Sep 17 00:00:00 2001
From: mg <maokecheng@163.com>
Date: 星期五, 21 十月 2022 13:41:48 +0800
Subject: [PATCH] 更新图片资源

---
 ycl-platform/src/main/java/com/ycl/entity/common/ImageResources.java                 |   20 +++++++++++++-------
 ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java |    2 +-
 ycl-platform/src/main/java/com/ycl/entity/caseHandler/DispatchInfo.java              |    2 +-
 3 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/entity/caseHandler/DispatchInfo.java b/ycl-platform/src/main/java/com/ycl/entity/caseHandler/DispatchInfo.java
index 1a8db59..bc3a179 100644
--- a/ycl-platform/src/main/java/com/ycl/entity/caseHandler/DispatchInfo.java
+++ b/ycl-platform/src/main/java/com/ycl/entity/caseHandler/DispatchInfo.java
@@ -33,7 +33,7 @@
      */
     @TableId(value = "id", type = IdType.AUTO)
     @ApiModelProperty(value = "id")
-    private Integer id;
+    private Long id;
     /**
      * 妗堜欢id(鍚寀ms_base_case琛╥d)
      */
diff --git a/ycl-platform/src/main/java/com/ycl/entity/common/ImageResources.java b/ycl-platform/src/main/java/com/ycl/entity/common/ImageResources.java
index 7b9678a..61f215d 100644
--- a/ycl-platform/src/main/java/com/ycl/entity/common/ImageResources.java
+++ b/ycl-platform/src/main/java/com/ycl/entity/common/ImageResources.java
@@ -14,7 +14,7 @@
 
 /**
  * <p>
- * 绫昏鏄�
+ * 鍥剧墖璧勬簮
  * </p>
  *
  * @author mg
@@ -31,31 +31,37 @@
      * id
      */
     @TableId(value = "id", type = IdType.AUTO)
-    @ApiModelProperty(value = "id",dataType = "Integer")
-    private Integer id;
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 鎵�灞濱d
+     */
+    @TableField("belong_to_id")
+    @ApiModelProperty(value = "鎵�灞濱d")
+    private Long belongToId;
     /**
      * 鍥剧墖绫诲瀷
      */
     @TableField("type")
-    @ApiModelProperty(value = "鍥剧墖绫诲瀷",dataType = "String")
+    @ApiModelProperty(value = "鍥剧墖绫诲瀷")
     private String type;
     /**
      * 璺緞
      */
     @TableField("url")
-    @ApiModelProperty(value = "璺緞",dataType = "String")
+    @ApiModelProperty(value = "璺緞")
     private String url;
     /**
      * 鍒涘缓浜�
      */
     @TableField("create_user")
-    @ApiModelProperty(value = "鍒涘缓浜�",dataType = "Integer")
+    @ApiModelProperty(value = "鍒涘缓浜�")
     private Integer createUser;
     /**
      * 鍒涘缓鏃堕棿
      */
     @TableField("create_time")
-    @ApiModelProperty(value = "鍒涘缓鏃堕棿",dataType = "Date")
+    @ApiModelProperty(value = "鍒涘缓鏃堕棿")
     private Date createTime;
 
 }
diff --git a/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
index 2b4c8d0..8ef6f1e 100644
--- a/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
+++ b/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
@@ -320,7 +320,7 @@
         //3.鏌ヨ妗堝嵎鍥剧墖淇℃伅
         FilesPictureVo filesPictureVo = new FilesPictureVo();
         QueryWrapper<ImageResources> wrapperIr = new QueryWrapper<>();
-        wrapperIr.lambda().eq(ImageResources::getType, "01").or().eq(ImageResources::getType, "02");
+        wrapperIr.lambda().eq(ImageResources::getBelongToId,baseCase.getId());
         List<ImageResources> irs = imageResourcesMapper.selectList(wrapperIr);
         filesPictureVo.setImageResources(irs);
         bcd.setFilesPictureVo(filesPictureVo);

--
Gitblit v1.8.0