Commit c264c145 by zhangxingmin

push

parent 159d3d14
...@@ -9,4 +9,6 @@ public interface ApiAppointmentReferrerService { ...@@ -9,4 +9,6 @@ public interface ApiAppointmentReferrerService {
Result saveAppointmentReferrerList(List<ApiAppointmentReferrerDto> referrerDtoList, Result saveAppointmentReferrerList(List<ApiAppointmentReferrerDto> referrerDtoList,
String appointmentBizId); String appointmentBizId);
List<ApiAppointmentReferrerDto> referrerDtoList(String appointmentBizId);
} }
...@@ -9,4 +9,6 @@ public interface ApiAppointmentUserSignService { ...@@ -9,4 +9,6 @@ public interface ApiAppointmentUserSignService {
Result saveAppointmentUserSignList(List<ApiAppointmentUserSignDto> userSignDtoList, Result saveAppointmentUserSignList(List<ApiAppointmentUserSignDto> userSignDtoList,
String appointmentBizId); String appointmentBizId);
List<ApiAppointmentUserSignDto> userSignDtoList(String appointmentBizId);
} }
...@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -50,4 +51,23 @@ public class ApiAppointmentReferrerServiceImpl implements ApiAppointmentReferrer ...@@ -50,4 +51,23 @@ public class ApiAppointmentReferrerServiceImpl implements ApiAppointmentReferrer
return Result.success(); return Result.success();
} }
/**
* 查询-转介人信息列表
* @param appointmentBizId
* @return
*/
@Override
public List<ApiAppointmentReferrerDto> referrerDtoList(String appointmentBizId) {
List<AppointmentReferrer> appointmentReferrerList = iAppointmentReferrerService.queryList(appointmentBizId);
if (CollectionUtils.isEmpty(appointmentReferrerList)) {
return new ArrayList<>();
}
List<ApiAppointmentReferrerDto> list = appointmentReferrerList.stream().map(dto -> {
ApiAppointmentReferrerDto referrerDto = new ApiAppointmentReferrerDto();
BeanUtils.copyProperties(dto,referrerDto);
return referrerDto;
}).collect(Collectors.toList());
return list;
}
} }
...@@ -162,6 +162,8 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService { ...@@ -162,6 +162,8 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
Appointment appointment = result.getData(); Appointment appointment = result.getData();
ApiAppointmentInfoDto dto = new ApiAppointmentInfoDto(); ApiAppointmentInfoDto dto = new ApiAppointmentInfoDto();
BeanUtils.copyProperties(appointment, dto); BeanUtils.copyProperties(appointment, dto);
dto.setReferrerDtoList(appointmentReferrerService.referrerDtoList(appointmentBizId));
dto.setUserSignDtoList(apiAppointmentUserSignService.userSignDtoList(appointmentBizId));
response.setApiAppointmentInfoDto(dto); response.setApiAppointmentInfoDto(dto);
//产品计划信息 //产品计划信息
Result<ApiProductPlanInfoDto> result1 = apiProductPlanService.detail(appointmentBizId, ""); Result<ApiProductPlanInfoDto> result1 = apiProductPlanService.detail(appointmentBizId, "");
......
...@@ -4,6 +4,7 @@ import com.yd.common.enums.CommonEnum; ...@@ -4,6 +4,7 @@ import com.yd.common.enums.CommonEnum;
import com.yd.common.result.Result; import com.yd.common.result.Result;
import com.yd.common.utils.RandomStringGenerator; import com.yd.common.utils.RandomStringGenerator;
import com.yd.csf.api.service.ApiAppointmentUserSignService; import com.yd.csf.api.service.ApiAppointmentUserSignService;
import com.yd.csf.feign.dto.appointment.ApiAppointmentReferrerDto;
import com.yd.csf.feign.dto.appointment.ApiAppointmentUserSignDto; import com.yd.csf.feign.dto.appointment.ApiAppointmentUserSignDto;
import com.yd.csf.service.model.AppointmentReferrer; import com.yd.csf.service.model.AppointmentReferrer;
import com.yd.csf.service.model.AppointmentUserSign; import com.yd.csf.service.model.AppointmentUserSign;
...@@ -13,6 +14,8 @@ import org.springframework.beans.BeanUtils; ...@@ -13,6 +14,8 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -49,4 +52,18 @@ public class ApiAppointmentUserSignServiceImpl implements ApiAppointmentUserSign ...@@ -49,4 +52,18 @@ public class ApiAppointmentUserSignServiceImpl implements ApiAppointmentUserSign
return Result.success(); return Result.success();
} }
@Override
public List<ApiAppointmentUserSignDto> userSignDtoList(String appointmentBizId) {
List<AppointmentUserSign> appointmentUserSignList = iAppointmentUserSignService.queryList(appointmentBizId);
if (CollectionUtils.isEmpty(appointmentUserSignList)) {
return new ArrayList<>();
}
List<ApiAppointmentUserSignDto> list = appointmentUserSignList.stream().map(dto -> {
ApiAppointmentUserSignDto appointmentUserSignDto = new ApiAppointmentUserSignDto();
BeanUtils.copyProperties(dto,appointmentUserSignDto);
return appointmentUserSignDto;
}).collect(Collectors.toList());
return list;
}
} }
...@@ -114,6 +114,11 @@ public class ApiAppointmentInfoDto { ...@@ -114,6 +114,11 @@ public class ApiAppointmentInfoDto {
private String bankName; private String bankName;
/** /**
* 开户行ID
*/
private String bankId;
/**
* 开户行支行(分行) * 开户行支行(分行)
*/ */
private String bankBranchName; private String bankBranchName;
......
...@@ -6,6 +6,11 @@ import lombok.Data; ...@@ -6,6 +6,11 @@ import lombok.Data;
public class ApiAppointmentReferrerDto { public class ApiAppointmentReferrerDto {
/** /**
* 预约-转介人信息表唯一业务ID
*/
private String appointmentReferrerBizId;
/**
* 系统用户-销售用户扩展表唯一业务ID(转介人,冗余) * 系统用户-销售用户扩展表唯一业务ID(转介人,冗余)
*/ */
private String userSaleBizId; private String userSaleBizId;
......
...@@ -6,6 +6,11 @@ import lombok.Data; ...@@ -6,6 +6,11 @@ import lombok.Data;
public class ApiAppointmentUserSignDto { public class ApiAppointmentUserSignDto {
/** /**
* 预约-签单员信息表唯一业务ID
*/
private String appointmentUserSignBizId;
/**
* 签单用户扩展唯一业务ID(冗余) * 签单用户扩展唯一业务ID(冗余)
*/ */
private String userSignBizId; private String userSignBizId;
......
...@@ -244,6 +244,12 @@ public class Appointment implements Serializable { ...@@ -244,6 +244,12 @@ public class Appointment implements Serializable {
private String bankName; private String bankName;
/** /**
* 开户行ID
*/
@TableField("bank_id")
private String bankId;
/**
* 开户行支行(分行) * 开户行支行(分行)
*/ */
@TableField("bank_branch_name") @TableField("bank_branch_name")
......
...@@ -3,6 +3,8 @@ package com.yd.csf.service.service; ...@@ -3,6 +3,8 @@ package com.yd.csf.service.service;
import com.yd.csf.service.model.AppointmentReferrer; import com.yd.csf.service.model.AppointmentReferrer;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/** /**
* <p> * <p>
* 预约-转介人信息表 服务类 * 预约-转介人信息表 服务类
...@@ -14,4 +16,6 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -14,4 +16,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
public interface IAppointmentReferrerService extends IService<AppointmentReferrer> { public interface IAppointmentReferrerService extends IService<AppointmentReferrer> {
Boolean delByAppointmentBizId(String appointmentBizId); Boolean delByAppointmentBizId(String appointmentBizId);
List<AppointmentReferrer> queryList(String appointmentBizId);
} }
...@@ -3,6 +3,8 @@ package com.yd.csf.service.service; ...@@ -3,6 +3,8 @@ package com.yd.csf.service.service;
import com.yd.csf.service.model.AppointmentUserSign; import com.yd.csf.service.model.AppointmentUserSign;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/** /**
* <p> * <p>
* 预约-签单员信息表 服务类 * 预约-签单员信息表 服务类
...@@ -14,4 +16,6 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -14,4 +16,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
public interface IAppointmentUserSignService extends IService<AppointmentUserSign> { public interface IAppointmentUserSignService extends IService<AppointmentUserSign> {
Boolean delByAppointmentBizId(String appointmentBizId); Boolean delByAppointmentBizId(String appointmentBizId);
List<AppointmentUserSign> queryList(String appointmentBizId);
} }
...@@ -7,6 +7,8 @@ import com.yd.csf.service.service.IAppointmentReferrerService; ...@@ -7,6 +7,8 @@ import com.yd.csf.service.service.IAppointmentReferrerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* <p> * <p>
* 预约-转介人信息表 服务实现类 * 预约-转介人信息表 服务实现类
...@@ -22,4 +24,10 @@ public class AppointmentReferrerServiceImpl extends ServiceImpl<AppointmentRefer ...@@ -22,4 +24,10 @@ public class AppointmentReferrerServiceImpl extends ServiceImpl<AppointmentRefer
public Boolean delByAppointmentBizId(String appointmentBizId) { public Boolean delByAppointmentBizId(String appointmentBizId) {
return this.remove(new LambdaQueryWrapper<AppointmentReferrer>().eq(AppointmentReferrer::getAppointmentBizId,appointmentBizId)); return this.remove(new LambdaQueryWrapper<AppointmentReferrer>().eq(AppointmentReferrer::getAppointmentBizId,appointmentBizId));
} }
@Override
public List<AppointmentReferrer> queryList(String appointmentBizId) {
return baseMapper.selectList(new LambdaQueryWrapper<AppointmentReferrer>()
.eq(AppointmentReferrer::getAppointmentBizId,appointmentBizId));
}
} }
...@@ -7,6 +7,8 @@ import com.yd.csf.service.service.IAppointmentUserSignService; ...@@ -7,6 +7,8 @@ import com.yd.csf.service.service.IAppointmentUserSignService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* <p> * <p>
* 预约-签单员信息表 服务实现类 * 预约-签单员信息表 服务实现类
...@@ -22,4 +24,10 @@ public class AppointmentUserSignServiceImpl extends ServiceImpl<AppointmentUserS ...@@ -22,4 +24,10 @@ public class AppointmentUserSignServiceImpl extends ServiceImpl<AppointmentUserS
public Boolean delByAppointmentBizId(String appointmentBizId) { public Boolean delByAppointmentBizId(String appointmentBizId) {
return this.remove(new LambdaQueryWrapper<AppointmentUserSign>().eq(AppointmentUserSign::getAppointmentBizId,appointmentBizId)); return this.remove(new LambdaQueryWrapper<AppointmentUserSign>().eq(AppointmentUserSign::getAppointmentBizId,appointmentBizId));
} }
@Override
public List<AppointmentUserSign> queryList(String appointmentBizId) {
return this.baseMapper.selectList(new LambdaQueryWrapper<AppointmentUserSign>()
.eq(AppointmentUserSign::getAppointmentBizId,appointmentBizId));
}
} }
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