class DrawController {

	@PostMapping(value="/rejectdrawcashbyid")
	public ResBodyData rejectDrawCashById(EcmMzfDraw ecmmzfdraw) {
		
		if(StringUtil.isEmpty(ecmmzfdraw.getDrawCode()) || StringUtil.isEmpty(ecmmzfdraw.getRemark())){
			throw new ServiceException(SettlementApiCode.REJECT_DRAWCODE_REMARK_ISNULL, BaseApiCode.getZhMsg(SettlementApiCode.REJECT_DRAWCODE_REMARK_ISNULL));
		}
		
		ecmmzfdraw.setStatus(DrawCashConstants.STATUS_VERIFIED_REJECTED);
		ecmmzfdraw.setVerifyName(StringUtil.isEmpty(ecmmzfdraw.getVerifyName())?ADMIN:ecmmzfdraw.getVerifyName());
		ecmmzfdraw.setVerifyStatus(DrawCashConstants.STATUS_VERIFIED_REJECTED);
		ecmmzfdraw.setVerifyTime(DateUtil.getCurrentTimeSec());
		
		Map<String, Object> hashMap = drawService.rejectDrawCashById(ecmmzfdraw);
		return SettlementUtil.success(hashMap);
		
	}

}