Browse Source

重新生成form_field

master
陈裕财 3 years ago
parent
commit
4ed84535a4
  1. 424
      mdp-form/src/main/java/com/mdp/form/entity/FormData.java
  2. 72
      mdp-form/src/main/java/com/mdp/form/entity/FormDataTag.java
  3. 218
      mdp-form/src/main/java/com/mdp/form/entity/FormDef.java
  4. 158
      mdp-form/src/main/java/com/mdp/form/entity/FormQx.java
  5. 67
      mdp-form/src/main/java/com/mdp/form/entity/FormView.java
  6. 136
      mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDataMapper.xml
  7. 72
      mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDataTagMapper.xml
  8. 93
      mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDefMapper.xml
  9. 70
      mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormQxMapper.xml
  10. 91
      mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormViewMapper.xml

424
mdp-form/src/main/java/com/mdp/form/entity/FormData.java

@ -1,19 +1,19 @@
package com.mdp.form.entity; package com.mdp.form.entity;
import lombok.Data;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Date; import java.util.Date;
/** /**
* 组织 com.qqkj 顶级模块 mdp 大模块 form 小模块 <br>
* 组织 com 顶级模块 mdp 大模块 form 小模块 <br>
* 实体 FormData所有属性名: <br> * 实体 FormData所有属性名: <br>
* id,two,three,four,five,six,seven,eight,nine,ten,lastTime,one,zero,remark,formId,userid,eleven,twelve,thirteen,fourteen,fifteen,attachmentUrls,attachmentNames,branchId,bizKey,deptid,flowState,createTime,dqxCode,cuserid,tagIds,tagNames,cusername,deptName;<br>
* FORM.form_data form_data的所有字段名: <br>
* id,two,three,four,five,six,seven,eight,nine,ten,last_time,one,zero,remark,form_id,userid,eleven,twelve,thirteen,fourteen,fifteen,attachment_urls,attachment_names,branch_id,biz_key,deptid,flow_state,create_time,dqx_code,cuserid,tag_ids,tag_names,cusername,dept_name;<br>
* "id","主键","two","属性二","three","属性三","four","属性四","five","属性五","six","属性六","seven","属性七","eight","属性八","nine","属性九","ten","属性十","lastTime","最后更新日期","one","属性一","zero","属性零","remark","备注","formId","表单编号","userid","最后更新人","eleven","字段十一","twelve","字段十二","thirteen","字段十三","fourteen","字段十四","fifteen","字段十五","attachmentUrls","附件url多个","attachmentNames","附件名称多个","branchId","机构编号","bizKey","唯一确定该业务的主键竖线分隔多个,如果是联合组件的话","deptid","创建部门","flowState","0初始1审批中2结束审批","createTime","创建时间","dqxCode","数据权限码","cuserid","创建人编号","tagIds","标签编号列表逗号分割","tagNames","标签名列表逗号分割","cusername","创建人姓名","deptName","创建部门";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ApiModel(description="form_data")
@Data
@ApiModel(description="表单数据表")
public class FormData implements java.io.Serializable { public class FormData implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -91,7 +91,7 @@ public class FormData implements java.io.Serializable {
@ApiModelProperty(notes="机构编号",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="机构编号",allowEmptyValue=true,example="",allowableValues="")
String branchId; String branchId;
@ApiModelProperty(notes="唯一确定该业务的主键",allowEmptyValue=true,example="",allowableValues="")
@ApiModelProperty(notes="唯一确定该业务的主键竖线分隔多个,如果是联合组件的话",allowEmptyValue=true,example="",allowableValues="")
String bizKey; String bizKey;
@ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="")
@ -121,423 +121,17 @@ public class FormData implements java.io.Serializable {
@ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="")
String deptName; String deptName;
/**主键**/
public FormData(String id) {
this.id = id;
}
/**form_data**/
public FormData() {
}
/** /**
*主键 *主键
**/ **/
public void setId(String id) {
public FormData(String id) {
this.id = id; this.id = id;
} }
/**
* 属性二
**/
public void setTwo(String two) {
this.two = two;
}
/**
* 属性三
**/
public void setThree(String three) {
this.three = three;
}
/**
* 属性四
**/
public void setFour(String four) {
this.four = four;
}
/**
* 属性五
**/
public void setFive(String five) {
this.five = five;
}
/**
* 属性六
**/
public void setSix(String six) {
this.six = six;
}
/**
* 属性七
**/
public void setSeven(String seven) {
this.seven = seven;
}
/**
* 属性八
**/
public void setEight(String eight) {
this.eight = eight;
}
/**
* 属性九
**/
public void setNine(String nine) {
this.nine = nine;
}
/**
* 属性十
**/
public void setTen(String ten) {
this.ten = ten;
}
/**
* 最后更新日期
**/
public void setLastTime(Date lastTime) {
this.lastTime = lastTime;
}
/**
* 属性一
**/
public void setOne(String one) {
this.one = one;
}
/**
* 属性零
**/
public void setZero(String zero) {
this.zero = zero;
}
/**
* 备注
**/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* 表单编号
**/
public void setFormId(String formId) {
this.formId = formId;
}
/**
* 最后更新人
**/
public void setUserid(String userid) {
this.userid = userid;
}
/**
* 字段十一
**/
public void setEleven(String eleven) {
this.eleven = eleven;
}
/**
* 字段十二
**/
public void setTwelve(String twelve) {
this.twelve = twelve;
}
/**
* 字段十三
**/
public void setThirteen(String thirteen) {
this.thirteen = thirteen;
}
/**
* 字段十四
**/
public void setFourteen(String fourteen) {
this.fourteen = fourteen;
}
/**
* 字段十五
**/
public void setFifteen(String fifteen) {
this.fifteen = fifteen;
}
/**
* 附件url多个
**/
public void setAttachmentUrls(String attachmentUrls) {
this.attachmentUrls = attachmentUrls;
}
/**
* 附件名称多个
**/
public void setAttachmentNames(String attachmentNames) {
this.attachmentNames = attachmentNames;
}
/**
* 机构编号
**/
public void setBranchId(String branchId) {
this.branchId = branchId;
}
/**
* 唯一确定该业务的主键
**/
public void setBizKey(String bizKey) {
this.bizKey = bizKey;
}
/**
* 创建部门
**/
public void setDeptid(String deptid) {
this.deptid = deptid;
}
/**
* 0初始1审批中2结束审批
**/
public void setFlowState(String flowState) {
this.flowState = flowState;
}
/**
* 创建时间
**/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* 数据权限码
**/
public void setDqxCode(String dqxCode) {
this.dqxCode = dqxCode;
}
/**
* 创建人编号
**/
public void setCuserid(String cuserid) {
this.cuserid = cuserid;
}
/**
* 标签编号列表逗号分割
**/
public void setTagIds(String tagIds) {
this.tagIds = tagIds;
}
/**
* 标签名列表逗号分割
**/
public void setTagNames(String tagNames) {
this.tagNames = tagNames;
}
/**
* 创建人姓名
**/
public void setCusername(String cusername) {
this.cusername = cusername;
}
/**
* 创建部门
**/
public void setDeptName(String deptName) {
this.deptName = deptName;
}
/** /**
* 主键
**/
public String getId() {
return this.id;
}
/**
* 属性二
**/
public String getTwo() {
return this.two;
}
/**
* 属性三
**/
public String getThree() {
return this.three;
}
/**
* 属性四
**/
public String getFour() {
return this.four;
}
/**
* 属性五
**/
public String getFive() {
return this.five;
}
/**
* 属性六
**/
public String getSix() {
return this.six;
}
/**
* 属性七
**/
public String getSeven() {
return this.seven;
}
/**
* 属性八
**/
public String getEight() {
return this.eight;
}
/**
* 属性九
**/
public String getNine() {
return this.nine;
}
/**
* 属性十
**/
public String getTen() {
return this.ten;
}
/**
* 最后更新日期
**/
public Date getLastTime() {
return this.lastTime;
}
/**
* 属性一
**/
public String getOne() {
return this.one;
}
/**
* 属性零
**/
public String getZero() {
return this.zero;
}
/**
* 备注
**/
public String getRemark() {
return this.remark;
}
/**
* 表单编号
**/
public String getFormId() {
return this.formId;
}
/**
* 最后更新人
**/
public String getUserid() {
return this.userid;
}
/**
* 字段十一
* 表单数据表
**/ **/
public String getEleven() {
return this.eleven;
}
/**
* 字段十二
**/
public String getTwelve() {
return this.twelve;
}
/**
* 字段十三
**/
public String getThirteen() {
return this.thirteen;
}
/**
* 字段十四
**/
public String getFourteen() {
return this.fourteen;
}
/**
* 字段十五
**/
public String getFifteen() {
return this.fifteen;
}
/**
* 附件url多个
**/
public String getAttachmentUrls() {
return this.attachmentUrls;
}
/**
* 附件名称多个
**/
public String getAttachmentNames() {
return this.attachmentNames;
}
/**
* 机构编号
**/
public String getBranchId() {
return this.branchId;
}
/**
* 唯一确定该业务的主键
**/
public String getBizKey() {
return this.bizKey;
}
/**
* 创建部门
**/
public String getDeptid() {
return this.deptid;
}
/**
* 0初始1审批中2结束审批
**/
public String getFlowState() {
return this.flowState;
}
/**
* 创建时间
**/
public Date getCreateTime() {
return this.createTime;
}
/**
* 数据权限码
**/
public String getDqxCode() {
return this.dqxCode;
}
/**
* 创建人编号
**/
public String getCuserid() {
return this.cuserid;
}
/**
* 标签编号列表逗号分割
**/
public String getTagIds() {
return this.tagIds;
}
/**
* 标签名列表逗号分割
**/
public String getTagNames() {
return this.tagNames;
}
/**
* 创建人姓名
**/
public String getCusername() {
return this.cusername;
}
/**
* 创建部门
**/
public String getDeptName() {
return this.deptName;
public FormData() {
} }
} }

72
mdp-form/src/main/java/com/mdp/form/entity/FormDataTag.java

@ -1,18 +1,18 @@
package com.mdp.form.entity; package com.mdp.form.entity;
import lombok.Data;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Date; import java.util.Date;
/** /**
* 组织 com.qqkj 顶级模块 mdp 大模块 form 小模块 <br>
* 组织 com 顶级模块 mdp 大模块 form 小模块 <br>
* 实体 FormDataTag所有属性名: <br> * 实体 FormDataTag所有属性名: <br>
* dataId,tagId,tagName,id,createTime;<br>
* FORM.form_data_tag form_data_tag的所有字段名: <br>
* data_id,tag_id,tag_name,id,create_time;<br>
* "dataId","表单数据编号","tagId","标签编号","tagName","标签名字","id","主键","createTime","添加事件";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@Data
@ApiModel(description="form_data_tag") @ApiModel(description="form_data_tag")
public class FormDataTag implements java.io.Serializable { public class FormDataTag implements java.io.Serializable {
@ -34,75 +34,17 @@ public class FormDataTag implements java.io.Serializable {
@ApiModelProperty(notes="添加事件",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="添加事件",allowEmptyValue=true,example="",allowableValues="")
Date createTime; Date createTime;
/**主键**/
public FormDataTag(String id) {
this.id = id;
}
/**form_data_tag**/
public FormDataTag() {
}
/**
* 表单数据编号
**/
public void setDataId(String dataId) {
this.dataId = dataId;
}
/**
* 标签编号
**/
public void setTagId(String tagId) {
this.tagId = tagId;
}
/**
* 标签名字
**/
public void setTagName(String tagName) {
this.tagName = tagName;
}
/** /**
*主键 *主键
**/ **/
public void setId(String id) {
public FormDataTag(String id) {
this.id = id; this.id = id;
} }
/**
* 添加事件
**/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/** /**
* 表单数据编号
**/
public String getDataId() {
return this.dataId;
}
/**
* 标签编号
**/
public String getTagId() {
return this.tagId;
}
/**
* 标签名字
* form_data_tag
**/ **/
public String getTagName() {
return this.tagName;
}
/**
* 主键
**/
public String getId() {
return this.id;
}
/**
* 添加事件
**/
public Date getCreateTime() {
return this.createTime;
public FormDataTag() {
} }
} }

218
mdp-form/src/main/java/com/mdp/form/entity/FormDef.java

@ -1,19 +1,19 @@
package com.mdp.form.entity; package com.mdp.form.entity;
import lombok.Data;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Date; import java.util.Date;
/** /**
* 组织 com.qqkj 顶级模块 mdp 大模块 form 小模块 <br>
* 组织 com 顶级模块 mdp 大模块 form 小模块 <br>
* 实体 FormDef所有属性名: <br> * 实体 FormDef所有属性名: <br>
* id,tableName,tableOwner,isCreateTable,formName,userid,deptid,formType,isTemplate,bizType,ctime,branchId,categoryId,tagIds,tagNames,username,deptName;<br>
* FORM.form_def form_def的所有字段名: <br>
* id,table_name,table_owner,is_create_table,form_name,userid,deptid,form_type,is_template,biz_type,ctime,branch_id,category_id,tag_ids,tag_names,username,dept_name;<br>
* "id","主键","tableName","表名","tableOwner","表名拥有者","isCreateTable","是否已经创建库表","formName","表单名称","userid","创建人","deptid","创建部门","formType","表单类型","isTemplate","是否为模板","bizType","业务分类","ctime","创建日期","branchId","机构编号","categoryId","分类编号","tagIds","标签编号列表","tagNames","标签名字列表","username","创建人姓名","deptName","创建部门";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ApiModel(description="form_def")
@Data
@ApiModel(description="表单定义")
public class FormDef implements java.io.Serializable { public class FormDef implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -70,219 +70,17 @@ public class FormDef implements java.io.Serializable {
@ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="创建部门",allowEmptyValue=true,example="",allowableValues="")
String deptName; String deptName;
/**主键**/
public FormDef(String id) {
this.id = id;
}
/**form_def**/
public FormDef() {
}
/** /**
*主键 *主键
**/ **/
public void setId(String id) {
public FormDef(String id) {
this.id = id; this.id = id;
} }
/**
* 表名
**/
public void setTableName(String tableName) {
this.tableName = tableName;
}
/**
* 表名拥有者
**/
public void setTableOwner(String tableOwner) {
this.tableOwner = tableOwner;
}
/**
* 是否已经创建库表
**/
public void setIsCreateTable(String isCreateTable) {
this.isCreateTable = isCreateTable;
}
/**
* 表单名称
**/
public void setFormName(String formName) {
this.formName = formName;
}
/**
* 创建人
**/
public void setUserid(String userid) {
this.userid = userid;
}
/**
* 创建部门
**/
public void setDeptid(String deptid) {
this.deptid = deptid;
}
/**
* 表单类型
**/
public void setFormType(String formType) {
this.formType = formType;
}
/**
* 是否为模板
**/
public void setIsTemplate(String isTemplate) {
this.isTemplate = isTemplate;
}
/**
* 业务分类
**/
public void setBizType(String bizType) {
this.bizType = bizType;
}
/**
* 创建日期
**/
public void setCtime(Date ctime) {
this.ctime = ctime;
}
/**
* 机构编号
**/
public void setBranchId(String branchId) {
this.branchId = branchId;
}
/**
* 分类编号
**/
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
/**
* 标签编号列表
**/
public void setTagIds(String tagIds) {
this.tagIds = tagIds;
}
/**
* 标签名字列表
**/
public void setTagNames(String tagNames) {
this.tagNames = tagNames;
}
/**
* 创建人姓名
**/
public void setUsername(String username) {
this.username = username;
}
/**
* 创建部门
**/
public void setDeptName(String deptName) {
this.deptName = deptName;
}
/** /**
* 主键
**/
public String getId() {
return this.id;
}
/**
* 表名
* 表单定义
**/ **/
public String getTableName() {
return this.tableName;
}
/**
* 表名拥有者
**/
public String getTableOwner() {
return this.tableOwner;
}
/**
* 是否已经创建库表
**/
public String getIsCreateTable() {
return this.isCreateTable;
}
/**
* 表单名称
**/
public String getFormName() {
return this.formName;
}
/**
* 创建人
**/
public String getUserid() {
return this.userid;
}
/**
* 创建部门
**/
public String getDeptid() {
return this.deptid;
}
/**
* 表单类型
**/
public String getFormType() {
return this.formType;
}
/**
* 是否为模板
**/
public String getIsTemplate() {
return this.isTemplate;
}
/**
* 业务分类
**/
public String getBizType() {
return this.bizType;
}
/**
* 创建日期
**/
public Date getCtime() {
return this.ctime;
}
/**
* 机构编号
**/
public String getBranchId() {
return this.branchId;
}
/**
* 分类编号
**/
public String getCategoryId() {
return this.categoryId;
}
/**
* 标签编号列表
**/
public String getTagIds() {
return this.tagIds;
}
/**
* 标签名字列表
**/
public String getTagNames() {
return this.tagNames;
}
/**
* 创建人姓名
**/
public String getUsername() {
return this.username;
}
/**
* 创建部门
**/
public String getDeptName() {
return this.deptName;
public FormDef() {
} }
} }

158
mdp-form/src/main/java/com/mdp/form/entity/FormQx.java

@ -1,18 +1,18 @@
package com.mdp.form.entity; package com.mdp.form.entity;
import lombok.Data;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* 组织 com.qqkj 顶级模块 mdp 大模块 form 小模块 <br>
* 组织 com 顶级模块 mdp 大模块 form 小模块 <br>
* 实体 FormQx所有属性名: <br> * 实体 FormQx所有属性名: <br>
* formId,allowQueryRoleids,allowQueryDeptids,allowQueryUserids,notQueryRoleids,notQueryDeptids,notQueryUserids,allowOtherQuery,allowOtherEdit,allowOtherDel,doDeptLvlCheck,deptLvlQx;<br>
* FORM.form_qx form_qx的所有字段名: <br>
* form_id,allow_query_roleids,allow_query_deptids,allow_query_userids,not_query_roleids,not_query_deptids,not_query_userids,allow_other_query,allow_other_edit,allow_other_del,do_dept_lvl_check,dept_lvl_qx;<br>
* "formId","表单编号","allowQueryRoleids","允许那些角色查询,号分割","allowQueryDeptids","允许那些部门查询,号分割","allowQueryUserids","允许哪些人查询,号分割","notQueryRoleids","禁止哪些角色查询","notQueryDeptids","禁止哪些部门查询","notQueryUserids","禁止哪些人查询","allowOtherQuery","是否允许其它人查询","allowOtherEdit","是否允许其它人修改","allowOtherDel","是否允许其它人删除","doDeptLvlCheck","是否进行部门级别传递权限检查","deptLvlQx","部门级别权限";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* form_id;<br> * form_id;<br>
*/ */
@ApiModel(description="form_qx")
@Data
@ApiModel(description="表单权限")
public class FormQx implements java.io.Serializable { public class FormQx implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -54,159 +54,17 @@ public class FormQx implements java.io.Serializable {
@ApiModelProperty(notes="部门级别权限",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="部门级别权限",allowEmptyValue=true,example="",allowableValues="")
String deptLvlQx; String deptLvlQx;
/**表单编号**/
public FormQx(String formId) {
this.formId = formId;
}
/**form_qx**/
public FormQx() {
}
/** /**
*表单编号 *表单编号
**/ **/
public void setFormId(String formId) {
public FormQx(String formId) {
this.formId = formId; this.formId = formId;
} }
/**
* 允许那些角色查询,号分割
**/
public void setAllowQueryRoleids(String allowQueryRoleids) {
this.allowQueryRoleids = allowQueryRoleids;
}
/**
* 允许那些部门查询,号分割
**/
public void setAllowQueryDeptids(String allowQueryDeptids) {
this.allowQueryDeptids = allowQueryDeptids;
}
/**
* 允许哪些人查询,号分割
**/
public void setAllowQueryUserids(String allowQueryUserids) {
this.allowQueryUserids = allowQueryUserids;
}
/**
* 禁止哪些角色查询
**/
public void setNotQueryRoleids(String notQueryRoleids) {
this.notQueryRoleids = notQueryRoleids;
}
/**
* 禁止哪些部门查询
**/
public void setNotQueryDeptids(String notQueryDeptids) {
this.notQueryDeptids = notQueryDeptids;
}
/**
* 禁止哪些人查询
**/
public void setNotQueryUserids(String notQueryUserids) {
this.notQueryUserids = notQueryUserids;
}
/**
* 是否允许其它人查询
**/
public void setAllowOtherQuery(String allowOtherQuery) {
this.allowOtherQuery = allowOtherQuery;
}
/**
* 是否允许其它人修改
**/
public void setAllowOtherEdit(String allowOtherEdit) {
this.allowOtherEdit = allowOtherEdit;
}
/**
* 是否允许其它人删除
**/
public void setAllowOtherDel(String allowOtherDel) {
this.allowOtherDel = allowOtherDel;
}
/**
* 是否进行部门级别传递权限检查
**/
public void setDoDeptLvlCheck(String doDeptLvlCheck) {
this.doDeptLvlCheck = doDeptLvlCheck;
}
/**
* 部门级别权限
**/
public void setDeptLvlQx(String deptLvlQx) {
this.deptLvlQx = deptLvlQx;
}
/** /**
* 表单编号
**/
public String getFormId() {
return this.formId;
}
/**
* 允许那些角色查询,号分割
**/
public String getAllowQueryRoleids() {
return this.allowQueryRoleids;
}
/**
* 允许那些部门查询,号分割
**/
public String getAllowQueryDeptids() {
return this.allowQueryDeptids;
}
/**
* 允许哪些人查询,号分割
**/
public String getAllowQueryUserids() {
return this.allowQueryUserids;
}
/**
* 禁止哪些角色查询
**/
public String getNotQueryRoleids() {
return this.notQueryRoleids;
}
/**
* 禁止哪些部门查询
* 表单权限
**/ **/
public String getNotQueryDeptids() {
return this.notQueryDeptids;
}
/**
* 禁止哪些人查询
**/
public String getNotQueryUserids() {
return this.notQueryUserids;
}
/**
* 是否允许其它人查询
**/
public String getAllowOtherQuery() {
return this.allowOtherQuery;
}
/**
* 是否允许其它人修改
**/
public String getAllowOtherEdit() {
return this.allowOtherEdit;
}
/**
* 是否允许其它人删除
**/
public String getAllowOtherDel() {
return this.allowOtherDel;
}
/**
* 是否进行部门级别传递权限检查
**/
public String getDoDeptLvlCheck() {
return this.doDeptLvlCheck;
}
/**
* 部门级别权限
**/
public String getDeptLvlQx() {
return this.deptLvlQx;
public FormQx() {
} }
} }

67
mdp-form/src/main/java/com/mdp/form/entity/FormView.java

@ -1,71 +1,46 @@
package com.mdp.form.entity; package com.mdp.form.entity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 组织 com.qqkj 顶级模块 mdp 大模块 form 小模块 <br>
* 组织 com 顶级模块 mdp 大模块 form 小模块 <br>
* 实体 FormView所有属性名: <br> * 实体 FormView所有属性名: <br>
* formId,id,viewContext,bizId;<br>
* FORM.form_view 表单页面的所有字段名: <br>
* form_id,id,view_context,biz_id;<br>
* "formId","表单主键","id","视图主键","viewContext","页面html内容","bizId","关联的业务功能编号";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@Data
@ApiModel(description="表单页面")
public class FormView implements java.io.Serializable { public class FormView implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**表单主键**/
String formId;
/**视图主键**/
@ApiModelProperty(notes="视图主键,主键",allowEmptyValue=true,example="",allowableValues="")
String id; String id;
/**页面html内容**/
@ApiModelProperty(notes="表单主键",allowEmptyValue=true,example="",allowableValues="")
String formId;
@ApiModelProperty(notes="页面html内容",allowEmptyValue=true,example="",allowableValues="")
String viewContext; String viewContext;
/**关联的业务功能编号**/
@ApiModelProperty(notes="关联的业务功能编号",allowEmptyValue=true,example="",allowableValues="")
String bizId; String bizId;
public FormView() {
}
/**
*视图主键
**/
public FormView(String id) { public FormView(String id) {
this.id = id; this.id = id;
} }
/**表单主键**/
public void setFormId(String formId) {
this.formId = formId;
}
/**视图主键**/
public void setId(String id) {
this.id = id;
}
/**页面html内容**/
public void setViewContext(String viewContext) {
this.viewContext = viewContext;
}
/**关联的业务功能编号**/
public void setBizId(String bizId) {
this.bizId = bizId;
}
/** 表单主键**/
public String getFormId() {
return this.formId;
}
/** 视图主键**/
public String getId() {
return this.id;
}
/** 页面html内容**/
public String getViewContext() {
return this.viewContext;
}
/** 关联的业务功能编号**/
public String getBizId() {
return this.bizId;
/**
* 表单页面
**/
public FormView() {
} }
} }

136
mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDataMapper.xml

@ -3,8 +3,47 @@
<mapper namespace="com.mdp.form.entity.FormData"> <mapper namespace="com.mdp.form.entity.FormData">
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<!--开始 自定sql函数区域 请在此区域添加自定义函数,其它区域尽量不要动,因为代码随时重新生成 -->
<sql id="whereForMap">
<if test=" ids != null"> and (res.id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</if>
<if test=" cuserids !=null"> and res.cuserid in
<foreach collection="cuserids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" flowStates !=null"> and res.flow_state in
<foreach collection="flowStates" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" deptids !=null"> and res.deptid in
<foreach collection="deptids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=' fromStartTime !=null and toStartTime != null '> and res.create_time between #{fromStartTime} and #{toStartTime}</if>
<if test=" cuserids !=null"> and res.cuserid in
<foreach collection="cuserids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" userids !=null"> and res.userid in
<foreach collection="userids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" 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="tagIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach> )
</if>
<if test="procInstId!=null and procInstId!=''">and exists(select 1 from form.form_data_process_approva app where app.proc_inst_id=#{procInstId} and res.id=app.form_data_id )</if>
</sql>
<select id="getDbFormDataByBizKey" parameterType="String" resultType="com.mdp.form.entity.FormData"> <select id="getDbFormDataByBizKey" parameterType="String" resultType="com.mdp.form.entity.FormData">
@ -73,60 +112,22 @@
</set> </set>
where EXISTS ( SELECT 1 FROM FORM.form_data_process_approva a where a.proc_inst_id = #{procInstId} AND a.form_data_id = res.id ) where EXISTS ( SELECT 1 FROM FORM.form_data_process_approva a where a.proc_inst_id = #{procInstId} AND a.form_data_id = res.id )
</update> </update>
<!--结束 自定义sql函数区域--> <!--结束 自定义sql函数区域-->
<!-- 通过条件查询获取数据列表 返回list<map> --> <!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap"> <select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_data res
select * from form_data res
<where> <where>
<if test="ids != null"> and
id in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<include refid="whereForMap"/>
<include refid="where"/> <include refid="where"/>
<if test=" cuserids !=null"> and res.cuserid in
<foreach collection="cuserids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" flowStates !=null"> and res.flow_state in
<foreach collection="flowStates" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" deptids !=null"> and res.deptid in
<foreach collection="deptids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=' fromStartTime !=null and toStartTime != null '> and res.create_time between #{fromStartTime} and #{toStartTime}</if>
<if test=" cuserids !=null"> and res.cuserid in
<foreach collection="cuserids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" userids !=null"> and res.userid in
<foreach collection="userids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<if test=" 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="tagIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach> )
</if>
<if test="procInstId!=null and procInstId!=''">and exists(select 1 from form.form_data_process_approva app where app.proc_inst_id=#{procInstId} and res.id=app.form_data_id )</if>
</where> </where>
</select> </select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> --> <!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.mdp.form.entity.FormData" resultType="com.mdp.form.entity.FormData"> <select id="selectListByWhere" parameterType="com.mdp.form.entity.FormData" resultType="com.mdp.form.entity.FormData">
select * from FORM.form_data res
select * from form_data res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -134,27 +135,33 @@
<!-- 通过主键查询获取数据对象 返回object --> <!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.mdp.form.entity.FormData" resultType="com.mdp.form.entity.FormData"> <select id="selectOneObject" parameterType="com.mdp.form.entity.FormData" resultType="com.mdp.form.entity.FormData">
select * from FORM.form_data res
select * from form_data res
where where
res.id = #{id} res.id = #{id}
</select> </select>
<select id="selectListByIds" parameterType="List" resultType="com.mdp.form.entity.FormData">
select * from form_data res
where (res.id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</select>
<!-- 通过主键查询获取数据对象 返回map--> <!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap"> <select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_data res
select * from form_data res
where where
res.id = #{id} res.id = #{id}
</select> </select>
<!-- 获取数据条目 返回long --> <!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.mdp.form.entity.FormData" resultType="long"> <select id="countByWhere" parameterType="com.mdp.form.entity.FormData" resultType="long">
select count(1) from FORM.form_data res
select count(*) from form_data res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 新增一条记录 主键id,--> <!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.mdp.form.entity.FormData" useGeneratedKeys="false" keyProperty="id"> <insert id="insert" parameterType="com.mdp.form.entity.FormData" useGeneratedKeys="false" keyProperty="id">
insert into FORM.form_data(
insert into form_data(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{two},#{three},#{four},#{five},#{six},#{seven},#{eight},#{nine},#{ten},#{lastTime},#{one},#{zero},#{remark},#{formId},#{userid},#{eleven},#{twelve},#{thirteen},#{fourteen},#{fifteen},#{attachmentUrls},#{attachmentNames},#{branchId},#{bizKey},#{deptid},#{flowState},#{createTime},#{dqxCode},#{cuserid},#{tagIds},#{tagNames},#{cusername},#{deptName} #{id},#{two},#{three},#{four},#{five},#{six},#{seven},#{eight},#{nine},#{ten},#{lastTime},#{one},#{zero},#{remark},#{formId},#{userid},#{eleven},#{twelve},#{thirteen},#{fourteen},#{fifteen},#{attachmentUrls},#{attachmentNames},#{branchId},#{bizKey},#{deptid},#{flowState},#{createTime},#{dqxCode},#{cuserid},#{tagIds},#{tagNames},#{cusername},#{deptName}
@ -163,7 +170,7 @@
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormData"> <delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormData">
delete from FORM.form_data res
delete from form_data res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -171,13 +178,13 @@
<!-- 按主键删除一条记录--> <!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.mdp.form.entity.FormData"> <delete id="deleteByPk" parameterType="com.mdp.form.entity.FormData">
delete from FORM.form_data
delete from form_data
where id = #{id} where id = #{id}
</delete> </delete>
<!-- 根据条件修改若干条记录 --> <!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormData"> <update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormData">
update FORM.form_data
update form_data
<set> <set>
<include refid="someFieldSet"/> <include refid="someFieldSet"/>
</set> </set>
@ -186,7 +193,7 @@
<!-- 根据主键修改一条记录 --> <!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.mdp.form.entity.FormData"> <update id="updateByPk" parameterType="com.mdp.form.entity.FormData">
update FORM.form_data
update form_data
<set> <set>
<include refid="set"/> <include refid="set"/>
</set> </set>
@ -201,18 +208,31 @@
<!-- 批量更新 --> <!-- 批量更新 -->
<update id="batchUpdate" parameterType="List"> <update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" > <foreach collection="list" item="item" index="index" separator=";" >
update FORM.form_data
update form_data
set set
<include refid="batchSet"/> <include refid="batchSet"/>
where id = #{item.id} where id = #{item.id}
</foreach> </foreach>
</update> </update>
<!-- 批量修改某几个字段 -->
<delete id="editSomeFields" parameterType="HashMap">
update form_data
<set>
<include refid="someFieldSet"/>
</set>
where (id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</delete>
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from FORM.form_data
where id in
delete from form_data
where
(id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" > <foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
( #{item.id} )
</foreach> </foreach>
</delete> </delete>
@ -234,7 +254,7 @@
<if test="eight != null and eight != ''"> and res.eight = #{eight} </if> <if test="eight != null and eight != ''"> and res.eight = #{eight} </if>
<if test="nine != null and nine != ''"> and res.nine = #{nine} </if> <if test="nine != null and nine != ''"> and res.nine = #{nine} </if>
<if test="ten != null and ten != ''"> and res.ten = #{ten} </if> <if test="ten != null and ten != ''"> and res.ten = #{ten} </if>
<if test="lastTime != null"> and TO_CHAR(res.last_time,'YYYY-MM-DD') = TO_CHAR(#{lastTime},'YYYY-MM-DD') </if>
<if test="lastTime != null"> and date_format(res.last_time,'%Y-%m-%d') = date_format(#{lastTime},'%Y-%m-%d') </if>
<if test="one != null and one != ''"> and res.one = #{one} </if> <if test="one != null and one != ''"> and res.one = #{one} </if>
<if test="zero != null and zero != ''"> and res.zero = #{zero} </if> <if test="zero != null and zero != ''"> and res.zero = #{zero} </if>
<if test="remark != null and remark != ''"> and res.remark = #{remark} </if> <if test="remark != null and remark != ''"> and res.remark = #{remark} </if>
@ -251,7 +271,7 @@
<if test="bizKey != null and bizKey != ''"> and res.biz_key = #{bizKey} </if> <if test="bizKey != null and bizKey != ''"> and res.biz_key = #{bizKey} </if>
<if test="deptid != null and deptid != ''"> and res.deptid = #{deptid} </if> <if test="deptid != null and deptid != ''"> and res.deptid = #{deptid} </if>
<if test="flowState != null and flowState != ''"> and res.flow_state = #{flowState} </if> <if test="flowState != null and flowState != ''"> and res.flow_state = #{flowState} </if>
<if test="createTime != null"> and TO_CHAR(res.create_time,'YYYY-MM-DD') = TO_CHAR(#{createTime},'YYYY-MM-DD') </if>
<if test="createTime != null"> and date_format(res.create_time,'%Y-%m-%d') = date_format(#{createTime},'%Y-%m-%d') </if>
<if test="dqxCode != null and dqxCode != ''"> and res.dqx_code = #{dqxCode} </if> <if test="dqxCode != null and dqxCode != ''"> and res.dqx_code = #{dqxCode} </if>
<if test="cuserid != null and cuserid != ''"> and res.cuserid = #{cuserid} </if> <if test="cuserid != null and cuserid != ''"> and res.cuserid = #{cuserid} </if>
<if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if> <if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if>

72
mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDataTagMapper.xml

@ -3,9 +3,16 @@
<mapper namespace="com.mdp.form.entity.FormDataTag"> <mapper namespace="com.mdp.form.entity.FormDataTag">
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<!--开始 自定sql函数区域 请在此区域添加自定义函数,其它区域尽量不要动,因为代码随时重新生成 -->
<sql id="whereForMap">
<if test=" ids != null"> and (res.id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</if>
<if test="key != null and key !='' "> </if>
</sql>
<!--结束 自定义sql函数区域--> <!--结束 自定义sql函数区域-->
@ -14,22 +21,16 @@
<!-- 通过条件查询获取数据列表 返回list<map> --> <!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap"> <select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_data_tag res
select * from form_data_tag res
<where> <where>
<if test="ids != null"> and
id in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<include refid="whereForMap"/>
<include refid="where"/> <include refid="where"/>
<if test="key != null and key !='' "> </if>
</where> </where>
</select> </select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> --> <!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.mdp.form.entity.FormDataTag" resultType="com.mdp.form.entity.FormDataTag"> <select id="selectListByWhere" parameterType="com.mdp.form.entity.FormDataTag" resultType="com.mdp.form.entity.FormDataTag">
select * from FORM.form_data_tag res
select * from form_data_tag res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -37,27 +38,33 @@
<!-- 通过主键查询获取数据对象 返回object --> <!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.mdp.form.entity.FormDataTag" resultType="com.mdp.form.entity.FormDataTag"> <select id="selectOneObject" parameterType="com.mdp.form.entity.FormDataTag" resultType="com.mdp.form.entity.FormDataTag">
select * from FORM.form_data_tag res
select * from form_data_tag res
where where
res.id = #{id} res.id = #{id}
</select> </select>
<select id="selectListByIds" parameterType="List" resultType="com.mdp.form.entity.FormDataTag">
select * from form_data_tag res
where (res.id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</select>
<!-- 通过主键查询获取数据对象 返回map--> <!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap"> <select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_data_tag res
select * from form_data_tag res
where where
res.id = #{id} res.id = #{id}
</select> </select>
<!-- 获取数据条目 返回long --> <!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.mdp.form.entity.FormDataTag" resultType="long"> <select id="countByWhere" parameterType="com.mdp.form.entity.FormDataTag" resultType="long">
select count(1) from FORM.form_data_tag res
select count(*) from form_data_tag res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 新增一条记录 主键id,--> <!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.mdp.form.entity.FormDataTag" useGeneratedKeys="false" keyProperty="id"> <insert id="insert" parameterType="com.mdp.form.entity.FormDataTag" useGeneratedKeys="false" keyProperty="id">
insert into FORM.form_data_tag(
insert into form_data_tag(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{dataId},#{tagId},#{tagName},#{id},#{createTime} #{dataId},#{tagId},#{tagName},#{id},#{createTime}
@ -66,7 +73,7 @@
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormDataTag"> <delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormDataTag">
delete from FORM.form_data_tag res
delete from form_data_tag res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -74,13 +81,13 @@
<!-- 按主键删除一条记录--> <!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.mdp.form.entity.FormDataTag"> <delete id="deleteByPk" parameterType="com.mdp.form.entity.FormDataTag">
delete from FORM.form_data_tag
delete from form_data_tag
where id = #{id} where id = #{id}
</delete> </delete>
<!-- 根据条件修改若干条记录 --> <!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormDataTag"> <update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormDataTag">
update FORM.form_data_tag
update form_data_tag
<set> <set>
<include refid="someFieldSet"/> <include refid="someFieldSet"/>
</set> </set>
@ -89,7 +96,7 @@
<!-- 根据主键修改一条记录 --> <!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.mdp.form.entity.FormDataTag"> <update id="updateByPk" parameterType="com.mdp.form.entity.FormDataTag">
update FORM.form_data_tag
update form_data_tag
<set> <set>
<include refid="set"/> <include refid="set"/>
</set> </set>
@ -103,21 +110,32 @@
<!-- 批量更新 --> <!-- 批量更新 -->
<update id="batchUpdate" parameterType="List"> <update id="batchUpdate" parameterType="List">
begin
<foreach collection="list" item="item" index="index" separator=";" > <foreach collection="list" item="item" index="index" separator=";" >
update FORM.form_data_tag
update form_data_tag
set set
<include refid="batchSet"/> <include refid="batchSet"/>
where id = #{item.id} where id = #{item.id}
</foreach> </foreach>
;end;
</update> </update>
<!-- 批量修改某几个字段 -->
<delete id="editSomeFields" parameterType="HashMap">
update form_data_tag
<set>
<include refid="someFieldSet"/>
</set>
where (id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</delete>
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from FORM.form_data_tag
where id in
delete from form_data_tag
where
(id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" > <foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
( #{item.id} )
</foreach> </foreach>
</delete> </delete>
@ -133,7 +151,7 @@
<if test="tagId != null and tagId != ''"> and res.tag_id = #{tagId} </if> <if test="tagId != null and tagId != ''"> and res.tag_id = #{tagId} </if>
<if test="tagName != null and tagName != ''"> and res.tag_name = #{tagName} </if> <if test="tagName != null and tagName != ''"> and res.tag_name = #{tagName} </if>
<if test="id != null and id != ''"> and res.id = #{id} </if> <if test="id != null and id != ''"> and res.id = #{id} </if>
<if test="createTime != null"> and TO_CHAR(res.create_time,'YYYY-MM-DD') = TO_CHAR(#{createTime},'YYYY-MM-DD') </if>
<if test="createTime != null"> and date_format(res.create_time,'%Y-%m-%d') = date_format(#{createTime},'%Y-%m-%d') </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">

93
mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormDefMapper.xml

@ -3,32 +3,14 @@
<mapper namespace="com.mdp.form.entity.FormDef"> <mapper namespace="com.mdp.form.entity.FormDef">
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<!--开始 自定sql函数区域 请在此区域添加自定义函数,其它区域尽量不要动,因为代码随时重新生成 -->
<update id="updateTagsById" parameterType="HashMap">
update FORM.form_def
set tag_ids=#{tagIds},tag_names=#{tagNames} where id=#{id}
</update>
<!--结束 自定义sql函数区域-->
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_def res
<where>
<if test="ids != null"> and
id in
<sql id="whereForMap">
<if test=" ids != null"> and (res.id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" > <foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
#{item}
( #{item})
</foreach> </foreach>
</if> </if>
<include refid="where"/>
<if test="categoryIds!=null"> and res.category_id in <if test="categoryIds!=null"> and res.category_id in
<foreach collection="categoryIds" item="item" index="index" open="(" separator="," close=")" > <foreach collection="categoryIds" item="item" index="index" open="(" separator="," close=")" >
#{item} #{item}
@ -40,12 +22,28 @@
</foreach> ) </foreach> )
</if> </if>
<if test="key != null and key !='' "> and res.form_name like #{key} </if> <if test="key != null and key !='' "> and res.form_name like #{key} </if>
</sql>
<update id="updateTagsById" parameterType="HashMap">
update FORM.form_def
set tag_ids=#{tagIds},tag_names=#{tagNames} where id=#{id}
</update>
<!--结束 自定义sql函数区域-->
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from form_def res
<where>
<include refid="whereForMap"/>
<include refid="where"/>
</where> </where>
</select> </select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> --> <!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.mdp.form.entity.FormDef" resultType="com.mdp.form.entity.FormDef"> <select id="selectListByWhere" parameterType="com.mdp.form.entity.FormDef" resultType="com.mdp.form.entity.FormDef">
select * from FORM.form_def res
select * from form_def res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -53,27 +51,33 @@
<!-- 通过主键查询获取数据对象 返回object --> <!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.mdp.form.entity.FormDef" resultType="com.mdp.form.entity.FormDef"> <select id="selectOneObject" parameterType="com.mdp.form.entity.FormDef" resultType="com.mdp.form.entity.FormDef">
select * from FORM.form_def res
select * from form_def res
where where
res.id = #{id} res.id = #{id}
</select> </select>
<select id="selectListByIds" parameterType="List" resultType="com.mdp.form.entity.FormDef">
select * from form_def res
where (res.id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</select>
<!-- 通过主键查询获取数据对象 返回map--> <!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap"> <select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_def res
select * from form_def res
where where
res.id = #{id} res.id = #{id}
</select> </select>
<!-- 获取数据条目 返回long --> <!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.mdp.form.entity.FormDef" resultType="long"> <select id="countByWhere" parameterType="com.mdp.form.entity.FormDef" resultType="long">
select count(1) from FORM.form_def res
select count(*) from form_def res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 新增一条记录 主键id,--> <!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.mdp.form.entity.FormDef" useGeneratedKeys="false" keyProperty="id"> <insert id="insert" parameterType="com.mdp.form.entity.FormDef" useGeneratedKeys="false" keyProperty="id">
insert into FORM.form_def(
insert into form_def(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{tableName},#{tableOwner},#{isCreateTable},#{formName},#{userid},#{deptid},#{formType},#{isTemplate},#{bizType},#{ctime},#{branchId},#{categoryId},#{tagIds},#{tagNames},#{username},#{deptName} #{id},#{tableName},#{tableOwner},#{isCreateTable},#{formName},#{userid},#{deptid},#{formType},#{isTemplate},#{bizType},#{ctime},#{branchId},#{categoryId},#{tagIds},#{tagNames},#{username},#{deptName}
@ -82,7 +86,7 @@
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormDef"> <delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormDef">
delete from FORM.form_def res
delete from form_def res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -90,13 +94,13 @@
<!-- 按主键删除一条记录--> <!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.mdp.form.entity.FormDef"> <delete id="deleteByPk" parameterType="com.mdp.form.entity.FormDef">
delete from FORM.form_def
delete from form_def
where id = #{id} where id = #{id}
</delete> </delete>
<!-- 根据条件修改若干条记录 --> <!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormDef"> <update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormDef">
update FORM.form_def
update form_def
<set> <set>
<include refid="someFieldSet"/> <include refid="someFieldSet"/>
</set> </set>
@ -105,7 +109,7 @@
<!-- 根据主键修改一条记录 --> <!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.mdp.form.entity.FormDef"> <update id="updateByPk" parameterType="com.mdp.form.entity.FormDef">
update FORM.form_def
update form_def
<set> <set>
<include refid="set"/> <include refid="set"/>
</set> </set>
@ -119,21 +123,32 @@
<!-- 批量更新 --> <!-- 批量更新 -->
<update id="batchUpdate" parameterType="List"> <update id="batchUpdate" parameterType="List">
begin
<foreach collection="list" item="item" index="index" separator=";" > <foreach collection="list" item="item" index="index" separator=";" >
update FORM.form_def
update form_def
set set
<include refid="batchSet"/> <include refid="batchSet"/>
where id = #{item.id} where id = #{item.id}
</foreach> </foreach>
;end;
</update> </update>
<!-- 批量修改某几个字段 -->
<delete id="editSomeFields" parameterType="HashMap">
update form_def
<set>
<include refid="someFieldSet"/>
</set>
where (id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</delete>
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from FORM.form_def
where id in
delete from form_def
where
(id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" > <foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
( #{item.id} )
</foreach> </foreach>
</delete> </delete>
@ -155,7 +170,7 @@
<if test="formType != null and formType != ''"> and res.form_type = #{formType} </if> <if test="formType != null and formType != ''"> and res.form_type = #{formType} </if>
<if test="isTemplate != null and isTemplate != ''"> and res.is_template = #{isTemplate} </if> <if test="isTemplate != null and isTemplate != ''"> and res.is_template = #{isTemplate} </if>
<if test="bizType != null and bizType != ''"> and res.biz_type = #{bizType} </if> <if test="bizType != null and bizType != ''"> and res.biz_type = #{bizType} </if>
<if test="ctime != null"> and TO_CHAR(res.ctime,'YYYY-MM-DD') = TO_CHAR(#{ctime},'YYYY-MM-DD') </if>
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if>
<if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if> <if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if>
<if test="categoryId != null and categoryId != ''"> and res.category_id = #{categoryId} </if> <if test="categoryId != null and categoryId != ''"> and res.category_id = #{categoryId} </if>
<if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if> <if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if>

70
mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormQxMapper.xml

@ -3,9 +3,16 @@
<mapper namespace="com.mdp.form.entity.FormQx"> <mapper namespace="com.mdp.form.entity.FormQx">
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<!--开始 自定sql函数区域 请在此区域添加自定义函数,其它区域尽量不要动,因为代码随时重新生成 -->
<sql id="whereForMap">
<if test=" formIds != null"> and (res.form_id) in
<foreach collection="formIds" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</if>
<if test="key != null and key !='' "> </if>
</sql>
<!--结束 自定义sql函数区域--> <!--结束 自定义sql函数区域-->
@ -14,22 +21,16 @@
<!-- 通过条件查询获取数据列表 返回list<map> --> <!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap"> <select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_qx res
select * from form_qx res
<where> <where>
<if test="ids != null"> and
form_id in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</if>
<include refid="whereForMap"/>
<include refid="where"/> <include refid="where"/>
<if test="key != null and key !='' "> </if>
</where> </where>
</select> </select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> --> <!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.mdp.form.entity.FormQx" resultType="com.mdp.form.entity.FormQx"> <select id="selectListByWhere" parameterType="com.mdp.form.entity.FormQx" resultType="com.mdp.form.entity.FormQx">
select * from FORM.form_qx res
select * from form_qx res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -37,27 +38,33 @@
<!-- 通过主键查询获取数据对象 返回object --> <!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.mdp.form.entity.FormQx" resultType="com.mdp.form.entity.FormQx"> <select id="selectOneObject" parameterType="com.mdp.form.entity.FormQx" resultType="com.mdp.form.entity.FormQx">
select * from FORM.form_qx res
select * from form_qx res
where where
res.form_id = #{formId} res.form_id = #{formId}
</select> </select>
<select id="selectListByIds" parameterType="List" resultType="com.mdp.form.entity.FormQx">
select * from form_qx res
where (res.form_id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</select>
<!-- 通过主键查询获取数据对象 返回map--> <!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap"> <select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_qx res
select * from form_qx res
where where
res.form_id = #{formId} res.form_id = #{formId}
</select> </select>
<!-- 获取数据条目 返回long --> <!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.mdp.form.entity.FormQx" resultType="long"> <select id="countByWhere" parameterType="com.mdp.form.entity.FormQx" resultType="long">
select count(1) from FORM.form_qx res
select count(*) from form_qx res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 新增一条记录 主键form_id,--> <!-- 新增一条记录 主键form_id,-->
<insert id="insert" parameterType="com.mdp.form.entity.FormQx" useGeneratedKeys="false" keyProperty="form_id"> <insert id="insert" parameterType="com.mdp.form.entity.FormQx" useGeneratedKeys="false" keyProperty="form_id">
insert into FORM.form_qx(
insert into form_qx(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{formId},#{allowQueryRoleids},#{allowQueryDeptids},#{allowQueryUserids},#{notQueryRoleids},#{notQueryDeptids},#{notQueryUserids},#{allowOtherQuery},#{allowOtherEdit},#{allowOtherDel},#{doDeptLvlCheck},#{deptLvlQx} #{formId},#{allowQueryRoleids},#{allowQueryDeptids},#{allowQueryUserids},#{notQueryRoleids},#{notQueryDeptids},#{notQueryUserids},#{allowOtherQuery},#{allowOtherEdit},#{allowOtherDel},#{doDeptLvlCheck},#{deptLvlQx}
@ -66,7 +73,7 @@
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormQx"> <delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormQx">
delete from FORM.form_qx res
delete from form_qx res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -74,13 +81,13 @@
<!-- 按主键删除一条记录--> <!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.mdp.form.entity.FormQx"> <delete id="deleteByPk" parameterType="com.mdp.form.entity.FormQx">
delete from FORM.form_qx
delete from form_qx
where form_id = #{formId} where form_id = #{formId}
</delete> </delete>
<!-- 根据条件修改若干条记录 --> <!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormQx"> <update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormQx">
update FORM.form_qx
update form_qx
<set> <set>
<include refid="someFieldSet"/> <include refid="someFieldSet"/>
</set> </set>
@ -89,7 +96,7 @@
<!-- 根据主键修改一条记录 --> <!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.mdp.form.entity.FormQx"> <update id="updateByPk" parameterType="com.mdp.form.entity.FormQx">
update FORM.form_qx
update form_qx
<set> <set>
<include refid="set"/> <include refid="set"/>
</set> </set>
@ -103,21 +110,32 @@
<!-- 批量更新 --> <!-- 批量更新 -->
<update id="batchUpdate" parameterType="List"> <update id="batchUpdate" parameterType="List">
begin
<foreach collection="list" item="item" index="index" separator=";" > <foreach collection="list" item="item" index="index" separator=";" >
update FORM.form_qx
update form_qx
set set
<include refid="batchSet"/> <include refid="batchSet"/>
where form_id = #{item.formId} where form_id = #{item.formId}
</foreach> </foreach>
;end;
</update> </update>
<!-- 批量修改某几个字段 -->
<delete id="editSomeFields" parameterType="HashMap">
update form_qx
<set>
<include refid="someFieldSet"/>
</set>
where (form_id) in
<foreach collection="formIds" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</delete>
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from FORM.form_qx
where form_id in
delete from form_qx
where
(form_id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" > <foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.formId }
( #{item.formId} )
</foreach> </foreach>
</delete> </delete>

91
mdp-form/src/main/resources/mybatis/mapper/mdp/form/dao/FormViewMapper.xml

@ -3,9 +3,16 @@
<mapper namespace="com.mdp.form.entity.FormView"> <mapper namespace="com.mdp.form.entity.FormView">
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<!--开始 自定sql函数区域 请在此区域添加自定义函数,其它区域尽量不要动,因为代码随时重新生成 -->
<sql id="whereForMap">
<if test=" ids != null"> and (res.id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</if>
<if test="key != null and key !='' "> </if>
</sql>
<!--结束 自定义sql函数区域--> <!--结束 自定义sql函数区域-->
@ -14,55 +21,50 @@
<!-- 通过条件查询获取数据列表 返回list<map> --> <!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap"> <select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_view
select * from form_view res
<where> <where>
<include refid="whereForMap"/>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> --> <!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.mdp.form.entity.FormView" resultType="com.mdp.form.entity.FormView"> <select id="selectListByWhere" parameterType="com.mdp.form.entity.FormView" resultType="com.mdp.form.entity.FormView">
select * from FORM.form_view
select * from form_view res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 通过关键字key查询获取数据列表 返回list<Map> -->
<select id="selectListMapByKey" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_view
where 1=1
<trim prefix=" and ( " suffix=" ) " prefixOverrides="or ">
<if test="formId != null and formId != ''"> or form_id like #{formId} </if>
<if test="id != null and id != ''"> or id like #{id} </if>
<if test="viewContext != null and viewContext != ''"> or view_context like #{viewContext} </if>
<if test="bizId != null and bizId != ''"> or biz_id like #{bizId} </if>
</trim>
</select>
<!-- 通过主键查询获取数据对象 返回object --> <!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.mdp.form.entity.FormView" resultType="com.mdp.form.entity.FormView"> <select id="selectOneObject" parameterType="com.mdp.form.entity.FormView" resultType="com.mdp.form.entity.FormView">
select * from FORM.form_view
select * from form_view res
where where
id = #{id}
res.id = #{id}
</select>
<select id="selectListByIds" parameterType="List" resultType="com.mdp.form.entity.FormView">
select * from form_view res
where (res.id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</select> </select>
<!-- 通过主键查询获取数据对象 返回map--> <!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap"> <select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from FORM.form_view
select * from form_view res
where where
id = #{id}
res.id = #{id}
</select> </select>
<!-- 获取数据条目 返回long --> <!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.mdp.form.entity.FormView" resultType="long"> <select id="countByWhere" parameterType="com.mdp.form.entity.FormView" resultType="long">
select count(1) from FORM.form_view
select count(*) from form_view res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
</select> </select>
<!-- 新增一条记录-->
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.mdp.form.entity.FormView" useGeneratedKeys="false" keyProperty="id"> <insert id="insert" parameterType="com.mdp.form.entity.FormView" useGeneratedKeys="false" keyProperty="id">
insert into FORM.form_view(
insert into form_view(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{formId},#{id},#{viewContext},#{bizId} #{formId},#{id},#{viewContext},#{bizId}
@ -71,7 +73,7 @@
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormView"> <delete id="deleteByWhere" parameterType="com.mdp.form.entity.FormView">
delete from FORM.form_view
delete from form_view res
<where> <where>
<include refid="where"/> <include refid="where"/>
</where> </where>
@ -79,13 +81,13 @@
<!-- 按主键删除一条记录--> <!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.mdp.form.entity.FormView"> <delete id="deleteByPk" parameterType="com.mdp.form.entity.FormView">
delete from FORM.form_view
delete from form_view
where id = #{id} where id = #{id}
</delete> </delete>
<!-- 根据条件修改若干条记录 --> <!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormView"> <update id="updateSomeFieldByPk" parameterType="com.mdp.form.entity.FormView">
update FORM.form_view
update form_view
<set> <set>
<include refid="someFieldSet"/> <include refid="someFieldSet"/>
</set> </set>
@ -94,7 +96,7 @@
<!-- 根据主键修改一条记录 --> <!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.mdp.form.entity.FormView"> <update id="updateByPk" parameterType="com.mdp.form.entity.FormView">
update FORM.form_view
update form_view
<set> <set>
<include refid="set"/> <include refid="set"/>
</set> </set>
@ -108,21 +110,32 @@
<!-- 批量更新 --> <!-- 批量更新 -->
<update id="batchUpdate" parameterType="List"> <update id="batchUpdate" parameterType="List">
<!--begin-->
<foreach collection="list" item="item" index="index" separator=";" > <foreach collection="list" item="item" index="index" separator=";" >
update FORM.form_view
update form_view
set set
<include refid="batchSet"/> <include refid="batchSet"/>
where id = #{item.id} where id = #{item.id}
</foreach> </foreach>
<!--;end;-->
</update> </update>
<!-- 批量修改某几个字段 -->
<delete id="editSomeFields" parameterType="HashMap">
update form_view
<set>
<include refid="someFieldSet"/>
</set>
where (id) in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</delete>
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from FORM.form_view
where id in
delete from form_view
where
(id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" > <foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
( #{item.id} )
</foreach> </foreach>
</delete> </delete>
@ -132,12 +145,12 @@
form_id,id,view_context,biz_id form_id,id,view_context,biz_id
</sql> </sql>
<!--sql片段 动态条件 -->
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where"> <sql id="where">
<if test="formId != null and formId != ''"> and form_id = #{formId} </if>
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="viewContext != null and viewContext != ''"> and view_context = #{viewContext} </if>
<if test="bizId != null and bizId != ''"> and biz_id = #{bizId} </if>
<if test="formId != null and formId != ''"> and res.form_id = #{formId} </if>
<if test="id != null and id != ''"> and res.id = #{id} </if>
<if test="viewContext != null and viewContext != ''"> and res.view_context = #{viewContext} </if>
<if test="bizId != null and bizId != ''"> and res.biz_id = #{bizId} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">

Loading…
Cancel
Save