diff --git a/blade-service-api/logpm-basic-api/src/main/java/com/logpm/basic/feign/IBasicTenantCodeClient.java b/blade-service-api/logpm-basic-api/src/main/java/com/logpm/basic/feign/IBasicTenantCodeClient.java index 88ebd3124..7d47b89f1 100644 --- a/blade-service-api/logpm-basic-api/src/main/java/com/logpm/basic/feign/IBasicTenantCodeClient.java +++ b/blade-service-api/logpm-basic-api/src/main/java/com/logpm/basic/feign/IBasicTenantCodeClient.java @@ -17,12 +17,14 @@ package com.logpm.basic.feign; * Author: Chill 庄骞 (smallchill@163.com) */ -import com.logpm.basic.entity.BasicPdaEntity; import com.logpm.basic.entity.BasicTenantCodeEntity; import org.springblade.core.mp.support.BladePage; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; +import springfox.documentation.annotations.ApiIgnore; + +import java.util.List; import static org.springblade.common.constant.LauncherConstant.APPLICATION_BASIC_NAME; @@ -50,4 +52,8 @@ public interface IBasicTenantCodeClient { @GetMapping(TOP) BladePage tenantCodeTop(@RequestParam("current") Integer current, @RequestParam("size") Integer size); + + @GetMapping(TOP+"/list") + List list(@ApiIgnore BasicTenantCodeEntity basicTenantCodeEntity) throws IllegalAccessException; + } diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicTenantCodeController.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicTenantCodeController.java index f2c6972af..805bd9f08 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicTenantCodeController.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicTenantCodeController.java @@ -80,6 +80,7 @@ public class BasicTenantCodeController extends BladeController { public R list(@ApiIgnore @RequestParam Map basicTenantCode, Query query) { IPage page = Condition.getPage(query); IPage list = basicTenantCodeService.list(basicTenantCode,page); +// basicTenantCodeService.page(page,Condition.getQueryWrapper(basicTenantCode,BasicTenantCodeEntity.class)); return R.data(list); } @@ -101,7 +102,8 @@ public class BasicTenantCodeController extends BladeController { @ApiOperationSupport(order = 4) @ApiOperation(value = "新增", notes = "传入basicTenantCode") public R save(@Valid @RequestBody BasicTenantCodeEntity basicTenantCode) { - return R.status(basicTenantCodeService.save(basicTenantCode)); + boolean save = basicTenantCodeService.save(basicTenantCode); + return R.status(save); } /** diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/feign/BasicBasicTenantCodeClient.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/feign/BasicBasicTenantCodeClient.java index b906d9ab4..8562e98b1 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/feign/BasicBasicTenantCodeClient.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/feign/BasicBasicTenantCodeClient.java @@ -18,9 +18,7 @@ package com.logpm.basic.feign; */ import com.baomidou.mybatisplus.core.metadata.IPage; -import com.logpm.basic.entity.BasicPdaEntity; import com.logpm.basic.entity.BasicTenantCodeEntity; -import com.logpm.basic.service.IBasicPdaService; import com.logpm.basic.service.IBasicTenantCodeService; import lombok.AllArgsConstructor; import org.springblade.core.mp.support.BladePage; @@ -30,6 +28,8 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.annotations.ApiIgnore; +import java.util.List; + /** * 租户设置编码信息 Feign实现类 * @@ -53,4 +53,11 @@ public class BasicBasicTenantCodeClient implements IBasicTenantCodeClient { return BladePage.of(page); } + @Override + @GetMapping(TOP+"/list") + public List list(BasicTenantCodeEntity basicTenantCodeEntity) throws IllegalAccessException { + List list = basicTenantCodeService.list(Condition.getQueryWrapper(basicTenantCodeEntity)); + return list; + } + } diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.java index 274aa34c8..264205980 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.java @@ -19,6 +19,7 @@ package com.logpm.basic.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.logpm.basic.dto.BasicTenantCodeDTO; import com.logpm.basic.entity.BasicTenantCodeEntity; import com.logpm.basic.excel.BasicTenantCodeExcel; import com.logpm.basic.vo.BasicTenantCodeVO; @@ -57,7 +58,7 @@ public interface BasicTenantCodeMapper extends BaseMapper * @param basicTenantCode * @return */ - IPage selectTenantCodeList(IPage page,@Param("po")Map basicTenantCode); + IPage selectTenantCodeList(IPage page,@Param("po") Map basicTenantCode); BasicTenantCodeEntity selectTenantCodeDetail(Long id); } diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.xml b/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.xml index 40a2ccd18..cd042d2fb 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.xml +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/mapper/BasicTenantCodeMapper.xml @@ -39,10 +39,10 @@ logpm_basic_tenant_code is_deleted = 0 - + and code_type = #{po.input} - + and show_type = #{po.type} diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/IBasicTenantCodeService.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/IBasicTenantCodeService.java index 198023487..29fc8fd77 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/IBasicTenantCodeService.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/IBasicTenantCodeService.java @@ -19,6 +19,7 @@ package com.logpm.basic.service; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; +import com.logpm.basic.dto.BasicTenantCodeDTO; import com.logpm.basic.entity.BasicTenantCodeEntity; import com.logpm.basic.excel.BasicTenantCodeExcel; import com.logpm.basic.vo.BasicTenantCodeVO; @@ -68,4 +69,5 @@ public interface IBasicTenantCodeService extends BaseService list(Map basicTenantCode, IPage page) { IPage basicTenantCodeEntityIPage = basicTenantCodeMapper.selectTenantCodeList(page,basicTenantCode); @@ -75,4 +78,14 @@ public class BasicTenantCodeServiceImpl extends BaseServiceImpl