Merge branch 'master' of http://git.estsh.com/i3-IMPP/i3plus-pojo
commit
c82ba74e9e
@ -0,0 +1,96 @@
|
||||
package cn.estsh.i3plus.pojo.base.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description : 基本返回结果
|
||||
* @Reference :
|
||||
* @Author : alwaysfrin
|
||||
* @CreateDate : 2018-11-14 15:58
|
||||
* @Modify:
|
||||
**/
|
||||
public class BaseResultBean<Obj> {
|
||||
|
||||
@ApiParam("是否成功")
|
||||
public boolean success;
|
||||
|
||||
@ApiParam("信息代码-国际化")
|
||||
public String code;
|
||||
|
||||
@ApiParam("操作消息")
|
||||
public String msg;
|
||||
|
||||
@ApiParam("错误消息")
|
||||
public String errorMsg;
|
||||
|
||||
@ApiParam("http路径")
|
||||
public String url;
|
||||
|
||||
@ApiParam("List结果集")
|
||||
public List<Obj> resultList;
|
||||
|
||||
@ApiParam("单个结果")
|
||||
public Obj resultObject;
|
||||
|
||||
@ApiParam("翻页和结果集")
|
||||
public ListPager<Obj> listPager;
|
||||
|
||||
@ApiParam("Map结果集")
|
||||
public Map<String, Object> resultMap;
|
||||
|
||||
@ApiParam("翻页操作")
|
||||
public Pager pager;
|
||||
|
||||
@ApiParam("总记录数")
|
||||
public int totalCount;
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public String getErrorMsg() {
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public List<Obj> getResultList() {
|
||||
return resultList;
|
||||
}
|
||||
|
||||
public Obj getResultObject() {
|
||||
return resultObject;
|
||||
}
|
||||
|
||||
public ListPager<Obj> getListPager() {
|
||||
return listPager;
|
||||
}
|
||||
|
||||
public Map<String, Object> getResultMap() {
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
public Pager getPager() {
|
||||
return pager;
|
||||
}
|
||||
|
||||
public int getTotalCount() {
|
||||
return totalCount;
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package cn.estsh.i3plus.pojo.platform.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description : 关系-表达式与触发器
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2018-11-14 13:28
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="REF_EXPRESSION_TRIGGER")
|
||||
@Api(value="关系-表达式与触发器",description = "关系-表达式与触发器")
|
||||
public class RefExpressionTrigger extends BaseBean {
|
||||
|
||||
@Column(name="EXPRESSION_ID")
|
||||
@ApiParam(value ="表达式_ID" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long expressionId;
|
||||
|
||||
public Long getExpressionId() {
|
||||
if(expressionId != null) {
|
||||
return expressionId.longValue();
|
||||
}else{
|
||||
return expressionId;
|
||||
}
|
||||
}
|
||||
|
||||
@Column(name="TRIGGER_NAME")
|
||||
@ApiParam(value ="触发器名称")
|
||||
private String triggerName;
|
||||
|
||||
@Column(name="TRIGGER_GROUP_NAME")
|
||||
@ApiParam(value ="触发器名称")
|
||||
private String triggerGroupName;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.platform.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.RefExpressionTrigger;
|
||||
|
||||
/**
|
||||
* @Description : 关系-表达式与触发器
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2018-11-14 13:36
|
||||
* @Modify:
|
||||
**/
|
||||
public interface RefExpressionTriggerRepository extends BaseRepository<RefExpressionTrigger, Long> {
|
||||
}
|
Loading…
Reference in New Issue