feat:商户部门查询
This commit is contained in:
1 parent
4faa7bb759
commit
41819feaa1
2 files changed
+17
-2
No files matched your search
+6
-1
@@ -1,5 +1,8 @@
|
||||
package com.bsd.pjcloud.wallet.api.dto;
|
||||
|
||||
import com.bsd.pjcloud.admin.api.vo.base.BaseDeptInterface;
|
||||
import com.bsd.pjcloud.admin.api.vo.base.BaseIsDeepDeptTreeInterface;
|
||||
import com.bsd.pjcloud.admin.api.vo.base.BaseIsIncludeTreeInterface;
|
||||
import com.bsd.pjcloud.wallet.api.entity.mch.MchManageEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
@@ -12,10 +15,12 @@ import java.util.List;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class MchManageDto extends MchManageEntity {
|
||||
public class MchManageDto extends MchManageEntity implements BaseIsIncludeTreeInterface {
|
||||
|
||||
private List<Long> deptIds;
|
||||
|
||||
private Boolean isInclude;
|
||||
|
||||
private List<Long> ids;
|
||||
|
||||
private List<Long> notIds;
|
||||
|
||||
+11
-1
@@ -99,7 +99,17 @@
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="dto.deptIds != null and dto.deptIds.size() != 0">
|
||||
and a.dept_id in
|
||||
<choose>
|
||||
<when test="dto.isInclude != null and dto.isInclude == true">
|
||||
and a.dept_id IN
|
||||
</when>
|
||||
<when test="dto.isInclude != null and dto.isInclude == false">
|
||||
and a.dept_id NOT IN
|
||||
</when>
|
||||
<otherwise>
|
||||
and a.dept_id IN
|
||||
</otherwise>
|
||||
</choose>
|
||||
<foreach collection="dto.deptIds" item="v" open="(" close=")" separator=",">
|
||||
#{v}
|
||||
</foreach>
|
||||
|
||||
Reference in new issue
Block a user