帮助帮助
  • 首页
  • 帮助文档
  • 后端python
  • 开放平台
返回控制台
  • 首页
  • Python教程
  • Python的改进
    • 应用后端对Python的改进部分
  • Python原生API
    • Python原生禁用API列表
    • Python原生内置API列表
  • Python功能列表
    • 全局(通用)
      • rnd
      • sleep
      • exit
      • synccorpmembers
      • getcorptype
      • gettickcount
      • getnstime
      • getrandomstr
      • getlasterror
      • geterror
    • io-日志(通用)
      • print
      • logclear
      • logclearall
      • logenable
      • logread
    • app-云应用(通用)
      • app.getappsymbol
      • app.getcurrentinfo
      • app.getapplist
    • form-表单(表单)
      • 表单错误信息
      • 表单字段类型
      • 查询条件和排序规则
      • 表单数据组合规则
      • 支持的SQL函数、关键字
      • 跨应用取数据说明
      • 表单系统字段说明
      • 表单操作
        • form.getallforminfo
        • form.getforminfo
        • form.getexternalforminfo
        • form.getallctrlinfo
        • form.getfileurl
        • form.transfileurl
      • 数据操作
        • form.select
        • form.aggregateselect
        • form.getdatabyid
        • form.insert
        • form.inserts
        • form.update
        • form.updates
        • form.delete
        • form.count
        • form.has
        • form.subinsert
        • form.subinserts
        • form.subupdate
        • form.subupdates
        • form.subdelete
      • 句柄操作
        • form.open
        • form.close
        • form.begin
        • form.commit
        • form.rollback
        • form.handleselect
        • form.handleinsert
        • form.handleinserts
        • form.handleupdate
        • form.handleupdates
        • form.handledelete
        • form.handlecount
        • form.handlehas
        • form.handlesubinsert
        • form.handlesubinserts
        • form.handlesubupdate
        • form.handlesubupdates
        • form.handlesubdelete
      • 通讯录
        • 用户ID说明
        • form.getcreatoruserid
        • form.getuserinfo
        • form.getdeptinfo
        • form.getparentdeptinfo
        • form.getdeptusers
        • form.getdeptlist
        • form.getdeptall
        • form.getroleusers
        • form.getoutsidergroupall
        • form.getoutsidergroupinfo
        • form.getoutsiderusers
        • form.moveusertodept
        • form.moveusertorole
        • form.moveoutsiderusers
      • 表单属性
        • form.getctrlattr
        • form.changectrlselect
        • form.getpublicinfo
        • form.getreportpublicinfo
      • 流程
        • form.getworkflowid
        • form.getworkflowdata
        • form.getworkflowlog
        • form.workflowstart
        • form.workflowstop
        • form.workflowcurrentinfo
      • 通知
        • app.geturl
        • form.getdataurl
        • form.sendmsg
      • 格式化
        • formataddress
        • formatlocation
      • 旧版数据操作
        • form.selectdata
        • form.selectdatas
        • form.insertdata
        • form.insertdatas
        • form.updatedata
        • form.updatedatas
        • form.deletedata
        • form.datacount
        • form.datahas
        • form.aggregateselectdata
        • form.subselectdata
        • form.subselectfield
        • form.subinsertdata
        • form.subinsertdatas
        • form.subupdatedata
        • form.subupdatedatas
        • form.subdeletedata
        • form.subdatacount
        • form.subdatahas
      • 旧版句柄操作
        • form.handleselectdata
        • form.handleselectdatas
        • form.handleinsertdata
        • form.handleinsertdatas
        • form.handleupdatedata
        • form.handleupdatedatas
        • form.handledeletedata
        • form.handledatacount
        • form.handledatahas
        • form.handlesubselectdata
        • form.handlesubselectfield
        • form.handlesubinsertdata
        • form.handlesubinsertdatas
        • form.handlesubupdatedata
        • form.handlesubupdatedatas
        • form.handlesubdeletedata
        • form.handlesubdatacount
        • form.handlesubdatahas
    • dataview-数据视图(数据分析)
      • 数据操作
        • dataview.select
        • dataview.count
        • dataview.has
      • 旧版数据操作
        • dataview.selectdata
        • dataview.selectdatas
        • dataview.datacount
        • dataview.datahas
    • os-日期时间(常用函数)
      • getmonthdays
      • getyeardays
      • timenow
      • timeadd
      • timediff
      • time2timestamp
      • timestamp2time
      • os.year
      • os.month
      • os.day
      • os.hour
      • os.minute
      • os.second
      • os.week
    • type-类型(常用函数)
      • tobool
      • toint
      • todouble
      • tostring
      • tonumber
      • isint
      • isdouble
      • isstring
      • isdict
      • islist
      • istuple
      • isjson
      • isdatetime
      • type
      • byte2string
      • float2hex
      • ip2integer
      • ip2integer
      • json.loads
      • json.dumps
    • string-字符串(常用函数)
      • string.lower
      • string.upper
      • string.title
      • string.cat
      • string.cut
      • string.equal
      • string.nequal
      • string.cmp
      • string.ncmp
      • string.left
      • string.right
      • string.len
      • string.find
      • string.rfind
      • string.findchar
      • string.rfindchar
      • string.reverse
      • string.sub
      • string.split
      • string.splitlines
      • string.getat
      • string.getchineseletter
      • string.format
      • string.appendchar
      • string.repeatself
      • string.shuffle
      • string.capitalize
      • string.center
      • string.count
      • string.encode
      • string.decode
      • string.startswith
      • string.endswith
      • string.expandtabs
      • string.index
      • string.rindex
      • string.join
      • string.ljust
      • string.rjust
      • string.strip
      • string.lstrip
      • string.rstrip
      • string.partition
      • string.rpartition
      • string.replace
      • string.swapcase
      • string.zfill
      • string.isalnum
      • string.isalpha
      • string.isdecimal
      • string.isnumeric
      • string.isdigit
      • string.islower
      • string.isupper
      • string.isspace
      • string.istitle
      • string.translation
      • str.maketrans
      • max
      • min
    • math-数学(常用函数)
      • math.sqrt
      • math.abs
      • math.sin
      • math.cos
      • math.tan
      • math.asin
      • math.acos
      • math.atan
      • math.atan2
      • math.sinh
      • math.asinh
      • math.cosh
      • math.acosh
      • math.tanh
      • math.atanh
      • math.pow
      • math.ln
      • math.ln1p
      • math.log
      • math.lg
      • math.exp
      • math.expm1
      • math.ceil
      • math.floor
      • math.radians
      • math.degrees
      • math.fmod
      • math.intdiv
      • math.hypot
      • math.pi
      • math.round
      • math.baseconvert
      • math.bin2dec
      • math.dec2bin
      • math.dec2hex
      • math.dec2oct
      • math.hex2dec
      • math.oct2dec
    • list-列表数组(常用函数)
      • list.max
      • list.min
      • list.move
      • list.append
      • list.extend
      • list.pop
      • list.removeforvalue
      • list.insert
      • list.sum
      • list.product
      • list.filterforvalue
      • list.sort
      • list.unique
      • list.index
      • list.count
      • list.reverse
    • tuple-元组数组(常用函数)
      • tuple.max
      • tuple.min
      • tuple.move
      • tuple.append
      • tuple.extend
      • tuple.remove
      • tuple.removeforvalue
      • tuple.insert
      • tuple.sum
      • tuple.product
      • tuple.filterforvalue
      • tuple.sort
      • tuple.unique
      • tuple.index
      • tuple.count
      • tuple.reverse
    • dict-字典数组(常用函数)
      • dict.clear
      • dict.max
      • dict.min
      • dict.push
      • dict.cat
      • dict.copy
      • dict.fromkeys
      • dict.get
      • dict.items
      • dict.keys
      • dict.values
      • dict.move
      • dict.remove
      • dict.removeforvalue
      • dict.pop
      • dict.popitem
      • dict.setdefault
      • dict.update
      • dict.sum
      • dict.product
      • dict.filterforkey
      • dict.filterforvalue
      • dict.sort
      • dict.unique
    • set-集合数组(常用函数)
      • set.add
      • set.update
      • set.clear
      • set.copy
      • set.isdisjoint
      • set.issubset
      • set.issuperset
      • set.discard
      • set.remove
      • set.pop
      • set.difference
      • set.difference_update
      • set.intersection
      • set.intersection_update
      • set.union
      • set.symmetric_difference
      • set.symmetric_difference_update
    • regular-正则(函数)
      • re.compile
      • re.match
      • re.match
      • re.search
      • re.finditer
      • re.split
      • re.matchemail
      • re.matchphone
      • re.matchtelephone
      • re.matchurl
      • re.matchip
      • re.matchidcard
      • re.matchqq
      • re.matchzipcode
      • re.matchnumber
      • re.matchchinese
      • re.matchtext
      • re.submatchtext
      • re.replace
      • re.subreplace
    • hash-哈希(函数)
      • md5
      • sha1
      • sha1hmac
      • sha1hmac_binary_base64
      • sha224
      • sha256
      • sha384
      • sha512
      • ripemd160
    • crypt-加密(函数)
      • base64encode
      • base64decode
      • urlencode
      • urldecode
      • gmssl
    • numpy-数值计算(函数)
      • Numpy介绍
    • curl(网络通讯)
      • curl.init
      • curl.setopt
      • curl.exec
      • curl.close
      • curl.getinfo
      • curl.escape
      • curl.unescape
      • curl.iconv
    • requests(网络通讯)
      • requests.request
      • requests.get
      • requests.post
      • requests.options
      • requests.head
      • requests.put
      • requests.patch
      • requests.delete
    • httpex(网络通讯)
      • httpex.get
      • httpex.request
      • httpex.getfileurlbase64
      • httpex.getcookies
      • httpex.updatecookies
    • websocket(网络通讯)
      • websocket.request
      • websocket.open
      • websocket.send
      • websocket.close
    • mysql(数据库)
      • mysql.open
      • mysql.close
      • mysql.exec
      • mysql.query
      • mysql.begin
      • mysql.commit
      • mysql.rollback
      • mysql.getlasteffectrecords
      • mysqlexec
      • mysqlquerybylist
      • mysqlquerybyjson
    • sqlserver(数据库)
      • sqlserver.open
      • sqlserver.close
      • sqlserver.exec
      • sqlserver.query
      • sqlserver.begin
      • sqlserver.commit
      • sqlserver.rollback
      • sqlserver.getlasteffectrecords
      • sqlserverexec
      • sqlserverquerybylist
      • sqlserverquerybyjson
    • redis(数据库)
      • redis.open
      • redis.close
      • redis.exec
      • redis.query
      • redis.set
      • redis.get
  • Python后端事件
    • _forminitial(表单初始化事件)
    • _formeditinitial(表单编辑初始化事件)
    • _flownodeinitial(流程节点初始化事件)
    • _formevent(控件触发事件)
    • _formsubmit(表单提交事件)
    • _formupdate(表单编辑事件)
    • _formdelete(表单数据删除事件)
    • _formflow(表单流程事件)
    • _datahelper(数据助手事件)
  • Python功能插件
    • 功能插件设计
    • 插件控件
      • 基础控件
      • 表单来源
        • 表单来源Config参数说明
        • 表单来源设计面板说明
      • 子表单
        • 子表单Config参数说明
        • 子表单设计面板说明
      • 字段
        • 字段Config参数说明
        • 字段设计面板说明
      • 关联字段
        • 关联字段Config参数说明
        • 关联字段面板说明
      • 过滤条件
        • 过滤条件Config参数说明
        • 过滤条件面板说明
        • 过滤条件操作符说明
    • 插件事件
      • _forminitiallib(表单初始化事件)
      • _formeditinitiallib(表单编辑初始化事件)
      • _flownodeinitiallib(流程节点初始化事件)
      • _formeventlib(表单控件触发事件)
      • _formsubmitlib(表单数据提交事件)
      • _formupdatelib(表单数据编辑事件)
      • _formdeletelib(表单数据删除事件)
      • _formflowlib(流程节点事件)
      • _formconfiglib(插件配置事件)
      • _formtasklib(计划任务事件)
      • _reporttablemenulib(报表数据表菜单按钮事件)
      • _datahelperlib(数据助手事件)
  • API限制说明
  • Lua后端停止服务通知

过滤条件Config参数说明

  • 过滤条件Config参数说明
    • 数据格式
      • 当前表
      • 其他表
      • 其他表-当前表
    • 参数说明
    • 过滤条件操作符说明
    • 调用例子

数据格式

过滤条件的数据格式分为当前表,其他表,其他表-当前表三种格式,分别对应其设置界面的三种模式。

当前表

  1. #下面为过滤条件当前表模式传入Config参数的详细内容
  2. {
  3. "过滤条件":{
  4. "type":"filter", #当前字段的类型
  5. "form":"58a8d3f5e6efa834894a29dd", #当前表单别名
  6. "data":[
  7. #单行文本字段
  8. {
  9. "method":"eq", #过滤条件操作符
  10. "rely":"fixed", #固定值"fixed"
  11. "link":{ #当前表信息
  12. "type":"text", #当前字段的类型
  13. "name":"单行文本字段的别名" #当前字段别名
  14. },
  15. "fixed":"单行文本固定值" #固定值对应的数据
  16. },
  17. #多行文本字段
  18. {
  19. "method":"eq", #过滤条件操作符
  20. "rely":"fixed", #固定值"fixed"
  21. "link":{ #当前表信息
  22. "type":"textarea", #当前字段的类型
  23. "name":"单行文本字段的别名" #当前字段别名
  24. },
  25. "fixed":"多行文本固定值" #固定值对应的数据
  26. },
  27. #数字字段
  28. {
  29. "method":"eq", #过滤条件操作符
  30. "rely":"fixed", #固定值"fixed"
  31. "link":{ #当前表信息
  32. "type":"number", #当前字段的类型
  33. "name":"数字字段的别名" #当前字段别名
  34. },
  35. "fixed":123 #固定值对应的数据
  36. },
  37. #日期时间字段
  38. {
  39. "method":"eq", #过滤条件操作符
  40. "rely":"fixed", #固定值"fixed"
  41. "link":{ #当前表信息
  42. "type":"datetime", #当前字段的类型
  43. "name":"日期时间字段的别名" #当前字段别名
  44. },
  45. "fixed":{ #固定值对应的数据
  46. "2019-08-03 00:00:00",
  47. "2019-08-03 23:59:59"
  48. }
  49. },
  50. #单选按钮组
  51. {
  52. "method":"eq", #过滤条件操作符
  53. "rely":"fixed", #固定值"fixed"
  54. "link":{ #当前表信息
  55. "type":"radiogroup", #当前字段的类型
  56. "name":"单选按钮组的别名" #当前字段别名
  57. },
  58. "fixed":"选项1" #固定值对应的数据
  59. },
  60. #多选按钮组
  61. {
  62. "method":"in", #过滤条件操作符
  63. "rely":"fixed", #固定值"fixed"
  64. "link":{ #当前表信息
  65. "type":"checkboxgroup", #当前字段的类型
  66. "name":"多选按钮组的别名" #当前字段别名
  67. },
  68. "fixed":{ #固定值对应的数据
  69. "选项1",
  70. "选项2"
  71. }
  72. },
  73. #下拉框
  74. {
  75. "method":"eq", #过滤条件操作符
  76. "rely":"fixed", #固定值"fixed"
  77. "link":{ #当前表信息
  78. "type":"combo", #当前字段的类型
  79. "name":"下拉框的别名" #当前字段别名
  80. },
  81. "fixed":"选项1" #固定值对应的数据
  82. },
  83. #下拉复选框
  84. {
  85. "method":"in", #过滤条件操作符
  86. "rely":"fixed", #固定值"fixed"
  87. "link":{ #当前表信息
  88. "type":"combocheck", #当前字段的类型
  89. "name":"下拉复选框" #当前字段别名
  90. },
  91. "fixed":{ #固定值对应的数据
  92. "选项1",
  93. "选项2"
  94. }
  95. },
  96. #地址字段
  97. {
  98. "method":"in", #过滤条件操作符
  99. "rely":"fixed", #固定值"fixed"
  100. "link":{ #当前表信息
  101. "type":"address", #当前字段的类型
  102. "name":"地址字段" #当前字段别名
  103. },
  104. "fixed":{ #固定值对应的数据
  105. "district":"昌平区",
  106. "city":"北京市",
  107. "province":"北京市"
  108. }
  109. },
  110. #定位字段
  111. {
  112. "method":"in", #过滤条件操作符
  113. "rely":"fixed", #固定值"fixed"
  114. "link":{ #当前表信息
  115. "type":"location", #当前字段的类型
  116. "name":"定位字段的别名" #当前字段别名
  117. },
  118. "fixed":{ #固定值对应的数据
  119. "district":"昌平区",
  120. "city":"北京市",
  121. "province":"北京市"
  122. }
  123. },
  124. #图片
  125. {
  126. "method":"empty", #过滤条件操作符
  127. "rely":"fixed", #固定值"fixed"
  128. "link":{ #当前表信息
  129. "type":"image", #当前字段的类型
  130. "name":"图片的别名" #当前字段别名
  131. },
  132. "fixed":"" #固定值对应的数据
  133. },
  134. #附件
  135. {
  136. "method":"empty", #过滤条件操作符
  137. "rely":"fixed", #固定值"fixed"
  138. "link":{ #当前表信息
  139. "type":"upload", #当前字段的类型
  140. "name":"附件的别名" #当前字段别名
  141. },
  142. "fixed":"" #固定值对应的数据
  143. },
  144. #关联查询
  145. {
  146. "method":"empty", #过滤条件操作符
  147. "rely":"fixed", #固定值"fixed"
  148. "link":{ #当前表信息
  149. "type":"linkdata", #当前字段的类型
  150. "name":"关联查询的别名" #当前字段别名
  151. },
  152. "fixed":"" #固定值对应的数据
  153. },
  154. #签名
  155. {
  156. "method":"empty", #过滤条件操作符
  157. "rely":"fixed", #固定值"fixed"
  158. "link":{ #当前表信息
  159. "type":"signature", #当前字段的类型
  160. "name":"签名的别名" #当前字段别名
  161. },
  162. "fixed":"" #固定值对应的数据
  163. },
  164. #流水号
  165. {
  166. "method":"eq", #过滤条件操作符
  167. "rely":"fixed", #固定值"fixed"
  168. "link":{ #当前表信息
  169. "type":"sn", #当前字段的类型
  170. "name":"流水号的别名" #当前字段别名
  171. },
  172. "fixed":"1" #固定值对应的数据
  173. },
  174. #成员单选
  175. {
  176. "method":"eq", #过滤条件操作符
  177. "rely":"fixed", #固定值"fixed"
  178. "link":{ #当前表信息
  179. "type":"user", #当前字段的类型
  180. "name":"成员单选的别名" #当前字段别名
  181. },
  182. "fixed":"5a98d099b8c5a73d667e5c8a" #固定值对应的数据
  183. },
  184. #成员多选
  185. {
  186. "method":"in", #过滤条件操作符
  187. "rely":"fixed", #固定值"fixed"
  188. "link":{ #当前表信息
  189. "type":"usergroup", #当前字段的类型
  190. "name":"成员多选的别名" #当前字段别名
  191. },
  192. "fixed":{ #固定值对应的数据
  193. "504bb04cb7590826b0dcddd5",
  194. "5441089a938dfe033870a8f9"
  195. }
  196. },
  197. #部门单选
  198. {
  199. "method":"eq", #过滤条件操作符
  200. "rely":"fixed", #固定值"fixed"
  201. "link":{ #当前表信息
  202. "type":"dept", #当前字段的类型
  203. "name":"部门单选的别名" #当前字段别名
  204. },
  205. "fixed":"5ce06f2e6bb14a51f6197b2e" #固定值对应的数据
  206. },
  207. #部门多选
  208. {
  209. "method":"in", #过滤条件操作符
  210. "rely":"fixed", #固定值"fixed"
  211. "link":{ #当前表信息
  212. "type":"deptgroup", #当前字段的类型
  213. "name":"部门多选的别名" #当前字段别名
  214. },
  215. "fixed":{ #固定值对应的数据
  216. "5ce06f2e6bb14a51f6197b2e",
  217. "5d25f37b776a294914a98c6c"
  218. }
  219. },
  220. #当前数据提交人
  221. {
  222. "method":"eq", #过滤条件操作符
  223. "rely":"fixed", #固定值"fixed"
  224. "link":{ #当前表信息
  225. "type":"user", #当前字段的类型
  226. "name":"creator" #当前字段别名
  227. },
  228. "fixed":"504bb04cb7590826b0dcddd5" #固定值对应的数据
  229. },
  230. #提交时间
  231. {
  232. "method":"eq", #过滤条件操作符
  233. "rely":"fixed", #固定值"fixed"
  234. "link":{ #当前表信息
  235. "type":"datetime", #当前字段的类型
  236. "name":"createTime"
  237. },
  238. "fixed":{ #固定值对应的数据
  239. "2019-08-03 00:00:00",
  240. "2019-08-03 23:59:59"
  241. }
  242. },
  243. #更新时间
  244. {
  245. "method":"eq", #过滤条件操作符
  246. "rely":"fixed", #固定值"fixed"
  247. "link":{ #当前表信息
  248. "type":"datetime", #当前字段的类型
  249. "name":"updateTime"
  250. },
  251. "fixed":{ #固定值对应的数据
  252. "2019-08-03 00:00:00",
  253. "2019-08-03 23:59:59"
  254. }
  255. }
  256. ]
  257. }
  258. }复制

其他表

  1. #下面为过滤条件其他表模式传入Config参数的详细内容
  2. {
  3. "过滤条件":{
  4. "type":"filter", #当前字段的类型
  5. "form":"50079686bf3882c85da9c1f0", #目标表单别名
  6. "data":[
  7. #单行文本字段
  8. {
  9. "fixed":"单行文本内容", #固定值对应的数据
  10. "link":{ #目标表信息
  11. "name":"单行文本字段的别名", #目标表字段别名
  12. "type":"text" #目标表字段的类型
  13. },
  14. "rely":"fixed", #固定值"fixed"
  15. "method":"eq" #过滤条件操作符
  16. },
  17. #多行文本字段
  18. {
  19. "fixed":"多行文本内容", #固定值对应的数据
  20. "link":{ #目标表信息
  21. "name":"多行文本字段的别名", #目标表字段别名
  22. "type":"textarea" #目标表字段的类型
  23. },
  24. "rely":"fixed", #固定值"fixed"
  25. "method":"eq" #过滤条件操作符
  26. },
  27. #数字字段
  28. {
  29. "fixed":123, #固定值对应的数据
  30. "link":{ #目标表信息
  31. "name":"数字字段的别名", #目标表字段别名
  32. "type":"number" #目标表字段的类型
  33. },
  34. "rely":"fixed", #固定值"fixed"
  35. "method":"eq" #过滤条件操作符
  36. },
  37. #日期时间字段
  38. {
  39. "fixed":{ #固定值对应的数据
  40. "2019-08-03 00:00:00",
  41. "2019-08-03 23:59:59"
  42. },
  43. "link":{ #目标表信息
  44. "name":"日期时间字段的别名", #目标表字段别名
  45. "type":"datetime" #目标表字段的类型
  46. },
  47. "rely":"fixed", #固定值"fixed"
  48. "method":"eq" #过滤条件操作符
  49. },
  50. #单选按钮组
  51. {
  52. "fixed":"选项1", #固定值对应的数据
  53. "link":{ #目标表信息
  54. "name":"单选按钮组的别名", #目标表字段别名
  55. "type":"radiogroup" #目标表字段的类型
  56. },
  57. "rely":"fixed", #固定值"fixed"
  58. "method":"eq" #过滤条件操作符
  59. },
  60. #多选按钮组
  61. {
  62. "fixed":{ #固定值对应的数据
  63. "选项1",
  64. "选项2"
  65. },
  66. "link":{ #目标表信息
  67. "name":"多选按钮组的别名", #目标表字段别名
  68. "type":"checkboxgroup" #目标表字段的类型
  69. },
  70. "rely":"fixed", #固定值"fixed"
  71. "method":"in" #过滤条件操作符
  72. },
  73. #下拉框
  74. {
  75. "fixed":"选项1", #固定值对应的数据
  76. "link":{ #目标表信息
  77. "name":"下拉框的别名", #目标表字段别名
  78. "type":"combo" #目标表字段的类型
  79. },
  80. "rely":"fixed", #固定值"fixed"
  81. "method":"eq" #过滤条件操作符
  82. },
  83. #下拉复选框
  84. {
  85. "fixed":{ #固定值对应的数据
  86. "选项1",
  87. "选项2"
  88. },
  89. "link":{ #目标表信息
  90. "name":"下拉复选框的别名", #目标表字段别名
  91. "type":"combocheck" #目标表字段的类型
  92. },
  93. "rely":"fixed", #固定值"fixed"
  94. "method":"in" #过滤条件操作符
  95. },
  96. #按钮字段
  97. {
  98. "fixed":"按钮内容", #固定值对应的数据
  99. "link":{ #目标表信息
  100. "name":"按钮字段的别名", #目标表字段别名
  101. "type":"button" #目标表字段的类型
  102. },
  103. "rely":"fixed", #固定值"fixed"
  104. "method":"eq" #过滤条件操作符
  105. },
  106. #地址字段
  107. {
  108. "fixed":{ #固定值对应的数据
  109. "district":"昌平区",
  110. "city":"北京市",
  111. "province":"北京市"
  112. },
  113. "link":{ #目标表信息
  114. "name":"地址的别名", #目标表字段别名
  115. "type":"address" #目标表字段的类型
  116. },
  117. "rely":"fixed", #固定值"fixed"
  118. "method":"in" #过滤条件操作符
  119. },
  120. #定位
  121. {
  122. "fixed":{ #固定值对应的数据
  123. "district":"昌平区",
  124. "city":"北京市",
  125. "province":"北京市"
  126. },
  127. "link":{ #目标表信息
  128. "name":"定位的别名", #目标表字段别名
  129. "type":"location" #目标表字段的类型
  130. },
  131. "rely":"fixed", #固定值"fixed"
  132. "method":"in" #过滤条件操作符
  133. },
  134. #图片
  135. {
  136. "fixed":"", #固定值对应的数据
  137. "link":{ #目标表信息
  138. "name":"图片的别名", #目标表字段别名
  139. "type":"image" #目标表字段的类型
  140. },
  141. "rely":"fixed", #固定值"fixed"
  142. "method":"empty" #过滤条件操作符
  143. },
  144. #附件
  145. {
  146. "fixed":"", #固定值对应的数据
  147. "link":{ #目标表信息
  148. "name":"附件的别名", #目标表字段别名
  149. "type":"upload" #目标表字段的类型
  150. },
  151. "rely":"fixed", #固定值"fixed"
  152. "method":"empty" #过滤条件操作符
  153. },
  154. #关联查询
  155. {
  156. "fixed":"", #固定值对应的数据
  157. "link":{ #目标表信息
  158. "name":"关联查询的别名", #目标表字段别名
  159. "type":"linkdata" #目标表字段的类型
  160. },
  161. "rely":"fixed", #固定值"fixed"
  162. "method":"empty" #过滤条件操作符
  163. },
  164. #签名
  165. {
  166. "fixed":"", #固定值对应的数据
  167. "link":{ #目标表信息
  168. "name":"签名的别名", #目标表字段别名
  169. "type":"signature" #目标表字段的类型
  170. },
  171. "rely":"fixed", #固定值"fixed"
  172. "method":"empty" #过滤条件操作符
  173. },
  174. #流水号
  175. {
  176. "fixed":"123", #固定值对应的数据
  177. "link":{ #目标表信息
  178. "name":"流水号的别名", #目标表字段别名
  179. "type":"sn" #目标表字段的类型
  180. },
  181. "rely":"fixed", #固定值"fixed"
  182. "method":"eq" #过滤条件操作符
  183. },
  184. #成员单选
  185. {
  186. "fixed":"504bb04cb7590826b0dcddd5", #固定值对应的数据
  187. "link":{ #目标表信息
  188. "name":"成员单选的别名", #目标表字段别名
  189. "type":"user" #目标表字段的类型
  190. },
  191. "rely":"fixed", #固定值"fixed"
  192. "method":"eq" #过滤条件操作符
  193. },
  194. #成员多选
  195. {
  196. "fixed":{ #固定值对应的数据
  197. "504bb04cb7590826b0dcddd5",
  198. "54727033a92702a7e1c68552"
  199. },
  200. "link":{ #目标表信息
  201. "name":"成员多选的别名", #目标表字段别名
  202. "type":"usergroup" #目标表字段的类型
  203. },
  204. "rely":"fixed", #固定值"fixed"
  205. "method":"in" #过滤条件操作符
  206. },
  207. #部门单选
  208. {
  209. "fixed":"5310443ec8b9a14d2f7279bc", #固定值对应的数据
  210. "link":{ #目标表信息
  211. "name":"部门单选的别名", #目标表字段别名
  212. "type":"dept" #目标表字段的类型
  213. },
  214. "rely":"fixed", #固定值"fixed"
  215. "method":"eq" #过滤条件操作符
  216. },
  217. #部门多选
  218. {
  219. "fixed":{ #固定值对应的数据
  220. "58c9d4493ba70ae4df5e8889",
  221. "57448f4a8a0d14889cb9de3a"
  222. },
  223. "link":{ #目标表信息
  224. "name":"部门多选的别名", #目标表字段别名
  225. "type":"deptgroup" #目标表字段的类型
  226. },
  227. "rely":"fixed", #固定值"fixed"
  228. "method":"in" #过滤条件操作符
  229. },
  230. #当前数据提交人
  231. {
  232. "fixed":"5ac36d7bc7bf760892c4fb01", #固定值对应的数据
  233. "link":{ #目标表信息
  234. "name":"creator", #目标表字段别名
  235. "type":"user" #目标表字段的类型
  236. },
  237. "rely":"fixed", #固定值"fixed"
  238. "method":"eq" #过滤条件操作符
  239. },
  240. #提交时间
  241. {
  242. "fixed":{ #固定值对应的数据
  243. "2019-08-03 00:00:00",
  244. "2019-08-03 23:59:59"
  245. },
  246. "link":{ #目标表信息
  247. "name":"createTime", #目标表字段别名
  248. "type":"datetime" #目标表字段的类型
  249. },
  250. "rely":"fixed", #固定值"fixed"
  251. "method":"eq" #过滤条件操作符
  252. },
  253. #更新时间
  254. {
  255. "fixed":{ #固定值对应的数据
  256. "2019-08-03 00:00:00",
  257. "2019-08-03 23:59:59"
  258. },
  259. "link":{ #目标表信息
  260. "name":"updateTime", #目标表字段别名
  261. "type":"datetime" #目标表字段的类型
  262. },
  263. "rely":"fixed", #固定值"fixed"
  264. "method":"eq" #过滤条件操作符
  265. }
  266. ]
  267. }
  268. }复制

其他表-当前表

  1. #下面为过滤条件其他表-当前表模式传入Config参数的详细内容
  2. {
  3. "过滤条件":{
  4. "type":"filter", #当前字段的类型
  5. "form":"50079686bf3882c85da9c1f0", #目标表单别名
  6. "data":[
  7. {
  8. "fixed":"", #当前表-其他表模式下为空值
  9. "rely":{ #当前表信息
  10. "type":"text", #当前表字段的类型
  11. "name":"单行文本的别名" #当前表字段别名
  12. },
  13. "method":"eq", #过滤条件操作符
  14. "link":{ #目标表信息
  15. "type":"text", #目标表字段的类型
  16. "name":"单行文本的别名" #目标表字段别名
  17. }
  18. },
  19. {
  20. "fixed":"", #当前表-其他表模式下为空值
  21. "rely":{ #当前表信息
  22. "type":"textarea", #当前表字段的类型
  23. "name":"多行文本的别名" #当前表字段别名
  24. },
  25. "method":"eq", #过滤条件操作符
  26. "link":{ #目标表信息
  27. "type":"textarea", #目标表字段的类型
  28. "name":"多行文本的别名" #目标表字段别名
  29. }
  30. },
  31. {
  32. "fixed":"", #当前表-其他表模式下为空值
  33. "rely":{ #当前表信息
  34. "type":"number", #当前表字段的类型
  35. "name":"数字字段的别名" #当前表字段别名
  36. },
  37. "method":"eq", #过滤条件操作符
  38. "link":{ #目标表信息
  39. "type":"number", #目标表字段的类型
  40. "name":"数字字段的别名" #目标表字段别名
  41. }
  42. },
  43. {
  44. "fixed":"", #当前表-其他表模式下为空值
  45. "rely":{ #当前表信息
  46. "type":"datetime", #当前表字段的类型
  47. "name":"日期时间的别名" #当前表字段别名
  48. },
  49. "method":"eq", #过滤条件操作符
  50. "link":{ #目标表信息
  51. "type":"datetime", #目标表字段的类型
  52. "name":"日期时间的别名" #目标表字段别名
  53. }
  54. },
  55. {
  56. "fixed":"", #当前表-其他表模式下为空值
  57. "rely":{ #当前表信息
  58. "type":"radiogroup", #当前表字段的类型
  59. "name":"单选按钮组的别名" #当前表字段别名
  60. },
  61. "method":"eq", #过滤条件操作符
  62. "link":{ #目标表信息
  63. "type":"radiogroup", #目标表字段的类型
  64. "name":"单选按钮组的别名" #目标表字段别名
  65. }
  66. },
  67. {
  68. "fixed":"", #当前表-其他表模式下为空值
  69. "rely":{ #当前表信息
  70. "type":"checkboxgroup", #当前表字段的类型
  71. "name":"复选框的别名"
  72. },
  73. "method":"in", #过滤条件操作符
  74. "link":{ #目标表信息
  75. "type":"checkboxgroup", #目标表字段的类型
  76. "name":"复选框的别名" #目标表字段别名
  77. }
  78. },
  79. {
  80. "fixed":"", #当前表-其他表模式下为空值
  81. "rely":{ #当前表信息
  82. "type":"combo", #当前字段的类型
  83. "name":"下拉框的别名" #当前表字段别名
  84. },
  85. "method":"eq", #过滤条件操作符
  86. "link":{ #目标表信息
  87. "type":"combo", #目标表字段的类型
  88. "name":"下拉框的别名" #目标表字段别名
  89. }
  90. },
  91. {
  92. "fixed":"", #当前表-其他表模式下为空值
  93. "rely":{ #当前表信息
  94. "type":"combocheck", #当前字段的类型
  95. "name":"下拉复选框的别名" #当前表字段别名
  96. },
  97. "method":"in", #过滤条件操作符
  98. "link":{ #目标表信息
  99. "type":"combocheck", #当前字段的类型
  100. "name":"下拉复选框的别名" #目标表字段别名
  101. }
  102. },
  103. {
  104. "fixed":"", #当前表-其他表模式下为空值
  105. "rely":"fixed", #当前表信息
  106. "method":"empty", #过滤条件操作符
  107. "link":{ #目标表信息
  108. "type":"button", #目标表字段的类型
  109. "name":"按钮的别名" #目标表字段别名
  110. }
  111. },
  112. {
  113. "fixed":"", #当前表-其他表模式下为空值
  114. "rely":{ #当前表信息
  115. "type":"address", #当前字段的类型
  116. "name":"地址的别名" #当前表字段别名
  117. },
  118. "method":"in", #过滤条件操作符
  119. "link":{ #目标表信息
  120. "type":"address", #目标表字段的类型
  121. "name":"地址的别名" #目标表字段别名
  122. }
  123. },
  124. {
  125. "fixed":"", #当前表-其他表模式下为空值
  126. "rely":{ #当前表信息
  127. "type":"location", #当前字段的类型
  128. "name":"定位的别名" #当前表字段别名
  129. },
  130. "method":"in", #过滤条件操作符
  131. "link":{ #目标表信息
  132. "type":"location", #目标表字段的类型
  133. "name":"定位的别名" #目标表字段别名
  134. }
  135. },
  136. {
  137. "fixed":"", #当前表-其他表模式下为空值
  138. "rely":"fixed", #固定值
  139. "method":"not_empty", #过滤条件操作符
  140. "link":{ #目标表信息
  141. "type":"image", #目标表字段的类型
  142. "name":"图片的别名" #目标表字段别名
  143. }
  144. },
  145. {
  146. "fixed":"", #当前表-其他表模式下为空值
  147. "rely":"fixed", #固定值
  148. "method":"not_empty", #过滤条件操作符
  149. "link":{ #目标表信息
  150. "type":"upload", #目标表字段的类型
  151. "name":"附件的别名" #目标表字段别名
  152. }
  153. },
  154. {
  155. "fixed":"", #当前表-其他表模式下为空值
  156. "rely":{ #当前表信息
  157. "type":"linkdata", #当前表字段的类型
  158. "name":"关联查询的别名" #当前表字段别名
  159. },
  160. "method":"eq", #过滤条件操作符
  161. "link":{ #目标表信息
  162. "type":"linkdata", #目标表字段的类型
  163. "name":"关联查询的别名" #目标表字段别名
  164. }
  165. },
  166. {
  167. "fixed":"", #当前表-其他表模式下为空值
  168. "rely":"fixed", #固定值
  169. "method":"not_empty", #过滤条件操作符
  170. "link":{ #目标表信息
  171. "type":"signature", #目标表字段的类型
  172. "name":"签名的别名" #目标表字段别名
  173. }
  174. },
  175. {
  176. "fixed":"", #当前表-其他表模式下为空值
  177. "rely":{ #当前表信息
  178. "type":"sn", #当前字段的类型
  179. "name":"流水号的别名" #当前表字段别名
  180. },
  181. "method":"eq", #过滤条件操作符
  182. "link":{ #目标表信息
  183. "type":"sn", #目标表字段的类型
  184. "name":"流水号的别名" #目标表字段别名
  185. }
  186. },
  187. {
  188. "fixed":"", #当前表-其他表模式下为空值
  189. "rely":{ #当前表信息
  190. "type":"user", #当前表字段的类型
  191. "name":"成员单选的别名" #当前表字段别名
  192. },
  193. "method":"eq", #过滤条件操作符
  194. "link":{ #目标表信息
  195. "type":"user", #目标表字段的类型
  196. "name":"成员单选的别名" #目标表字段别名
  197. }
  198. },
  199. {
  200. "fixed":"", #当前表-其他表模式下为空值
  201. "rely":{ #当前表信息
  202. "type":"usergroup", #当前表字段的类型
  203. "name":"成员多选的别名" #当前表字段别名
  204. },
  205. "method":"in", #过滤条件操作符
  206. "link":{ #目标表信息
  207. "type":"usergroup", #目标表字段的类型
  208. "name":"成员多选的别名" #目标表字段别名
  209. }
  210. },
  211. {
  212. "fixed":"", #当前表-其他表模式下为空值
  213. "rely":{ #当前表信息
  214. "type":"dept", #当前字段的类型
  215. "name":"部门单选的别名" #当前表字段别名
  216. },
  217. "method":"eq", #过滤条件操作符
  218. "link":{ #目标表信息
  219. "type":"dept", #目标表字段的类型
  220. "name":"部门单选的别名" #目标表字段别名
  221. }
  222. },
  223. {
  224. "fixed":"", #当前表-其他表模式下为空值
  225. "rely":{ #当前表信息
  226. "type":"deptgroup", #当前字段的类型
  227. "name":"部门多选的别名" #当前表字段别名
  228. },
  229. "method":"in", #过滤条件操作符
  230. "link":{ #目标表信息
  231. "type":"deptgroup", #目标表字段的类型
  232. "name":"部门多选的别名" #目标表字段别名
  233. }
  234. },
  235. {
  236. "fixed":"", #当前表-其他表模式下为空值
  237. "rely":{ #当前表信息
  238. "type":"user", #当前表字段的类型
  239. "name":"_widget_1564716301679" #当前表字段别名
  240. },
  241. "method":"eq", #过滤条件操作符
  242. "link":{ #目标表信息
  243. "type":"user", #目标表字段的类型
  244. "name":"creator" #目标表字段别名
  245. }
  246. },
  247. {
  248. "fixed":"", #当前表-其他表模式下为空值
  249. "rely":{ #当前表信息
  250. "type":"datetime", #当前表字段的类型
  251. "name":"createTime" #当前表字段别名
  252. },
  253. "method":"eq", #过滤条件操作符
  254. "link":{ #目标表信息
  255. "type":"datetime", #目标表字段的类型
  256. "name":"createTime" #目标表字段别名
  257. }
  258. },
  259. {
  260. "fixed":"", #当前表-其他表模式下为空值
  261. "rely":{ #当前表信息
  262. "type":"datetime", #当前字段的类型
  263. "name":"updateTime" #当前表字段别名
  264. },
  265. "method":"eq", #过滤条件操作符
  266. "link":{ #目标表信息
  267. "type":"datetime", #当前字段的类型
  268. "name":"updateTime" #目标表字段别名
  269. }
  270. }
  271. ]
  272. }
  273. }复制

参数说明

  • 当前表(模式)
名称 说明
"type" 字段类型(filter表示过滤条件)
form 当前表单别名
data 过滤条件
data."method" 赋值方式
data."fixed" 固定值对应的数据
data."rely" "fixed"
data."link" 当前表信息
data."link"."name" 字段别名
data."link"."type" 字段类型
  • 其他表(模式)
名称 说明
"type" 字段类型(filter表示过滤条件)
form 目标表单别名
data 过滤条件
data."method" 赋值方式
data."fixed" 固定值对应的数据
data."rely" "fixed"
data."link" 目标表信息
data."link"."name" 字段别名
data."link"."type" 字段类型
  • 其他表-当前表(模式)
名称 说明
"type" 字段类型(filter表示过滤条件)
form 目标表单别名
data 过滤条件
data."method" 赋值方式
data."fixed" 固定值对应的数据
data."rely" 当前表信息
data."rely"."name" 字段别名
data."rely"."type" 字段类型
data."link" 目标表信息
data."link"."name" 字段别名
data."link"."type" 字段类型

过滤条件操作符说明

具体过滤条件参考以下文档。

  • 查询条件和排序规则

调用例子

  1. # 表单数据提交触发模块入口
  2. def _formsubmitlib(config,formAlias,arg,type):
  3. #获取表单别名
  4. 表单别名=config["过滤条件"]["form"]
  5. #获取过滤条件数量
  6. num=table.size(config["过滤条件"]["data"])
  7. #获取第1个过滤条件字段类型
  8. 字段类型=config["过滤条件"]["data"][0]["link"]["type"]
  9. #获取第1个过滤条件字段别名
  10. 字段类型=config["过滤条件"]["data"][0]["link"]["name"]
  11. #获取第1个过滤条件赋值方式
  12. 赋值方式=config["过滤条件"]["data"][0]["link"]["method"]
  13. #当前表模式
  14. #获取第1个过滤条件固定值
  15. 固定值=config["过滤条件"]["data"][0]["fixed"]
  16. #其他表模式
  17. #获取第1个过滤条件目标表字段别名
  18. 其他表字段别名=config["过滤条件"]["data"][0]["link"]["name"]
  19. #其他表-当前表模式
  20. #获取第1个过滤条件当前表字段别名
  21. 当前表字段别名=config["过滤条件"]["data"][0]["rely"]["name"]复制
    目录
  • 过滤条件Config参数说明
  • 数据格式
  • 当前表
  • 其他表
  • 其他表-当前表
  • 参数说明
  • 过滤条件操作符说明
  • 调用例子
最新修改于:2021-10-15