浏览代码

添加orgId条件

hanqingsong 4 月之前
父节点
当前提交
cc9d89b796

+ 1 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/qualityInspectionOrg/mapper/QualityInspectionOrgMapper.java

@@ -29,7 +29,7 @@ import java.util.List;
29 29
  * @date  2024/06/07 10:46
30 30
  **/
31 31
 public interface QualityInspectionOrgMapper extends BaseMapper<QualityInspectionOrg> {
32
-    Page<QualityInspectionWhole> wholeWarehouseQualityInspectionPage(Page<Object> objectPage,@Param("storehouseName") String storehouseName);
32
+    Page<QualityInspectionWhole> wholeWarehouseQualityInspectionPage(Page<Object> objectPage,@Param("storehouseName") String storehouseName, @Param("orgId") Integer orgId);
33 33
 
34 34
     QualityInspectionWholeDetail getQualityInspection(@Param("qualityId") Integer qualityId);
35 35
 

+ 4 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/qualityInspectionOrg/mapper/mapping/QualityInspectionOrgMapper.xml

@@ -23,8 +23,11 @@
23 23
         LEFT JOIN depot_qh.basic_enum be ON qqi.grain_variety_id = be.enumId
24 24
         LEFT JOIN depot_qh.basic_enum be1 ON qqi.grain_nature_id = be1.enumId
25 25
         <where>
26
+            <if test="orgId != null and orgId != ''">
27
+                qqi.org_id = #{orgId}
28
+            </if>
26 29
             <if test="storehouseName != null and storehouseName != ''">
27
-                bs.storehouse_name LIKE CONCAT('%', #{storehouseName}, '%')
30
+                and bs.storehouse_name LIKE CONCAT('%', #{storehouseName}, '%')
28 31
             </if>
29 32
         </where>
30 33
     </select>

+ 3 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/qualityInspectionOrg/param/QualityInspectionOrgPageParam.java

@@ -53,4 +53,7 @@ public class QualityInspectionOrgPageParam {
53 53
 
54 54
     @ApiModelProperty(value = "仓房名称(整仓质检)")
55 55
     private String storehouseName;
56
+
57
+    @ApiModelProperty(value = "机构编码")
58
+    private Integer orgId;
56 59
 }

+ 1 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/qualityInspectionOrg/service/impl/QualityInspectionOrgServiceImpl.java

@@ -105,7 +105,7 @@ public class QualityInspectionOrgServiceImpl extends ServiceImpl<QualityInspecti
105 105
 
106 106
     @Override
107 107
     public Page<QualityInspectionWhole> wholeWarehouseQualityInspectionPage(QualityInspectionOrgPageParam param) {
108
-        return qualityInspectionOrgMapper.wholeWarehouseQualityInspectionPage(new Page<>(param.getCurrent(), param.getSize()), param.getStorehouseName());
108
+        return qualityInspectionOrgMapper.wholeWarehouseQualityInspectionPage(new Page<>(param.getCurrent(), param.getSize()), param.getStorehouseName(), param.getOrgId());
109 109
     }
110 110
 
111 111
     @Override