17 changed files with 205 additions and 11 deletions
@ -0,0 +1,24 @@ |
|||||
|
package com.bnyer.common.core.dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ApiModel("艺术家自定义标签接收类") |
||||
|
public class SignFrontDto implements Serializable { |
||||
|
|
||||
|
@ApiModelProperty(value="主键id") |
||||
|
private Long id; |
||||
|
|
||||
|
@ApiModelProperty(value="标签名称") |
||||
|
private String name; |
||||
|
|
||||
|
@ApiModelProperty(value="父id") |
||||
|
private Long parentId; |
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
<?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.bnyer.system.mapper.SignMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.bnyer.common.core.domain.Sign"> |
||||
|
<!--@mbg.generated--> |
||||
|
<!--@Table img_sign--> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
|
<result column="img" jdbcType="VARCHAR" property="img" /> |
||||
|
<result column="is_show" jdbcType="CHAR" property="isShow" /> |
||||
|
<result column="type" jdbcType="CHAR" property="type" /> |
||||
|
<result column="status" jdbcType="CHAR" property="status" /> |
||||
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="sort" jdbcType="INTEGER" property="sort" /> |
||||
|
</resultMap> |
||||
|
<sql id="Base_Column_List"> |
||||
|
<!--@mbg.generated--> |
||||
|
id, `name`, img,is_show, create_time, update_time, sort,type,status,parent_id |
||||
|
</sql> |
||||
|
|
||||
|
<update id="batchUpdateStatus"> |
||||
|
update img_sign |
||||
|
set status = #{status},update_time = now() |
||||
|
where id in |
||||
|
<foreach collection="ids" item="id" separator="," open="(" close=")"> |
||||
|
#{id} |
||||
|
</foreach> |
||||
|
</update> |
||||
|
</mapper> |
||||
Loading…
Reference in new issue