def query_signing(self, contract_id=None, plan_id=None, contract_code=None, openid=None, version="<STR_LIT:1.0>"):
if not contract_id and not (plan_id and contract_code) and not (plan_id and openid):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>data = {<EOL>"<STR_LIT>": self.appid,<EOL>"<STR_LIT>": self.mch_id,<EOL>"<STR_LIT>": contract_id,<EOL>"<STR_LIT>": plan_id,<EOL>"<STR_LIT>": contract_code,<EOL>"<STR_LIT>": openid,<EOL>"<STR_LIT:version>": version,<EOL>"<STR_LIT>": None,<EOL>}<EOL>return self._post('<STR_LIT>', data=data)<EOL>
查询签约关系 api

:param contract_id: 可选 委托代扣协议id 委托代扣签约成功后由微信返回的委托代扣协议id，选择contract_id查询，则此参数必填
:param plan_id: 可选 模板id 商户在微信商户平台配置的代扣模板id，选择plan_id+contract_code查询，则此参数必填
:param contract_code: 可选 签约协议号 商户请求签约时传入的签约协议号，商户侧须唯一。选择plan_id+contract_code查询，则此参数必填
:param openid: 可选 openid 用户标识，必须保证与传入appid对应
:param version: 版本号 固定值1.0
:return: 返回的结果信息