Browse Source

升级2.0.0

master
陈裕财 2 years ago
parent
commit
9f735942a2
  1. 8
      mdp-form/src/main/java/com/mdp/form/mapper/FormDataMapper.xml
  2. 6
      mdp-form/src/main/java/com/mdp/form/mapper/FormDefMapper.xml

8
mdp-form/src/main/java/com/mdp/form/mapper/FormDataMapper.xml

@ -6,14 +6,6 @@
select * from form_data res select * from form_data res
<where> <where>
${@com.mdp.Util@trimWhere(ew.customSqlSegment)} ${@com.mdp.Util@trimWhere(ew.customSqlSegment)}
<!--下面可以添加更多查询条件,正常的if 条件都是支持的-->
<if test="ext.procInstId!=null and ext.procInstId!=''">and exists(select 1 from form_data_process_approva app where app.proc_inst_id=#{ext.procInstId} and res.id=app.form_data_id )</if>
<if test="ext.tagIds !=null"> and exists ( select 1 from form.form_data_tag tag where tag.data_id = res.id and tag.tag_id in
<foreach collection="ext.tagIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach> )
</if>
</where> </where>
<!--下面双引号内可以添加默认排序,如果前端没有上传排序,将使用引号内的排序规则--> <!--下面双引号内可以添加默认排序,如果前端没有上传排序,将使用引号内的排序规则-->
${@com.mdp.Util@trimOrderBy(ew.customSqlSegment,'')} ${@com.mdp.Util@trimOrderBy(ew.customSqlSegment,'')}

6
mdp-form/src/main/java/com/mdp/form/mapper/FormDefMapper.xml

@ -6,12 +6,6 @@
select * from form_def res select * from form_def res
<where> <where>
${@com.mdp.Util@trimWhere(ew.customSqlSegment)} ${@com.mdp.Util@trimWhere(ew.customSqlSegment)}
<!--下面可以添加更多查询条件,正常的if 条件都是支持的-->
<if test=" ext.tagIds !=null"> and exists ( select 1 from form.form_def_tag tag where tag.form_id = res.id and tag.tag_id in
<foreach collection="ext.tagIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach> )
</if>
</where> </where>
<!--下面双引号内可以添加默认排序,如果前端没有上传排序,将使用引号内的排序规则--> <!--下面双引号内可以添加默认排序,如果前端没有上传排序,将使用引号内的排序规则-->
${@com.mdp.Util@trimOrderBy(ew.customSqlSegment,'')} ${@com.mdp.Util@trimOrderBy(ew.customSqlSegment,'')}

Loading…
Cancel
Save