Browse Source

Merge branch 'dev-2.12.0' of province-qinghai/province-all into dev

adminGRP 4 months ago
parent
commit
315f15d3a0

+ 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
  * @date  2024/06/07 10:46
29
  * @date  2024/06/07 10:46
30
  **/
30
  **/
31
 public interface QualityInspectionOrgMapper extends BaseMapper<QualityInspectionOrg> {
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
     QualityInspectionWholeDetail getQualityInspection(@Param("qualityId") Integer qualityId);
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
         LEFT JOIN depot_qh.basic_enum be ON qqi.grain_variety_id = be.enumId
23
         LEFT JOIN depot_qh.basic_enum be ON qqi.grain_variety_id = be.enumId
24
         LEFT JOIN depot_qh.basic_enum be1 ON qqi.grain_nature_id = be1.enumId
24
         LEFT JOIN depot_qh.basic_enum be1 ON qqi.grain_nature_id = be1.enumId
25
         <where>
25
         <where>
26
+            <if test="orgId != null and orgId != ''">
27
+                qqi.org_id = #{orgId}
28
+            </if>
26
             <if test="storehouseName != null and storehouseName != ''">
29
             <if test="storehouseName != null and storehouseName != ''">
27
-                bs.storehouse_name LIKE CONCAT('%', #{storehouseName}, '%')
30
+                and bs.storehouse_name LIKE CONCAT('%', #{storehouseName}, '%')
28
             </if>
31
             </if>
29
         </where>
32
         </where>
30
     </select>
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
     @ApiModelProperty(value = "仓房名称(整仓质检)")
54
     @ApiModelProperty(value = "仓房名称(整仓质检)")
55
     private String storehouseName;
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

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