Commit c97b704d by zhangxingmin

push

parent 92508ba1
......@@ -187,8 +187,8 @@ public class ApiSalaryController implements ApiSalaryFeignClient {
* @return
*/
@Override
public Result<List<ApiSalaryBrokerListResponse>> brokerList() {
return apiSalaryService.brokerList();
public Result<List<ApiSalaryBrokerListResponse>> brokerList(String name) {
return apiSalaryService.brokerList(name);
}
......
......@@ -42,5 +42,5 @@ public interface ApiSalaryService {
Result<BigDecimal> calculateTotalAmount(ApiSalaryCalculateTotalAmountRequest request);
Result<List<ApiSalaryBrokerListResponse>> brokerList();
Result<List<ApiSalaryBrokerListResponse>> brokerList(String name);
}
......@@ -411,10 +411,11 @@ public class ApiSalaryServiceImpl implements ApiSalaryService {
* @return
*/
@Override
public Result<List<ApiSalaryBrokerListResponse>> brokerList() {
public Result<List<ApiSalaryBrokerListResponse>> brokerList(String name) {
// 构造查询条件:状态为“完成出账”(2) 且 未删除
QueryWrapper<FortuneAccount> wrapper = new QueryWrapper<>();
wrapper.eq("status", FortuneAccountStatusEnum.SENT.getItemValue())
.like(StringUtils.isNotBlank(name),"broker",name)
.eq("is_deleted", 0);
// 查询所有符合条件的出账记录
......
......@@ -144,5 +144,5 @@ public interface ApiSalaryFeignClient {
* @return
*/
@GetMapping("/broker/list")
Result<List<ApiSalaryBrokerListResponse>> brokerList();
Result<List<ApiSalaryBrokerListResponse>> brokerList(@RequestParam(value = "name",defaultValue = "",required = false) String name);
}
......@@ -98,7 +98,7 @@ public class ApiSalaryFeignFallbackFactory implements FallbackFactory<ApiSalaryF
}
@Override
public Result<List<ApiSalaryBrokerListResponse>> brokerList() {
public Result<List<ApiSalaryBrokerListResponse>> brokerList(String name) {
return null;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment