29 changed files with 3224 additions and 14 deletions
@ -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<CarouselVo.Base> show(@ApiParam @Validated @RequestBody QueryDto<CarouselDto.Equipment> params){ |
|||
log.info("查询大屏轮播图:{}", params); |
|||
List<CarouselVo.Base> result = carouselService.show(params.getParam()); |
|||
log.info("查询大屏轮播图结果:{}", result); |
|||
return JsonResponse.newInstance().ok(result); |
|||
} |
|||
} |
@ -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<PageInfo<NoticeVo.NoticeList>> query(@ApiParam @Validated @RequestBody QueryDto<NoticeDto.QueryNotice> params){ |
|||
log.info("查看首页新闻公告:{}", params); |
|||
PageInfo<NoticeVo.NoticeList> result = noticeService.query(params.getParam()); |
|||
log.info("查看首页新闻公告结果:{}", result); |
|||
return JsonResponse.newInstance().ok(result); |
|||
} |
|||
} |
@ -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; |
|||
} |
|||
|
|||
} |
@ -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; |
|||
} |
|||
} |
@ -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(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public SysNoticeExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
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<Criteria> 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<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> 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<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("title in", values, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotIn(List<String> 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<Long> values) { |
|||
addCriterion("publish_time in", values, "publishTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPublishTimeNotIn(List<Long> 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<Integer> values) { |
|||
addCriterion("sort in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotIn(List<Integer> 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<String> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<String> 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<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> 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<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> 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<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> 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); |
|||
} |
|||
} |
|||
} |
@ -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; |
|||
} |
|||
} |
@ -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; |
|||
} |
|||
} |
@ -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<CarouselVo.Base> queryShow(@Param("showType") Byte showType, @Param("showPosition") Byte showPosition); |
|||
} |
@ -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<NoticeVo.NoticeList> queryNotice(); |
|||
|
|||
} |
@ -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<SysCarousel> 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); |
|||
} |
@ -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<SysNotice> selectByExampleWithBLOBs(SysNoticeExample example); |
|||
|
|||
List<SysNotice> 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); |
|||
} |
@ -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<CarouselVo.Base> show(CarouselDto.Equipment param) { |
|||
return carouselDao.queryShow(param.getShowType(),param.getShowPosition()); |
|||
} |
|||
} |
@ -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<CarouselVo.Base> show(CarouselDto.Equipment param); |
|||
} |
@ -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<NoticeVo.NoticeList> query(NoticeDto.QueryNotice param); |
|||
} |
@ -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<NoticeVo.NoticeList> query(NoticeDto.QueryNotice param) { |
|||
PageHelper.startPage(param.getPageNum(),param.getPageSize()); |
|||
List<NoticeVo.NoticeList> noticeLists = noticeDao.queryNotice(); |
|||
return new PageInfo<>(noticeLists); |
|||
} |
|||
} |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: prod |
|||
include: common, util-prod |
|||
active: test |
|||
include: common, util-test |
|||
|
@ -0,0 +1,24 @@ |
|||
<?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.carbasics.persist.dao.CarouselDao"> |
|||
|
|||
|
|||
<select id="queryShow" resultType="com.ccsens.carbasics.bean.vo.CarouselVo$Base"> |
|||
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} |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,18 @@ |
|||
<?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.carbasics.persist.dao.NoticeDao"> |
|||
|
|||
|
|||
<select id="queryNotice" resultType="com.ccsens.carbasics.bean.vo.NoticeVo$NoticeList"> |
|||
SELECT |
|||
id, |
|||
title, |
|||
content, |
|||
publish_time as publishTime, |
|||
sort |
|||
FROM |
|||
t_sys_notice |
|||
WHERE |
|||
rec_status = 0 |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,338 @@ |
|||
<?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.carbasics.persist.mapper.SysCarouselMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.SysCarousel"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="url" jdbcType="VARCHAR" property="url" /> |
|||
<result column="jump_type" jdbcType="TINYINT" property="jumpType" /> |
|||
<result column="jump_url" jdbcType="VARCHAR" property="jumpUrl" /> |
|||
<result column="jump_param" jdbcType="VARCHAR" property="jumpParam" /> |
|||
<result column="show_position" jdbcType="TINYINT" property="showPosition" /> |
|||
<result column="show_page" jdbcType="VARCHAR" property="showPage" /> |
|||
<result column="show_type" jdbcType="TINYINT" property="showType" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="operator" jdbcType="VARCHAR" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, url, jump_type, jump_url, jump_param, show_position, show_page, show_type, sort, |
|||
operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.SysCarouselExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_carousel |
|||
<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_sys_carousel |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_sys_carousel |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.SysCarouselExample"> |
|||
delete from t_sys_carousel |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.SysCarousel"> |
|||
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> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.SysCarousel"> |
|||
insert into t_sys_carousel |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="url != null"> |
|||
url, |
|||
</if> |
|||
<if test="jumpType != null"> |
|||
jump_type, |
|||
</if> |
|||
<if test="jumpUrl != null"> |
|||
jump_url, |
|||
</if> |
|||
<if test="jumpParam != null"> |
|||
jump_param, |
|||
</if> |
|||
<if test="showPosition != null"> |
|||
show_position, |
|||
</if> |
|||
<if test="showPage != null"> |
|||
show_page, |
|||
</if> |
|||
<if test="showType != null"> |
|||
show_type, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="url != null"> |
|||
#{url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="jumpType != null"> |
|||
#{jumpType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="jumpUrl != null"> |
|||
#{jumpUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="jumpParam != null"> |
|||
#{jumpParam,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="showPosition != null"> |
|||
#{showPosition,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showPage != null"> |
|||
#{showPage,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="showType != null"> |
|||
#{showType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=VARCHAR}, |
|||
</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> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.SysCarouselExample" resultType="java.lang.Long"> |
|||
select count(*) from t_sys_carousel |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_sys_carousel |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.url != null"> |
|||
url = #{record.url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.jumpType != null"> |
|||
jump_type = #{record.jumpType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.jumpUrl != null"> |
|||
jump_url = #{record.jumpUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.jumpParam != null"> |
|||
jump_param = #{record.jumpParam,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.showPosition != null"> |
|||
show_position = #{record.showPosition,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.showPage != null"> |
|||
show_page = #{record.showPage,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.showType != null"> |
|||
show_type = #{record.showType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=VARCHAR}, |
|||
</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> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.SysCarousel"> |
|||
update t_sys_carousel |
|||
<set> |
|||
<if test="url != null"> |
|||
url = #{url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="jumpType != null"> |
|||
jump_type = #{jumpType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="jumpUrl != null"> |
|||
jump_url = #{jumpUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="jumpParam != null"> |
|||
jump_param = #{jumpParam,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="showPosition != null"> |
|||
show_position = #{showPosition,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showPage != null"> |
|||
show_page = #{showPage,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="showType != null"> |
|||
show_type = #{showType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=VARCHAR}, |
|||
</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> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.SysCarousel"> |
|||
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} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,323 @@ |
|||
<?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.carbasics.persist.mapper.SysNoticeMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="title" jdbcType="VARCHAR" property="title" /> |
|||
<result column="publish_time" jdbcType="BIGINT" property="publishTime" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="operator" jdbcType="VARCHAR" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
<result column="content" jdbcType="LONGVARCHAR" property="content" /> |
|||
</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, title, publish_time, sort, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<sql id="Blob_Column_List"> |
|||
content |
|||
</sql> |
|||
<select id="selectByExampleWithBLOBs" parameterType="com.ccsens.carbasics.bean.po.SysNoticeExample" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from t_sys_notice |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.SysNoticeExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_notice |
|||
<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="ResultMapWithBLOBs"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from t_sys_notice |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_sys_notice |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.SysNoticeExample"> |
|||
delete from t_sys_notice |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
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> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
insert into t_sys_notice |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="title != null"> |
|||
title, |
|||
</if> |
|||
<if test="publishTime != null"> |
|||
publish_time, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="content != null"> |
|||
content, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="title != null"> |
|||
#{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="publishTime != null"> |
|||
#{publishTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=VARCHAR}, |
|||
</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="content != null"> |
|||
#{content,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.SysNoticeExample" resultType="java.lang.Long"> |
|||
select count(*) from t_sys_notice |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_sys_notice |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.title != null"> |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.publishTime != null"> |
|||
publish_time = #{record.publishTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=VARCHAR}, |
|||
</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.content != null"> |
|||
content = #{record.content,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
update t_sys_notice |
|||
<set> |
|||
<if test="title != null"> |
|||
title = #{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="publishTime != null"> |
|||
publish_time = #{publishTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=VARCHAR}, |
|||
</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="content != null"> |
|||
content = #{content,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
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> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.SysNotice"> |
|||
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} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue