mirror of https://gitee.com/jeecg/jeecg.git
parent
1b683279c2
commit
77fe056b48
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,247 @@
|
||||
package com.jeecg.black.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 黑名单
|
||||
* @author onlineGenerator
|
||||
* @date 2017-05-18 22:33:13
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "t_s_black_list", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class TsBlackListEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**创建人名称*/
|
||||
private java.lang.String createName;
|
||||
/**创建人登录名称*/
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
private java.util.Date createDate;
|
||||
/**更新人名称*/
|
||||
private java.lang.String updateName;
|
||||
/**更新人登录名称*/
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
private java.util.Date updateDate;
|
||||
/**所属部门*/
|
||||
private java.lang.String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private java.lang.String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private java.lang.String bpmStatus;
|
||||
/**ip地址*/
|
||||
@Excel(name="ip地址",width=15)
|
||||
private java.lang.String ip;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
|
||||
@Column(name ="BPM_STATUS",nullable=true,length=32)
|
||||
public java.lang.String getBpmStatus(){
|
||||
return this.bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 流程状态
|
||||
*/
|
||||
public void setBpmStatus(java.lang.String bpmStatus){
|
||||
this.bpmStatus = bpmStatus;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String ip地址
|
||||
*/
|
||||
|
||||
@Column(name ="IP",nullable=true,length=32)
|
||||
public java.lang.String getIp(){
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String ip地址
|
||||
*/
|
||||
public void setIp(java.lang.String ip){
|
||||
this.ip = ip;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.jeecg.black.service;
|
||||
import com.jeecg.black.entity.TsBlackListEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface TsBlackListServiceI extends CommonService{
|
||||
|
||||
public void delete(TsBlackListEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(TsBlackListEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(TsBlackListEntity entity) throws Exception;
|
||||
|
||||
}
|
@ -0,0 +1,287 @@
|
||||
package com.jeecg.demo.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 测试多文件上传
|
||||
* @author onlineGenerator
|
||||
* @date 2017-07-17 10:50:36
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jeecg_multi_upload", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class MultiUploadEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**创建人名称*/
|
||||
private java.lang.String createName;
|
||||
/**创建人登录名称*/
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
private java.util.Date createDate;
|
||||
/**更新人名称*/
|
||||
private java.lang.String updateName;
|
||||
/**更新人登录名称*/
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
private java.util.Date updateDate;
|
||||
/**所属部门*/
|
||||
private java.lang.String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private java.lang.String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private java.lang.String bpmStatus;
|
||||
/**测试文件1*/
|
||||
@Excel(name="测试文件1",width=15)
|
||||
private java.lang.String testFile1;
|
||||
/**测试文件2*/
|
||||
@Excel(name="测试文件2",width=15)
|
||||
private java.lang.String testFile2;
|
||||
/**测试文件3*/
|
||||
@Excel(name="测试文件3",width=15)
|
||||
private java.lang.String testFile3;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
|
||||
@Column(name ="BPM_STATUS",nullable=true,length=32)
|
||||
public java.lang.String getBpmStatus(){
|
||||
return this.bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 流程状态
|
||||
*/
|
||||
public void setBpmStatus(java.lang.String bpmStatus){
|
||||
this.bpmStatus = bpmStatus;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 测试文件1
|
||||
*/
|
||||
|
||||
@Column(name ="TEST_FILE_1",nullable=true,length=256)
|
||||
public java.lang.String getTestFile1(){
|
||||
return this.testFile1;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 测试文件1
|
||||
*/
|
||||
public void setTestFile1(java.lang.String testFile1){
|
||||
this.testFile1 = testFile1;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 测试文件2
|
||||
*/
|
||||
|
||||
@Column(name ="TEST_FILE_2",nullable=true,length=256)
|
||||
public java.lang.String getTestFile2(){
|
||||
return this.testFile2;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 测试文件2
|
||||
*/
|
||||
public void setTestFile2(java.lang.String testFile2){
|
||||
this.testFile2 = testFile2;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 测试文件3
|
||||
*/
|
||||
|
||||
@Column(name ="TEST_FILE_3",nullable=true,length=256)
|
||||
public java.lang.String getTestFile3(){
|
||||
return this.testFile3;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 测试文件3
|
||||
*/
|
||||
public void setTestFile3(java.lang.String testFile3){
|
||||
this.testFile3 = testFile3;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.jeecg.demo.service;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import com.jeecg.demo.entity.MultiUploadEntity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface MultiUploadServiceI extends CommonService{
|
||||
|
||||
public void delete(MultiUploadEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(MultiUploadEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(MultiUploadEntity entity) throws Exception;
|
||||
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
<#if ( jeecgP3demo.createName )?? && jeecgP3demo.createName ?length gt 0>
|
||||
/* 创建人名称 */
|
||||
and jp.create_name = :jeecgP3demo.createName
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.createBy )?? && jeecgP3demo.createBy ?length gt 0>
|
||||
/* 创建人登录名称 */
|
||||
and jp.create_by = :jeecgP3demo.createBy
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.createDate )??>
|
||||
/* 创建日期 */
|
||||
and jp.create_date = :jeecgP3demo.createDate
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.updateName )?? && jeecgP3demo.updateName ?length gt 0>
|
||||
/* 更新人名称 */
|
||||
and jp.update_name = :jeecgP3demo.updateName
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.updateBy )?? && jeecgP3demo.updateBy ?length gt 0>
|
||||
/* 更新人登录名称 */
|
||||
and jp.update_by = :jeecgP3demo.updateBy
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.updateDate )??>
|
||||
/* 更新日期 */
|
||||
and jp.update_date = :jeecgP3demo.updateDate
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.sysOrgCode )?? && jeecgP3demo.sysOrgCode ?length gt 0>
|
||||
/* 所属部门 */
|
||||
and jp.sys_org_code = :jeecgP3demo.sysOrgCode
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.sysCompanyCode )?? && jeecgP3demo.sysCompanyCode ?length gt 0>
|
||||
/* 所属公司 */
|
||||
and jp.sys_company_code = :jeecgP3demo.sysCompanyCode
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.bpmStatus )?? && jeecgP3demo.bpmStatus ?length gt 0>
|
||||
/* 流程状态 */
|
||||
and jp.bpm_status = :jeecgP3demo.bpmStatus
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.name )?? && jeecgP3demo.name ?length gt 0>
|
||||
/* 姓名 */
|
||||
and jp.name = :jeecgP3demo.name
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.sex )?? && jeecgP3demo.sex ?length gt 0>
|
||||
/* 性别 */
|
||||
and jp.sex = :jeecgP3demo.sex
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.age )?? && jeecgP3demo.age ?length gt 0>
|
||||
/* 年龄 */
|
||||
and jp.age = :jeecgP3demo.age
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.address )?? && jeecgP3demo.address ?length gt 0>
|
||||
/* 地址 */
|
||||
and jp.address = :jeecgP3demo.address
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.phone )?? && jeecgP3demo.phone ?length gt 0>
|
||||
/* 电话 */
|
||||
and jp.phone = :jeecgP3demo.phone
|
||||
</#if>
|
||||
<#if ( jeecgP3demo.memo )?? && jeecgP3demo.memo ?length gt 0>
|
||||
/* 备注 */
|
||||
and jp.memo = :jeecgP3demo.memo
|
||||
</#if>
|
@ -0,0 +1,2 @@
|
||||
SELECT * FROM jeecg_p3demo jp where 1=1
|
||||
<#include "JeecgP3demoDao_condition.sql">
|
@ -0,0 +1,39 @@
|
||||
INSERT INTO
|
||||
jeecg_p3demo
|
||||
(
|
||||
id
|
||||
,create_name
|
||||
,create_by
|
||||
,create_date
|
||||
,update_name
|
||||
,update_by
|
||||
,update_date
|
||||
,sys_org_code
|
||||
,sys_company_code
|
||||
,bpm_status
|
||||
,name
|
||||
,sex
|
||||
,age
|
||||
,address
|
||||
,phone
|
||||
,memo
|
||||
)
|
||||
values
|
||||
(
|
||||
:jeecgP3demo.id
|
||||
,:jeecgP3demo.createName
|
||||
,:jeecgP3demo.createBy
|
||||
,:jeecgP3demo.createDate
|
||||
,:jeecgP3demo.updateName
|
||||
,:jeecgP3demo.updateBy
|
||||
,:jeecgP3demo.updateDate
|
||||
,:jeecgP3demo.sysOrgCode
|
||||
,:jeecgP3demo.sysCompanyCode
|
||||
,:jeecgP3demo.bpmStatus
|
||||
,:jeecgP3demo.name
|
||||
,:jeecgP3demo.sex
|
||||
,:jeecgP3demo.age
|
||||
,:jeecgP3demo.address
|
||||
,:jeecgP3demo.phone
|
||||
,:jeecgP3demo.memo
|
||||
)
|
@ -0,0 +1,48 @@
|
||||
UPDATE jeecg_p3demo
|
||||
SET
|
||||
<#if jeecgP3demo.createName ?exists>
|
||||
create_name = :jeecgP3demo.createName,
|
||||
</#if>
|
||||
<#if jeecgP3demo.createBy ?exists>
|
||||
create_by = :jeecgP3demo.createBy,
|
||||
</#if>
|
||||
<#if jeecgP3demo.createDate ?exists>
|
||||
create_date = :jeecgP3demo.createDate,
|
||||
</#if>
|
||||
<#if jeecgP3demo.updateName ?exists>
|
||||
update_name = :jeecgP3demo.updateName,
|
||||
</#if>
|
||||
<#if jeecgP3demo.updateBy ?exists>
|
||||
update_by = :jeecgP3demo.updateBy,
|
||||
</#if>
|
||||
<#if jeecgP3demo.updateDate ?exists>
|
||||
update_date = :jeecgP3demo.updateDate,
|
||||
</#if>
|
||||
<#if jeecgP3demo.sysOrgCode ?exists>
|
||||
sys_org_code = :jeecgP3demo.sysOrgCode,
|
||||
</#if>
|
||||
<#if jeecgP3demo.sysCompanyCode ?exists>
|
||||
sys_company_code = :jeecgP3demo.sysCompanyCode,
|
||||
</#if>
|
||||
<#if jeecgP3demo.bpmStatus ?exists>
|
||||
bpm_status = :jeecgP3demo.bpmStatus,
|
||||
</#if>
|
||||
<#if jeecgP3demo.name ?exists>
|
||||
name = :jeecgP3demo.name,
|
||||
</#if>
|
||||
<#if jeecgP3demo.sex ?exists>
|
||||
sex = :jeecgP3demo.sex,
|
||||
</#if>
|
||||
<#if jeecgP3demo.age ?exists>
|
||||
age = :jeecgP3demo.age,
|
||||
</#if>
|
||||
<#if jeecgP3demo.address ?exists>
|
||||
address = :jeecgP3demo.address,
|
||||
</#if>
|
||||
<#if jeecgP3demo.phone ?exists>
|
||||
phone = :jeecgP3demo.phone,
|
||||
</#if>
|
||||
<#if jeecgP3demo.memo ?exists>
|
||||
memo = :jeecgP3demo.memo,
|
||||
</#if>
|
||||
WHERE id = :jeecgP3demo.id
|
@ -0,0 +1,20 @@
|
||||
package org.jeecgframework.core.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.jeecgframework.core.enums.Permission;
|
||||
|
||||
/**
|
||||
*jeecg权限认证注解
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE,ElementType.METHOD})
|
||||
@Documented
|
||||
public @interface JAuth {
|
||||
String value() default "";
|
||||
Permission auth() default Permission.NORMAL;
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package org.jeecgframework.core.enums;
|
||||
|
||||
/**
|
||||
* 许可类型
|
||||
*
|
||||
*/
|
||||
public enum Permission {
|
||||
/**普通权限*/
|
||||
NORMAL("0","默认"),
|
||||
/**跳过认证*/
|
||||
SKIP_AUTH("1","跳过拦截");
|
||||
|
||||
private Permission(String key, String desc) {
|
||||
this.key = key;
|
||||
this.desc = desc;
|
||||
}
|
||||
private String key;
|
||||
private String desc;
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package org.jeecgframework.core.enums;
|
||||
|
||||
import org.jeecgframework.core.util.oConvertUtils;
|
||||
|
||||
/**
|
||||
* 文件上传设置枚举类
|
||||
* @author sundonghui
|
||||
*
|
||||
*/
|
||||
public enum StoreUploadFilePathEnum {
|
||||
PHOTOSUCAI("photosucai", "upload/img/photosucai"),
|
||||
DEFAULT("default", "upload/files");
|
||||
|
||||
private String name;
|
||||
private String path;
|
||||
// 构造方法
|
||||
private StoreUploadFilePathEnum(String name, String path) {
|
||||
this.name = name;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
//获取路径
|
||||
public static String getPath(String name) {
|
||||
if(oConvertUtils.isNotEmpty(name)){
|
||||
for (StoreUploadFilePathEnum storePath : StoreUploadFilePathEnum.values()) {
|
||||
if (storePath.getName().equals(name)) {
|
||||
return storePath.path;
|
||||
}
|
||||
}
|
||||
}
|
||||
return DEFAULT.path;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package org.jeecgframework.core.util;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.qcloud.cos.COSClient;
|
||||
import com.qcloud.cos.ClientConfig;
|
||||
import com.qcloud.cos.request.*;
|
||||
import com.qcloud.cos.sign.Credentials;
|
||||
|
||||
public class QCloudUtils {
|
||||
private static long appId = 1251108935;
|
||||
private static String secretId = "AKIDeCYoxueSxIQW0PHzVqz3NhuwoYN34Y7W";
|
||||
private static String secretKey = "NkARfmtpcDnIgssupY7Zs0zpeMwCJJ9q";
|
||||
private static String bucketName="jeecg";
|
||||
private static Credentials cred=new Credentials(appId, secretId, secretKey);
|
||||
private static ClientConfig clientConfig = new ClientConfig();
|
||||
private static COSClient cosClient;
|
||||
static {
|
||||
|
||||
clientConfig.setRegion("tj");
|
||||
cosClient = new COSClient(clientConfig, cred);
|
||||
}
|
||||
/*上传文件*/
|
||||
public static JSONObject upload(String cosFilePath, String localFilePath1){
|
||||
UploadFileRequest uploadFileRequest =
|
||||
new UploadFileRequest(bucketName, cosFilePath, localFilePath1);
|
||||
uploadFileRequest.setEnableShaDigest(false);
|
||||
String uploadFileRet = cosClient.uploadFile(uploadFileRequest);
|
||||
return JSONObject.parseObject(uploadFileRet);
|
||||
}
|
||||
/*上传文件*/
|
||||
public static JSONObject upload(String cosFilePath, byte[] contentBuffer){
|
||||
UploadFileRequest uploadFileRequest =
|
||||
new UploadFileRequest(bucketName, cosFilePath, contentBuffer);
|
||||
uploadFileRequest.setEnableShaDigest(false);
|
||||
String uploadFileRet = cosClient.uploadFile(uploadFileRequest);
|
||||
return JSONObject.parseObject(uploadFileRet);
|
||||
}
|
||||
|
||||
/*下载文件*/
|
||||
public static JSONObject download(String cosFilePath,String localPathDown){
|
||||
GetFileLocalRequest getFileLocalRequest =
|
||||
new GetFileLocalRequest(bucketName, cosFilePath, localPathDown);
|
||||
getFileLocalRequest.setUseCDN(false);
|
||||
getFileLocalRequest.setReferer("*.myweb.cn");
|
||||
String getFileResult = cosClient.getFileLocal(getFileLocalRequest);
|
||||
return JSON.parseObject(getFileResult);
|
||||
}
|
||||
|
||||
/*list目录, 获取目录下的成员*/
|
||||
public static JSONObject listByFoler(String cosFolderPath){
|
||||
ListFolderRequest listFolderRequest = new ListFolderRequest(bucketName, cosFolderPath);
|
||||
String listFolderRet = cosClient.listFolder(listFolderRequest);
|
||||
return JSON.parseObject(listFolderRet);
|
||||
}
|
||||
|
||||
/*删除文件*/
|
||||
public static JSONObject delFile(String cosFilePath){
|
||||
DelFileRequest delFileRequest = new DelFileRequest(bucketName, cosFilePath);
|
||||
String delFileRet = cosClient.delFile(delFileRequest);
|
||||
return JSON.parseObject(delFileRet);
|
||||
}
|
||||
/*删除文件夹*/
|
||||
public static JSONObject delFolder(String cosFolderPath){
|
||||
DelFolderRequest delFolderRequest = new DelFolderRequest(bucketName, cosFolderPath);
|
||||
String delFolderRet = cosClient.delFolder(delFolderRequest);
|
||||
return JSON.parseObject(delFolderRet);
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue