提交 878752eb 作者: 张小凤

PilotCertificationDO(update)

上级 f68cf3ae
...@@ -98,5 +98,9 @@ public class PilotCertificationDTO { ...@@ -98,5 +98,9 @@ public class PilotCertificationDTO {
*/ */
@ApiModelProperty(value = "申请飞手的手机号", example = "18921312312") @ApiModelProperty(value = "申请飞手的手机号", example = "18921312312")
private String phoneNum; private String phoneNum;
@ApiModelProperty(value = "审批不通过原因id", example = "1")
private Integer reasonId;
@ApiModelProperty(value = "审批不通过的原因", example = "1")
private String reason;
} }
...@@ -28,7 +28,7 @@ public class PilotAuditStatusQO { ...@@ -28,7 +28,7 @@ public class PilotAuditStatusQO {
@ApiModelProperty(value = "2不通过的原因", required = false, example = "信息不完善") @ApiModelProperty(value = "2不通过的原因", required = false, example = "信息不完善")
private String reason; private String reasonId;
@ApiModelProperty(value = "审批人", required = false, example = "信息不完善", hidden = true) @ApiModelProperty(value = "审批人", required = false, example = "信息不完善", hidden = true)
private Integer operatorUserId; private Integer operatorUserId;
......
...@@ -101,6 +101,10 @@ public class PilotCertificationDO { ...@@ -101,6 +101,10 @@ public class PilotCertificationDO {
private Integer age; private Integer age;
private Integer reasonId;
private String reason;
/** /**
* 申请飞手的手机号 * 申请飞手的手机号
*/ */
...@@ -146,6 +150,8 @@ public class PilotCertificationDO { ...@@ -146,6 +150,8 @@ public class PilotCertificationDO {
.age(this.age) .age(this.age)
.sex(this.sex) .sex(this.sex)
.phoneNum(this.getPhoneNum()) .phoneNum(this.getPhoneNum())
.reasonId(this.reasonId)
.reason(this.reason)
.build(); .build();
} }
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
<result property="birthday" column="birthday"/> <result property="birthday" column="birthday"/>
<result property="sex" column="sex"/> <result property="sex" column="sex"/>
<result property="phoneNum" column="phone_num"/> <result property="phoneNum" column="phone_num"/>
<result property="reasonId" column="reason_id"/>
<result property="reason" column="reason"/>
<collection property="pilotAbility" ofType="com.mmc.iuav.user.model.vo.dronepilot.PilotAbilityVO" <collection property="pilotAbility" ofType="com.mmc.iuav.user.model.vo.dronepilot.PilotAbilityVO"
select="selectAbilityList" select="selectAbilityList"
column="{pilotCertificationId=id}"> column="{pilotCertificationId=id}">
...@@ -152,12 +154,15 @@ ...@@ -152,12 +154,15 @@
pc.update_time, pc.update_time,
rna.user_name, rna.user_name,
rna.birthday, rna.birthday,
rna.sex , rna.sex,
ua.phone_num ua.phone_num,
pc.reason_id,
pr.reason
FROM FROM
pilot_certification pc pilot_certification pc
LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id
left join user_account ua on pc.user_account_id=ua.id LEFT JOIN user_account ua ON pc.user_account_id = ua.id
LEFT JOIN pilot_reason pr ON pc.reason_id = pr.id
WHERE WHERE
1 =1 1 =1
<if test=" areaNumber != null and areaNumber != '' "> <if test=" areaNumber != null and areaNumber != '' ">
...@@ -200,10 +205,13 @@ ...@@ -200,10 +205,13 @@
rna.user_name, rna.user_name,
rna.birthday, rna.birthday,
rna.sex, rna.sex,
ua.phone_num ua.phone_num,
pc.reason_id,
pr.reason
FROM pilot_certification pc FROM pilot_certification pc
LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id
LEFT JOIN user_account ua ON pc.user_account_id = ua.id LEFT JOIN user_account ua ON pc.user_account_id = ua.id
LEFT JOIN pilot_reason pr ON pr.id = pc.reason_id
WHERE pc.id = #{id} WHERE pc.id = #{id}
</select> </select>
...@@ -226,10 +234,13 @@ ...@@ -226,10 +234,13 @@
rna.user_name, rna.user_name,
rna.birthday, rna.birthday,
rna.sex, rna.sex,
ua.phone_num ua.phone_num,
pc.reason_id,
pr.reason
FROM pilot_certification pc FROM pilot_certification pc
LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id LEFT JOIN real_name_auth rna ON pc.user_account_id = rna.user_account_id
LEFT JOIN user_account ua ON pc.user_account_id = ua.id LEFT JOIN user_account ua ON pc.user_account_id = ua.id
LEFT JOIN pilot_reason pr ON pc.reason_id = pr.id
WHERE pc.user_account_id = #{userAccountId} WHERE pc.user_account_id = #{userAccountId}
</select> </select>
...@@ -247,7 +258,7 @@ ...@@ -247,7 +258,7 @@
UPDATE pilot_certification UPDATE pilot_certification
<set> <set>
audit_status = #{auditStatus}, audit_status = #{auditStatus},
reason=#{reason}, reason_id=#{reasonId},
operator_user_id=#{operatorUserId}, operator_user_id=#{operatorUserId},
update_time=NOW() update_time=NOW()
</set> </set>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论