public OptResult GetAccount(GetByIdcardVM vm) { OptResult rst = null; if (vm == null) { rst = OptResult.Build(ResultCode.ParamError, "参数不能为空"); return(rst); } rst = _acntSrv.GetAccountByIdcard(vm.idcard); return(rst); }
public OptResult GetCards(GetByIdcardVM vm) { OptResult rst = null; if (vm == null) { rst = OptResult.Build(ResultCode.ParamError, "参数不能为空"); return(rst); } rst = _cardSrv.QueryByPage(new PageQuery { pageIndex = 1, pageSize = 20, conditions = new Dictionary <string, object> { { "idcard", vm.idcard } } }); return(rst); }