This commit is contained in:
PQZ 2025-04-11 11:13:53 +08:00
parent 4589aaa0db
commit dcd3420743
2 changed files with 8 additions and 1 deletions

View File

@ -60,7 +60,11 @@ public class MemberApplyController extends BaseController {
@Log(title = "提交通告主认证申请", businessType = BusinessType.INSERT)
@PostMapping("/toApply")
public AjaxResult toApply(@RequestBody MemberApply memberApply) {
memberApplyService.toApply(memberApply);
try{
memberApplyService.toApply(memberApply);
}catch (Exception e){
return error(e.getMessage());
}
return success();
}

View File

@ -38,6 +38,9 @@
<if test="entity.approvalStatus == 10"> and approval_status != 0</if>
<if test="entity.approvalStatus != null and entity.approvalStatus != '' and entity.approvalStatus != 10"> and approval_status = #{entity.approvalStatus}</if>
</where>
<if test="entity.approvalStatus == 10">
order by approval_time desc
</if>
</select>