master
parent
63cbd27784
commit
0352e3d528
@ -0,0 +1,42 @@ |
||||
package com.zbkj.common.model.page; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.experimental.Accessors; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* <p> |
||||
* DIY数据标题表 |
||||
* </p> |
||||
* |
||||
* @author dazongzi |
||||
* @since 2023-05-16 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("eb_page_diy_title") |
||||
@ApiModel(value="PageDiyTitle对象", description="DIY数据标题表") |
||||
public class PageDiyTitle implements Serializable { |
||||
|
||||
private static final long serialVersionUID=1L; |
||||
|
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
|
||||
@ApiModelProperty(value = "页面id") |
||||
private Integer pageId; |
||||
|
||||
@ApiModelProperty(value = "标题内容") |
||||
private String value; |
||||
} |
||||
@ -0,0 +1,16 @@ |
||||
package com.zbkj.service.dao.page; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.zbkj.common.model.page.PageDiyTitle; |
||||
|
||||
/** |
||||
* <p> |
||||
* DIY数据表 Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author dazongzi |
||||
* @since 2023-05-16 |
||||
*/ |
||||
public interface PageDiyTitleDao extends BaseMapper<PageDiyTitle> { |
||||
|
||||
} |
||||
@ -0,0 +1,65 @@ |
||||
<?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.zbkj.service.dao.page.PageDiyDao"> |
||||
|
||||
<select id="selectNoValueById" resultType="com.zbkj.common.model.page.PageDiy" |
||||
parameterType="java.lang.Integer"> |
||||
select id, |
||||
version, |
||||
name, |
||||
title, |
||||
cover_image, |
||||
template_name, |
||||
add_time, |
||||
update_time, |
||||
status, |
||||
type, |
||||
is_show, |
||||
is_bg_color, |
||||
is_bg_pic, |
||||
is_diy, |
||||
color_picker, |
||||
bg_pic, |
||||
bg_tab_val, |
||||
is_del, |
||||
return_address, |
||||
title_bg_color, |
||||
title_color, |
||||
service_status, |
||||
mer_id, |
||||
is_default, |
||||
text_position from eb_page_diy where id=#{value} |
||||
|
||||
</select> |
||||
<select id="selectNoValueDefault" resultType="com.zbkj.common.model.page.PageDiy"> |
||||
select id, |
||||
version, |
||||
name, |
||||
title, |
||||
cover_image, |
||||
template_name, |
||||
add_time, |
||||
update_time, |
||||
status, |
||||
type, |
||||
is_show, |
||||
is_bg_color, |
||||
is_bg_pic, |
||||
is_diy, |
||||
color_picker, |
||||
bg_pic, |
||||
bg_tab_val, |
||||
is_del, |
||||
return_address, |
||||
title_bg_color, |
||||
title_color, |
||||
service_status, |
||||
mer_id, |
||||
is_default, |
||||
text_position from eb_page_diy where is_default=1 |
||||
</select> |
||||
<select id="queryPageTitle" resultType="java.lang.Integer" parameterType="java.lang.Integer"> |
||||
select id from eb_page_diy_title where |
||||
page_id =#{pageId} order by title |
||||
</select> |
||||
</mapper> |
||||
Loading…
Reference in new issue