账户条款查询api测试
This commit is contained in:
@@ -42,6 +42,12 @@
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zt.plat</groupId>
|
||||
<artifactId>zt-module-base-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 业务组件 -->
|
||||
<dependency>
|
||||
<groupId>com.zt.plat</groupId>
|
||||
|
||||
@@ -125,4 +125,12 @@ public class ErpCompanyController {
|
||||
return success(TEST);
|
||||
}
|
||||
|
||||
@PostMapping("/test2")
|
||||
@Operation(summary = "获取base的账户条款")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-company:get')")
|
||||
public CommonResult<String> test2() {
|
||||
String TEST = erpCompanyService.test2();
|
||||
return success(TEST);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -74,4 +74,6 @@ public interface ErpCompanyService {
|
||||
void test();
|
||||
|
||||
String test1();
|
||||
|
||||
String test2();
|
||||
}
|
||||
@@ -7,6 +7,8 @@ import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.module.api.BaseApi;
|
||||
import com.zt.plat.module.api.dto.AccountRespDto;
|
||||
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanyPageReqVO;
|
||||
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanyRespVO;
|
||||
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanySaveReqVO;
|
||||
@@ -57,6 +59,8 @@ public class ErpCompanyServiceImpl implements ErpCompanyService {
|
||||
private String erpAddress;
|
||||
@Value("${erp.sapsys}")
|
||||
private String sapsys;
|
||||
@Resource
|
||||
private BaseApi baseApi;
|
||||
|
||||
@Override
|
||||
public ErpCompanyRespVO createErpCompany(ErpCompanySaveReqVO createReqVO) {
|
||||
@@ -289,4 +293,12 @@ public class ErpCompanyServiceImpl implements ErpCompanyService {
|
||||
return url + requestEntity;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String test2() {
|
||||
AccountRespDto respVO = new AccountRespDto();
|
||||
respVO.setCustomerNumber("50000760");
|
||||
List<AccountRespDto> dtos = baseApi.getNoPage(respVO);
|
||||
return dtos.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user