Parcourir la source

分销商列表查询权限控制

lishiqiang il y a 1 semaine
Parent
commit
e423d45cee

+ 1 - 0
ship-module-ota/ship-module-ota-biz/src/main/java/com/yc/ship/module/ota/controller/admin/distributor/vo/DistributorListReqVO.java

@@ -16,5 +16,6 @@ public class DistributorListReqVO {
     private Integer type;
     @Schema(description = "是否自营 0否 1是", example = "1")
     private Integer selfSupport;
+    private Long distributorId;
 
 }

+ 0 - 3
ship-module-ota/ship-module-ota-biz/src/main/java/com/yc/ship/module/ota/dal/mysql/distributor/DistributorMapper.java

@@ -53,9 +53,6 @@ public interface DistributorMapper extends BaseMapperX<DistributorDO> {
         if (reqVO.getType() != 0) {
             queryWrapper.eqIfPresent(DistributorDO::getType, reqVO.getType());
         }
-        if (reqVO.getDistributorId() != null) {
-            queryWrapper.eqIfPresent(DistributorDO::getType, reqVO.getType());
-        }
         if(ObjectUtil.equal(reqVO.getType(), 2)) {
             //旅行社
             queryWrapper.eqIfPresent(DistributorDO::getSelfSupport, reqVO.getSelfSupport());