class DrawController {

	@PostMapping(value="/verifydrawcashbyid")
	public ResBodyData verifyDrawCashById(EcmMzfDraw ecmmzfdraw) {
		
		if(StringUtil.isEmpty(ecmmzfdraw.getDrawCode())){
			throw new ServiceException(SettlementApiCode.VERIFY_DRAWCODE_ISNULL, BaseApiCode.getZhMsg(SettlementApiCode.VERIFY_DRAWCODE_ISNULL));
		}

		ecmmzfdraw.setStatus(DrawCashConstants.STATUS_VERIFIED_SUCDESS);
		ecmmzfdraw.setVerifyName(StringUtil.isEmpty(ecmmzfdraw.getVerifyName())?ADMIN:ecmmzfdraw.getVerifyName());
		ecmmzfdraw.setVerifyStatus(DrawCashConstants.STATUS_VERIFIED_SUCDESS);
		ecmmzfdraw.setVerifyTime(DateUtil.getCurrentTimeSec());
		
		Map<String, Object> hashMap = drawService.verifyDrawCashById(ecmmzfdraw);
		return SettlementUtil.success(hashMap);
	}

}