28 changed files with 1754 additions and 1450 deletions
@ -1,117 +1,117 @@ |
|||||
package com.ccsens.tall.bean.po; |
package com.ccsens.tall.bean.po; |
||||
|
|
||||
import java.io.Serializable; |
import java.io.Serializable; |
||||
import java.util.Date; |
import java.util.Date; |
||||
|
|
||||
public class ProProjectFile implements Serializable { |
public class ProProjectFile implements Serializable { |
||||
private Long id; |
private Long id; |
||||
|
|
||||
private Long businessId; |
private Long businessId; |
||||
|
|
||||
private Long fileId; |
private Long wpsFileId; |
||||
|
|
||||
private Byte businessType; |
private Byte businessType; |
||||
|
|
||||
private Byte privilege; |
private Byte privilege; |
||||
|
|
||||
private String privilegeQueryUrl; |
private String privilegeQueryUrl; |
||||
|
|
||||
private Date createdAt; |
private Date createdAt; |
||||
|
|
||||
private Date updatedAt; |
private Date updatedAt; |
||||
|
|
||||
private Byte recStatus; |
private Byte recStatus; |
||||
|
|
||||
private static final long serialVersionUID = 1L; |
private static final long serialVersionUID = 1L; |
||||
|
|
||||
public Long getId() { |
public Long getId() { |
||||
return id; |
return id; |
||||
} |
} |
||||
|
|
||||
public void setId(Long id) { |
public void setId(Long id) { |
||||
this.id = id; |
this.id = id; |
||||
} |
} |
||||
|
|
||||
public Long getBusinessId() { |
public Long getBusinessId() { |
||||
return businessId; |
return businessId; |
||||
} |
} |
||||
|
|
||||
public void setBusinessId(Long businessId) { |
public void setBusinessId(Long businessId) { |
||||
this.businessId = businessId; |
this.businessId = businessId; |
||||
} |
} |
||||
|
|
||||
public Long getFileId() { |
public Long getWpsFileId() { |
||||
return fileId; |
return wpsFileId; |
||||
} |
} |
||||
|
|
||||
public void setFileId(Long fileId) { |
public void setWpsFileId(Long wpsFileId) { |
||||
this.fileId = fileId; |
this.wpsFileId = wpsFileId; |
||||
} |
} |
||||
|
|
||||
public Byte getBusinessType() { |
public Byte getBusinessType() { |
||||
return businessType; |
return businessType; |
||||
} |
} |
||||
|
|
||||
public void setBusinessType(Byte businessType) { |
public void setBusinessType(Byte businessType) { |
||||
this.businessType = businessType; |
this.businessType = businessType; |
||||
} |
} |
||||
|
|
||||
public Byte getPrivilege() { |
public Byte getPrivilege() { |
||||
return privilege; |
return privilege; |
||||
} |
} |
||||
|
|
||||
public void setPrivilege(Byte privilege) { |
public void setPrivilege(Byte privilege) { |
||||
this.privilege = privilege; |
this.privilege = privilege; |
||||
} |
} |
||||
|
|
||||
public String getPrivilegeQueryUrl() { |
public String getPrivilegeQueryUrl() { |
||||
return privilegeQueryUrl; |
return privilegeQueryUrl; |
||||
} |
} |
||||
|
|
||||
public void setPrivilegeQueryUrl(String privilegeQueryUrl) { |
public void setPrivilegeQueryUrl(String privilegeQueryUrl) { |
||||
this.privilegeQueryUrl = privilegeQueryUrl == null ? null : privilegeQueryUrl.trim(); |
this.privilegeQueryUrl = privilegeQueryUrl == null ? null : privilegeQueryUrl.trim(); |
||||
} |
} |
||||
|
|
||||
public Date getCreatedAt() { |
public Date getCreatedAt() { |
||||
return createdAt; |
return createdAt; |
||||
} |
} |
||||
|
|
||||
public void setCreatedAt(Date createdAt) { |
public void setCreatedAt(Date createdAt) { |
||||
this.createdAt = createdAt; |
this.createdAt = createdAt; |
||||
} |
} |
||||
|
|
||||
public Date getUpdatedAt() { |
public Date getUpdatedAt() { |
||||
return updatedAt; |
return updatedAt; |
||||
} |
} |
||||
|
|
||||
public void setUpdatedAt(Date updatedAt) { |
public void setUpdatedAt(Date updatedAt) { |
||||
this.updatedAt = updatedAt; |
this.updatedAt = updatedAt; |
||||
} |
} |
||||
|
|
||||
public Byte getRecStatus() { |
public Byte getRecStatus() { |
||||
return recStatus; |
return recStatus; |
||||
} |
} |
||||
|
|
||||
public void setRecStatus(Byte recStatus) { |
public void setRecStatus(Byte recStatus) { |
||||
this.recStatus = recStatus; |
this.recStatus = recStatus; |
||||
} |
} |
||||
|
|
||||
@Override |
@Override |
||||
public String toString() { |
public String toString() { |
||||
StringBuilder sb = new StringBuilder(); |
StringBuilder sb = new StringBuilder(); |
||||
sb.append(getClass().getSimpleName()); |
sb.append(getClass().getSimpleName()); |
||||
sb.append(" ["); |
sb.append(" ["); |
||||
sb.append("Hash = ").append(hashCode()); |
sb.append("Hash = ").append(hashCode()); |
||||
sb.append(", id=").append(id); |
sb.append(", id=").append(id); |
||||
sb.append(", businessId=").append(businessId); |
sb.append(", businessId=").append(businessId); |
||||
sb.append(", fileId=").append(fileId); |
sb.append(", wpsFileId=").append(wpsFileId); |
||||
sb.append(", businessType=").append(businessType); |
sb.append(", businessType=").append(businessType); |
||||
sb.append(", privilege=").append(privilege); |
sb.append(", privilege=").append(privilege); |
||||
sb.append(", privilegeQueryUrl=").append(privilegeQueryUrl); |
sb.append(", privilegeQueryUrl=").append(privilegeQueryUrl); |
||||
sb.append(", createdAt=").append(createdAt); |
sb.append(", createdAt=").append(createdAt); |
||||
sb.append(", updatedAt=").append(updatedAt); |
sb.append(", updatedAt=").append(updatedAt); |
||||
sb.append(", recStatus=").append(recStatus); |
sb.append(", recStatus=").append(recStatus); |
||||
sb.append("]"); |
sb.append("]"); |
||||
return sb.toString(); |
return sb.toString(); |
||||
} |
} |
||||
} |
} |
File diff suppressed because it is too large
@ -1,30 +1,30 @@ |
|||||
package com.ccsens.tall.persist.mapper; |
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
import com.ccsens.tall.bean.po.ProProjectFile; |
import com.ccsens.tall.bean.po.ProProjectFile; |
||||
import com.ccsens.tall.bean.po.ProProjectFileExample; |
import com.ccsens.tall.bean.po.ProProjectFileExample; |
||||
import java.util.List; |
import java.util.List; |
||||
import org.apache.ibatis.annotations.Param; |
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
public interface ProProjectFileMapper { |
public interface ProProjectFileMapper { |
||||
long countByExample(ProProjectFileExample example); |
long countByExample(ProProjectFileExample example); |
||||
|
|
||||
int deleteByExample(ProProjectFileExample example); |
int deleteByExample(ProProjectFileExample example); |
||||
|
|
||||
int deleteByPrimaryKey(Long id); |
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
int insert(ProProjectFile record); |
int insert(ProProjectFile record); |
||||
|
|
||||
int insertSelective(ProProjectFile record); |
int insertSelective(ProProjectFile record); |
||||
|
|
||||
List<ProProjectFile> selectByExample(ProProjectFileExample example); |
List<ProProjectFile> selectByExample(ProProjectFileExample example); |
||||
|
|
||||
ProProjectFile selectByPrimaryKey(Long id); |
ProProjectFile selectByPrimaryKey(Long id); |
||||
|
|
||||
int updateByExampleSelective(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
int updateByExampleSelective(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
||||
|
|
||||
int updateByExample(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
int updateByExample(@Param("record") ProProjectFile record, @Param("example") ProProjectFileExample example); |
||||
|
|
||||
int updateByPrimaryKeySelective(ProProjectFile record); |
int updateByPrimaryKeySelective(ProProjectFile record); |
||||
|
|
||||
int updateByPrimaryKey(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"?> |
<?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"> |
<!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"> |
<mapper namespace="com.ccsens.tall.persist.mapper.ProProjectFileMapper"> |
||||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProProjectFile"> |
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProProjectFile"> |
||||
<id column="id" jdbcType="BIGINT" property="id" /> |
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
||||
<result column="file_id" jdbcType="BIGINT" property="fileId" /> |
<result column="wps_file_id" jdbcType="BIGINT" property="wpsFileId" /> |
||||
<result column="business_type" jdbcType="TINYINT" property="businessType" /> |
<result column="business_type" jdbcType="TINYINT" property="businessType" /> |
||||
<result column="privilege" jdbcType="TINYINT" property="privilege" /> |
<result column="privilege" jdbcType="TINYINT" property="privilege" /> |
||||
<result column="privilege_query_url" jdbcType="VARCHAR" property="privilegeQueryUrl" /> |
<result column="privilege_query_url" jdbcType="VARCHAR" property="privilegeQueryUrl" /> |
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
</resultMap> |
</resultMap> |
||||
<sql id="Example_Where_Clause"> |
<sql id="Example_Where_Clause"> |
||||
<where> |
<where> |
||||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
<if test="criteria.valid"> |
<if test="criteria.valid"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<choose> |
<choose> |
||||
<when test="criterion.noValue"> |
<when test="criterion.noValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
</when> |
</when> |
||||
<when test="criterion.singleValue"> |
<when test="criterion.singleValue"> |
||||
and ${criterion.condition} #{criterion.value} |
and ${criterion.condition} #{criterion.value} |
||||
</when> |
</when> |
||||
<when test="criterion.betweenValue"> |
<when test="criterion.betweenValue"> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
</when> |
</when> |
||||
<when test="criterion.listValue"> |
<when test="criterion.listValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
#{listItem} |
#{listItem} |
||||
</foreach> |
</foreach> |
||||
</when> |
</when> |
||||
</choose> |
</choose> |
||||
</foreach> |
</foreach> |
||||
</trim> |
</trim> |
||||
</if> |
</if> |
||||
</foreach> |
</foreach> |
||||
</where> |
</where> |
||||
</sql> |
</sql> |
||||
<sql id="Update_By_Example_Where_Clause"> |
<sql id="Update_By_Example_Where_Clause"> |
||||
<where> |
<where> |
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
<if test="criteria.valid"> |
<if test="criteria.valid"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<choose> |
<choose> |
||||
<when test="criterion.noValue"> |
<when test="criterion.noValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
</when> |
</when> |
||||
<when test="criterion.singleValue"> |
<when test="criterion.singleValue"> |
||||
and ${criterion.condition} #{criterion.value} |
and ${criterion.condition} #{criterion.value} |
||||
</when> |
</when> |
||||
<when test="criterion.betweenValue"> |
<when test="criterion.betweenValue"> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
</when> |
</when> |
||||
<when test="criterion.listValue"> |
<when test="criterion.listValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
#{listItem} |
#{listItem} |
||||
</foreach> |
</foreach> |
||||
</when> |
</when> |
||||
</choose> |
</choose> |
||||
</foreach> |
</foreach> |
||||
</trim> |
</trim> |
||||
</if> |
</if> |
||||
</foreach> |
</foreach> |
||||
</where> |
</where> |
||||
</sql> |
</sql> |
||||
<sql id="Base_Column_List"> |
<sql id="Base_Column_List"> |
||||
id, business_id, file_id, business_type, privilege, privilege_query_url, created_at, |
id, business_id, wps_file_id, business_type, privilege, privilege_query_url, created_at, |
||||
updated_at, rec_status |
updated_at, rec_status |
||||
</sql> |
</sql> |
||||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultMap="BaseResultMap"> |
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultMap="BaseResultMap"> |
||||
select |
select |
||||
<if test="distinct"> |
<if test="distinct"> |
||||
distinct |
distinct |
||||
</if> |
</if> |
||||
<include refid="Base_Column_List" /> |
<include refid="Base_Column_List" /> |
||||
from t_pro_project_file |
from t_pro_project_file |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Example_Where_Clause" /> |
<include refid="Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
<if test="orderByClause != null"> |
<if test="orderByClause != null"> |
||||
order by ${orderByClause} |
order by ${orderByClause} |
||||
</if> |
</if> |
||||
</select> |
</select> |
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
select |
select |
||||
<include refid="Base_Column_List" /> |
<include refid="Base_Column_List" /> |
||||
from t_pro_project_file |
from t_pro_project_file |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</select> |
</select> |
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
delete from t_pro_project_file |
delete from t_pro_project_file |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</delete> |
</delete> |
||||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample"> |
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample"> |
||||
delete from t_pro_project_file |
delete from t_pro_project_file |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Example_Where_Clause" /> |
<include refid="Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</delete> |
</delete> |
||||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
||||
insert into t_pro_project_file (id, business_id, file_id, |
insert into t_pro_project_file (id, business_id, wps_file_id, |
||||
business_type, privilege, privilege_query_url, |
business_type, privilege, privilege_query_url, |
||||
created_at, updated_at, rec_status |
created_at, updated_at, rec_status |
||||
) |
) |
||||
values (#{id,jdbcType=BIGINT}, #{businessId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT}, |
values (#{id,jdbcType=BIGINT}, #{businessId,jdbcType=BIGINT}, #{wpsFileId,jdbcType=BIGINT}, |
||||
#{businessType,jdbcType=TINYINT}, #{privilege,jdbcType=TINYINT}, #{privilegeQueryUrl,jdbcType=VARCHAR}, |
#{businessType,jdbcType=TINYINT}, #{privilege,jdbcType=TINYINT}, #{privilegeQueryUrl,jdbcType=VARCHAR}, |
||||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
) |
) |
||||
</insert> |
</insert> |
||||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
||||
insert into t_pro_project_file |
insert into t_pro_project_file |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="id != null"> |
<if test="id != null"> |
||||
id, |
id, |
||||
</if> |
</if> |
||||
<if test="businessId != null"> |
<if test="businessId != null"> |
||||
business_id, |
business_id, |
||||
</if> |
</if> |
||||
<if test="fileId != null"> |
<if test="wpsFileId != null"> |
||||
file_id, |
wps_file_id, |
||||
</if> |
</if> |
||||
<if test="businessType != null"> |
<if test="businessType != null"> |
||||
business_type, |
business_type, |
||||
</if> |
</if> |
||||
<if test="privilege != null"> |
<if test="privilege != null"> |
||||
privilege, |
privilege, |
||||
</if> |
</if> |
||||
<if test="privilegeQueryUrl != null"> |
<if test="privilegeQueryUrl != null"> |
||||
privilege_query_url, |
privilege_query_url, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="createdAt != null"> |
||||
created_at, |
created_at, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="updatedAt != null"> |
||||
updated_at, |
updated_at, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="recStatus != null"> |
||||
rec_status, |
rec_status, |
||||
</if> |
</if> |
||||
</trim> |
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="id != null"> |
<if test="id != null"> |
||||
#{id,jdbcType=BIGINT}, |
#{id,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="businessId != null"> |
<if test="businessId != null"> |
||||
#{businessId,jdbcType=BIGINT}, |
#{businessId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="fileId != null"> |
<if test="wpsFileId != null"> |
||||
#{fileId,jdbcType=BIGINT}, |
#{wpsFileId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="businessType != null"> |
<if test="businessType != null"> |
||||
#{businessType,jdbcType=TINYINT}, |
#{businessType,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="privilege != null"> |
<if test="privilege != null"> |
||||
#{privilege,jdbcType=TINYINT}, |
#{privilege,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="privilegeQueryUrl != null"> |
<if test="privilegeQueryUrl != null"> |
||||
#{privilegeQueryUrl,jdbcType=VARCHAR}, |
#{privilegeQueryUrl,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="createdAt != null"> |
||||
#{createdAt,jdbcType=TIMESTAMP}, |
#{createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="updatedAt != null"> |
||||
#{updatedAt,jdbcType=TIMESTAMP}, |
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="recStatus != null"> |
||||
#{recStatus,jdbcType=TINYINT}, |
#{recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
</trim> |
</trim> |
||||
</insert> |
</insert> |
||||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultType="java.lang.Long"> |
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProProjectFileExample" resultType="java.lang.Long"> |
||||
select count(*) from t_pro_project_file |
select count(*) from t_pro_project_file |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Example_Where_Clause" /> |
<include refid="Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</select> |
</select> |
||||
<update id="updateByExampleSelective" parameterType="map"> |
<update id="updateByExampleSelective" parameterType="map"> |
||||
update t_pro_project_file |
update t_pro_project_file |
||||
<set> |
<set> |
||||
<if test="record.id != null"> |
<if test="record.id != null"> |
||||
id = #{record.id,jdbcType=BIGINT}, |
id = #{record.id,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.businessId != null"> |
<if test="record.businessId != null"> |
||||
business_id = #{record.businessId,jdbcType=BIGINT}, |
business_id = #{record.businessId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.fileId != null"> |
<if test="record.wpsFileId != null"> |
||||
file_id = #{record.fileId,jdbcType=BIGINT}, |
wps_file_id = #{record.wpsFileId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.businessType != null"> |
<if test="record.businessType != null"> |
||||
business_type = #{record.businessType,jdbcType=TINYINT}, |
business_type = #{record.businessType,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="record.privilege != null"> |
<if test="record.privilege != null"> |
||||
privilege = #{record.privilege,jdbcType=TINYINT}, |
privilege = #{record.privilege,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="record.privilegeQueryUrl != null"> |
<if test="record.privilegeQueryUrl != null"> |
||||
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="record.createdAt != null"> |
<if test="record.createdAt != null"> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="record.updatedAt != null"> |
<if test="record.updatedAt != null"> |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="record.recStatus != null"> |
<if test="record.recStatus != null"> |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
</set> |
</set> |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
<include refid="Update_By_Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</update> |
</update> |
||||
<update id="updateByExample" parameterType="map"> |
<update id="updateByExample" parameterType="map"> |
||||
update t_pro_project_file |
update t_pro_project_file |
||||
set id = #{record.id,jdbcType=BIGINT}, |
set id = #{record.id,jdbcType=BIGINT}, |
||||
business_id = #{record.businessId,jdbcType=BIGINT}, |
business_id = #{record.businessId,jdbcType=BIGINT}, |
||||
file_id = #{record.fileId,jdbcType=BIGINT}, |
wps_file_id = #{record.wpsFileId,jdbcType=BIGINT}, |
||||
business_type = #{record.businessType,jdbcType=TINYINT}, |
business_type = #{record.businessType,jdbcType=TINYINT}, |
||||
privilege = #{record.privilege,jdbcType=TINYINT}, |
privilege = #{record.privilege,jdbcType=TINYINT}, |
||||
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
privilege_query_url = #{record.privilegeQueryUrl,jdbcType=VARCHAR}, |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
<include refid="Update_By_Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</update> |
</update> |
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
||||
update t_pro_project_file |
update t_pro_project_file |
||||
<set> |
<set> |
||||
<if test="businessId != null"> |
<if test="businessId != null"> |
||||
business_id = #{businessId,jdbcType=BIGINT}, |
business_id = #{businessId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="fileId != null"> |
<if test="wpsFileId != null"> |
||||
file_id = #{fileId,jdbcType=BIGINT}, |
wps_file_id = #{wpsFileId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="businessType != null"> |
<if test="businessType != null"> |
||||
business_type = #{businessType,jdbcType=TINYINT}, |
business_type = #{businessType,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="privilege != null"> |
<if test="privilege != null"> |
||||
privilege = #{privilege,jdbcType=TINYINT}, |
privilege = #{privilege,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="privilegeQueryUrl != null"> |
<if test="privilegeQueryUrl != null"> |
||||
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="createdAt != null"> |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="updatedAt != null"> |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="recStatus != null"> |
||||
rec_status = #{recStatus,jdbcType=TINYINT}, |
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
</set> |
</set> |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</update> |
</update> |
||||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProProjectFile"> |
||||
update t_pro_project_file |
update t_pro_project_file |
||||
set business_id = #{businessId,jdbcType=BIGINT}, |
set business_id = #{businessId,jdbcType=BIGINT}, |
||||
file_id = #{fileId,jdbcType=BIGINT}, |
wps_file_id = #{wpsFileId,jdbcType=BIGINT}, |
||||
business_type = #{businessType,jdbcType=TINYINT}, |
business_type = #{businessType,jdbcType=TINYINT}, |
||||
privilege = #{privilege,jdbcType=TINYINT}, |
privilege = #{privilege,jdbcType=TINYINT}, |
||||
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
privilege_query_url = #{privilegeQueryUrl,jdbcType=VARCHAR}, |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
rec_status = #{recStatus,jdbcType=TINYINT} |
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</update> |
</update> |
||||
</mapper> |
</mapper> |
Loading…
Reference in new issue