Java后台审核和提现功能(Vue为前端)

其实审核功能是一个更新的功能,更新审核状态就好了,做法也很简单.

1.前端代码


    

审核是否通过?

审核

2.后台代码

public RetKit check(ZddUserWithdraw entitySearch)throws Exception{
	RetKit retKit = new RetKit();
	customFile.info("审核:");
	//ZddUserWithdraw entitySearch = new ZddUserWithdraw();
    entitySearch.setWithdrawId(entitySearch.getWithdrawId());
	//更新审核状态
	Integer result = zddUserWithdrawService.updateById(entitySearch);

	//查询结果
	if( result > 0 ){
        retKit.set("success",true);
    	retKit.set("data",result);
    }else {
        retKit.set("success",false);
    }
    return retKit;
}

3.mapper文件


    update zdd_withdraw
    
      
        user_id = #{userId,jdbcType=VARCHAR},
      
      
        user_phone = #{userPhone,jdbcType=VARCHAR},
      
      
        withdraw_status = #{withdrawStatus,jdbcType=VARCHAR},
      
      
        withdraw_check_status = #{withdrawCheckStatus,jdbcType=VARCHAR},
      
      
        create_time = #{createTime,jdbcType=VARCHAR},
      
      
        update_time = #{updateTime,jdbcType=VARCHAR},
      
    
    where withdraw_id = #{withdrawId,jdbcType=VARCHAR}
  

 

Java后台审核和提现功能(Vue为前端)_第1张图片这就是审核的大致过程了.

 

关注微信公众号可领取实战、面试学习视频和简历模板等资源

Java后台审核和提现功能(Vue为前端)_第2张图片

你可能感兴趣的:(SSM,Vue)