diff --git a/src/main/java/com/ccsens/carbasics/api/CarouselController.java b/src/main/java/com/ccsens/carbasics/api/CarouselController.java new file mode 100644 index 0000000..40a284e --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/api/CarouselController.java @@ -0,0 +1,44 @@ +package com.ccsens.carbasics.api; + +import com.ccsens.carbasics.bean.dto.CarouselDto; +import com.ccsens.carbasics.bean.vo.CarouselVo; +import com.ccsens.carbasics.service.ICarouselService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.*; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + + +/** + * @author 逗 + */ +@Api(tags = "轮播图相关" ) +@RestController +@RequestMapping("/carousel") +@Slf4j +public class CarouselController { + + @Resource + private ICarouselService carouselService; + + + @ApiOperation(value = "查询轮播图",notes = "") + @ApiImplicitParams({ + @ApiImplicitParam(name = "json", value = "查询大屏轮播图", required = true) + }) + @RequestMapping(value="/show", method = RequestMethod.POST) + public JsonResponse show(@ApiParam @Validated @RequestBody QueryDto params){ + log.info("查询大屏轮播图:{}", params); + List result = carouselService.show(params.getParam()); + log.info("查询大屏轮播图结果:{}", result); + return JsonResponse.newInstance().ok(result); + } +} diff --git a/src/main/java/com/ccsens/carbasics/api/NoticeController.java b/src/main/java/com/ccsens/carbasics/api/NoticeController.java new file mode 100644 index 0000000..b979f67 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/api/NoticeController.java @@ -0,0 +1,48 @@ +package com.ccsens.carbasics.api; + +import com.ccsens.carbasics.bean.dto.CarouselDto; +import com.ccsens.carbasics.bean.dto.NoticeDto; +import com.ccsens.carbasics.bean.vo.CarouselVo; +import com.ccsens.carbasics.bean.vo.NoticeVo; +import com.ccsens.carbasics.service.ICarouselService; +import com.ccsens.carbasics.service.INoticeService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import com.github.pagehelper.PageInfo; +import io.swagger.annotations.*; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + + +/** + * @author 逗 + */ +@Api(tags = "新闻公告相关" ) +@RestController +@RequestMapping("/notice") +@Slf4j +public class NoticeController { + + @Resource + private INoticeService noticeService; + + + @ApiOperation(value = "查看首页新闻公告",notes = "") + @ApiImplicitParams({ + @ApiImplicitParam(name = "json", value = "查看首页新闻公告", required = true) + }) + @RequestMapping(value="/query", method = RequestMethod.POST) + public JsonResponse> query(@ApiParam @Validated @RequestBody QueryDto params){ + log.info("查看首页新闻公告:{}", params); + PageInfo result = noticeService.query(params.getParam()); + log.info("查看首页新闻公告结果:{}", result); + return JsonResponse.newInstance().ok(result); + } +} diff --git a/src/main/java/com/ccsens/carbasics/bean/dto/CarouselDto.java b/src/main/java/com/ccsens/carbasics/bean/dto/CarouselDto.java new file mode 100644 index 0000000..82cf515 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/dto/CarouselDto.java @@ -0,0 +1,25 @@ +package com.ccsens.carbasics.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; + + +/** + * @author 逗 + */ +@Data +public class CarouselDto { + + @ApiModel("轮播图-请求") + @Data + public static class Equipment { + @ApiModelProperty("显示类型 0顶部轮播图 1弹出窗口") + private Byte showType = 0; + @ApiModelProperty("显示位置 0:全部 1:小程序 2其他") + private Byte showPosition = 0; + } + +} diff --git a/src/main/java/com/ccsens/carbasics/bean/dto/NoticeDto.java b/src/main/java/com/ccsens/carbasics/bean/dto/NoticeDto.java new file mode 100644 index 0000000..74c6104 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/dto/NoticeDto.java @@ -0,0 +1,27 @@ +package com.ccsens.carbasics.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.Max; +import javax.validation.constraints.Min; + +/** + * @author 逗 + */ +@Data +public class NoticeDto { + + @Data + @ApiModel("查看公告列表") + public static class QueryNotice{ + @ApiModelProperty("第几页") + @Min(value = 1) + private int pageNum = 1; + @ApiModelProperty("每页多少条") + @Min(value = 1) + @Max(value=100) + private int pageSize = 10; + } +} diff --git a/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfig.java b/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfig.java index d4aa6aa..2ed22e1 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfig.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfig.java @@ -20,6 +20,8 @@ public class ButtonConfig implements Serializable { private Byte recStatus; + private String iconUrl; + private static final long serialVersionUID = 1L; public Long getId() { @@ -86,6 +88,14 @@ public class ButtonConfig implements Serializable { this.recStatus = recStatus; } + public String getIconUrl() { + return iconUrl; + } + + public void setIconUrl(String iconUrl) { + this.iconUrl = iconUrl == null ? null : iconUrl.trim(); + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -100,6 +110,7 @@ public class ButtonConfig implements Serializable { sb.append(", createdAt=").append(createdAt); sb.append(", updatedAt=").append(updatedAt); sb.append(", recStatus=").append(recStatus); + sb.append(", iconUrl=").append(iconUrl); sb.append("]"); return sb.toString(); } diff --git a/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfigExample.java b/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfigExample.java index 8f55025..fc39b4c 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfigExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/ButtonConfigExample.java @@ -604,6 +604,76 @@ public class ButtonConfigExample { addCriterion("rec_status not between", value1, value2, "recStatus"); return (Criteria) this; } + + public Criteria andIconUrlIsNull() { + addCriterion("icon_url is null"); + return (Criteria) this; + } + + public Criteria andIconUrlIsNotNull() { + addCriterion("icon_url is not null"); + return (Criteria) this; + } + + public Criteria andIconUrlEqualTo(String value) { + addCriterion("icon_url =", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlNotEqualTo(String value) { + addCriterion("icon_url <>", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlGreaterThan(String value) { + addCriterion("icon_url >", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlGreaterThanOrEqualTo(String value) { + addCriterion("icon_url >=", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlLessThan(String value) { + addCriterion("icon_url <", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlLessThanOrEqualTo(String value) { + addCriterion("icon_url <=", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlLike(String value) { + addCriterion("icon_url like", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlNotLike(String value) { + addCriterion("icon_url not like", value, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlIn(List values) { + addCriterion("icon_url in", values, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlNotIn(List values) { + addCriterion("icon_url not in", values, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlBetween(String value1, String value2) { + addCriterion("icon_url between", value1, value2, "iconUrl"); + return (Criteria) this; + } + + public Criteria andIconUrlNotBetween(String value1, String value2) { + addCriterion("icon_url not between", value1, value2, "iconUrl"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/ccsens/carbasics/bean/po/SysCarousel.java b/src/main/java/com/ccsens/carbasics/bean/po/SysCarousel.java new file mode 100644 index 0000000..401c183 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/SysCarousel.java @@ -0,0 +1,161 @@ +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class SysCarousel implements Serializable { + private Long id; + + private String url; + + private Byte jumpType; + + private String jumpUrl; + + private String jumpParam; + + private Byte showPosition; + + private String showPage; + + private Byte showType; + + private Integer sort; + + private String operator; + + 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 String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url == null ? null : url.trim(); + } + + public Byte getJumpType() { + return jumpType; + } + + public void setJumpType(Byte jumpType) { + this.jumpType = jumpType; + } + + public String getJumpUrl() { + return jumpUrl; + } + + public void setJumpUrl(String jumpUrl) { + this.jumpUrl = jumpUrl == null ? null : jumpUrl.trim(); + } + + public String getJumpParam() { + return jumpParam; + } + + public void setJumpParam(String jumpParam) { + this.jumpParam = jumpParam == null ? null : jumpParam.trim(); + } + + public Byte getShowPosition() { + return showPosition; + } + + public void setShowPosition(Byte showPosition) { + this.showPosition = showPosition; + } + + public String getShowPage() { + return showPage; + } + + public void setShowPage(String showPage) { + this.showPage = showPage == null ? null : showPage.trim(); + } + + public Byte getShowType() { + return showType; + } + + public void setShowType(Byte showType) { + this.showType = showType; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator == null ? null : operator.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(", url=").append(url); + sb.append(", jumpType=").append(jumpType); + sb.append(", jumpUrl=").append(jumpUrl); + sb.append(", jumpParam=").append(jumpParam); + sb.append(", showPosition=").append(showPosition); + sb.append(", showPage=").append(showPage); + sb.append(", showType=").append(showType); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/SysCarouselExample.java b/src/main/java/com/ccsens/carbasics/bean/po/SysCarouselExample.java new file mode 100644 index 0000000..046f894 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/SysCarouselExample.java @@ -0,0 +1,1031 @@ +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class SysCarouselExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SysCarouselExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUrlIsNull() { + addCriterion("url is null"); + return (Criteria) this; + } + + public Criteria andUrlIsNotNull() { + addCriterion("url is not null"); + return (Criteria) this; + } + + public Criteria andUrlEqualTo(String value) { + addCriterion("url =", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotEqualTo(String value) { + addCriterion("url <>", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThan(String value) { + addCriterion("url >", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThanOrEqualTo(String value) { + addCriterion("url >=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThan(String value) { + addCriterion("url <", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThanOrEqualTo(String value) { + addCriterion("url <=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLike(String value) { + addCriterion("url like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotLike(String value) { + addCriterion("url not like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlIn(List values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List values) { + addCriterion("url not in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlBetween(String value1, String value2) { + addCriterion("url between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotBetween(String value1, String value2) { + addCriterion("url not between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andJumpTypeIsNull() { + addCriterion("jump_type is null"); + return (Criteria) this; + } + + public Criteria andJumpTypeIsNotNull() { + addCriterion("jump_type is not null"); + return (Criteria) this; + } + + public Criteria andJumpTypeEqualTo(Byte value) { + addCriterion("jump_type =", value, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeNotEqualTo(Byte value) { + addCriterion("jump_type <>", value, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeGreaterThan(Byte value) { + addCriterion("jump_type >", value, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("jump_type >=", value, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeLessThan(Byte value) { + addCriterion("jump_type <", value, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeLessThanOrEqualTo(Byte value) { + addCriterion("jump_type <=", value, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeIn(List values) { + addCriterion("jump_type in", values, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeNotIn(List values) { + addCriterion("jump_type not in", values, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeBetween(Byte value1, Byte value2) { + addCriterion("jump_type between", value1, value2, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpTypeNotBetween(Byte value1, Byte value2) { + addCriterion("jump_type not between", value1, value2, "jumpType"); + return (Criteria) this; + } + + public Criteria andJumpUrlIsNull() { + addCriterion("jump_url is null"); + return (Criteria) this; + } + + public Criteria andJumpUrlIsNotNull() { + addCriterion("jump_url is not null"); + return (Criteria) this; + } + + public Criteria andJumpUrlEqualTo(String value) { + addCriterion("jump_url =", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlNotEqualTo(String value) { + addCriterion("jump_url <>", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlGreaterThan(String value) { + addCriterion("jump_url >", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlGreaterThanOrEqualTo(String value) { + addCriterion("jump_url >=", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlLessThan(String value) { + addCriterion("jump_url <", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlLessThanOrEqualTo(String value) { + addCriterion("jump_url <=", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlLike(String value) { + addCriterion("jump_url like", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlNotLike(String value) { + addCriterion("jump_url not like", value, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlIn(List values) { + addCriterion("jump_url in", values, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlNotIn(List values) { + addCriterion("jump_url not in", values, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlBetween(String value1, String value2) { + addCriterion("jump_url between", value1, value2, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpUrlNotBetween(String value1, String value2) { + addCriterion("jump_url not between", value1, value2, "jumpUrl"); + return (Criteria) this; + } + + public Criteria andJumpParamIsNull() { + addCriterion("jump_param is null"); + return (Criteria) this; + } + + public Criteria andJumpParamIsNotNull() { + addCriterion("jump_param is not null"); + return (Criteria) this; + } + + public Criteria andJumpParamEqualTo(String value) { + addCriterion("jump_param =", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamNotEqualTo(String value) { + addCriterion("jump_param <>", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamGreaterThan(String value) { + addCriterion("jump_param >", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamGreaterThanOrEqualTo(String value) { + addCriterion("jump_param >=", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamLessThan(String value) { + addCriterion("jump_param <", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamLessThanOrEqualTo(String value) { + addCriterion("jump_param <=", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamLike(String value) { + addCriterion("jump_param like", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamNotLike(String value) { + addCriterion("jump_param not like", value, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamIn(List values) { + addCriterion("jump_param in", values, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamNotIn(List values) { + addCriterion("jump_param not in", values, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamBetween(String value1, String value2) { + addCriterion("jump_param between", value1, value2, "jumpParam"); + return (Criteria) this; + } + + public Criteria andJumpParamNotBetween(String value1, String value2) { + addCriterion("jump_param not between", value1, value2, "jumpParam"); + return (Criteria) this; + } + + public Criteria andShowPositionIsNull() { + addCriterion("show_position is null"); + return (Criteria) this; + } + + public Criteria andShowPositionIsNotNull() { + addCriterion("show_position is not null"); + return (Criteria) this; + } + + public Criteria andShowPositionEqualTo(Byte value) { + addCriterion("show_position =", value, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionNotEqualTo(Byte value) { + addCriterion("show_position <>", value, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionGreaterThan(Byte value) { + addCriterion("show_position >", value, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionGreaterThanOrEqualTo(Byte value) { + addCriterion("show_position >=", value, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionLessThan(Byte value) { + addCriterion("show_position <", value, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionLessThanOrEqualTo(Byte value) { + addCriterion("show_position <=", value, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionIn(List values) { + addCriterion("show_position in", values, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionNotIn(List values) { + addCriterion("show_position not in", values, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionBetween(Byte value1, Byte value2) { + addCriterion("show_position between", value1, value2, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPositionNotBetween(Byte value1, Byte value2) { + addCriterion("show_position not between", value1, value2, "showPosition"); + return (Criteria) this; + } + + public Criteria andShowPageIsNull() { + addCriterion("show_page is null"); + return (Criteria) this; + } + + public Criteria andShowPageIsNotNull() { + addCriterion("show_page is not null"); + return (Criteria) this; + } + + public Criteria andShowPageEqualTo(String value) { + addCriterion("show_page =", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageNotEqualTo(String value) { + addCriterion("show_page <>", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageGreaterThan(String value) { + addCriterion("show_page >", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageGreaterThanOrEqualTo(String value) { + addCriterion("show_page >=", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageLessThan(String value) { + addCriterion("show_page <", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageLessThanOrEqualTo(String value) { + addCriterion("show_page <=", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageLike(String value) { + addCriterion("show_page like", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageNotLike(String value) { + addCriterion("show_page not like", value, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageIn(List values) { + addCriterion("show_page in", values, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageNotIn(List values) { + addCriterion("show_page not in", values, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageBetween(String value1, String value2) { + addCriterion("show_page between", value1, value2, "showPage"); + return (Criteria) this; + } + + public Criteria andShowPageNotBetween(String value1, String value2) { + addCriterion("show_page not between", value1, value2, "showPage"); + return (Criteria) this; + } + + public Criteria andShowTypeIsNull() { + addCriterion("show_type is null"); + return (Criteria) this; + } + + public Criteria andShowTypeIsNotNull() { + addCriterion("show_type is not null"); + return (Criteria) this; + } + + public Criteria andShowTypeEqualTo(Byte value) { + addCriterion("show_type =", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotEqualTo(Byte value) { + addCriterion("show_type <>", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeGreaterThan(Byte value) { + addCriterion("show_type >", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("show_type >=", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeLessThan(Byte value) { + addCriterion("show_type <", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeLessThanOrEqualTo(Byte value) { + addCriterion("show_type <=", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeIn(List values) { + addCriterion("show_type in", values, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotIn(List values) { + addCriterion("show_type not in", values, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeBetween(Byte value1, Byte value2) { + addCriterion("show_type between", value1, value2, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotBetween(Byte value1, Byte value2) { + addCriterion("show_type not between", value1, value2, "showType"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(String value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(String value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(String value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(String value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(String value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(String value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLike(String value) { + addCriterion("operator like", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotLike(String value) { + addCriterion("operator not like", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(String value1, String value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(String value1, String value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/SysNotice.java b/src/main/java/com/ccsens/carbasics/bean/po/SysNotice.java new file mode 100644 index 0000000..1174954 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/SysNotice.java @@ -0,0 +1,117 @@ +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class SysNotice implements Serializable { + private Long id; + + private String title; + + private Long publishTime; + + private Integer sort; + + private String operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private String content; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title == null ? null : title.trim(); + } + + public Long getPublishTime() { + return publishTime; + } + + public void setPublishTime(Long publishTime) { + this.publishTime = publishTime; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator == null ? null : operator.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; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content == null ? null : content.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(", title=").append(title); + sb.append(", publishTime=").append(publishTime); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append(", content=").append(content); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/SysNoticeExample.java b/src/main/java/com/ccsens/carbasics/bean/po/SysNoticeExample.java new file mode 100644 index 0000000..7f7eb85 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/SysNoticeExample.java @@ -0,0 +1,701 @@ +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class SysNoticeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SysNoticeExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andPublishTimeIsNull() { + addCriterion("publish_time is null"); + return (Criteria) this; + } + + public Criteria andPublishTimeIsNotNull() { + addCriterion("publish_time is not null"); + return (Criteria) this; + } + + public Criteria andPublishTimeEqualTo(Long value) { + addCriterion("publish_time =", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeNotEqualTo(Long value) { + addCriterion("publish_time <>", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeGreaterThan(Long value) { + addCriterion("publish_time >", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeGreaterThanOrEqualTo(Long value) { + addCriterion("publish_time >=", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeLessThan(Long value) { + addCriterion("publish_time <", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeLessThanOrEqualTo(Long value) { + addCriterion("publish_time <=", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeIn(List values) { + addCriterion("publish_time in", values, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeNotIn(List values) { + addCriterion("publish_time not in", values, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeBetween(Long value1, Long value2) { + addCriterion("publish_time between", value1, value2, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeNotBetween(Long value1, Long value2) { + addCriterion("publish_time not between", value1, value2, "publishTime"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(String value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(String value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(String value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(String value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(String value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(String value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLike(String value) { + addCriterion("operator like", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotLike(String value) { + addCriterion("operator not like", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(String value1, String value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(String value1, String value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/vo/ButtonVO.java b/src/main/java/com/ccsens/carbasics/bean/vo/ButtonVO.java index 7557e24..a5d5ca0 100644 --- a/src/main/java/com/ccsens/carbasics/bean/vo/ButtonVO.java +++ b/src/main/java/com/ccsens/carbasics/bean/vo/ButtonVO.java @@ -17,6 +17,8 @@ public class ButtonVO { private String name; @ApiModelProperty("跳转路径") private String url; + @ApiModelProperty("按钮图标") + private String iconUrl; } @Data diff --git a/src/main/java/com/ccsens/carbasics/bean/vo/CarouselVo.java b/src/main/java/com/ccsens/carbasics/bean/vo/CarouselVo.java new file mode 100644 index 0000000..1e9d42c --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/vo/CarouselVo.java @@ -0,0 +1,35 @@ +package com.ccsens.carbasics.bean.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + + +/** + * @author 逗 + */ +@Data +public class CarouselVo { + @Data + @ApiModel("轮播图-返回") + public static class Base { + @ApiModelProperty("轮播图ID") + private Long id; + @ApiModelProperty("图片路径") + private String url; + @ApiModelProperty("跳转链接类型 0外部页面 1内部页面") + private Byte jumpType; + @ApiModelProperty("图片跳转路径") + private String jumpUrl; + @ApiModelProperty("图片参数") + private String param; + @ApiModelProperty("显示位置 0小程序 1其他") + private Byte showPosition; + @ApiModelProperty("'页面显示位置") + private String showPage; + @ApiModelProperty("显示类型 0顶部轮播图 1弹出窗口") + private Byte showType; + @ApiModelProperty("'排序'") + private int sort; + } +} diff --git a/src/main/java/com/ccsens/carbasics/bean/vo/NoticeVo.java b/src/main/java/com/ccsens/carbasics/bean/vo/NoticeVo.java new file mode 100644 index 0000000..10e6dbe --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/vo/NoticeVo.java @@ -0,0 +1,27 @@ +package com.ccsens.carbasics.bean.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author 逗 + */ +@Data +public class NoticeVo { + + @Data + @ApiModel("查看公告列表") + public static class NoticeList{ + @ApiModelProperty("id") + private Long id; + @ApiModelProperty("标题") + private String title; + @ApiModelProperty("详情") + private String content; + @ApiModelProperty("发布时间") + private Long publishTime; + @ApiModelProperty("排序") + private int sort; + } +} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/CarouselDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/CarouselDao.java new file mode 100644 index 0000000..9a87aac --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/dao/CarouselDao.java @@ -0,0 +1,15 @@ +package com.ccsens.carbasics.persist.dao; + +import com.ccsens.carbasics.bean.vo.CarouselVo; +import com.ccsens.carbasics.persist.mapper.SysCarouselMapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @author 逗 + */ +public interface CarouselDao extends SysCarouselMapper { + + List queryShow(@Param("showType") Byte showType, @Param("showPosition") Byte showPosition); +} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/NoticeDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/NoticeDao.java new file mode 100644 index 0000000..a684ddd --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/dao/NoticeDao.java @@ -0,0 +1,14 @@ +package com.ccsens.carbasics.persist.dao; + +import com.ccsens.carbasics.bean.vo.NoticeVo; +import com.ccsens.carbasics.persist.mapper.SysNoticeMapper; + +import java.util.List; + +/** + * @author 逗 + */ +public interface NoticeDao extends SysNoticeMapper { + List queryNotice(); + +} diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/SysCarouselMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/SysCarouselMapper.java new file mode 100644 index 0000000..ce96ec9 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/SysCarouselMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.SysCarousel; +import com.ccsens.carbasics.bean.po.SysCarouselExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SysCarouselMapper { + long countByExample(SysCarouselExample example); + + int deleteByExample(SysCarouselExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SysCarousel record); + + int insertSelective(SysCarousel record); + + List selectByExample(SysCarouselExample example); + + SysCarousel selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") SysCarousel record, @Param("example") SysCarouselExample example); + + int updateByExample(@Param("record") SysCarousel record, @Param("example") SysCarouselExample example); + + int updateByPrimaryKeySelective(SysCarousel record); + + int updateByPrimaryKey(SysCarousel record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/SysNoticeMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/SysNoticeMapper.java new file mode 100644 index 0000000..6cde9e8 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/SysNoticeMapper.java @@ -0,0 +1,36 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.SysNotice; +import com.ccsens.carbasics.bean.po.SysNoticeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SysNoticeMapper { + long countByExample(SysNoticeExample example); + + int deleteByExample(SysNoticeExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SysNotice record); + + int insertSelective(SysNotice record); + + List selectByExampleWithBLOBs(SysNoticeExample example); + + List selectByExample(SysNoticeExample example); + + SysNotice selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") SysNotice record, @Param("example") SysNoticeExample example); + + int updateByExampleWithBLOBs(@Param("record") SysNotice record, @Param("example") SysNoticeExample example); + + int updateByExample(@Param("record") SysNotice record, @Param("example") SysNoticeExample example); + + int updateByPrimaryKeySelective(SysNotice record); + + int updateByPrimaryKeyWithBLOBs(SysNotice record); + + int updateByPrimaryKey(SysNotice record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/service/CarouselService.java b/src/main/java/com/ccsens/carbasics/service/CarouselService.java new file mode 100644 index 0000000..f17a684 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/CarouselService.java @@ -0,0 +1,29 @@ +package com.ccsens.carbasics.service; + +import com.ccsens.carbasics.bean.dto.CarouselDto; +import com.ccsens.carbasics.bean.vo.CarouselVo; +import com.ccsens.carbasics.persist.dao.CarouselDao; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class CarouselService implements ICarouselService { + + @Resource + private CarouselDao carouselDao; + + @Override + public List show(CarouselDto.Equipment param) { + return carouselDao.queryShow(param.getShowType(),param.getShowPosition()); + } +} diff --git a/src/main/java/com/ccsens/carbasics/service/ICarouselService.java b/src/main/java/com/ccsens/carbasics/service/ICarouselService.java new file mode 100644 index 0000000..2a56cbb --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/ICarouselService.java @@ -0,0 +1,14 @@ +package com.ccsens.carbasics.service; + +import com.ccsens.carbasics.bean.dto.CarouselDto; +import com.ccsens.carbasics.bean.vo.CarouselVo; + +import java.util.List; + +/** + * @author 逗 + */ +public interface ICarouselService { + + List show(CarouselDto.Equipment param); +} diff --git a/src/main/java/com/ccsens/carbasics/service/INoticeService.java b/src/main/java/com/ccsens/carbasics/service/INoticeService.java new file mode 100644 index 0000000..2b8ccb1 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/INoticeService.java @@ -0,0 +1,15 @@ +package com.ccsens.carbasics.service; + +import com.ccsens.carbasics.bean.dto.NoticeDto; +import com.ccsens.carbasics.bean.vo.NoticeVo; +import com.github.pagehelper.PageInfo; + +import java.util.List; + +/** + * @author 逗 + */ +public interface INoticeService { + + PageInfo query(NoticeDto.QueryNotice param); +} diff --git a/src/main/java/com/ccsens/carbasics/service/NoticeService.java b/src/main/java/com/ccsens/carbasics/service/NoticeService.java new file mode 100644 index 0000000..81905a5 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/NoticeService.java @@ -0,0 +1,33 @@ +package com.ccsens.carbasics.service; + +import com.ccsens.carbasics.bean.dto.NoticeDto; +import com.ccsens.carbasics.bean.vo.NoticeVo; +import com.ccsens.carbasics.persist.dao.NoticeDao; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class NoticeService implements INoticeService { + + @Resource + private NoticeDao noticeDao; + + @Override + public PageInfo query(NoticeDto.QueryNotice param) { + PageHelper.startPage(param.getPageNum(),param.getPageSize()); + List noticeLists = noticeDao.queryNotice(); + return new PageInfo<>(noticeLists); + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5abf242..c3b11fb 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: prod - include: common, util-prod + active: test + include: common, util-test diff --git a/src/main/resources/mapper_dao/ButtonConfigDao.xml b/src/main/resources/mapper_dao/ButtonConfigDao.xml index 7382144..5117814 100644 --- a/src/main/resources/mapper_dao/ButtonConfigDao.xml +++ b/src/main/resources/mapper_dao/ButtonConfigDao.xml @@ -6,7 +6,8 @@ + SELECT + id, + url, + jump_type as jumpType, + jump_url as jumpUrl, + jump_param as param, + show_position as showPosition, + show_page as showPage, + show_type as showType, + sort + FROM + t_sys_carousel + WHERE + rec_status = 0 + and show_position = #{showPosition} + and show_type = #{showType} + + diff --git a/src/main/resources/mapper_dao/NoticeDao.xml b/src/main/resources/mapper_dao/NoticeDao.xml new file mode 100644 index 0000000..9ef96f5 --- /dev/null +++ b/src/main/resources/mapper_dao/NoticeDao.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/main/resources/mapper_raw/ButtonConfigMapper.xml b/src/main/resources/mapper_raw/ButtonConfigMapper.xml index 5316486..d88d641 100644 --- a/src/main/resources/mapper_raw/ButtonConfigMapper.xml +++ b/src/main/resources/mapper_raw/ButtonConfigMapper.xml @@ -10,6 +10,7 @@ + @@ -70,7 +71,7 @@ - id, name, url, start, end, created_at, updated_at, rec_status + id, name, url, start, end, created_at, updated_at, rec_status, icon_url @@ -198,6 +207,9 @@ rec_status = #{record.recStatus,jdbcType=TINYINT}, + + icon_url = #{record.iconUrl,jdbcType=VARCHAR}, + @@ -212,7 +224,8 @@ end = #{record.end,jdbcType=BIGINT}, created_at = #{record.createdAt,jdbcType=TIMESTAMP}, updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{record.recStatus,jdbcType=TINYINT} + rec_status = #{record.recStatus,jdbcType=TINYINT}, + icon_url = #{record.iconUrl,jdbcType=VARCHAR} @@ -241,6 +254,9 @@ rec_status = #{recStatus,jdbcType=TINYINT}, + + icon_url = #{iconUrl,jdbcType=VARCHAR}, + where id = #{id,jdbcType=BIGINT} @@ -252,7 +268,8 @@ end = #{end,jdbcType=BIGINT}, created_at = #{createdAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} + rec_status = #{recStatus,jdbcType=TINYINT}, + icon_url = #{iconUrl,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/src/main/resources/mapper_raw/SysCarouselMapper.xml b/src/main/resources/mapper_raw/SysCarouselMapper.xml new file mode 100644 index 0000000..53308d8 --- /dev/null +++ b/src/main/resources/mapper_raw/SysCarouselMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, url, jump_type, jump_url, jump_param, show_position, show_page, show_type, sort, + operator, created_at, updated_at, rec_status + + + + + delete from t_sys_carousel + where id = #{id,jdbcType=BIGINT} + + + delete from t_sys_carousel + + + + + + insert into t_sys_carousel (id, url, jump_type, + jump_url, jump_param, show_position, + show_page, show_type, sort, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{url,jdbcType=VARCHAR}, #{jumpType,jdbcType=TINYINT}, + #{jumpUrl,jdbcType=VARCHAR}, #{jumpParam,jdbcType=VARCHAR}, #{showPosition,jdbcType=TINYINT}, + #{showPage,jdbcType=VARCHAR}, #{showType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, + #{operator,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_sys_carousel + + + id, + + + url, + + + jump_type, + + + jump_url, + + + jump_param, + + + show_position, + + + show_page, + + + show_type, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{url,jdbcType=VARCHAR}, + + + #{jumpType,jdbcType=TINYINT}, + + + #{jumpUrl,jdbcType=VARCHAR}, + + + #{jumpParam,jdbcType=VARCHAR}, + + + #{showPosition,jdbcType=TINYINT}, + + + #{showPage,jdbcType=VARCHAR}, + + + #{showType,jdbcType=TINYINT}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_sys_carousel + + + id = #{record.id,jdbcType=BIGINT}, + + + url = #{record.url,jdbcType=VARCHAR}, + + + jump_type = #{record.jumpType,jdbcType=TINYINT}, + + + jump_url = #{record.jumpUrl,jdbcType=VARCHAR}, + + + jump_param = #{record.jumpParam,jdbcType=VARCHAR}, + + + show_position = #{record.showPosition,jdbcType=TINYINT}, + + + show_page = #{record.showPage,jdbcType=VARCHAR}, + + + show_type = #{record.showType,jdbcType=TINYINT}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_sys_carousel + set id = #{record.id,jdbcType=BIGINT}, + url = #{record.url,jdbcType=VARCHAR}, + jump_type = #{record.jumpType,jdbcType=TINYINT}, + jump_url = #{record.jumpUrl,jdbcType=VARCHAR}, + jump_param = #{record.jumpParam,jdbcType=VARCHAR}, + show_position = #{record.showPosition,jdbcType=TINYINT}, + show_page = #{record.showPage,jdbcType=VARCHAR}, + show_type = #{record.showType,jdbcType=TINYINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_sys_carousel + + + url = #{url,jdbcType=VARCHAR}, + + + jump_type = #{jumpType,jdbcType=TINYINT}, + + + jump_url = #{jumpUrl,jdbcType=VARCHAR}, + + + jump_param = #{jumpParam,jdbcType=VARCHAR}, + + + show_position = #{showPosition,jdbcType=TINYINT}, + + + show_page = #{showPage,jdbcType=VARCHAR}, + + + show_type = #{showType,jdbcType=TINYINT}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_sys_carousel + set url = #{url,jdbcType=VARCHAR}, + jump_type = #{jumpType,jdbcType=TINYINT}, + jump_url = #{jumpUrl,jdbcType=VARCHAR}, + jump_param = #{jumpParam,jdbcType=VARCHAR}, + show_position = #{showPosition,jdbcType=TINYINT}, + show_page = #{showPage,jdbcType=VARCHAR}, + show_type = #{showType,jdbcType=TINYINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/SysNoticeMapper.xml b/src/main/resources/mapper_raw/SysNoticeMapper.xml new file mode 100644 index 0000000..6b1e149 --- /dev/null +++ b/src/main/resources/mapper_raw/SysNoticeMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, title, publish_time, sort, operator, created_at, updated_at, rec_status + + + content + + + + + + delete from t_sys_notice + where id = #{id,jdbcType=BIGINT} + + + delete from t_sys_notice + + + + + + insert into t_sys_notice (id, title, publish_time, + sort, operator, created_at, + updated_at, rec_status, content + ) + values (#{id,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{publishTime,jdbcType=BIGINT}, + #{sort,jdbcType=INTEGER}, #{operator,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{content,jdbcType=LONGVARCHAR} + ) + + + insert into t_sys_notice + + + id, + + + title, + + + publish_time, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + content, + + + + + #{id,jdbcType=BIGINT}, + + + #{title,jdbcType=VARCHAR}, + + + #{publishTime,jdbcType=BIGINT}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update t_sys_notice + + + id = #{record.id,jdbcType=BIGINT}, + + + title = #{record.title,jdbcType=VARCHAR}, + + + publish_time = #{record.publishTime,jdbcType=BIGINT}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + + + + + + + update t_sys_notice + set id = #{record.id,jdbcType=BIGINT}, + title = #{record.title,jdbcType=VARCHAR}, + publish_time = #{record.publishTime,jdbcType=BIGINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT}, + content = #{record.content,jdbcType=LONGVARCHAR} + + + + + + update t_sys_notice + set id = #{record.id,jdbcType=BIGINT}, + title = #{record.title,jdbcType=VARCHAR}, + publish_time = #{record.publishTime,jdbcType=BIGINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_sys_notice + + + title = #{title,jdbcType=VARCHAR}, + + + publish_time = #{publishTime,jdbcType=BIGINT}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_sys_notice + set title = #{title,jdbcType=VARCHAR}, + publish_time = #{publishTime,jdbcType=BIGINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT}, + content = #{content,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update t_sys_notice + set title = #{title,jdbcType=VARCHAR}, + publish_time = #{publishTime,jdbcType=BIGINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mbg.xml b/src/main/resources/mbg.xml index ab6e485..a55b6a1 100644 --- a/src/main/resources/mbg.xml +++ b/src/main/resources/mbg.xml @@ -62,7 +62,7 @@ - +
@@ -90,11 +90,15 @@ -
-
-
-
-
+ + + + + +
+
+ +