提交 823f5ad6 作者: xiaowang

飞手报名

上级 8e3e7f83
...@@ -50,8 +50,8 @@ public class PilotRegistrationDO implements Serializable { ...@@ -50,8 +50,8 @@ public class PilotRegistrationDO implements Serializable {
private Date updateTime; private Date updateTime;
private Integer deleted; private Integer deleted;
public PilotRegistrationDO(RegistrationVO registrationVO, Integer id) { public PilotRegistrationDO(RegistrationVO registrationVO) {
this.applyUserId = id; this.applyUserId = registrationVO.getId();
this.name = registrationVO.getName(); this.name = registrationVO.getName();
this.city = registrationVO.getCity(); this.city = registrationVO.getCity();
this.telephone = registrationVO.getTelephone(); this.telephone = registrationVO.getTelephone();
......
...@@ -15,7 +15,6 @@ public interface FlyerTrainingService { ...@@ -15,7 +15,6 @@ public interface FlyerTrainingService {
* 飞手报名 * 飞手报名
* *
* @param registrationVO 注册信息 * @param registrationVO 注册信息
* @param id id
* @return {@link ResultBody} * @return {@link ResultBody}
*/ */
ResultBody pilotRegistration(RegistrationVO registrationVO); ResultBody pilotRegistration(RegistrationVO registrationVO);
......
...@@ -34,7 +34,7 @@ public class FlyerTrainingServiceImpl implements FlyerTrainingService { ...@@ -34,7 +34,7 @@ public class FlyerTrainingServiceImpl implements FlyerTrainingService {
@Override @Override
public ResultBody pilotRegistration(RegistrationVO registrationVO) { public ResultBody pilotRegistration(RegistrationVO registrationVO) {
PilotRegistrationDO pilotRegistrationDO = new PilotRegistrationDO(registrationVO,registrationVO.getId()); PilotRegistrationDO pilotRegistrationDO = new PilotRegistrationDO(registrationVO);
if (CollectionUtils.isNotEmpty(registrationVO.getIndustryAppAuth())) { if (CollectionUtils.isNotEmpty(registrationVO.getIndustryAppAuth())) {
// 将行业应用认证的id用逗号拼接 // 将行业应用认证的id用逗号拼接
String industryAppAuth = registrationVO.getIndustryAppAuth().stream().map(Object::toString).collect(Collectors.joining(",")); String industryAppAuth = registrationVO.getIndustryAppAuth().stream().map(Object::toString).collect(Collectors.joining(","));
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<insert id="insertPilotRegistrationInfo" parameterType="com.mmc.csf.release.entity.PilotRegistrationDO" <insert id="insertPilotRegistrationInfo" parameterType="com.mmc.csf.release.entity.PilotRegistrationDO"
useGeneratedKeys="true" keyProperty="id"> useGeneratedKeys="true" keyProperty="id">
INSERT INTO pilot_registration(id, apply_user_id, `name`, city, telephone, driving_license, province, INSERT INTO pilot_registration(apply_user_id, `name`, city, telephone, driving_license, province,
uav_license, industry_app_auth, remark) uav_license, industry_app_auth, remark)
VALUES (#{id}, #{applyUserId}, #{name}, #{city}, #{telephone}, #{drivingLicense}, #{province}, #{uavLicense}, VALUES (#{applyUserId}, #{name}, #{city}, #{telephone}, #{drivingLicense}, #{province}, #{uavLicense},
#{industryAppAuth}, #{remark}) #{industryAppAuth}, #{remark})
</insert> </insert>
<select id="selectAllLicenses" resultType="com.mmc.csf.release.flyer.vo.DronePilotLicenseVO"> <select id="selectAllLicenses" resultType="com.mmc.csf.release.flyer.vo.DronePilotLicenseVO">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论