28 changed files with 1754 additions and 1450 deletions
@ -1,117 +1,117 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProProjectFile implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long businessId; |
|||
|
|||
private Long fileId; |
|||
|
|||
private Byte businessType; |
|||
|
|||
private Byte privilege; |
|||
|
|||
private String privilegeQueryUrl; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getBusinessId() { |
|||
return businessId; |
|||
} |
|||
|
|||
public void setBusinessId(Long businessId) { |
|||
this.businessId = businessId; |
|||
} |
|||
|
|||
public Long getFileId() { |
|||
return fileId; |
|||
} |
|||
|
|||
public void setFileId(Long fileId) { |
|||
this.fileId = fileId; |
|||
} |
|||
|
|||
public Byte getBusinessType() { |
|||
return businessType; |
|||
} |
|||
|
|||
public void setBusinessType(Byte businessType) { |
|||
this.businessType = businessType; |
|||
} |
|||
|
|||
public Byte getPrivilege() { |
|||
return privilege; |
|||
} |
|||
|
|||
public void setPrivilege(Byte privilege) { |
|||
this.privilege = privilege; |
|||
} |
|||
|
|||
public String getPrivilegeQueryUrl() { |
|||
return privilegeQueryUrl; |
|||
} |
|||
|
|||
public void setPrivilegeQueryUrl(String privilegeQueryUrl) { |
|||
this.privilegeQueryUrl = privilegeQueryUrl == null ? null : privilegeQueryUrl.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", businessId=").append(businessId); |
|||
sb.append(", fileId=").append(fileId); |
|||
sb.append(", businessType=").append(businessType); |
|||
sb.append(", privilege=").append(privilege); |
|||
sb.append(", privilegeQueryUrl=").append(privilegeQueryUrl); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProProjectFile implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long businessId; |
|||
|
|||
private Long wpsFileId; |
|||
|
|||
private Byte businessType; |
|||
|
|||
private Byte privilege; |
|||
|
|||
private String privilegeQueryUrl; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getBusinessId() { |
|||
return businessId; |
|||
} |
|||
|
|||
public void setBusinessId(Long businessId) { |
|||
this.businessId = businessId; |
|||
} |
|||
|
|||
public Long getWpsFileId() { |
|||
return wpsFileId; |
|||
} |
|||
|
|||
public void setWpsFileId(Long wpsFileId) { |
|||
this.wpsFileId = wpsFileId; |
|||
} |
|||
|
|||
public Byte getBusinessType() { |
|||
return businessType; |
|||
} |
|||
|
|||
public void setBusinessType(Byte businessType) { |
|||
this.businessType = businessType; |
|||
} |
|||
|
|||
public Byte getPrivilege() { |
|||
return privilege; |
|||
} |
|||
|
|||
public void setPrivilege(Byte privilege) { |
|||
this.privilege = privilege; |
|||
} |
|||
|
|||
public String getPrivilegeQueryUrl() { |
|||
return privilegeQueryUrl; |
|||
} |
|||
|
|||
public void setPrivilegeQueryUrl(String privilegeQueryUrl) { |
|||
this.privilegeQueryUrl = privilegeQueryUrl == null ? null : privilegeQueryUrl.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", businessId=").append(businessId); |
|||
sb.append(", wpsFileId=").append(wpsFileId); |
|||
sb.append(", businessType=").append(businessType); |
|||
sb.append(", privilege=").append(privilege); |
|||
sb.append(", privilegeQueryUrl=").append(privilegeQueryUrl); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,30 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.ProProjectFile; |
|||
import com.ccsens.tall.bean.po.ProProjectFileExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProProjectFileMapper { |
|||
long countByExample(ProProjectFileExample example); |
|||
|
|||
int deleteByExample(ProProjectFileExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProProjectFile record); |
|||
|
|||
int insertSelective(ProProjectFile record); |
|||
|
|||
List<ProProjectFile> selectByExample(ProProjectFileExample example); |
|||
|
|||
ProProjectFile selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
|||
|
|||
int updateByExample(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProProjectFile record); |
|||
|
|||
int updateByPrimaryKey(ProProjectFile record); |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.ProProjectFile; |
|||
import com.ccsens.tall.bean.po.ProProjectFileExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProProjectFileMapper { |
|||
long countByExample(ProProjectFileExample example); |
|||
|
|||
int deleteByExample(ProProjectFileExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProProjectFile record); |
|||
|
|||
int insertSelective(ProProjectFile record); |
|||
|
|||
List<ProProjectFile> selectByExample(ProProjectFileExample example); |
|||
|
|||
ProProjectFile selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
|||
|
|||
int updateByExample(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProProjectFile record); |
|||
|
|||
int updateByPrimaryKey(ProProjectFile record); |
|||
} |
@ -0,0 +1,38 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.dao.ProNotesDao"> |
|||
|
|||
<select id="queryNotesInfo" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.vo.PluginVo$NotesInfo"> |
|||
SELECT |
|||
n.id, |
|||
n.task_id as taskId, |
|||
n.role_id as roleId, |
|||
n.plugin_id as pluginId, |
|||
n.time as notesTime, |
|||
n.value as value, |
|||
n.publicity as publicity |
|||
from |
|||
t_pro_notes n |
|||
WHERE |
|||
n.task_id = #{taskId} |
|||
and |
|||
( |
|||
n.publicity = 1 |
|||
or |
|||
n.role_id in ( |
|||
SELECT |
|||
r.id |
|||
from |
|||
t_pro_role r LEFT JOIN t_pro_member_role mr on r.id = mr.role_id |
|||
LEFT JOIN t_pro_member m on mr.member_id = m.id |
|||
WHERE |
|||
m.user_id = #{userId} |
|||
) |
|||
) |
|||
<if test="pluginId != null"> |
|||
n.plugin_id = #{pluginId} |
|||
</if> |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -1,276 +1,276 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.ProProjectFileMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
|||
<result column="file_id" jdbcType="BIGINT" property="fileId" /> |
|||
<result column="business_type" jdbcType="TINYINT" property="businessType" /> |
|||
<result column="privilege" jdbcType="TINYINT" property="privilege" /> |
|||
<result column="privilege_query_url" jdbcType="VARCHAR" property="privilegeQueryUrl" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, business_id, file_id, business_type, privilege, privilege_query_url, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_project_file |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_project_file |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_project_file |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample"> |
|||
delete from t_pro_project_file |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
insert into t_pro_project_file (id, business_id, file_id, |
|||
business_type, privilege, privilege_query_url, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{businessId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT}, |
|||
#{businessType,jdbcType=TINYINT}, #{privilege,jdbcType=TINYINT}, #{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
insert into t_pro_project_file |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
business_id, |
|||
</if> |
|||
<if test="fileId != null"> |
|||
file_id, |
|||
</if> |
|||
<if test="businessType != null"> |
|||
business_type, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
privilege, |
|||
</if> |
|||
<if test="privilegeQueryUrl != null"> |
|||
privilege_query_url, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
#{businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="fileId != null"> |
|||
#{fileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessType != null"> |
|||
#{businessType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
#{privilege,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilegeQueryUrl != null"> |
|||
#{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_project_file |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_project_file |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.businessId != null"> |
|||
business_id = #{record.businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.fileId != null"> |
|||
file_id = #{record.fileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.businessType != null"> |
|||
business_type = #{record.businessType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.privilege != null"> |
|||
privilege = #{record.privilege,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.privilegeQueryUrl != null"> |
|||
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_pro_project_file |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
business_id = #{record.businessId,jdbcType=BIGINT}, |
|||
file_id = #{record.fileId,jdbcType=BIGINT}, |
|||
business_type = #{record.businessType,jdbcType=TINYINT}, |
|||
privilege = #{record.privilege,jdbcType=TINYINT}, |
|||
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
update t_pro_project_file |
|||
<set> |
|||
<if test="businessId != null"> |
|||
business_id = #{businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="fileId != null"> |
|||
file_id = #{fileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessType != null"> |
|||
business_type = #{businessType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
privilege = #{privilege,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilegeQueryUrl != null"> |
|||
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
update t_pro_project_file |
|||
set business_id = #{businessId,jdbcType=BIGINT}, |
|||
file_id = #{fileId,jdbcType=BIGINT}, |
|||
business_type = #{businessType,jdbcType=TINYINT}, |
|||
privilege = #{privilege,jdbcType=TINYINT}, |
|||
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.ProProjectFileMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
|||
<result column="wps_file_id" jdbcType="BIGINT" property="wpsFileId" /> |
|||
<result column="business_type" jdbcType="TINYINT" property="businessType" /> |
|||
<result column="privilege" jdbcType="TINYINT" property="privilege" /> |
|||
<result column="privilege_query_url" jdbcType="VARCHAR" property="privilegeQueryUrl" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, business_id, wps_file_id, business_type, privilege, privilege_query_url, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_project_file |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_project_file |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_project_file |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample"> |
|||
delete from t_pro_project_file |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
insert into t_pro_project_file (id, business_id, wps_file_id, |
|||
business_type, privilege, privilege_query_url, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{businessId,jdbcType=BIGINT}, #{wpsFileId,jdbcType=BIGINT}, |
|||
#{businessType,jdbcType=TINYINT}, #{privilege,jdbcType=TINYINT}, #{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
insert into t_pro_project_file |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
business_id, |
|||
</if> |
|||
<if test="wpsFileId != null"> |
|||
wps_file_id, |
|||
</if> |
|||
<if test="businessType != null"> |
|||
business_type, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
privilege, |
|||
</if> |
|||
<if test="privilegeQueryUrl != null"> |
|||
privilege_query_url, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
#{businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="wpsFileId != null"> |
|||
#{wpsFileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessType != null"> |
|||
#{businessType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
#{privilege,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilegeQueryUrl != null"> |
|||
#{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_project_file |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_project_file |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.businessId != null"> |
|||
business_id = #{record.businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.wpsFileId != null"> |
|||
wps_file_id = #{record.wpsFileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.businessType != null"> |
|||
business_type = #{record.businessType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.privilege != null"> |
|||
privilege = #{record.privilege,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.privilegeQueryUrl != null"> |
|||
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_pro_project_file |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
business_id = #{record.businessId,jdbcType=BIGINT}, |
|||
wps_file_id = #{record.wpsFileId,jdbcType=BIGINT}, |
|||
business_type = #{record.businessType,jdbcType=TINYINT}, |
|||
privilege = #{record.privilege,jdbcType=TINYINT}, |
|||
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
update t_pro_project_file |
|||
<set> |
|||
<if test="businessId != null"> |
|||
business_id = #{businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="wpsFileId != null"> |
|||
wps_file_id = #{wpsFileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessType != null"> |
|||
business_type = #{businessType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
privilege = #{privilege,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="privilegeQueryUrl != null"> |
|||
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
|||
update t_pro_project_file |
|||
set business_id = #{businessId,jdbcType=BIGINT}, |
|||
wps_file_id = #{wpsFileId,jdbcType=BIGINT}, |
|||
business_type = #{businessType,jdbcType=TINYINT}, |
|||
privilege = #{privilege,jdbcType=TINYINT}, |
|||
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue