Commit 7ff364c5 by jianan

新单跟进v2

parent fd2a8295
......@@ -718,4 +718,15 @@ public class ApiPolicyFollowController {
return new ArrayList<>();
}
/**
* 查询保单号列表
*
* @return 保单号列表
*/
@GetMapping("/policyNos")
@Operation(summary = "查询保单号列表")
public Result<List<String>> queryPolicyNumbers() {
List<String> policyNumbers = policyFollowService.queryPolicyNumbers();
return Result.success(policyNumbers);
}
}
\ No newline at end of file
......@@ -74,4 +74,6 @@ public interface PolicyFollowService extends IService<PolicyFollow> {
* 批量保存介绍人信息
*/
Boolean batchSaveBrokers(BrokerBatchSaveRequest brokerBatchSaveRequest);
List<String> queryPolicyNumbers();
}
......@@ -813,6 +813,17 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
return policyBrokerService.saveBatch(brokerList);
}
@Override
public List<String> queryPolicyNumbers() {
return policyFollowService.lambdaQuery()
.select(PolicyFollow::getPolicyNo)
.isNotNull(PolicyFollow::getPolicyNo)
.list()
.stream()
.map(PolicyFollow::getPolicyNo)
.collect(Collectors.toList());
}
/**
* 根据保单生成预计入账记录
*
......
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