19 changed files with 1809 additions and 1514 deletions
@ -0,0 +1,24 @@ |
|||
package com.ccsens.ptccsens.annotation; |
|||
|
|||
import java.lang.annotation.*; |
|||
|
|||
/** |
|||
* @description: 用于标识方法需要登录,获取userId |
|||
* 如果未登录,直接返回用户未登录 |
|||
* @author: wuHuiJuan |
|||
* @create: 2019/12/09 09:48 |
|||
*/ |
|||
@Documented |
|||
@Retention(RetentionPolicy.RUNTIME) |
|||
@Target(ElementType.METHOD) |
|||
public @interface MustLogin { |
|||
/** |
|||
* -1 不处理 |
|||
* 0: 数组 |
|||
* 1:List |
|||
* 2:Set |
|||
* 3: Map |
|||
* */ |
|||
byte type() default -1; |
|||
|
|||
} |
@ -0,0 +1,138 @@ |
|||
package com.ccsens.ptccsens.aspect; |
|||
|
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.ccsens.ptccsens.annotation.MustLogin; |
|||
import com.ccsens.ptccsens.bean.po.ProUser; |
|||
import com.ccsens.ptccsens.persist.dao.UserDao; |
|||
import com.ccsens.ptccsens.util.Constant; |
|||
import com.ccsens.util.CodeEnum; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.WebConstant; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.ccsensptos.tallsdk.bean.dto.TallTokenDto; |
|||
import com.ccsensptos.tallsdk.bean.vo.TallTokenVo; |
|||
import com.ccsensptos.tallsdk.util.TokenUtil; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.aspectj.lang.ProceedingJoinPoint; |
|||
import org.aspectj.lang.Signature; |
|||
import org.aspectj.lang.annotation.Around; |
|||
import org.aspectj.lang.annotation.Aspect; |
|||
import org.aspectj.lang.annotation.Pointcut; |
|||
import org.aspectj.lang.reflect.MethodSignature; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.core.annotation.Order; |
|||
import org.springframework.stereotype.Component; |
|||
import org.springframework.web.context.request.RequestContextHolder; |
|||
import org.springframework.web.context.request.ServletRequestAttributes; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletRequest; |
|||
import java.lang.reflect.Array; |
|||
import java.lang.reflect.Method; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: wuHuiJuan |
|||
* @create: 2019/12/09 09:54 |
|||
*/ |
|||
@Order(0) |
|||
@Slf4j |
|||
@Aspect |
|||
@Component |
|||
public class MustLoginAspect { |
|||
@Resource |
|||
private UserDao userDao; |
|||
|
|||
@Pointcut("@annotation(com.ccsens.ptccsens.annotation.MustLogin)") |
|||
public void loginAdvice(){} |
|||
|
|||
@Around("loginAdvice()") |
|||
public Object around(ProceedingJoinPoint pjp) throws Throwable { |
|||
|
|||
HttpServletRequest request = ((ServletRequestAttributes) |
|||
RequestContextHolder.getRequestAttributes()).getRequest(); |
|||
|
|||
final String authHeader = request.getHeader(WebConstant.HEADER_KEY_TOKEN); |
|||
|
|||
Object[] args = pjp.getArgs(); |
|||
QueryDto dto = args == null || args.length < 1 ? null : (QueryDto) args[0]; |
|||
|
|||
//获取userId
|
|||
ProUser user = null; |
|||
if(StrUtil.isNotEmpty(authHeader)){ |
|||
log.info("MustLogin————token:{}", authHeader); |
|||
//通过token查找用户信息
|
|||
//TODO 根据token获取用户信息
|
|||
TallTokenVo.UserIdByToken userByToken = TokenUtil.getUserByToken(new TallTokenDto.GetUserByToken(authHeader, Constant.APP_ID, Constant.APP_SECRET)); |
|||
if(ObjectUtil.isNull(userByToken)){ |
|||
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); |
|||
} |
|||
//通过手机号获取用户在服务内的userId
|
|||
if(StrUtil.isNotBlank(userByToken.getPhone())){ |
|||
user = userDao.getUserIdByPhone(userByToken.getPhone()); |
|||
log.info("{}获取user:{}", authHeader, user); |
|||
} |
|||
} |
|||
Signature signature = pjp.getSignature(); |
|||
MethodSignature methodSignature = (MethodSignature) signature; |
|||
Method targetMethod = methodSignature.getMethod(); |
|||
|
|||
MustLogin mustLoginAnnotation = targetMethod.getAnnotation(MustLogin.class); |
|||
fillSpecial(dto, mustLoginAnnotation); |
|||
|
|||
//必须登录,未登录直接返回未登录相关信息
|
|||
if (user == null) { |
|||
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); |
|||
} |
|||
// JSONObject json = JSONObject.parseObject(JSON.toJSONString(response.getData()));
|
|||
// Long userId = json.getLong("id");
|
|||
// String userName = json.getString("userName");
|
|||
// String avatarUrl = json.getString("avatarUrl");
|
|||
// String phone = json.getString("phone");
|
|||
// if (userId == null || userId == 0) {
|
|||
// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
|
|||
// }
|
|||
|
|||
if (dto != null) { |
|||
dto.setUserId(user.getId()); |
|||
dto.setPhone(user.getPhone()); |
|||
} |
|||
|
|||
Object result = pjp.proceed(); |
|||
return result; |
|||
} |
|||
|
|||
private void fillSpecial(QueryDto dto, MustLogin mustLoginAnnotation) { |
|||
if (mustLoginAnnotation == null) { |
|||
return; |
|||
} |
|||
if (dto != null && mustLoginAnnotation.type() > -1) { |
|||
switch (mustLoginAnnotation.type()) { |
|||
case 0: |
|||
Object obj = dto.getParam(); |
|||
if (obj!= null && !obj.getClass().isArray()) { |
|||
Class<?> aClass = dto.getParam().getClass(); |
|||
Object o = Array.newInstance(aClass, 1); |
|||
Array.set(o, 0, dto.getParam()); |
|||
dto.setParam(o); |
|||
} |
|||
break; |
|||
case 1: |
|||
Object obj1 = dto.getParam(); |
|||
if (obj1!= null && !(obj1 instanceof List)) { |
|||
ArrayList arrayList = new ArrayList(); |
|||
arrayList.add(dto.getParam()); |
|||
dto.setParam(arrayList); |
|||
} |
|||
break; |
|||
} |
|||
|
|||
} |
|||
} |
|||
|
|||
} |
@ -1,150 +1,172 @@ |
|||
package com.ccsens.ptccsens.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProTaskPlugin implements Serializable { |
|||
private Long id; |
|||
|
|||
private String param; |
|||
|
|||
private Integer plginRow; |
|||
|
|||
private Integer plginCol; |
|||
|
|||
private Long taskDetailId; |
|||
|
|||
private Long pluginId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Integer colspan; |
|||
|
|||
private Integer rowspan; |
|||
|
|||
private String code; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getParam() { |
|||
return param; |
|||
} |
|||
|
|||
public void setParam(String param) { |
|||
this.param = param == null ? null : param.trim(); |
|||
} |
|||
|
|||
public Integer getPlginRow() { |
|||
return plginRow; |
|||
} |
|||
|
|||
public void setPlginRow(Integer plginRow) { |
|||
this.plginRow = plginRow; |
|||
} |
|||
|
|||
public Integer getPlginCol() { |
|||
return plginCol; |
|||
} |
|||
|
|||
public void setPlginCol(Integer plginCol) { |
|||
this.plginCol = plginCol; |
|||
} |
|||
|
|||
public Long getTaskDetailId() { |
|||
return taskDetailId; |
|||
} |
|||
|
|||
public void setTaskDetailId(Long taskDetailId) { |
|||
this.taskDetailId = taskDetailId; |
|||
} |
|||
|
|||
public Long getPluginId() { |
|||
return pluginId; |
|||
} |
|||
|
|||
public void setPluginId(Long pluginId) { |
|||
this.pluginId = pluginId; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Integer getColspan() { |
|||
return colspan; |
|||
} |
|||
|
|||
public void setColspan(Integer colspan) { |
|||
this.colspan = colspan; |
|||
} |
|||
|
|||
public Integer getRowspan() { |
|||
return rowspan; |
|||
} |
|||
|
|||
public void setRowspan(Integer rowspan) { |
|||
this.rowspan = rowspan; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
@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(", param=").append(param); |
|||
sb.append(", plginRow=").append(plginRow); |
|||
sb.append(", plginCol=").append(plginCol); |
|||
sb.append(", taskDetailId=").append(taskDetailId); |
|||
sb.append(", pluginId=").append(pluginId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", colspan=").append(colspan); |
|||
sb.append(", rowspan=").append(rowspan); |
|||
sb.append(", code=").append(code); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.ptccsens.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProTaskPlugin implements Serializable { |
|||
private Long id; |
|||
|
|||
private String param; |
|||
|
|||
private Integer plginRow; |
|||
|
|||
private Integer plginCol; |
|||
|
|||
private Long taskDetailId; |
|||
|
|||
private Long pluginId; |
|||
|
|||
private Long businessPluginId; |
|||
|
|||
private String code; |
|||
|
|||
private Byte pluginInner; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Integer colspan; |
|||
|
|||
private Integer rowspan; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getParam() { |
|||
return param; |
|||
} |
|||
|
|||
public void setParam(String param) { |
|||
this.param = param == null ? null : param.trim(); |
|||
} |
|||
|
|||
public Integer getPlginRow() { |
|||
return plginRow; |
|||
} |
|||
|
|||
public void setPlginRow(Integer plginRow) { |
|||
this.plginRow = plginRow; |
|||
} |
|||
|
|||
public Integer getPlginCol() { |
|||
return plginCol; |
|||
} |
|||
|
|||
public void setPlginCol(Integer plginCol) { |
|||
this.plginCol = plginCol; |
|||
} |
|||
|
|||
public Long getTaskDetailId() { |
|||
return taskDetailId; |
|||
} |
|||
|
|||
public void setTaskDetailId(Long taskDetailId) { |
|||
this.taskDetailId = taskDetailId; |
|||
} |
|||
|
|||
public Long getPluginId() { |
|||
return pluginId; |
|||
} |
|||
|
|||
public void setPluginId(Long pluginId) { |
|||
this.pluginId = pluginId; |
|||
} |
|||
|
|||
public Long getBusinessPluginId() { |
|||
return businessPluginId; |
|||
} |
|||
|
|||
public void setBusinessPluginId(Long businessPluginId) { |
|||
this.businessPluginId = businessPluginId; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public Byte getPluginInner() { |
|||
return pluginInner; |
|||
} |
|||
|
|||
public void setPluginInner(Byte pluginInner) { |
|||
this.pluginInner = pluginInner; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Integer getColspan() { |
|||
return colspan; |
|||
} |
|||
|
|||
public void setColspan(Integer colspan) { |
|||
this.colspan = colspan; |
|||
} |
|||
|
|||
public Integer getRowspan() { |
|||
return rowspan; |
|||
} |
|||
|
|||
public void setRowspan(Integer rowspan) { |
|||
this.rowspan = rowspan; |
|||
} |
|||
|
|||
@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(", param=").append(param); |
|||
sb.append(", plginRow=").append(plginRow); |
|||
sb.append(", plginCol=").append(plginCol); |
|||
sb.append(", taskDetailId=").append(taskDetailId); |
|||
sb.append(", pluginId=").append(pluginId); |
|||
sb.append(", businessPluginId=").append(businessPluginId); |
|||
sb.append(", code=").append(code); |
|||
sb.append(", pluginInner=").append(pluginInner); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", colspan=").append(colspan); |
|||
sb.append(", rowspan=").append(rowspan); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,30 +1,30 @@ |
|||
package com.ccsens.ptccsens.persist.mapper; |
|||
|
|||
import com.ccsens.ptccsens.bean.po.ProTaskPlugin; |
|||
import com.ccsens.ptccsens.bean.po.ProTaskPluginExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProTaskPluginMapper { |
|||
long countByExample(ProTaskPluginExample example); |
|||
|
|||
int deleteByExample(ProTaskPluginExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProTaskPlugin record); |
|||
|
|||
int insertSelective(ProTaskPlugin record); |
|||
|
|||
List<ProTaskPlugin> selectByExample(ProTaskPluginExample example); |
|||
|
|||
ProTaskPlugin selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProTaskPlugin record, @Param("example") ProTaskPluginExample example); |
|||
|
|||
int updateByExample(@Param("record") ProTaskPlugin record, @Param("example") ProTaskPluginExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProTaskPlugin record); |
|||
|
|||
int updateByPrimaryKey(ProTaskPlugin record); |
|||
package com.ccsens.ptccsens.persist.mapper; |
|||
|
|||
import com.ccsens.ptccsens.bean.po.ProTaskPlugin; |
|||
import com.ccsens.ptccsens.bean.po.ProTaskPluginExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProTaskPluginMapper { |
|||
long countByExample(ProTaskPluginExample example); |
|||
|
|||
int deleteByExample(ProTaskPluginExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProTaskPlugin record); |
|||
|
|||
int insertSelective(ProTaskPlugin record); |
|||
|
|||
List<ProTaskPlugin> selectByExample(ProTaskPluginExample example); |
|||
|
|||
ProTaskPlugin selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProTaskPlugin record, @Param("example") ProTaskPluginExample example); |
|||
|
|||
int updateByExample(@Param("record") ProTaskPlugin record, @Param("example") ProTaskPluginExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProTaskPlugin record); |
|||
|
|||
int updateByPrimaryKey(ProTaskPlugin record); |
|||
} |
@ -1,323 +1,353 @@ |
|||
<?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.ptccsens.persist.mapper.ProTaskPluginMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="param" jdbcType="VARCHAR" property="param" /> |
|||
<result column="plgin_row" jdbcType="INTEGER" property="plginRow" /> |
|||
<result column="plgin_col" jdbcType="INTEGER" property="plginCol" /> |
|||
<result column="task_detail_id" jdbcType="BIGINT" property="taskDetailId" /> |
|||
<result column="plugin_id" jdbcType="BIGINT" property="pluginId" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
<result column="colspan" jdbcType="INTEGER" property="colspan" /> |
|||
<result column="rowspan" jdbcType="INTEGER" property="rowspan" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
</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, param, plgin_row, plgin_col, task_detail_id, plugin_id, created_at, updated_at, |
|||
rec_status, colspan, rowspan, code |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPluginExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_task_plugin |
|||
<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_task_plugin |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_task_plugin |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPluginExample"> |
|||
delete from t_pro_task_plugin |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
insert into t_pro_task_plugin (id, param, plgin_row, |
|||
plgin_col, task_detail_id, plugin_id, |
|||
created_at, updated_at, rec_status, |
|||
colspan, rowspan, code |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{param,jdbcType=VARCHAR}, #{plginRow,jdbcType=INTEGER}, |
|||
#{plginCol,jdbcType=INTEGER}, #{taskDetailId,jdbcType=BIGINT}, #{pluginId,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|||
#{colspan,jdbcType=INTEGER}, #{rowspan,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
insert into t_pro_task_plugin |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="param != null"> |
|||
param, |
|||
</if> |
|||
<if test="plginRow != null"> |
|||
plgin_row, |
|||
</if> |
|||
<if test="plginCol != null"> |
|||
plgin_col, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
task_detail_id, |
|||
</if> |
|||
<if test="pluginId != null"> |
|||
plugin_id, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="colspan != null"> |
|||
colspan, |
|||
</if> |
|||
<if test="rowspan != null"> |
|||
rowspan, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="param != null"> |
|||
#{param,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="plginRow != null"> |
|||
#{plginRow,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="plginCol != null"> |
|||
#{plginCol,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
#{taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="pluginId != null"> |
|||
#{pluginId,jdbcType=BIGINT}, |
|||
</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> |
|||
<if test="colspan != null"> |
|||
#{colspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="rowspan != null"> |
|||
#{rowspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="code != null"> |
|||
#{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPluginExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_task_plugin |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_task_plugin |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.param != null"> |
|||
param = #{record.param,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.plginRow != null"> |
|||
plgin_row = #{record.plginRow,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.plginCol != null"> |
|||
plgin_col = #{record.plginCol,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.taskDetailId != null"> |
|||
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.pluginId != null"> |
|||
plugin_id = #{record.pluginId,jdbcType=BIGINT}, |
|||
</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> |
|||
<if test="record.colspan != null"> |
|||
colspan = #{record.colspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.rowspan != null"> |
|||
rowspan = #{record.rowspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.code != null"> |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_pro_task_plugin |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
param = #{record.param,jdbcType=VARCHAR}, |
|||
plgin_row = #{record.plginRow,jdbcType=INTEGER}, |
|||
plgin_col = #{record.plginCol,jdbcType=INTEGER}, |
|||
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|||
plugin_id = #{record.pluginId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
colspan = #{record.colspan,jdbcType=INTEGER}, |
|||
rowspan = #{record.rowspan,jdbcType=INTEGER}, |
|||
code = #{record.code,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
update t_pro_task_plugin |
|||
<set> |
|||
<if test="param != null"> |
|||
param = #{param,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="plginRow != null"> |
|||
plgin_row = #{plginRow,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="plginCol != null"> |
|||
plgin_col = #{plginCol,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="pluginId != null"> |
|||
plugin_id = #{pluginId,jdbcType=BIGINT}, |
|||
</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> |
|||
<if test="colspan != null"> |
|||
colspan = #{colspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="rowspan != null"> |
|||
rowspan = #{rowspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
update t_pro_task_plugin |
|||
set param = #{param,jdbcType=VARCHAR}, |
|||
plgin_row = #{plginRow,jdbcType=INTEGER}, |
|||
plgin_col = #{plginCol,jdbcType=INTEGER}, |
|||
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|||
plugin_id = #{pluginId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
colspan = #{colspan,jdbcType=INTEGER}, |
|||
rowspan = #{rowspan,jdbcType=INTEGER}, |
|||
code = #{code,jdbcType=VARCHAR} |
|||
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.ptccsens.persist.mapper.ProTaskPluginMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="param" jdbcType="VARCHAR" property="param" /> |
|||
<result column="plgin_row" jdbcType="INTEGER" property="plginRow" /> |
|||
<result column="plgin_col" jdbcType="INTEGER" property="plginCol" /> |
|||
<result column="task_detail_id" jdbcType="BIGINT" property="taskDetailId" /> |
|||
<result column="plugin_id" jdbcType="BIGINT" property="pluginId" /> |
|||
<result column="business_plugin_id" jdbcType="BIGINT" property="businessPluginId" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
<result column="plugin_inner" jdbcType="TINYINT" property="pluginInner" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
<result column="colspan" jdbcType="INTEGER" property="colspan" /> |
|||
<result column="rowspan" jdbcType="INTEGER" property="rowspan" /> |
|||
</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, param, plgin_row, plgin_col, task_detail_id, plugin_id, business_plugin_id, code, |
|||
plugin_inner, created_at, updated_at, rec_status, colspan, rowspan |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPluginExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_task_plugin |
|||
<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_task_plugin |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_task_plugin |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPluginExample"> |
|||
delete from t_pro_task_plugin |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
insert into t_pro_task_plugin (id, param, plgin_row, |
|||
plgin_col, task_detail_id, plugin_id, |
|||
business_plugin_id, code, plugin_inner, |
|||
created_at, updated_at, rec_status, |
|||
colspan, rowspan) |
|||
values (#{id,jdbcType=BIGINT}, #{param,jdbcType=VARCHAR}, #{plginRow,jdbcType=INTEGER}, |
|||
#{plginCol,jdbcType=INTEGER}, #{taskDetailId,jdbcType=BIGINT}, #{pluginId,jdbcType=BIGINT}, |
|||
#{businessPluginId,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{pluginInner,jdbcType=TINYINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|||
#{colspan,jdbcType=INTEGER}, #{rowspan,jdbcType=INTEGER}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
insert into t_pro_task_plugin |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="param != null"> |
|||
param, |
|||
</if> |
|||
<if test="plginRow != null"> |
|||
plgin_row, |
|||
</if> |
|||
<if test="plginCol != null"> |
|||
plgin_col, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
task_detail_id, |
|||
</if> |
|||
<if test="pluginId != null"> |
|||
plugin_id, |
|||
</if> |
|||
<if test="businessPluginId != null"> |
|||
business_plugin_id, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
<if test="pluginInner != null"> |
|||
plugin_inner, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="colspan != null"> |
|||
colspan, |
|||
</if> |
|||
<if test="rowspan != null"> |
|||
rowspan, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="param != null"> |
|||
#{param,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="plginRow != null"> |
|||
#{plginRow,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="plginCol != null"> |
|||
#{plginCol,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
#{taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="pluginId != null"> |
|||
#{pluginId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessPluginId != null"> |
|||
#{businessPluginId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
#{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pluginInner != null"> |
|||
#{pluginInner,jdbcType=TINYINT}, |
|||
</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> |
|||
<if test="colspan != null"> |
|||
#{colspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="rowspan != null"> |
|||
#{rowspan,jdbcType=INTEGER}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPluginExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_task_plugin |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_task_plugin |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.param != null"> |
|||
param = #{record.param,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.plginRow != null"> |
|||
plgin_row = #{record.plginRow,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.plginCol != null"> |
|||
plgin_col = #{record.plginCol,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.taskDetailId != null"> |
|||
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.pluginId != null"> |
|||
plugin_id = #{record.pluginId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.businessPluginId != null"> |
|||
business_plugin_id = #{record.businessPluginId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.code != null"> |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pluginInner != null"> |
|||
plugin_inner = #{record.pluginInner,jdbcType=TINYINT}, |
|||
</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> |
|||
<if test="record.colspan != null"> |
|||
colspan = #{record.colspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.rowspan != null"> |
|||
rowspan = #{record.rowspan,jdbcType=INTEGER}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_pro_task_plugin |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
param = #{record.param,jdbcType=VARCHAR}, |
|||
plgin_row = #{record.plginRow,jdbcType=INTEGER}, |
|||
plgin_col = #{record.plginCol,jdbcType=INTEGER}, |
|||
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|||
plugin_id = #{record.pluginId,jdbcType=BIGINT}, |
|||
business_plugin_id = #{record.businessPluginId,jdbcType=BIGINT}, |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
plugin_inner = #{record.pluginInner,jdbcType=TINYINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
colspan = #{record.colspan,jdbcType=INTEGER}, |
|||
rowspan = #{record.rowspan,jdbcType=INTEGER} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
update t_pro_task_plugin |
|||
<set> |
|||
<if test="param != null"> |
|||
param = #{param,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="plginRow != null"> |
|||
plgin_row = #{plginRow,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="plginCol != null"> |
|||
plgin_col = #{plginCol,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="pluginId != null"> |
|||
plugin_id = #{pluginId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="businessPluginId != null"> |
|||
business_plugin_id = #{businessPluginId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pluginInner != null"> |
|||
plugin_inner = #{pluginInner,jdbcType=TINYINT}, |
|||
</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> |
|||
<if test="colspan != null"> |
|||
colspan = #{colspan,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="rowspan != null"> |
|||
rowspan = #{rowspan,jdbcType=INTEGER}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ptccsens.bean.po.ProTaskPlugin"> |
|||
update t_pro_task_plugin |
|||
set param = #{param,jdbcType=VARCHAR}, |
|||
plgin_row = #{plginRow,jdbcType=INTEGER}, |
|||
plgin_col = #{plginCol,jdbcType=INTEGER}, |
|||
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|||
plugin_id = #{pluginId,jdbcType=BIGINT}, |
|||
business_plugin_id = #{businessPluginId,jdbcType=BIGINT}, |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
plugin_inner = #{pluginInner,jdbcType=TINYINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
colspan = #{colspan,jdbcType=INTEGER}, |
|||
rowspan = #{rowspan,jdbcType=INTEGER} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue